github sanity-io/client v5.0.0

latest releases: v6.20.1, v6.20.0, v6.19.2...
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'

The migration guide outlines every breaking change and how to migrate your code

Features

  • full Node.js ESM runtime support (#86) (bd9b247)
  • 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
  • shipping modern syntax, reducing bundlesize

Don't miss a new client release

NewReleases is sending notifications on new releases.