@sanity/client 6.4.10-dev.0 → 6.4.11

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.
@@ -1702,11 +1702,12 @@ const _ObservableSanityClient = class _ObservableSanityClient {
1702
1702
  /**
1703
1703
  * Create a new buildable patch of operations to perform
1704
1704
  *
1705
- * @param documentId - Document ID(s) to patch
1705
+ * @param selection - Document ID, an array of document IDs, or an object with `query` and optional `params`, defining which document(s) to patch
1706
1706
  * @param operations - Optional object of patch operations to initialize the patch instance with
1707
+ * @returns Patch instance - call `.commit()` to perform the operations defined
1707
1708
  */
1708
- patch(documentId, operations) {
1709
- return new ObservablePatch(documentId, operations, this);
1709
+ patch(selection, operations) {
1710
+ return new ObservablePatch(selection, operations, this);
1710
1711
  }
1711
1712
  /**
1712
1713
  * Create a new transaction of mutations
@@ -1717,9 +1718,8 @@ const _ObservableSanityClient = class _ObservableSanityClient {
1717
1718
  return new ObservableTransaction(operations, this);
1718
1719
  }
1719
1720
  /**
1720
- * DEPRECATED: Perform an HTTP request against the Sanity API
1721
+ * Perform an HTTP request against the Sanity API
1721
1722
  *
1722
- * @deprecated Use your own request library!
1723
1723
  * @param options - Request options
1724
1724
  */
1725
1725
  request(options) {
@@ -1850,8 +1850,9 @@ const _SanityClient = class _SanityClient {
1850
1850
  /**
1851
1851
  * Create a new buildable patch of operations to perform
1852
1852
  *
1853
- * @param documentId - Document ID(s)to patch
1853
+ * @param selection - Document ID, an array of document IDs, or an object with `query` and optional `params`, defining which document(s) to patch
1854
1854
  * @param operations - Optional object of patch operations to initialize the patch instance with
1855
+ * @returns Patch instance - call `.commit()` to perform the operations defined
1855
1856
  */
1856
1857
  patch(documentId, operations) {
1857
1858
  return new Patch(documentId, operations, this);