npm @sanity/client 8.2.0
v8.2.0

3 hours ago

Minor Changes

  • add collaboration comments client (@alpha) (#1235) (5906f72)

  • add variant actions (#1279) (dd25720)

    Adds CreateVariantAction, EditVariantAction, DeleteVariantAction, PublishVariantAction and
    UnpublishVariantAction, along with a VariantAction union, covering the
    sanity.action.document.variant.* actions. They are included in the Action union, so
    client.action() accepts them.

    Each action addresses a variant document by the publishedId, variantId and bundleId triple
    rather than by document ID, since the API derives the document ID from those three values.

    Note that Action widening is a breaking change for code that exhaustively switches on
    Action['actionType'] with a never fallthrough, which will need to handle the new cases.

Don't miss a new client release

NewReleases is sending notifications on new releases.