@sanity/client 6.29.1 → 7.0.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.map +1 -1
- package/dist/_chunks-cjs/stegaEncodeSourceMap.cjs.map +1 -1
- package/dist/_chunks-es/resolveEditInfo.js.map +1 -1
- package/dist/_chunks-es/stegaEncodeSourceMap.js.map +1 -1
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/src/csm/draftUtils.ts +1 -1
- package/src/util/shareReplayLatest.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Client for retrieving, creating and patching data from Sanity.io",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -143,6 +143,7 @@
|
|
|
143
143
|
"eslint-formatter-compact": "^8.40.0",
|
|
144
144
|
"eslint-plugin-prettier": "^5.2.6",
|
|
145
145
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
146
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
146
147
|
"faucet": "^0.0.4",
|
|
147
148
|
"globals": "^16.0.0",
|
|
148
149
|
"happy-dom": "^12.10.3",
|
|
@@ -162,6 +163,6 @@
|
|
|
162
163
|
},
|
|
163
164
|
"packageManager": "npm@11.3.0",
|
|
164
165
|
"engines": {
|
|
165
|
-
"node": ">=
|
|
166
|
+
"node": ">=20"
|
|
166
167
|
}
|
|
167
168
|
}
|
package/src/csm/draftUtils.ts
CHANGED
|
@@ -60,7 +60,7 @@ export function getVersionId(id: string, version: string): string {
|
|
|
60
60
|
*/
|
|
61
61
|
export function getVersionFromId(id: string): string | undefined {
|
|
62
62
|
if (!isVersionId(id)) return undefined
|
|
63
|
-
// eslint-disable-next-line
|
|
63
|
+
// eslint-disable-next-line unused-imports/no-unused-vars
|
|
64
64
|
const [_versionPrefix, versionId, ..._publishedId] = id.split(PATH_SEPARATOR)
|
|
65
65
|
|
|
66
66
|
return versionId
|
|
@@ -44,7 +44,7 @@ function _shareReplayLatest<T>(config: ShareReplayLatestConfig<T>): MonoTypeOper
|
|
|
44
44
|
let latest: T | undefined
|
|
45
45
|
let emitted = false
|
|
46
46
|
|
|
47
|
-
// eslint-disable-next-line
|
|
47
|
+
// eslint-disable-next-line unused-imports/no-unused-vars
|
|
48
48
|
const {predicate, ...shareConfig} = config
|
|
49
49
|
|
|
50
50
|
const wrapped = source.pipe(
|