👀 Our most exciting product launch yet 🚀 Join us May 8th for Sanity Connect
Back to changelog

Major version upgrade to the JavaScript Client (@sanity/client)

Breaking changes:

  • The client will now fetch from the API CDN when a token and useCdn: true are passed together.
  • The client now only supports Node.js v12 and higher.
  • The deprecated merge patch operator was removed.
  • The deprecated document property on assets.upload was removed.
  • client.observable.fetch() returns a cold observable.

Documentation affected by this release

Published August 12, 2022