@sanity/client 6.15.6 → 6.15.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/stega.d.ts CHANGED
@@ -293,6 +293,9 @@ export declare interface ClientConfig {
293
293
  apiHost?: string
294
294
  apiVersion?: string
295
295
  proxy?: string
296
+ /**
297
+ * Optional request tag prefix for all request tags
298
+ */
296
299
  requestTagPrefix?: string
297
300
  ignoreBrowserTokenWarning?: boolean
298
301
  withCredentials?: boolean
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/client",
3
- "version": "6.15.6",
3
+ "version": "6.15.8",
4
4
  "description": "Client for retrieving, creating and patching data from Sanity.io",
5
5
  "keywords": [
6
6
  "sanity",
@@ -26,7 +26,7 @@
26
26
  "type": "module",
27
27
  "exports": {
28
28
  ".": {
29
- "types": "./dist/index.d.ts",
29
+ "source": "./src/index.ts",
30
30
  "browser": {
31
31
  "source": "./src/index.browser.ts",
32
32
  "import": "./dist/index.browser.js",
@@ -37,20 +37,18 @@
37
37
  "edge": "./dist/index.browser.js",
38
38
  "edge-light": "./dist/index.browser.js",
39
39
  "worker": "./dist/index.browser.js",
40
- "source": "./src/index.ts",
41
40
  "import": "./dist/index.js",
42
41
  "require": "./dist/index.cjs",
43
42
  "default": "./dist/index.js"
44
43
  },
45
44
  "./csm": {
46
- "types": "./dist/csm.d.ts",
47
45
  "source": "./src/csm/index.ts",
48
46
  "import": "./dist/csm.js",
49
47
  "require": "./dist/csm.cjs",
50
48
  "default": "./dist/csm.js"
51
49
  },
52
50
  "./stega": {
53
- "types": "./dist/stega.d.ts",
51
+ "source": "./src/stega/index.ts",
54
52
  "browser": {
55
53
  "source": "./src/stega/index.browser.ts",
56
54
  "import": "./dist/stega.browser.js",
@@ -61,7 +59,6 @@
61
59
  "edge": "./dist/stega.browser.js",
62
60
  "edge-light": "./dist/stega.browser.js",
63
61
  "worker": "./dist/stega.browser.js",
64
- "source": "./src/stega/index.ts",
65
62
  "import": "./dist/stega.js",
66
63
  "require": "./dist/stega.cjs",
67
64
  "default": "./dist/stega.js"
@@ -125,7 +122,7 @@
125
122
  "dependencies": {
126
123
  "@sanity/eventsource": "^5.0.0",
127
124
  "@vercel/stega": "0.1.0",
128
- "get-it": "^8.4.14",
125
+ "get-it": "^8.4.17",
129
126
  "rxjs": "^7.0.0"
130
127
  },
131
128
  "devDependencies": {
@@ -133,11 +130,11 @@
133
130
  "@edge-runtime/vm": "^3.2.0",
134
131
  "@rollup/plugin-commonjs": "^25.0.7",
135
132
  "@rollup/plugin-node-resolve": "^15.2.3",
136
- "@sanity/pkg-utils": "^5.0.4",
133
+ "@sanity/pkg-utils": "^5.1.6",
137
134
  "@types/json-diff": "^1.0.3",
138
135
  "@types/node": "^20.8.8",
139
- "@typescript-eslint/eslint-plugin": "^7.3.1",
140
- "@typescript-eslint/parser": "^7.3.1",
136
+ "@typescript-eslint/eslint-plugin": "^7.5.0",
137
+ "@typescript-eslint/parser": "^7.5.0",
141
138
  "@vitest/coverage-v8": "1.4.0",
142
139
  "eslint": "^8.57.0",
143
140
  "eslint-config-prettier": "^9.1.0",
@@ -147,15 +144,15 @@
147
144
  "happy-dom": "^12.10.3",
148
145
  "json-diff": "^1.0.6",
149
146
  "ls-engines": "^0.9.1",
150
- "next": "^14.1.3",
147
+ "next": "^14.1.4",
151
148
  "nock": "^13.5.4",
152
149
  "prettier": "^3.2.5",
153
- "prettier-plugin-packagejson": "^2.4.12",
150
+ "prettier-plugin-packagejson": "^2.4.14",
154
151
  "rimraf": "^5.0.1",
155
- "rollup": "^4.13.0",
152
+ "rollup": "^4.13.2",
156
153
  "sse-channel": "^4.0.0",
157
- "terser": "^5.29.2",
158
- "typescript": "^5.4.2",
154
+ "terser": "^5.30.1",
155
+ "typescript": "5.4.2",
159
156
  "vitest": "1.4.0",
160
157
  "vitest-github-actions-reporter": "0.11.1"
161
158
  },
package/src/types.ts CHANGED
@@ -45,6 +45,10 @@ export interface ClientConfig {
45
45
  apiHost?: string
46
46
  apiVersion?: string
47
47
  proxy?: string
48
+
49
+ /**
50
+ * Optional request tag prefix for all request tags
51
+ */
48
52
  requestTagPrefix?: string
49
53
  ignoreBrowserTokenWarning?: boolean
50
54
  withCredentials?: boolean