Socket
Socket
Sign inDemoInstall

@sanity/client

Package Overview
Dependencies
Maintainers
55
Versions
986
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/client - npm Package Compare versions

Comparing version 6.21.0 to 6.21.1

6

package.json
{
"name": "@sanity/client",
"version": "6.21.0",
"version": "6.21.1",
"description": "Client for retrieving, creating and patching data from Sanity.io",

@@ -135,3 +135,3 @@ "keywords": [

"@vercel/stega": "0.1.2",
"@vitest/coverage-v8": "1.6.0",
"@vitest/coverage-v8": "2.0.2",
"eslint": "^8.57.0",

@@ -154,3 +154,3 @@ "eslint-config-prettier": "^9.1.0",

"typescript": "5.4.5",
"vitest": "1.6.0",
"vitest": "2.0.2",
"vitest-github-actions-reporter": "0.11.1"

@@ -157,0 +157,0 @@ },

@@ -854,2 +854,4 @@ # @sanity/client

If it's not relevant to know what mutations that was applied, you can also set `includeMutation` to `false` in the options, which will save some additional bandwidth by omitting the `mutation` property from the received events.
### Fetch a single document

@@ -856,0 +858,0 @@

@@ -14,3 +14,3 @@ import type {Any, ListenParams, QueryParams} from '../types'

// We generally want tag at the start of the query string
const {tag, returnQuery, ...opts} = options
const {tag, includeMutations, returnQuery, ...opts} = options
// We're using `append` instead of `set` to support React Native: https://github.com/facebook/react-native/blob/1982c4722fcc51aa87e34cf562672ee4aff540f1/packages/react-native/Libraries/Blob/URL.js#L86-L88

@@ -33,3 +33,6 @@ if (tag) searchParams.append('tag', tag)

// `includeMutations` is default `true`, so needs an explicit `false` handling
if (includeMutations === false) searchParams.append('includeMutations', 'false')
return `?${searchParams}`
}

@@ -18,2 +18,3 @@ import {Observable} from 'rxjs'

'includeResult',
'includeMutations',
'visibility',

@@ -20,0 +21,0 @@ 'effectFormat',

@@ -878,2 +878,9 @@ // deno-lint-ignore-file no-empty-interface

/**
* Whether or not to include the mutations that was performed.
* If you do not need the mutations, set this to `false` to reduce bandwidth usage.
* @defaultValue `true`
*/
includeMutations?: boolean
/**
* Whether or not to include the document as it looked before the mutation event.

@@ -880,0 +887,0 @@ * The previous revision will be available on the `.previous` property of the events,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc