Sanity Studio v4 is live! Learn more about the Node.js 20+ requirement, and upgrade today.

Sanity logo

Documentation

    • Overview
    • Platform introduction
    • Next.js quickstart
    • Nuxt.js quickstart
    • Astro quickstart
    • React Router quickstart
    • Content Lake
    • Compute and AI
    • APIs and SDKs
    • Platform management
    • Dashboard
    • Studio
    • Canvas
    • Media Library
    • App SDK
    • HTTP API
    • CLI
    • Libraries
    • Specifications
    • Changelog
    • User guides
    • Developer guides
    • Courses and certifications
    • Join the community
    • Templates
User guides
Overview

  • Dashboard

    Meet the Dashboard

  • Canvas

    Introduction
    Content mapping

  • Sanity Studio

    Comments
    Tasks
    Copy and paste for fields
    Preview and page building
    Content Releases
    Compare document versions
    History experience

  • AI Assist

    Introduction
    Common instructions

  • Media Library

    Meet the library

  • Manage

    Roles

User guidesLast updated May 21, 2025

History experience

  • Article
  • Changelog

Fixes match operator bug and corrects Content-Type for /history and /export

v2021-10-21

Fixes match operator bug

Up until now, the match operator has not handled wildcards correctly in some specific situations.

For example, name match "foo.*bar" would be equivalent to foo * bar, because . would be considered a word-splitting character, and so foo.*bar would never match the string foo.bar.

While rare, this also turned out to affect some languages where we would split words incorrectly: "創傷ケア" match "創傷ケア*" would return false, but "創傷ケア" match "創傷ケア" would return true.

We are now releasing the API version 20211021, which fixes this.

In short, the new algorithm honours Unicode word segmentation rules and considers the wildcard character, *, to be a word character. This fixes the internal tokenization to be consistent.

Correct Content-Type for /history and /export

Previously the /export and /history endpoints was returning Content-Type: text/plain even though they were streaming JSON. After this version they return Content-Type: application/x-ndjson instead.

On this page

  • History retention
  • GDPR
  • Upgrading the retention time
  • Downgrading the retention time
  • Exploring history in Sanity Studio
  • Document status labels
  • Published
  • Draft
  • Published, Draft
  • Live
  • History status labels
  • Published
  • Unpublished
  • Edited
  • Truncated
Sanity logosanity.ioAll Systems Operational© Sanity 2025
Change Site Theme