@sanity/client 6.5.0 → 6.6.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/index.cjs CHANGED
@@ -8,7 +8,7 @@ var getIt = require('get-it');
8
8
  var rxjs = require('rxjs');
9
9
  var operators = require('rxjs/operators');
10
10
  var name = "@sanity/client";
11
- var version = "6.5.0";
11
+ var version = "6.6.0";
12
12
  const middleware = [middleware$1.debug({
13
13
  verbose: true,
14
14
  namespace: "sanity:client"
package/dist/index.d.ts CHANGED
@@ -347,8 +347,15 @@ export declare interface ContentSourceMap {
347
347
  }
348
348
 
349
349
  /** @public */
350
- export declare interface ContentSourceMapDocument {
350
+ export declare interface ContentSourceMapDocument extends ContentSourceMapDocumentBase {
351
+ _projectId?: undefined
352
+ _dataset?: undefined
353
+ }
354
+
355
+ /** @public */
356
+ export declare interface ContentSourceMapDocumentBase {
351
357
  _id: string
358
+ _type: string
352
359
  }
353
360
 
354
361
  /** @public */
@@ -385,7 +392,7 @@ export declare type ContentSourceMapMappings = Record<string, ContentSourceMapMa
385
392
  export declare type ContentSourceMapPaths = string[]
386
393
 
387
394
  /** @public */
388
- export declare interface ContentSourceMapRemoteDocument extends ContentSourceMapDocument {
395
+ export declare interface ContentSourceMapRemoteDocument extends ContentSourceMapDocumentBase {
389
396
  _projectId: string
390
397
  _dataset: string
391
398
  }
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ export { adapter as unstable__adapter, environment as unstable__environment } fr
4
4
  import { Observable, lastValueFrom } from 'rxjs';
5
5
  import { map, filter } from 'rxjs/operators';
6
6
  var name = "@sanity/client";
7
- var version = "6.5.0";
7
+ var version = "6.6.0";
8
8
  const middleware = [debug({
9
9
  verbose: true,
10
10
  namespace: "sanity:client"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/client",
3
- "version": "6.5.0",
3
+ "version": "6.6.0",
4
4
  "description": "Client for retrieving, creating and patching data from Sanity.io",
5
5
  "keywords": [
6
6
  "sanity",
@@ -99,23 +99,23 @@
99
99
  "@edge-runtime/vm": "^3.1.4",
100
100
  "@rollup/plugin-commonjs": "^25.0.5",
101
101
  "@rollup/plugin-node-resolve": "^15.2.3",
102
- "@sanity/pkg-utils": "^2.4.10",
102
+ "@sanity/pkg-utils": "^3.0.0",
103
103
  "@types/node": "^20.8.4",
104
104
  "@typescript-eslint/eslint-plugin": "^6.7.5",
105
105
  "@typescript-eslint/parser": "^6.7.5",
106
106
  "@vitest/coverage-v8": "^0.34.6",
107
107
  "eslint": "^8.51.0",
108
108
  "eslint-config-prettier": "^9.0.0",
109
- "eslint-plugin-prettier": "^5.0.0",
109
+ "eslint-plugin-prettier": "^5.0.1",
110
110
  "eslint-plugin-simple-import-sort": "^10.0.0",
111
111
  "faucet": "^0.0.4",
112
112
  "happy-dom": "^12.9.1",
113
113
  "ls-engines": "^0.9.0",
114
- "nock": "^13.3.3",
114
+ "nock": "^13.3.4",
115
115
  "prettier": "^3.0.3",
116
116
  "prettier-plugin-packagejson": "^2.4.6",
117
117
  "rimraf": "^5.0.1",
118
- "rollup": "^3.29.4",
118
+ "rollup": "^4.0.2",
119
119
  "sse-channel": "^4.0.0",
120
120
  "terser": "^5.21.0",
121
121
  "typescript": "^5.2.2",
package/src/types.ts CHANGED
@@ -864,12 +864,19 @@ export type ContentSourceMapMapping = ContentSourceMapValueMapping
864
864
  export type ContentSourceMapMappings = Record<string, ContentSourceMapMapping>
865
865
 
866
866
  /** @public */
867
- export interface ContentSourceMapDocument {
867
+ export interface ContentSourceMapDocumentBase {
868
868
  _id: string
869
+ _type: string
870
+ }
871
+
872
+ /** @public */
873
+ export interface ContentSourceMapDocument extends ContentSourceMapDocumentBase {
874
+ _projectId?: undefined
875
+ _dataset?: undefined
869
876
  }
870
877
 
871
878
  /** @public */
872
- export interface ContentSourceMapRemoteDocument extends ContentSourceMapDocument {
879
+ export interface ContentSourceMapRemoteDocument extends ContentSourceMapDocumentBase {
873
880
  _projectId: string
874
881
  _dataset: string
875
882
  }