@sanity/client 8.6.1 → 8.6.2

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/README.md CHANGED
@@ -2632,7 +2632,7 @@ Read and write comments on documents in an organization resource. Available on `
2632
2632
 
2633
2633
  #### Configuration
2634
2634
 
2635
- Comments are organization-scoped. The client needs an `organizationId`, plus either a `resource` or `projectId` and `dataset`:
2635
+ Comments are organization-scoped. The client needs `collaboration.organizationId`, plus either a `resource` or `projectId` and `dataset`:
2636
2636
 
2637
2637
  ```js
2638
2638
  import {createClient} from '@sanity/client'
@@ -2641,7 +2641,9 @@ const client = createClient({
2641
2641
  apiVersion: '2026-07-18',
2642
2642
  token: 'valid-token',
2643
2643
  useCdn: false,
2644
- organizationId: 'your-organization-id',
2644
+ collaboration: {
2645
+ organizationId: 'your-organization-id',
2646
+ },
2645
2647
  resource: {
2646
2648
  type: 'canvas',
2647
2649
  id: 'your-canvas-id',
@@ -2649,7 +2651,7 @@ const client = createClient({
2649
2651
  })
2650
2652
  ```
2651
2653
 
2652
- A project-based client only needs `organizationId` added; the dataset resource is derived from `projectId` and `dataset`:
2654
+ A project-based client only needs `collaboration.organizationId` added; the dataset resource is derived from `projectId` and `dataset`:
2653
2655
 
2654
2656
  ```js
2655
2657
  const client = createClient({
@@ -2658,7 +2660,9 @@ const client = createClient({
2658
2660
  apiVersion: '2026-07-18',
2659
2661
  token: 'valid-token',
2660
2662
  useCdn: false,
2661
- organizationId: 'your-organization-id',
2663
+ collaboration: {
2664
+ organizationId: 'your-organization-id',
2665
+ },
2662
2666
  })
2663
2667
  ```
2664
2668
 
@@ -4506,7 +4506,7 @@ function defineDeprecatedCreateClient(createClient) {
4506
4506
  return printNoDefaultExport(), createClient(config);
4507
4507
  };
4508
4508
  }
4509
- var name = "@sanity/client", version = "8.6.1";
4509
+ var name = "@sanity/client", version = "8.6.2";
4510
4510
  const log = createDebug("sanity:client");
4511
4511
  function isNodeReadableStream(value) {
4512
4512
  return typeof value != "object" || !value || !("pipe" in value) ? !1 : typeof value.pipe == "function";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/client",
3
- "version": "8.6.1",
3
+ "version": "8.6.2",
4
4
  "description": "Client for retrieving, creating and patching data from Sanity.io",
5
5
  "keywords": [
6
6
  "api",
@@ -51,7 +51,7 @@
51
51
  "dependencies": {
52
52
  "eventsource": "^5.1.1",
53
53
  "get-it": "^9.5.4",
54
- "obug": "^2.1.4",
54
+ "obug": "^3.0.0",
55
55
  "rxjs": "^7.8.2"
56
56
  },
57
57
  "devDependencies": {