npm @sanity/client 5.0.0
v5.0.0

latest releases: 6.20.2-beta.2, 6.20.2-beta.1, 6.20.2-beta.0...
17 months ago

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 on SanityClient configurable, intended for libraries wishing to extend the client
  • feat: shipping modern syntax, reducing bundlesize

Don't miss a new client release

NewReleases is sending notifications on new releases.