npm @sanity/client 8.11.0
v8.11.0

2 hours ago

Minor Changes

  • context: jobs.get types each job's kind and result (#1363) (444eedb)
  • context: mcpEndpoints.status and initialContext read an endpoint by name (#1364) (da4f58b)
  • context: mcpEndpoints can create, edit and delete endpoints (#1365) (72bea7c)
  • context: EntryDoc follows the citation redesign (#1366) (21a0d24)
  • client.fetch(query, params) now infers its result and params types from a query branded with __groqResult and __groqParams, such as the default export of a .groq file imported through @sanity-labs/groq-content-mapper, with no generic argument and no SanityQueries entry. ClientReturn reads the result brand before the registry lookup, and the new ClientParams type reads the params brand; listen checks params the same way. Reading the brand is experimental. Plain strings, defineQuery, explicit generics and SanityQueries registrations resolve as before. (#1373) (ec3b3d4)

Don't miss a new client release

NewReleases is sending notifications on new releases.