---
title: "@codemirror/state 6.0.0 Breaking Changes on npm | Since.dev"
description: "What each @codemirror/state release removed, renamed or changed: 11 breaking changes in 3 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@codemirror/state
last_updated: 2026-12-04
---

# @codemirror/state breaking changes

@codemirror/state 6.0.0 (June 8, 2022) is its newest release with breaking changes. The first: Removed ChangeDesc.constructor. Every breaking API change we have recorded in @codemirror/state on npm: 11 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `6.7.6`, released September 22, 2026. 

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [0.20.0](#v-0-20-0) to [6.0.0](#v-6-0-0): 1 breaking change in 1 version.
- From [0.19.0](#v-0-19-0) to [6.0.0](#v-6-0-0): 8 breaking changes in 2 versions.

## @codemirror/state 6.0.0 breaking changes

@codemirror/state 6.0.0, released June 8, 2022: 1 breaking change.

- **Removed** `ChangeDesc.constructor`  

new ChangeDesc() was removed in @codemirror/state 6.0.0 [npmjs.com](https://www.npmjs.com/package/@codemirror/state/v/6.0.0)

## @codemirror/state 0.20.0 breaking changes

@codemirror/state 0.20.0, released April 20, 2022: 7 breaking changes.

- **Removed** `extend`  

The deprecated precedence name extend was removed. Stop using it and use a supported precedence instead. [github.com](https://github.com/codemirror/state/blob/0.20.0/CHANGELOG.md)
- **Removed** `fallback`  

The deprecated precedence name fallback was removed. Stop using it and use a supported precedence instead. [github.com](https://github.com/codemirror/state/blob/0.20.0/CHANGELOG.md)
- **Removed** `override`  

The deprecated precedence name override was removed. Stop using it and use a supported precedence instead. [github.com](https://github.com/codemirror/state/blob/0.20.0/CHANGELOG.md)
- **Signature changed** `combineConfig`  

Was function combineConfig\<Config>(configs: readonly Partial\<Config>\[\], defaults: Partial\<Config>, combine?: {\[P in keyof Config\]?: (first: Config\[P\], second: Config\[P\]) => Config\[P\];}): Config; now function combineConfig\<Config extends... [npmjs.com](https://www.npmjs.com/package/@codemirror/state/v/0.20.0)
- **Signature changed** `EditorState.replaceSelection`  

Was replaceSelection(text: string | Text): {changes: ChangeSet; selection: EditorSelection; effects: readonly StateEffect\<any>\[\];}; now replaceSelection(text: string | Text): TransactionSpec. [npmjs.com](https://www.npmjs.com/package/@codemirror/state/v/0.20.0)
- **Signature changed** `Facet.from`  

Was from(field: StateField\<Input>): Extension; now from\<T extends Input>(field: StateField\<T>): Extension. [npmjs.com](https://www.npmjs.com/package/@codemirror/state/v/0.20.0)
- **Signature changed** `Prec`  

Was const Prec: {lowest: (ext: Extension) => Extension; low: (ext: Extension) => Extension; default: (ext: Extension) => Extension; high: (ext: Extension) => Extension; highest: (ext: Extension) => Extension; fallback: (ext: Extension) =>... [npmjs.com](https://www.npmjs.com/package/@codemirror/state/v/0.20.0)

## @codemirror/state 0.19.0 breaking changes

@codemirror/state 0.19.0, released August 11, 2021: 3 breaking changes.

- **Behavior changed**  

User event strings emitted by core packages follow a new system, and hierarchical event tags are created by separating words with dots. Code that matches user event strings may need updating. [github.com](https://github.com/codemirror/state/blob/0.19.0/CHANGELOG.md)
- **Signature changed** `EditorState.languageData`  

Was static languageData: Facet<(state: EditorState, pos: number) => readonly {\[name: string\]: any;}\[\], readonly ((state: EditorState, pos: number) => readonly {\[name: string\]: any;}\[\])\[\]>; now static languageData: Facet<(state... [npmjs.com](https://www.npmjs.com/package/@codemirror/state/v/0.19.0)
- **Signature changed** `EditorState.languageDataAt`  

Was languageDataAt\<T>(name: string, pos: number): readonly T\[\]; now languageDataAt\<T>(name: string, pos: number, side?: -1 | 0 | 1): readonly T\[\]. [npmjs.com](https://www.npmjs.com/package/@codemirror/state/v/0.19.0)

## Related packages

- [@codemirror/lang-javascript](https://since.dev/packages/npm/@codemirror/lang-javascript.md)
- [@codemirror/lang-json](https://since.dev/packages/npm/@codemirror/lang-json.md)
- [@codemirror/lang-python](https://since.dev/packages/npm/@codemirror/lang-python.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
