@sanity/client 6.24.1 → 6.24.2-canary.0
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/_chunks-cjs/resolveEditInfo.cjs +1 -2
- package/dist/_chunks-cjs/resolveEditInfo.cjs.map +1 -1
- package/dist/_chunks-cjs/stegaClean.cjs +1 -2
- package/dist/_chunks-cjs/stegaClean.cjs.map +1 -1
- package/dist/_chunks-cjs/stegaEncodeSourceMap.cjs +1 -2
- package/dist/_chunks-cjs/stegaEncodeSourceMap.cjs.map +1 -1
- package/dist/_chunks-es/resolveEditInfo.js +1 -2
- package/dist/_chunks-es/resolveEditInfo.js.map +1 -1
- package/dist/_chunks-es/stegaClean.js +1 -2
- package/dist/_chunks-es/stegaClean.js.map +1 -1
- package/dist/_chunks-es/stegaEncodeSourceMap.js +1 -2
- package/dist/_chunks-es/stegaEncodeSourceMap.js.map +1 -1
- package/dist/csm.cjs +1 -2
- package/dist/csm.cjs.map +1 -1
- package/dist/csm.d.cts +99 -34
- package/dist/csm.d.ts +99 -34
- package/dist/csm.js +1 -2
- package/dist/csm.js.map +1 -1
- package/dist/index.browser.cjs +1 -2
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +3 -4
- package/dist/index.browser.d.ts +3 -4
- package/dist/index.browser.js +1 -2
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/stega.browser.d.cts +3312 -98
- package/dist/stega.browser.d.ts +3312 -98
- package/dist/stega.d.cts +3312 -98
- package/dist/stega.d.ts +3312 -98
- package/package.json +16 -16
- package/src/csm/types.ts +1 -1
- package/src/http/request.ts +1 -1
- package/src/index.browser.ts +1 -1
- package/src/index.ts +1 -1
- package/src/stega/stegaEncodeSourceMap.ts +5 -1
- package/src/util/pick.ts +1 -1
- package/src/warnings.ts +1 -1
- package/umd/sanityClient.js +99 -115
- package/umd/sanityClient.min.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/client",
|
|
3
|
-
"version": "6.24.
|
|
3
|
+
"version": "6.24.2-canary.0",
|
|
4
4
|
"description": "Client for retrieving, creating and patching data from Sanity.io",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -123,18 +123,18 @@
|
|
|
123
123
|
"rxjs": "^7.0.0"
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": {
|
|
126
|
-
"@edge-runtime/types": "^
|
|
127
|
-
"@edge-runtime/vm": "^
|
|
128
|
-
"@rollup/plugin-commonjs": "^28.0.
|
|
129
|
-
"@rollup/plugin-node-resolve": "^
|
|
126
|
+
"@edge-runtime/types": "^4.0.0",
|
|
127
|
+
"@edge-runtime/vm": "^5.0.0",
|
|
128
|
+
"@rollup/plugin-commonjs": "^28.0.2",
|
|
129
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
130
130
|
"@sanity/client-latest": "npm:@sanity/client@latest",
|
|
131
|
-
"@sanity/pkg-utils": "
|
|
131
|
+
"@sanity/pkg-utils": "6.13.3-canary.0",
|
|
132
132
|
"@types/json-diff": "^1.0.3",
|
|
133
133
|
"@types/node": "^22.9.0",
|
|
134
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
135
|
-
"@typescript-eslint/parser": "^8.
|
|
134
|
+
"@typescript-eslint/eslint-plugin": "^8.19.1",
|
|
135
|
+
"@typescript-eslint/parser": "^8.19.1",
|
|
136
136
|
"@vercel/stega": "0.1.2",
|
|
137
|
-
"@vitest/coverage-v8": "2.1.
|
|
137
|
+
"@vitest/coverage-v8": "2.1.8",
|
|
138
138
|
"eslint": "^8.57.1",
|
|
139
139
|
"eslint-config-prettier": "^9.1.0",
|
|
140
140
|
"eslint-plugin-prettier": "^5.2.1",
|
|
@@ -143,20 +143,20 @@
|
|
|
143
143
|
"happy-dom": "^12.10.3",
|
|
144
144
|
"json-diff": "^1.0.6",
|
|
145
145
|
"ls-engines": "^0.9.3",
|
|
146
|
-
"msw": "^2.
|
|
147
|
-
"next": "^15.
|
|
146
|
+
"msw": "^2.7.0",
|
|
147
|
+
"next": "^15.1.4",
|
|
148
148
|
"nock": "^13.5.6",
|
|
149
|
-
"prettier": "^3.4.
|
|
149
|
+
"prettier": "^3.4.2",
|
|
150
150
|
"prettier-plugin-packagejson": "^2.5.6",
|
|
151
151
|
"rimraf": "^5.0.7",
|
|
152
|
-
"rollup": "^4.
|
|
152
|
+
"rollup": "^4.30.1",
|
|
153
153
|
"sse-channel": "^4.0.0",
|
|
154
|
-
"terser": "^5.
|
|
154
|
+
"terser": "^5.37.0",
|
|
155
155
|
"typescript": "5.7.2",
|
|
156
|
-
"vitest": "2.1.
|
|
156
|
+
"vitest": "2.1.8",
|
|
157
157
|
"vitest-github-actions-reporter": "0.11.1"
|
|
158
158
|
},
|
|
159
|
-
"packageManager": "npm@10.9.
|
|
159
|
+
"packageManager": "npm@10.9.2",
|
|
160
160
|
"engines": {
|
|
161
161
|
"node": ">=14.18"
|
|
162
162
|
}
|
package/src/csm/types.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type {ContentSourceMap, ContentSourceMapDocuments, SanityDocument} from '@sanity/client'
|
|
2
2
|
|
|
3
|
-
import {Path} from './studioPath'
|
|
3
|
+
import {type Path} from './studioPath'
|
|
4
4
|
|
|
5
5
|
export type {IndexTuple, KeyedSegment, Path, PathSegment} from './studioPath'
|
|
6
6
|
export type {
|
package/src/http/request.ts
CHANGED
package/src/index.browser.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import defineCreateClientExports, {ClientConfig, SanityClient} from './defineCreateClient'
|
|
1
|
+
import defineCreateClientExports, {type ClientConfig, SanityClient} from './defineCreateClient'
|
|
2
2
|
import {defineDeprecatedCreateClient} from './defineDeprecatedCreateClient'
|
|
3
3
|
import envMiddleware from './http/browserMiddleware'
|
|
4
4
|
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import defineCreateClientExports, {ClientConfig, SanityClient} from './defineCreateClient'
|
|
1
|
+
import defineCreateClientExports, {type ClientConfig, SanityClient} from './defineCreateClient'
|
|
2
2
|
import {defineDeprecatedCreateClient} from './defineDeprecatedCreateClient'
|
|
3
3
|
import envMiddleware from './http/nodeMiddleware'
|
|
4
4
|
|
|
@@ -6,7 +6,11 @@ import {resolveStudioBaseRoute} from '../csm/resolveEditInfo'
|
|
|
6
6
|
import {reKeySegment, toString as studioPathToString} from '../csm/studioPath'
|
|
7
7
|
import {encodeIntoResult} from './encodeIntoResult'
|
|
8
8
|
import {filterDefault} from './filterDefault'
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
type ContentSourceMap,
|
|
11
|
+
type ContentSourceMapParsedPath,
|
|
12
|
+
type InitializedStegaConfig,
|
|
13
|
+
} from './types'
|
|
10
14
|
|
|
11
15
|
const TRUNCATE_LENGTH = 20
|
|
12
16
|
|
package/src/util/pick.ts
CHANGED
package/src/warnings.ts
CHANGED