@sanity/client 7.11.2 → 7.12.1
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.browser.cjs +1 -0
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +6 -2
- package/dist/index.browser.d.ts +6 -2
- package/dist/index.browser.js +1 -0
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/stega.browser.d.cts +6 -2
- package/dist/stega.browser.d.ts +6 -2
- package/dist/stega.d.cts +6 -2
- package/dist/stega.d.ts +6 -2
- package/package.json +2 -3
- package/src/SanityClient.ts +2 -2
- package/src/defineCreateClient.ts +1 -0
- package/src/http/nodeMiddleware.ts +18 -1
- package/src/http/request.ts +5 -1
- package/src/types.ts +4 -0
- package/umd/sanityClient.js +1 -0
- package/umd/sanityClient.min.js +1 -1
package/dist/index.browser.d.cts
CHANGED
|
@@ -786,6 +786,10 @@ export declare interface ClientConfig {
|
|
|
786
786
|
* Options for how, if enabled, Content Source Maps are encoded into query results using steganography
|
|
787
787
|
*/
|
|
788
788
|
stega?: StegaConfig | boolean
|
|
789
|
+
/**
|
|
790
|
+
* Lineage token for recursion control
|
|
791
|
+
*/
|
|
792
|
+
lineage?: string
|
|
789
793
|
}
|
|
790
794
|
|
|
791
795
|
declare type ClientConfigResource =
|
|
@@ -3285,7 +3289,7 @@ export declare class ObservableSanityClient {
|
|
|
3285
3289
|
createVersion(
|
|
3286
3290
|
args: {
|
|
3287
3291
|
baseId: string
|
|
3288
|
-
releaseId
|
|
3292
|
+
releaseId?: string
|
|
3289
3293
|
publishedId: string
|
|
3290
3294
|
ifBaseRevisionId?: string
|
|
3291
3295
|
},
|
|
@@ -5098,7 +5102,7 @@ export declare class SanityClient {
|
|
|
5098
5102
|
args: {
|
|
5099
5103
|
publishedId: string
|
|
5100
5104
|
baseId: string
|
|
5101
|
-
releaseId
|
|
5105
|
+
releaseId?: string
|
|
5102
5106
|
ifBaseRevisionId?: string
|
|
5103
5107
|
},
|
|
5104
5108
|
options?: BaseActionOptions,
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -786,6 +786,10 @@ export declare interface ClientConfig {
|
|
|
786
786
|
* Options for how, if enabled, Content Source Maps are encoded into query results using steganography
|
|
787
787
|
*/
|
|
788
788
|
stega?: StegaConfig | boolean
|
|
789
|
+
/**
|
|
790
|
+
* Lineage token for recursion control
|
|
791
|
+
*/
|
|
792
|
+
lineage?: string
|
|
789
793
|
}
|
|
790
794
|
|
|
791
795
|
declare type ClientConfigResource =
|
|
@@ -3285,7 +3289,7 @@ export declare class ObservableSanityClient {
|
|
|
3285
3289
|
createVersion(
|
|
3286
3290
|
args: {
|
|
3287
3291
|
baseId: string
|
|
3288
|
-
releaseId
|
|
3292
|
+
releaseId?: string
|
|
3289
3293
|
publishedId: string
|
|
3290
3294
|
ifBaseRevisionId?: string
|
|
3291
3295
|
},
|
|
@@ -5098,7 +5102,7 @@ export declare class SanityClient {
|
|
|
5098
5102
|
args: {
|
|
5099
5103
|
publishedId: string
|
|
5100
5104
|
baseId: string
|
|
5101
|
-
releaseId
|
|
5105
|
+
releaseId?: string
|
|
5102
5106
|
ifBaseRevisionId?: string
|
|
5103
5107
|
},
|
|
5104
5108
|
options?: BaseActionOptions,
|
package/dist/index.browser.js
CHANGED