npm @sanity/client 7.27.0
v7.27.0

2 hours ago

Minor Changes

  • read query result types from a global SanityQueries interface (#1320) (58b2706)

    Query result types can now be registered on a global SanityQueries interface, which the SanityQueries interface exported from @sanity/client inherits from. client.fetch, ClientReturn and ClientReturnStega resolve registrations made either way, so the declare module '@sanity/client' augmentation that Sanity TypeGen has emitted so far keeps working unchanged. The global registry does not depend on module resolution: it is seen whether or not @sanity/client is a direct dependency of the generated file, however many copies of the client are installed, and from every entry point. On this release line that includes @sanity/client/stega, whose bundled ClientReturnStega could not see module augmentations before.

Don't miss a new client release

NewReleases is sending notifications on new releases.