5.0.0 (2023-02-02)
⚠ BREAKING CHANGES
-
We have removed the default export and replaced it with a named one:
-import SanityClient from '@sanity/client' +import {createClient} from '@sanity/client'
We're working on a codemod for this migration.
The migration guide outlines every breaking change and how to migrate your code
Features
- full Node.js ESM runtime support (#86) (bd9b247), closes /github.com/sanity-io/client#from-v4
- codebase rewritten in TypeScript, typings are generated and no longer manually maintained
- make
httpRequest
onSanityClient
configurable, intended for libraries wishing to extend the client - feat: shipping modern syntax, reducing bundlesize