Skip to content

v5.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 02 Feb 13:03
· 901 commits to main since this release

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