Skip to content

Commit c21c1f4

Browse files
fix(deps): update codemirror (#2282)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@codemirror/autocomplete](https://redirect.github.com/codemirror/autocomplete) | [`6.18.6` -> `6.20.0`](https://renovatebot.com/diffs/npm/@codemirror%2fautocomplete/6.18.6/6.20.0) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@codemirror%2fautocomplete/6.20.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@codemirror%2fautocomplete/6.18.6/6.20.0?slim=true) | | [@codemirror/commands](https://redirect.github.com/codemirror/commands) | [`6.3.3` -> `6.10.1`](https://renovatebot.com/diffs/npm/@codemirror%2fcommands/6.3.3/6.10.1) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@codemirror%2fcommands/6.10.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@codemirror%2fcommands/6.3.3/6.10.1?slim=true) | | [@codemirror/language](https://redirect.github.com/codemirror/language) | [`6.10.0` -> `6.12.1`](https://renovatebot.com/diffs/npm/@codemirror%2flanguage/6.10.0/6.12.1) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@codemirror%2flanguage/6.12.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@codemirror%2flanguage/6.10.0/6.12.1?slim=true) | | [@codemirror/lint](https://redirect.github.com/codemirror/lint) | [`6.8.5` -> `6.9.2`](https://renovatebot.com/diffs/npm/@codemirror%2flint/6.8.5/6.9.2) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@codemirror%2flint/6.9.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@codemirror%2flint/6.8.5/6.9.2?slim=true) | | [@codemirror/state](https://redirect.github.com/codemirror/state) | [`6.4.0` -> `6.5.3`](https://renovatebot.com/diffs/npm/@codemirror%2fstate/6.4.0/6.5.3) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@codemirror%2fstate/6.5.3?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@codemirror%2fstate/6.4.0/6.5.3?slim=true) | | [@codemirror/view](https://redirect.github.com/codemirror/view) | [`6.24.0` -> `6.39.7`](https://renovatebot.com/diffs/npm/@codemirror%2fview/6.24.0/6.39.7) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@codemirror%2fview/6.39.7?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@codemirror%2fview/6.24.0/6.39.7?slim=true) | --- ### Release Notes <details> <summary>codemirror/autocomplete (@&#8203;codemirror/autocomplete)</summary> ### [`v6.20.0`](https://redirect.github.com/codemirror/autocomplete/blob/HEAD/CHANGELOG.md#6200-2025-11-20) [Compare Source](https://redirect.github.com/codemirror/autocomplete/compare/6.19.1...6.20.0) ##### New features Completions now support a `sortText` property to influence sort order. ### [`v6.19.1`](https://redirect.github.com/codemirror/autocomplete/blob/HEAD/CHANGELOG.md#6191-2025-10-23) [Compare Source](https://redirect.github.com/codemirror/autocomplete/compare/6.19.0...6.19.1) ##### Bug fixes Make sure a completion's info panel is associated with that completion in the accessibility tree. ### [`v6.19.0`](https://redirect.github.com/codemirror/autocomplete/blob/HEAD/CHANGELOG.md#6190-2025-09-26) [Compare Source](https://redirect.github.com/codemirror/autocomplete/compare/6.18.7...6.19.0) ##### New features Completion sections may now set their rank to `dynamic` to indicate their order should be determined by the matching score of their best-matching option. ### [`v6.18.7`](https://redirect.github.com/codemirror/autocomplete/blob/HEAD/CHANGELOG.md#6187-2025-09-02) [Compare Source](https://redirect.github.com/codemirror/autocomplete/compare/6.18.6...6.18.7) ##### Bug fixes Add a binding for Alt-i to trigger `startCompletion`, following VS Code's current default bindings. Improve handling of nested fields in snippets. </details> <details> <summary>codemirror/commands (@&#8203;codemirror/commands)</summary> ### [`v6.10.1`](https://redirect.github.com/codemirror/commands/blob/HEAD/CHANGELOG.md#6101-2025-12-17) [Compare Source](https://redirect.github.com/codemirror/commands/compare/6.10.0...6.10.1) ##### Bug fixes Fix a bug where `copyLineDown` would leave the cursor on the wrong line when it was at the start of the line. ### [`v6.10.0`](https://redirect.github.com/codemirror/commands/blob/HEAD/CHANGELOG.md#6100-2025-10-23) [Compare Source](https://redirect.github.com/codemirror/commands/compare/6.9.0...6.10.0) ##### New features The new `deleteGroupForwardWin` command provides by-group forward deletion using the Windows convention. ### [`v6.9.0`](https://redirect.github.com/codemirror/commands/blob/HEAD/CHANGELOG.md#690-2025-10-02) [Compare Source](https://redirect.github.com/codemirror/commands/compare/6.8.1...6.9.0) ##### Bug fixes Prevent the default behavior of backspace and delete keys, to prevent the browser from doing anything creative when there's nothing to delete. ##### New features Implement new `addCursorAbove` and `addCursorBelow` commands. Bind them to Mod-Alt-ArrowUp/Down in the default keymap. ### [`v6.8.1`](https://redirect.github.com/codemirror/commands/blob/HEAD/CHANGELOG.md#681-2025-03-31) [Compare Source](https://redirect.github.com/codemirror/commands/compare/6.8.0...6.8.1) ##### Bug fixes Fix an issue where creating a comment for a line that starts an inner language would use the comment style from the outer language. ### [`v6.8.0`](https://redirect.github.com/codemirror/commands/blob/HEAD/CHANGELOG.md#680-2025-01-08) [Compare Source](https://redirect.github.com/codemirror/commands/compare/6.7.1...6.8.0) ##### New features The new `cursorGroupForwardWin` and `selectGroupForwardWin` commands implement Windows-style forward motion by group. ### [`v6.7.1`](https://redirect.github.com/codemirror/commands/blob/HEAD/CHANGELOG.md#671-2024-10-21) [Compare Source](https://redirect.github.com/codemirror/commands/compare/6.7.0...6.7.1) ##### Bug fixes Change `toggleBlockCommentByLine` to not affect lines with the selection end right at their start. ### [`v6.7.0`](https://redirect.github.com/codemirror/commands/blob/HEAD/CHANGELOG.md#670-2024-10-07) [Compare Source](https://redirect.github.com/codemirror/commands/compare/6.6.2...6.7.0) ##### Bug fixes Bind Shift-Enter to the same command as Enter in the default keymap, so that it doesn't do nothing when on an EditContext-supporting browser. ##### New features Add commands for by-string-index cursor motion that ignores text direction. ### [`v6.6.2`](https://redirect.github.com/codemirror/commands/blob/HEAD/CHANGELOG.md#662-2024-09-17) [Compare Source](https://redirect.github.com/codemirror/commands/compare/6.6.1...6.6.2) ##### Bug fixes Fix an issue causing `selectParentSyntax` to not select syntax that is a direct child of the top node. Make `selectParentSyntax` return false when it doesn't change the selection. ### [`v6.6.1`](https://redirect.github.com/codemirror/commands/blob/HEAD/CHANGELOG.md#661-2024-08-31) [Compare Source](https://redirect.github.com/codemirror/commands/compare/6.6.0...6.6.1) ##### Bug fixes Fix a bug in the undo history that would cause it to incorrectly track inverted effects when adding multiple edits to a single history event. ### [`v6.6.0`](https://redirect.github.com/codemirror/commands/blob/HEAD/CHANGELOG.md#660-2024-06-04) [Compare Source](https://redirect.github.com/codemirror/commands/compare/6.5.0...6.6.0) ##### New features The new `toggleTabFocusMode` and `temporarilySetTabFocusMode` commands provide control over the view's tab-focus mode. The default keymap now binds Ctrl-m (Shift-Alt-m on macOS) to `toggleTabFocusMode`. ### [`v6.5.0`](https://redirect.github.com/codemirror/commands/blob/HEAD/CHANGELOG.md#650-2024-04-19) [Compare Source](https://redirect.github.com/codemirror/commands/compare/6.4.0...6.5.0) ##### New features The `insertNewlineKeepIndent` command inserts a newline along with the same indentation as the line before. ### [`v6.4.0`](https://redirect.github.com/codemirror/commands/blob/HEAD/CHANGELOG.md#640-2024-04-17) [Compare Source](https://redirect.github.com/codemirror/commands/compare/6.3.3...6.4.0) ##### Bug fixes Fix an issue where `deleteLine` sometimes leaves the cursor on the wrong line. ##### New features The new `deleteCharBackwardStrict` command just deletes a character, without further smart behavior around indentation. </details> <details> <summary>codemirror/language (@&#8203;codemirror/language)</summary> ### [`v6.12.1`](https://redirect.github.com/codemirror/language/blob/HEAD/CHANGELOG.md#6121-2025-12-22) [Compare Source](https://redirect.github.com/codemirror/language/compare/6.12.0...6.12.1) ##### Bug fixes Improve finding inner language in syntax tree when the nested parse has been marked as bracketed. ### [`v6.12.0`](https://redirect.github.com/codemirror/language/compare/6.11.3...6.12.0) [Compare Source](https://redirect.github.com/codemirror/language/compare/6.11.3...6.12.0) ### [`v6.11.3`](https://redirect.github.com/codemirror/language/blob/HEAD/CHANGELOG.md#6113-2025-08-15) [Compare Source](https://redirect.github.com/codemirror/language/compare/6.11.2...6.11.3) ##### Bug fixes Make the stream parser user 4 times smaller chunks to reduce the amount of re-parsed code on changes. ### [`v6.11.2`](https://redirect.github.com/codemirror/language/blob/HEAD/CHANGELOG.md#6112-2025-06-27) [Compare Source](https://redirect.github.com/codemirror/language/compare/6.11.1...6.11.2) ##### Bug fixes Make sure folded ranges open when backspacing or deleting into them. ### [`v6.11.1`](https://redirect.github.com/codemirror/language/blob/HEAD/CHANGELOG.md#6111-2025-06-02) [Compare Source](https://redirect.github.com/codemirror/language/compare/6.11.0...6.11.1) ##### Bug fixes Fix an issue where indentation would sometimes miss nodes in mixed-language situations. ### [`v6.11.0`](https://redirect.github.com/codemirror/language/blob/HEAD/CHANGELOG.md#6110-2025-03-13) [Compare Source](https://redirect.github.com/codemirror/language/compare/6.10.8...6.11.0) ##### New features Stream parsers now support a `mergeTokens` option that can be used to turn off automatic merging of adjacent tokens. ### [`v6.10.8`](https://redirect.github.com/codemirror/language/blob/HEAD/CHANGELOG.md#6108-2024-12-23) [Compare Source](https://redirect.github.com/codemirror/language/compare/6.10.7...6.10.8) ##### Bug fixes Fix a regression introduced 6.10.7 that caused indention to sometimes crash on nested language boundaries. ### [`v6.10.7`](https://redirect.github.com/codemirror/language/blob/HEAD/CHANGELOG.md#6107-2024-12-17) [Compare Source](https://redirect.github.com/codemirror/language/compare/6.10.6...6.10.7) ##### Bug fixes Fix an issue where indentation for a stream language would fail to work when the parse covered only part of the document, far from the start. Make sure the inner mode gets a chance to indent when indenting right at the end of a nested language section. ### [`v6.10.6`](https://redirect.github.com/codemirror/language/blob/HEAD/CHANGELOG.md#6106-2024-11-29) [Compare Source](https://redirect.github.com/codemirror/language/compare/6.10.5...6.10.6) ##### Bug fixes Fix a crash in `StreamLanguage` when the input range is entirely before the editor viewport. ### [`v6.10.5`](https://redirect.github.com/codemirror/language/blob/HEAD/CHANGELOG.md#6105-2024-11-27) [Compare Source](https://redirect.github.com/codemirror/language/compare/6.10.4...6.10.5) ##### Bug fixes Fix an issue where a `StreamLanguage` could get confused when trying to reuse existing parse data when the parsed range changed. ### [`v6.10.4`](https://redirect.github.com/codemirror/language/blob/HEAD/CHANGELOG.md#6104-2024-11-24) [Compare Source](https://redirect.github.com/codemirror/language/compare/6.10.3...6.10.4) ##### Bug fixes Join adjacent tokens of the same type into a single token in . Call stream language indent functions even when the language is used as a nested parser. Fix a crash in `StreamParser` when a parse was resumed with different input ranges. ### [`v6.10.3`](https://redirect.github.com/codemirror/language/blob/HEAD/CHANGELOG.md#6103-2024-09-19) [Compare Source](https://redirect.github.com/codemirror/language/compare/6.10.2...6.10.3) ##### Bug fixes Fix a TypeScript error when using `HighlightStyle` with the `exactOptionalPropertyTypes` typechecking option enabled. Make `delimitedIndent` align to spaces after the opening token. ### [`v6.10.2`](https://redirect.github.com/codemirror/language/blob/HEAD/CHANGELOG.md#6102-2024-06-03) [Compare Source](https://redirect.github.com/codemirror/language/compare/6.10.1...6.10.2) ##### Bug fixes Fix an infinite loop that could occur when enabling `bidiIsolates` in documents with both bidirectional text and very long lines. ### [`v6.10.1`](https://redirect.github.com/codemirror/language/blob/HEAD/CHANGELOG.md#6101-2024-02-02) [Compare Source](https://redirect.github.com/codemirror/language/compare/6.10.0...6.10.1) ##### Bug fixes Fix an issue where, when a lot of code is visible in the initial editor, the bottom bit of code is shown without highlighting for one frame. </details> <details> <summary>codemirror/lint (@&#8203;codemirror/lint)</summary> ### [`v6.9.2`](https://redirect.github.com/codemirror/lint/blob/HEAD/CHANGELOG.md#692-2025-11-03) [Compare Source](https://redirect.github.com/codemirror/lint/compare/6.9.1...6.9.2) ##### Bug fixes Fix an infinite loop that would occur when a diagnostic pointed beyond the end of the document. ### [`v6.9.1`](https://redirect.github.com/codemirror/lint/blob/HEAD/CHANGELOG.md#691-2025-10-23) [Compare Source](https://redirect.github.com/codemirror/lint/compare/6.9.0...6.9.1) ##### Bug fixes Properly display diagnostics that just cover multiple newlines as widgets. ### [`v6.9.0`](https://redirect.github.com/codemirror/lint/blob/HEAD/CHANGELOG.md#690-2025-10-02) [Compare Source](https://redirect.github.com/codemirror/lint/compare/6.8.5...6.9.0) ##### Bug fixes Multiple configurations to `linter` will now be merged without raising an error. ##### New features The new `markClass` option to actions makes it possible to style action buttons. </details> <details> <summary>codemirror/state (@&#8203;codemirror/state)</summary> ### [`v6.5.3`](https://redirect.github.com/codemirror/state/blob/HEAD/CHANGELOG.md#653-2025-12-22) [Compare Source](https://redirect.github.com/codemirror/state/compare/6.5.2...6.5.3) ##### Bug fixes Fix an issue where `RangeValue.eq` could get called with a value of a different class. `EditorState.charCategorizer` now only uses the highest-precedence set of word characters from the language data, to allow overriding these. ### [`v6.5.2`](https://redirect.github.com/codemirror/state/blob/HEAD/CHANGELOG.md#652-2025-02-03) [Compare Source](https://redirect.github.com/codemirror/state/compare/6.5.1...6.5.2) ##### Bug fixes Fix a bug where reconfiguring a field with a new `init` value didn't update the value of the field. ### [`v6.5.1`](https://redirect.github.com/codemirror/state/blob/HEAD/CHANGELOG.md#651-2025-01-10) [Compare Source](https://redirect.github.com/codemirror/state/compare/6.5.0...6.5.1) ##### Bug fixes `countColumn` no longer loops infinitely when given a `to` that's higher than the input string's length. ### [`v6.5.0`](https://redirect.github.com/codemirror/state/blob/HEAD/CHANGELOG.md#650-2024-12-09) [Compare Source](https://redirect.github.com/codemirror/state/compare/6.4.1...6.5.0) ##### New features `RangeSet.compare` now supports a `boundChange` callback that is called when there's a change in the way ranges are split. ### [`v6.4.1`](https://redirect.github.com/codemirror/state/blob/HEAD/CHANGELOG.md#641-2024-02-19) [Compare Source](https://redirect.github.com/codemirror/state/compare/6.4.0...6.4.1) ##### Bug fixes Fix an issue that caused widgets at the end of a mark decoration to be rendered in their own separate mark DOM element. </details> <details> <summary>codemirror/view (@&#8203;codemirror/view)</summary> ### [`v6.39.7`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6397-2025-12-24) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.39.6...6.39.7) ##### Bug fixes Fix a bug that could sometimes cause the document to become mangled during composition. ### [`v6.39.6`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6396-2025-12-23) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.39.5...6.39.6) ##### Bug fixes Fix an issue when composing on the boundary of a decoration, where the text after the composition would get garbled. ### [`v6.39.5`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6395-2025-12-22) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.39.4...6.39.5) ##### Bug fixes Fix an issue where replaced widgets alone on a line weren't reused and didn't get their `updateDOM` method called. Fix a bug where, when selecting full lines at the end of the document and inserting a character on Chrome, an inappropriate extra newline was inserted. ### [`v6.39.4`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6394-2025-12-12) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.39.3...6.39.4) ##### Bug fixes Fix a bug where paste events handlers on Chrome could fail to run when pasting on a blank line. Fix a regression causing the native cursor to get stuck before block widgets with side>0. Fix a crash in content DOM building after a block widget. Fix a bug in `posAtCoords` that would in some circumstances make it return positions on the wrong side of a block widget. ### [`v6.39.3`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6393-2025-12-11) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.39.2...6.39.3) ##### Bug fixes Fix a bug that could corrupt the rendered document in some situations involving adjacent mark decorations of the same type. ### [`v6.39.2`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6392-2025-12-09) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.39.1...6.39.2) ##### Bug fixes Fix an issue where `moveVertially` was sometimes unable to escape lines with thick borders or padding. ### [`v6.39.1`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6391-2025-12-09) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.39.0...6.39.1) ##### Bug fixes Restore a workaround for a Chrome selection bug that had regressed in the previous release. ### [`v6.39.0`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6390-2025-12-08) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.38.8...6.39.0) ##### Bug fixes Properly handle bidirectional text in `posAtCoords`. Avoid computing a zero character width (leading to divisions by zero) when the editor is hidden and the browser doesn't have a layout for it. ##### New features The `posAndSideAtCoords` method is an extended version of `posAtCoords` that also tells you which side of the position the coordinates are associated with. Add support for block wrappers, decoration-like things that allow extension code to create DOM nodes around groups of lines. ### [`v6.38.8`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6388-2025-11-17) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.38.7...6.38.8) ##### Bug fixes Improve handling of composition with multiple cursors on MacOS. Fix an issue where computing a document position from screen coordinates would sometimes go wrong in right-to-left text. ### [`v6.38.7`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6387-2025-11-14) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.38.6...6.38.7) ##### Bug fixes Make detection of transformed tooltip parent elements (forcing absolute positioning) more robust on current browsers. Avoid an issue where on Chrome and Safari, typing over a cross-line selection can replace widgets on the line after the selection with their plain text content. Fix a bug that broke insertion of composed input at multiple cursors when the IME keeps the selection at the start of the composed text. ### [`v6.38.6`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6386-2025-10-13) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.38.5...6.38.6) ##### Bug fixes Work around a regression in Safari 26 that causes fragments of old selections to remain visible. ### [`v6.38.5`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6385-2025-10-07) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.38.4...6.38.5) ##### Bug fixes Avoid firing text changes that cover unchanged text on Android. Fix an issue where the editor could, in some circumstances, insert a stray newline when typing over a document that ended in a block widget. Work around an issue in Safari 26 that causes inappropriate scrolling on focus in some circumstances. ### [`v6.38.4`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6384-2025-09-28) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.38.3...6.38.4) ##### Bug fixes Work around a Chrome Android issue where the browser doesn't properly fire composition end events, leaving CodeMirror to believe the user was still composing. ### [`v6.38.3`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6383-2025-09-22) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.38.2...6.38.3) ##### Bug fixes Work around a rendering bug in Mobile Safari by completely hiding empty layers. Fix vertical cursor motion in Chrome around decorations with bottom borders or margins. Fix an issue that caused mark decorations longer than 512 characters to needlessly be split. Move the cursor out of atomic ranges when text input happens. ### [`v6.38.2`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6382-2025-09-01) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.38.1...6.38.2) ##### Bug fixes Re-enable falling dispatching keys by key code for Cmd-Alt- combinations on macOS. Make sure all pointer selections skip atomic ranges. ### [`v6.38.1`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6381-2025-07-15) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.38.0...6.38.1) ##### Bug fixes Make the keymap not dispatch Alt key combos on macOS by key code, because those are generally used to type special characters. Fix a layout bug that could occur with very narrow editors. ### [`v6.38.0`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6380-2025-06-27) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.37.2...6.38.0) ##### New features Gutters can now specify that they should be displayed after the content (which would be to the right in a left-to-right layout). ### [`v6.37.2`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6372-2025-06-12) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.37.1...6.37.2) ##### Bug fixes Fix an issue where moving the cursor vertically from the one-but-last character on a line would sometimes move incorrectly on Safari. Fix an issue causing coordinates between lines of text to sometimes be inappropriately placed at the end of the line by `posAtCoords`. ### [`v6.37.1`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6371-2025-05-30) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.37.0...6.37.1) ##### Bug fixes Properly add `crelt` as a dependency. ### [`v6.37.0`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6370-2025-05-29) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.36.8...6.37.0) ##### New features View plugins can now take an argument, in which case they must be instantiated with their `of` method in order to be added to a configuration. The new `showDialog` function makes it easy to show a notification or prompt using a CodeMirror panel. ### [`v6.36.8`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6368-2025-05-12) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.36.7...6.36.8) ##### Bug fixes Make `logException` log errors to the console when `onerror` returns a falsy value. Fix an issue in `MatchDecorator` causing `updateDeco` to sometimes not do the right thing for deletions. ### [`v6.36.7`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6367-2025-05-02) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.36.6...6.36.7) ##### Bug fixes Use the `aria-placeholder` attribute to communicate the placeholder text to screen readers. Fix a crash when `EditorView.composing` or `.compositionStarted` are accessed during view initialization. ### [`v6.36.6`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6366-2025-04-24) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.36.5...6.36.6) ##### Bug fixes Fix an issue where `drawSelection` would draw selections starting at a block widget not at a line break in an odd way. Fix an issue where the editor would inappropriately scroll when editing near the bottom of the document with line wrapping enabled, in some cases. Fix an issue that caused unnecessary transactions on focus change. ### [`v6.36.5`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6365-2025-03-29) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.36.4...6.36.5) ##### Bug fixes Fix an issue where some browsers wouldn't enable context menu paste when clicking on placeholder text. Fix an issue where cursor height would unnecessarily be based on a placeholder node's dimensions, and thus be off from the text height. ### [`v6.36.4`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6364-2025-03-03) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.36.3...6.36.4) ##### Bug fixes Fix an issue where scrolling down to a range higher than the viewport could in some situations fail to scroll to the proper position. ### [`v6.36.3`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6363-2025-02-18) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.36.2...6.36.3) ##### Bug fixes Make sure event handlers registered with `domEventHandlers` are not called during view updates, to avoid triggering nested update errors. Don't include the window scrollbars in the space available for displaying tooltips. Work around an issue with Chrome's `EditContext` that shows up when using autocompletion while composing with Samsung's virtual Android keyboard. ### [`v6.36.2`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6362-2025-01-09) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.36.1...6.36.2) ##### Bug fixes Fix an issue where some kinds of relayouts could put the editor in a state where it believed it wasn't in window, preventing relayout, though it in fact was. Make sure macOS double-space-to-period conversions are properly suppressed. Fix an issue where native selection changes, such as mobile spacebar-drag, weren't being picked up in edit context mode. ### [`v6.36.1`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6361-2024-12-19) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.36.0...6.36.1) ##### Bug fixes Fix a crash in MatchDecorator when updating matches at the end of the document. ### [`v6.36.0`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6360-2024-12-17) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.35.3...6.36.0) ##### Bug fixes Make selection rectangles verticaly align precisely, rather than introducing a slight overlap. Fix an issue in `MatchDecorator` that caused it to fully rebuild its decorations on normal edits. ##### New features View updates now have a `viewportMoved` flag that is only true when a viewport change originated from something other than mapping the viewport over a document change. ### [`v6.35.3`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6353-2024-12-09) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.35.2...6.35.3) ##### Bug fixes Fix an issue where mark decorations that got merged or split weren't properly redrawn. Avoid spurious focus events by not updating the DOM selection when the editor is unfocused but focusable. Disable `writingsuggestions` for the editable element, to opt out of Safari's new intelligence completions (which mess up in the editor). ### [`v6.35.2`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6352-2024-12-07) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.35.1...6.35.2) ##### Bug fixes Fix an issue on Chrome where typing at the end of the document would insert a character after the cursor. ### [`v6.35.1`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6351-2024-12-06) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.35.0...6.35.1) ##### Bug fixes Work around another crash caused by incorrect composition positions reported by `EditContext`. Stop disabling custom cursors on Safari version 11.4 and up, which support `caret-color`. Fix an issue where a tooltip with wrapped content could, in some circumstances, fail to find a stable position due to a cyclic dependency between its width and its position. ### [`v6.35.0`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6350-2024-11-21) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.34.3...6.35.0) ##### New features Tooltips can now use the `clip` option to control whether they are hidden when outside the visible editor content. ### [`v6.34.3`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6343-2024-11-15) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.34.2...6.34.3) ##### Bug fixes Make sure positions covered by a gutter or a panel aren't treated as visible for the purpose of displaying tooltips. Properly include the tooltip arrow height when checking whether a tooltip fits in its preferred above/below position. Fix an issue with compositions on Chrome inserting their content in the wrong position when another document change came in during composition. ### [`v6.34.2`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6342-2024-11-05) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.34.1...6.34.2) ##### Bug fixes Fix the default cursor color for dark themes, which was way too dark. ### [`v6.34.1`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6341-2024-09-27) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.34.0...6.34.1) ##### Bug fixes Avoid a stack overflow that could happen when updating a line with a lot of text tokens. Improve the way enormously long (non-wrapped) lines are displayed by making sure they stay shorter than the maximal pixel size the browser's CSS engine can handle. ### [`v6.34.0`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6340-2024-09-25) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.33.0...6.34.0) ##### Bug fixes Fix an issue where the dots past the wrapping point were displayed incorrectly when using `highlightWhitespace` with a wrapped sequence of spaces. Improve performance of documents displaying lots of highlighted spaces by using a CSS background instead of pseudo-element. ##### New features `placeholder` now allows a function that constructs the placedholder DOM to be passed in, and uses `cloneNode` when a raw element is passed in, to prevent adding the same element to multiple editors. ### [`v6.33.0`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6330-2024-08-24) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.32.0...6.33.0) ##### Bug fixes Make it easier to move the pointer over a hover tooltip with an arrow by not closing the tooltip when the pointer is moving over the gap for the arrow. ##### New features The new `EditorView.clipboardInputFilter` and `clipboardOutputFilter` facets allow you to register filter functions that change text taken from or sent to the clipboard. ### [`v6.32.0`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6320-2024-08-12) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.31.0...6.32.0) ##### Bug fixes Fix a bug where the editor could draw way too big a viewport when not managing its own scrollbar. ##### New features The new `gutterWidgetClass` facet makes it possible to add a class to gutter elements next to widgets. ### [`v6.31.0`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6310-2024-08-11) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.30.0...6.31.0) ##### Bug fixes Avoid the editor's geometry measurements becoming incorrect when fonts finish loading by scheduling a measure on `document.fonts.ready`. Avoid an issue where Chrome would incorrectly scroll the window when deleting lines in the editor. Fix an issue where in some layouts editor content would be drawn on top of panel elements. Fix an issue where `coordsAtPos` would return null when querying a position in a block widget. ##### New features The new `lineNumberWidgetMarker` facet makes it possible to insert markers into the line number gutter for widgets. ### [`v6.30.0`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6300-2024-08-05) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.29.1...6.30.0) ##### Bug fixes Make spell check corrections work again on `EditContext`-enabled Chrome versions. ##### New features The value returned by `hoverTooltip` now has an `active` property providing the state field used to store the open tooltips. ### [`v6.29.1`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6291-2024-07-29) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.29.0...6.29.1) ##### Bug fixes Fix a crash on old Safari browsers that don't support `MediaQueryList.addEventListener`. Fix an issue where `EditorView.viewportLineBlocks` (and thus other things like the gutter) might be out of date after some kinds of decoration changes. ### [`v6.29.0`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6290-2024-07-25) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.28.6...6.29.0) ##### Bug fixes Fix an issue that caused typing into an editor marked read-only to cause document changes when using `EditContext`. Associate a cursor created by clicking above the end of the text on a wrap point with the line before it. ##### New features The package now exports the type of hover tooltip sources as `HoverTooltipSource`. ### [`v6.28.6`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6286-2024-07-19) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.28.5...6.28.6) ##### Bug fixes Fix an issue where the editor got confused about the position of inserted text when using Chrome's `EditContext` and canceling transactions for typed text. ### [`v6.28.5`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6285-2024-07-17) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.28.4...6.28.5) ##### Bug fixes Fix a bug that broke drag scrolling along one axis when the innermost scrollable element around the editor was only scrollable along the other axis. Work around a memory leak in Chrome's EditContext implementation. ### [`v6.28.4`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6284-2024-07-03) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.28.3...6.28.4) ##### Bug fixes Fix a bug where EditContext-based editing could corrupt the document in some situations. ### [`v6.28.3`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6283-2024-07-01) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.28.2...6.28.3) ##### Bug fixes Fix an issue causing the IME interface to appear in the wrong spot on Chrome Windows. ### [`v6.28.2`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6282-2024-06-21) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.28.1...6.28.2) ##### Bug fixes Only use `EditContext` on Chrome versions that support passing it an inverted selection range. Fix an issue that prevented non-inclusive block widgets from having their `updateDOM` method called when changed. Re-enable `EditContext` use on Chrome 126 and up. ### [`v6.28.1`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6281-2024-06-12) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.28.0...6.28.1) ##### Bug fixes Disable `EditContext` by default again, to work around a regression where Chrome's implementation doesn't support inverted selections. Make sure `EditorView.editable` is respected when `EditContext` is used. ### [`v6.28.0`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6280-2024-06-10) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.27.0...6.28.0) ##### Bug fixes Fix an issue where long lines broken up by block widgets were sometimes only partially rendered. ##### New features The editor will now, when available (which is only on Chrome for the foreseeable future) use the [`EditContext`](https://developer.mozilla.org/en-US/docs/Web/API/EditContext) API to capture text input. ### [`v6.27.0`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6270-2024-06-04) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.26.4...6.27.0) ##### New features The new `setTabFocusMode` method can be used to control whether the editor disables key bindings for Tab and Shift-Tab. ### [`v6.26.4`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6264-2024-06-04) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.26.3...6.26.4) ##### Bug fixes Fix an issue where commands with an optional second argument would get the keyboard event in that argument when called from a keymap. Fix an issue that could cause the cursor to be rendered on the wrong side of a zero-length block widget. Fix an issue where `drawSelection` got confused by block widgets in line-wrapped editors in some situations. Don't hide the native selection in widgets that have focus. Make sure that clicking an unfocusable editor still remove focus from any other focused elements. Fix a crash when loading the package in a non-browser environment. Stop mouse selection when the user types. ### [`v6.26.3`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6263-2024-04-12) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.26.2...6.26.3) ##### Bug fixes Fix an issue where dispatching an update to an editor before it measured itself for the first time could cause the scroll position to incorrectly move. Fix a crash when multiple tooltips with arrows are shown. ### [`v6.26.2`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6262-2024-04-09) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.26.1...6.26.2) ##### Bug fixes Improve behavior of `scrollPastEnd` in a scaled editor. When available, use `Selection.getComposedRanges` on Safari to find the selection inside a shadow DOM. Remove the workaround that avoided inappropriate styling on composed text after a decoration again, since it breaks the stock Android virtual keyboard. ### [`v6.26.1`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6261-2024-03-28) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.26.0...6.26.1) ##### Bug fixes Fix the editor getting stuck in composition when Safari fails to fire a compositionend event for a dead key composition. Fix an issue where, with IME systems that kept the cursor at the start of the composed text, the editor misidentified the target node and disrupted composition. Fix a bug where in a line-wrapped editor, with some content, the initial scroll position would be off from the top of the document. ### [`v6.26.0`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6260-2024-03-14) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.25.1...6.26.0) ##### Bug fixes Avoid the editor getting confused when iOS autocorrects on pressing Enter and does the correction and the break insertion in two different events. Fix the pasting of copied URIs in iOS. Fix a bug where a scaled editor could keep performing unnecessary updates due to tiny differences in geometry values returned by the browser. Fix a bug where, on iOS with a physical keyboard, the modifiers for some keys weren't being passed to the keymaps. Work around the fact that Mobile Safari makes DOM changes before firing a key event when typing ctrl-d on an external keyboard. Fix an issue where some commands didn't properly scroll the cursor into view on Mobile Safari. Re-measure the document when print settings are changed on Chrome. ##### New features The `EditorView.scrollHandler` facet can be used to override or extend the behavior of the editor when things are scrolled into view. ### [`v6.25.1`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6251-2024-03-06) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.25.0...6.25.1) ##### Bug fixes Fix accidental non-optional field in layer config objects. ### [`v6.25.0`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6250-2024-03-04) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.24.1...6.25.0) ##### Bug fixes Properly recognize Android GBoard enter presses that strip a space at the end of the line as enter. Fix a bug that caused the gutter to have the wrong height when the editor was scaled after construction. When starting a composition after a non-inclusive mark decoration, temporarily insert a widget that prevents the composed text from inheriting that mark's styles. Make sure the selection is repositioned when a transaction changes decorations without changing the document. ##### New features View plugins can now provide a `docViewUpdate` method that is called whenever the document view is updated. Layers now take a `updateOnDocUpdate` option that controls whether they are automatically updated when the document view changes. ### [`v6.24.1`](https://redirect.github.com/codemirror/view/blob/HEAD/CHANGELOG.md#6241-2024-02-19) [Compare Source](https://redirect.github.com/codemirror/view/compare/6.24.0...6.24.1) ##### Bug fixes Fix a crash that happens when hover tooltips are active during changes, introduced in 6.24.0. </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/graphql/graphql.github.io). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi41OS4wIiwidXBkYXRlZEluVmVyIjoiNDIuNTkuMCIsInRhcmdldEJyYW5jaCI6InNvdXJjZSIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 86e1f32 commit c21c1f4

File tree

2 files changed

+79
-71
lines changed

2 files changed

+79
-71
lines changed

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
},
2727
"dependencies": {
2828
"@base-ui-components/react": "1.0.0-rc.0",
29-
"@codemirror/autocomplete": "6.18.6",
30-
"@codemirror/commands": "6.3.3",
31-
"@codemirror/language": "6.10.0",
32-
"@codemirror/lint": "6.8.5",
33-
"@codemirror/state": "6.4.0",
34-
"@codemirror/view": "6.24.0",
29+
"@codemirror/autocomplete": "6.20.0",
30+
"@codemirror/commands": "6.10.1",
31+
"@codemirror/language": "6.12.1",
32+
"@codemirror/lint": "6.9.2",
33+
"@codemirror/state": "6.5.3",
34+
"@codemirror/view": "6.39.7",
3535
"@graphql-tools/schema": "10.0.30",
3636
"@hasparus/lezer-json-shikified": "1.1.3",
3737
"@headlessui/react": "^2.2.4",
@@ -147,12 +147,12 @@
147147
"overrides": {
148148
"@lezer/highlight": "1.2.3",
149149
"@lezer/common": "1.4.0",
150-
"@codemirror/autocomplete": "6.18.6",
151-
"@codemirror/commands": "6.3.3",
152-
"@codemirror/language": "6.10.0",
153-
"@codemirror/lint": "6.8.5",
154-
"@codemirror/state": "6.4.0",
155-
"@codemirror/view": "6.24.0"
150+
"@codemirror/autocomplete": "6.20.0",
151+
"@codemirror/commands": "6.10.1",
152+
"@codemirror/language": "6.12.1",
153+
"@codemirror/lint": "6.9.2",
154+
"@codemirror/state": "6.5.3",
155+
"@codemirror/view": "6.39.7"
156156
}
157157
}
158158
}

pnpm-lock.yaml

Lines changed: 67 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)