codemirror/merge (@codemirror/merge)
### [`v6.6.1`](https://togithub.com/codemirror/merge/blob/HEAD/CHANGELOG.md#661-2024-03-08)
[Compare Source](https://togithub.com/codemirror/merge/compare/6.6.0...6.6.1)
##### Bug fixes
Fix a bug that could cause the set of changed chunks to be updated incorrectly on some types of changes.
### [`v6.6.0`](https://togithub.com/codemirror/merge/blob/HEAD/CHANGELOG.md#660-2024-01-25)
[Compare Source](https://togithub.com/codemirror/merge/compare/6.5.0...6.6.0)
##### Bug fixes
Fix a bug where big deletions could corrupt the merge state.
##### New features
The state effect used to change the original document in a unified merge view is now available to client code as `updateOriginalDoc`.
### [`v6.5.0`](https://togithub.com/codemirror/merge/blob/HEAD/CHANGELOG.md#650-2024-01-04)
[Compare Source](https://togithub.com/codemirror/merge/compare/6.4.0...6.5.0)
##### New features
The new `changeOriginalDocEffect` function can be used to update the reference document in a unified merge editor.
### [`v6.4.0`](https://togithub.com/codemirror/merge/blob/HEAD/CHANGELOG.md#640-2023-12-14)
[Compare Source](https://togithub.com/codemirror/merge/compare/6.3.1...6.4.0)
##### New features
The `getOriginalDoc` function extracts the original document from a unified merge editor.
### [`v6.3.1`](https://togithub.com/codemirror/merge/blob/HEAD/CHANGELOG.md#631-2023-12-03)
[Compare Source](https://togithub.com/codemirror/merge/compare/6.3.0...6.3.1)
##### Bug fixes
Add a `userEvent` annotation to transactions that accept a change in the unified merge view.
Fix CSS selectors in the merge view base theme to avoid affecting the style of non-merge view editors.
### [`v6.3.0`](https://togithub.com/codemirror/merge/blob/HEAD/CHANGELOG.md#630-2023-11-16)
[Compare Source](https://togithub.com/codemirror/merge/compare/6.2.0...6.3.0)
##### New features
Merge views (and `Chunk` building methods) now take an optional diff config object to allow precision to be configured.
### [`v6.2.0`](https://togithub.com/codemirror/merge/blob/HEAD/CHANGELOG.md#620-2023-10-06)
[Compare Source](https://togithub.com/codemirror/merge/compare/6.1.3...6.2.0)
##### New features
The package now exports `goToNextChunk` and `goToPreviousChunk` commands that allow by-changed-chunk document navigation.
### [`v6.1.3`](https://togithub.com/codemirror/merge/blob/HEAD/CHANGELOG.md#613-2023-09-28)
[Compare Source](https://togithub.com/codemirror/merge/compare/6.1.2...6.1.3)
##### Bug fixes
Create alignment spacers for the whole document, not just the viewport, to avoid scroll position popping and misalignment.
### [`v6.1.2`](https://togithub.com/codemirror/merge/blob/HEAD/CHANGELOG.md#612-2023-08-18)
[Compare Source](https://togithub.com/codemirror/merge/compare/6.1.1...6.1.2)
##### Bug fixes
Fall back to treating entire documents as changed when they are too large to compute a diff in a reasonable timeframe.
codemirror/state (@codemirror/state)
### [`v6.4.1`](https://togithub.com/codemirror/state/blob/HEAD/CHANGELOG.md#641-2024-02-19)
[Compare Source](https://togithub.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.
codemirror/view (@codemirror/view)
### [`v6.26.3`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6263-2024-04-12)
[Compare Source](https://togithub.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://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6262-2024-04-09)
[Compare Source](https://togithub.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://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6261-2024-03-28)
[Compare Source](https://togithub.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://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6260-2024-03-14)
[Compare Source](https://togithub.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://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6251-2024-03-06)
[Compare Source](https://togithub.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://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6250-2024-03-04)
[Compare Source](https://togithub.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://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6241-2024-02-19)
[Compare Source](https://togithub.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.
### [`v6.24.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6240-2024-02-09)
[Compare Source](https://togithub.com/codemirror/view/compare/6.23.1...6.24.0)
##### Bug fixes
Fix an issue that broke context-menu select-all on Chrome when the viewport didn't cover the whole document.
Make sure tooltips are ordered by extension precedence in the DOM.
##### New features
Hover tooltip sources may now return multiple tooltips.
### [`v6.23.1`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6231-2024-01-24)
[Compare Source](https://togithub.com/codemirror/view/compare/6.23.0...6.23.1)
##### Bug fixes
Fix a bug that caused `Tooltip.above` to not take effect for tooltips that were already present when the tooltip plugin is initialized.
Automatically reposition tooltips when their size changes.
### [`v6.23.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6230-2023-12-28)
[Compare Source](https://togithub.com/codemirror/view/compare/6.22.3...6.23.0)
##### Bug fixes
Work around odd iOS Safari behavior when doing select all.
Fix a composition interruption when an widget is inserted next to the cursor.
Fix a crash in bidirectional cursor motion.
Simplify visual motion through bidirectional text, fix several corner cases where it would work badly.
Fix a bug that broke some bidi isolates not on the first line of the document.
##### New features
`EditorView.bidiIsolatedRanges` now supports automatically determining the direction of the range if not provided by the decoration.
`EditorView.visualLineSide` can be used to find the visual end or start of a line with bidirectional text.
The new `EditorView.outerDecorations` facet can be used to provide decorations that should always be at the bottom of the precedence stack.
### [`v6.22.3`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6223-2023-12-13)
[Compare Source](https://togithub.com/codemirror/view/compare/6.22.2...6.22.3)
##### Bug fixes
Fix a bug that could cause tooltips to be unnecessarily be positioned absolutely.
Make sure that, when an editor creates tooltips immediately on initialization, the editor is attached to the document when their `mount` callback is called.
### [`v6.22.2`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6222-2023-12-08)
[Compare Source](https://togithub.com/codemirror/view/compare/6.22.1...6.22.2)
##### Bug fixes
Fix an issue in the bidirectional motion that could cause the cursor to get stuck in a loop when a zero-width non-joiner char was placed on a direction boundary.
Fix a bug that corrupts the editor's internal view tree data structure on some types of edits, putting the editor in a broken state.
### [`v6.22.1`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6221-2023-11-27)
[Compare Source](https://togithub.com/codemirror/view/compare/6.22.0...6.22.1)
##### Bug fixes
Call widget `destroy` methods when the entire editor is destroyed or reset.
Work around an issue on Safari on macOS Sonoma that made the native cursor visible even when `drawSelection` is enabled.
Fix an issue where, on some browsers, the screenreader announced text ended up in the printed document.
Fix a bug where a hover tooltip could stick around even though the pointer was no longer on the editor when it was moved out over the tooltip.
Fix an issue where hover tooltips could close when moving the mouse onto them due to mouse position rounding issues.
### [`v6.22.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6220-2023-11-03)
[Compare Source](https://togithub.com/codemirror/view/compare/6.21.4...6.22.0)
##### Bug fixes
Exceptions raised by update listeners are now routed to the configured exception sink, if any.
Fix an issue where passing large scroll margins to `scrollIntoView` would cause the measure loop to fail to terminate.
Widgets that are draggable (and allow drag events through in their `ignoreEvent` implementation) can now use the editor's built-in drag/drop behavior.
##### New features
The new `scrollTo` option to `EditorView` allows an initial scroll position to be provided.
The new `EditorView.scrollSnapshot` method returns an effect that can be used to reset to a previous scroll position.
### [`v6.21.4`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6214-2023-10-24)
[Compare Source](https://togithub.com/codemirror/view/compare/6.21.3...6.21.4)
##### Bug fixes
Support the `offset`, `getCoords`, `overlap`, and `resize` properties on hover tooltips, as long as they aren't given conflicting values when there are multiple active hover tooltips.
Fix a bug that caused tooltips in the default configuration to be positioned incorrectly on Chrome when the editor was transformed.
### [`v6.21.3`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6213-2023-10-06)
[Compare Source](https://togithub.com/codemirror/view/compare/6.21.2...6.21.3)
##### Bug fixes
Fix an issue that caused `coordsForChar` to return the wrong rectangle for characters after a line wrap in Safari.
Make the context menu work when clicking below the content in a fixed-height editor.
Tooltips that have been put below/above their target position because there is no room on their default side now stay there on further updates.
### [`v6.21.2`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6212-2023-10-02)
[Compare Source](https://togithub.com/codemirror/view/compare/6.21.1...6.21.2)
##### Bug fixes
Fix a regression that broke dragging text from inside the editor.
### [`v6.21.1`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6211-2023-10-02)
[Compare Source](https://togithub.com/codemirror/view/compare/6.21.0...6.21.1)
##### Bug fixes
Fix a bug that could corrupt the DOM view for specific changes involving newlines and mark decorations.
### [`v6.21.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6210-2023-09-29)
[Compare Source](https://togithub.com/codemirror/view/compare/6.20.2...6.21.0)
##### Bug fixes
Fix a bug that could cause zero-length widgets at the start of a line to be left in the view even after they were removed.
##### New features
`RectangleMarker`'s dimension properties are now public.
### [`v6.20.2`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6202-2023-09-25)
[Compare Source](https://togithub.com/codemirror/view/compare/6.20.1...6.20.2)
##### Bug fixes
Fix an issue in the way the DOM selection is being read that could break backspacing of widgets on Android.
Fix a bug where the editor could incorrectly computate its transform scale when it was small.
### [`v6.20.1`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6201-2023-09-22)
[Compare Source](https://togithub.com/codemirror/view/compare/6.20.0...6.20.1)
##### Bug fixes
Fix a crash in plugin event handlers after dynamic reconfiguration.
Fix an issue where, on Chrome, tooltips would no longer use fixed positioning.
### [`v6.20.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6200-2023-09-20)
[Compare Source](https://togithub.com/codemirror/view/compare/6.19.0...6.20.0)
##### Bug fixes
Fix an issue that caused `repositionTooltips` to crash when it was called on an editor without tooltips.
Fix an issue that caused the tooltip system to leave empty nodes in the DOM when an editor using the `parent` option to `tooltips` is destroyed.
Fix a bug that regression mouse interaction with the area of a fixed-size editor that isn't covered by the content.
Fix some issues with the way `moveVertically` behaved for positions on line wrap points.
Fix a bug that could cause the document DOM to be incorrectly updated on some types of viewport changes.
##### New features
The new `getDrawSelectionConfig` function returns the `drawSelection` configuration for a given state.
### [`v6.19.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6190-2023-09-14)
[Compare Source](https://togithub.com/codemirror/view/compare/6.18.1...6.19.0)
##### Bug fixes
Make sure the drop cursor is properly cleaned up even when another extension handles the drop event.
Fix a crash related to non-inclusive replacing block decorations.
##### New features
The new `EditorView.domEventObservers` (and the corresponding option to view plugins) allows you to register functions that are always called for an event, regardless of whether other handlers handled it.
### [`v6.18.1`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6181-2023-09-11)
[Compare Source](https://togithub.com/codemirror/view/compare/6.18.0...6.18.1)
##### Bug fixes
Fix an issue where the editor duplicated text when the browser moved content into the focused text node on composition.
Make sure `widgetMarker` is called for gutters on lines covered by a block replace decoration.
Fix an issue where the cursor could be shown in a position that doesn't allow a cursor when the selection is in a block widget.
### [`v6.18.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6180-2023-09-05)
[Compare Source](https://togithub.com/codemirror/view/compare/6.17.1...6.18.0)
##### New features
The new `EditorView.scaleX` and `scaleY` properties return the CSS-transformed scale of the editor (or 1 when not scaled).
The editor now supports being scaled with CSS.
### [`v6.17.1`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6171-2023-08-31)
[Compare Source](https://togithub.com/codemirror/view/compare/6.17.0...6.17.1)
##### Bug fixes
Don't close the hover tooltip when the pointer moves over empty space caused by line breaks within the hovered range.
Fix a bug where on Chrome Android, if a virtual keyboard was slow to apply a change, the editor could end up dropping it.
Work around an issue where line-wise copy/cut didn't work in Firefox because the browser wasn't firing those events when nothing was selected.
Fix a crash triggered by the way some Android IME systems update the DOM.
Fix a bug that caused replacing a word by an emoji on Chrome Android to be treated as a backspace press.
### [`v6.17.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6170-2023-08-28)
[Compare Source](https://togithub.com/codemirror/view/compare/6.16.0...6.17.0)
##### Bug fixes
Fix a bug that broke hover tooltips when hovering over a widget.
##### New features
The new `EditorView.cspNonce` facet can be used to provide a Content Security Policy nonce for the library's generated CSS.
The new `EditorView.bidiIsolatedRanges` can be used to inform the editor about ranges styled as Unicode bidirection isolates, so that it can compute the character order correctly.
`EditorView.dispatch` now also accepts an array of transactions to be applied together in a single view update.
The new `dispatchTransactions` option to `new EditorView` now replaces the old (deprecated but still supported) `dispatch` option in a way that allows multiple transactions to be applied in one update.
Input handlers are now passed an additional argument that they can use to retrieve the default transaction that would be applied for the insertion.
### [`v6.16.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6160-2023-07-31)
[Compare Source](https://togithub.com/codemirror/view/compare/6.15.3...6.16.0)
##### Bug fixes
Fix an issue that made the gutter not stick in place when the editor was in a right-to-left context.
##### New features
The new `EditorView.coordsForChar` method returns the client rectangle for a given character in the editor.
### [`v6.15.3`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6153-2023-07-18)
[Compare Source](https://togithub.com/codemirror/view/compare/6.15.2...6.15.3)
##### Bug fixes
Fix another crash regression for compositions before line breaks.
### [`v6.15.2`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6152-2023-07-18)
[Compare Source](https://togithub.com/codemirror/view/compare/6.15.1...6.15.2)
##### Bug fixes
Fix the check that made sure compositions are dropped when the selection is moved.
### [`v6.15.1`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6151-2023-07-18)
[Compare Source](https://togithub.com/codemirror/view/compare/6.15.0...6.15.1)
##### Bug fixes
Fix a regression that could cause the composition content to be drawn incorrectly.
### [`v6.15.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6150-2023-07-17)
[Compare Source](https://togithub.com/codemirror/view/compare/6.14.1...6.15.0)
##### Bug fixes
Fix dragging a selection from inside the current selection on macOS.
Fix an issue that could cause the scroll position to jump wildly
Don't try to scroll fixed-positioned elements into view by scrolling their parent elements.
Fix a bug that caused the cursor to be hidden when showing a placeholder that consisted of the empty string.
Resolve some issues where composition could incorrectly affect nearby replaced content.
##### New features
Key bindings can now set a `stopPropagation` field to cause the view to stop the key event propagation when it considers the event handled.
### [`v6.14.1`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6141-2023-07-06)
[Compare Source](https://togithub.com/codemirror/view/compare/6.14.0...6.14.1)
##### Bug fixes
Fix an issue where scrolling up through line-wrapped text would sometimes cause the scroll position to pop down.
Fix an issue where clicking wouldn't focus the editor on Firefox when it was in an iframe and already the active element of the frame.
Fix a bug that could cause compositions to be disrupted because their surrounding DOM was repurposed for some other piece of content.
Fix a bug where adding content to the editor could inappropriately move the scroll position.
Extend detection of Enter presses on Android to `beforeInput` events with an `"insertLineBreak"` type.
### [`v6.14.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6140-2023-06-23)
[Compare Source](https://togithub.com/codemirror/view/compare/6.13.2...6.14.0)
##### Bug fixes
When dragging text inside the editor, look at the state of Ctrl (or Alt on macOS) at the time of the drop, not the start of drag, to determine whether to move or copy the text.
Fix an issue where having a bunch of padding on lines could cause vertical cursor motion and `posAtCoords` to jump over lines.
##### New features
Block widget decorations can now be given an `inlineOrder` option to make them appear in the same ordering as surrounding inline widgets.
### [`v6.13.2`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6132-2023-06-13)
[Compare Source](https://togithub.com/codemirror/view/compare/6.13.1...6.13.2)
##### Bug fixes
Fix an issue in scroll position stabilization for changes above the visible, where Chrome already does this natively and we ended up compensating twice.
### [`v6.13.1`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6131-2023-06-12)
[Compare Source](https://togithub.com/codemirror/view/compare/6.13.0...6.13.1)
##### Bug fixes
Fix a bug where the cursor would in some circumstances be drawn on the wrong side of an inline widget.
Fix an issue where `scrollPastEnd` could cause the scroll position of editors that weren't in view to be changed unnecessarily.
Configuration
📅 Schedule: Branch creation - "every 3 months on the first day of the month" (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 if that's undesired.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
6.1.1
->6.6.1
6.4.0
->6.4.1
6.13.0
->6.26.3
Release Notes
codemirror/merge (@codemirror/merge)
### [`v6.6.1`](https://togithub.com/codemirror/merge/blob/HEAD/CHANGELOG.md#661-2024-03-08) [Compare Source](https://togithub.com/codemirror/merge/compare/6.6.0...6.6.1) ##### Bug fixes Fix a bug that could cause the set of changed chunks to be updated incorrectly on some types of changes. ### [`v6.6.0`](https://togithub.com/codemirror/merge/blob/HEAD/CHANGELOG.md#660-2024-01-25) [Compare Source](https://togithub.com/codemirror/merge/compare/6.5.0...6.6.0) ##### Bug fixes Fix a bug where big deletions could corrupt the merge state. ##### New features The state effect used to change the original document in a unified merge view is now available to client code as `updateOriginalDoc`. ### [`v6.5.0`](https://togithub.com/codemirror/merge/blob/HEAD/CHANGELOG.md#650-2024-01-04) [Compare Source](https://togithub.com/codemirror/merge/compare/6.4.0...6.5.0) ##### New features The new `changeOriginalDocEffect` function can be used to update the reference document in a unified merge editor. ### [`v6.4.0`](https://togithub.com/codemirror/merge/blob/HEAD/CHANGELOG.md#640-2023-12-14) [Compare Source](https://togithub.com/codemirror/merge/compare/6.3.1...6.4.0) ##### New features The `getOriginalDoc` function extracts the original document from a unified merge editor. ### [`v6.3.1`](https://togithub.com/codemirror/merge/blob/HEAD/CHANGELOG.md#631-2023-12-03) [Compare Source](https://togithub.com/codemirror/merge/compare/6.3.0...6.3.1) ##### Bug fixes Add a `userEvent` annotation to transactions that accept a change in the unified merge view. Fix CSS selectors in the merge view base theme to avoid affecting the style of non-merge view editors. ### [`v6.3.0`](https://togithub.com/codemirror/merge/blob/HEAD/CHANGELOG.md#630-2023-11-16) [Compare Source](https://togithub.com/codemirror/merge/compare/6.2.0...6.3.0) ##### New features Merge views (and `Chunk` building methods) now take an optional diff config object to allow precision to be configured. ### [`v6.2.0`](https://togithub.com/codemirror/merge/blob/HEAD/CHANGELOG.md#620-2023-10-06) [Compare Source](https://togithub.com/codemirror/merge/compare/6.1.3...6.2.0) ##### New features The package now exports `goToNextChunk` and `goToPreviousChunk` commands that allow by-changed-chunk document navigation. ### [`v6.1.3`](https://togithub.com/codemirror/merge/blob/HEAD/CHANGELOG.md#613-2023-09-28) [Compare Source](https://togithub.com/codemirror/merge/compare/6.1.2...6.1.3) ##### Bug fixes Create alignment spacers for the whole document, not just the viewport, to avoid scroll position popping and misalignment. ### [`v6.1.2`](https://togithub.com/codemirror/merge/blob/HEAD/CHANGELOG.md#612-2023-08-18) [Compare Source](https://togithub.com/codemirror/merge/compare/6.1.1...6.1.2) ##### Bug fixes Fall back to treating entire documents as changed when they are too large to compute a diff in a reasonable timeframe.codemirror/state (@codemirror/state)
### [`v6.4.1`](https://togithub.com/codemirror/state/blob/HEAD/CHANGELOG.md#641-2024-02-19) [Compare Source](https://togithub.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.codemirror/view (@codemirror/view)
### [`v6.26.3`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6263-2024-04-12) [Compare Source](https://togithub.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://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6262-2024-04-09) [Compare Source](https://togithub.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://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6261-2024-03-28) [Compare Source](https://togithub.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://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6260-2024-03-14) [Compare Source](https://togithub.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://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6251-2024-03-06) [Compare Source](https://togithub.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://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6250-2024-03-04) [Compare Source](https://togithub.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://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6241-2024-02-19) [Compare Source](https://togithub.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. ### [`v6.24.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6240-2024-02-09) [Compare Source](https://togithub.com/codemirror/view/compare/6.23.1...6.24.0) ##### Bug fixes Fix an issue that broke context-menu select-all on Chrome when the viewport didn't cover the whole document. Make sure tooltips are ordered by extension precedence in the DOM. ##### New features Hover tooltip sources may now return multiple tooltips. ### [`v6.23.1`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6231-2024-01-24) [Compare Source](https://togithub.com/codemirror/view/compare/6.23.0...6.23.1) ##### Bug fixes Fix a bug that caused `Tooltip.above` to not take effect for tooltips that were already present when the tooltip plugin is initialized. Automatically reposition tooltips when their size changes. ### [`v6.23.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6230-2023-12-28) [Compare Source](https://togithub.com/codemirror/view/compare/6.22.3...6.23.0) ##### Bug fixes Work around odd iOS Safari behavior when doing select all. Fix a composition interruption when an widget is inserted next to the cursor. Fix a crash in bidirectional cursor motion. Simplify visual motion through bidirectional text, fix several corner cases where it would work badly. Fix a bug that broke some bidi isolates not on the first line of the document. ##### New features `EditorView.bidiIsolatedRanges` now supports automatically determining the direction of the range if not provided by the decoration. `EditorView.visualLineSide` can be used to find the visual end or start of a line with bidirectional text. The new `EditorView.outerDecorations` facet can be used to provide decorations that should always be at the bottom of the precedence stack. ### [`v6.22.3`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6223-2023-12-13) [Compare Source](https://togithub.com/codemirror/view/compare/6.22.2...6.22.3) ##### Bug fixes Fix a bug that could cause tooltips to be unnecessarily be positioned absolutely. Make sure that, when an editor creates tooltips immediately on initialization, the editor is attached to the document when their `mount` callback is called. ### [`v6.22.2`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6222-2023-12-08) [Compare Source](https://togithub.com/codemirror/view/compare/6.22.1...6.22.2) ##### Bug fixes Fix an issue in the bidirectional motion that could cause the cursor to get stuck in a loop when a zero-width non-joiner char was placed on a direction boundary. Fix a bug that corrupts the editor's internal view tree data structure on some types of edits, putting the editor in a broken state. ### [`v6.22.1`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6221-2023-11-27) [Compare Source](https://togithub.com/codemirror/view/compare/6.22.0...6.22.1) ##### Bug fixes Call widget `destroy` methods when the entire editor is destroyed or reset. Work around an issue on Safari on macOS Sonoma that made the native cursor visible even when `drawSelection` is enabled. Fix an issue where, on some browsers, the screenreader announced text ended up in the printed document. Fix a bug where a hover tooltip could stick around even though the pointer was no longer on the editor when it was moved out over the tooltip. Fix an issue where hover tooltips could close when moving the mouse onto them due to mouse position rounding issues. ### [`v6.22.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6220-2023-11-03) [Compare Source](https://togithub.com/codemirror/view/compare/6.21.4...6.22.0) ##### Bug fixes Exceptions raised by update listeners are now routed to the configured exception sink, if any. Fix an issue where passing large scroll margins to `scrollIntoView` would cause the measure loop to fail to terminate. Widgets that are draggable (and allow drag events through in their `ignoreEvent` implementation) can now use the editor's built-in drag/drop behavior. ##### New features The new `scrollTo` option to `EditorView` allows an initial scroll position to be provided. The new `EditorView.scrollSnapshot` method returns an effect that can be used to reset to a previous scroll position. ### [`v6.21.4`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6214-2023-10-24) [Compare Source](https://togithub.com/codemirror/view/compare/6.21.3...6.21.4) ##### Bug fixes Support the `offset`, `getCoords`, `overlap`, and `resize` properties on hover tooltips, as long as they aren't given conflicting values when there are multiple active hover tooltips. Fix a bug that caused tooltips in the default configuration to be positioned incorrectly on Chrome when the editor was transformed. ### [`v6.21.3`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6213-2023-10-06) [Compare Source](https://togithub.com/codemirror/view/compare/6.21.2...6.21.3) ##### Bug fixes Fix an issue that caused `coordsForChar` to return the wrong rectangle for characters after a line wrap in Safari. Make the context menu work when clicking below the content in a fixed-height editor. Tooltips that have been put below/above their target position because there is no room on their default side now stay there on further updates. ### [`v6.21.2`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6212-2023-10-02) [Compare Source](https://togithub.com/codemirror/view/compare/6.21.1...6.21.2) ##### Bug fixes Fix a regression that broke dragging text from inside the editor. ### [`v6.21.1`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6211-2023-10-02) [Compare Source](https://togithub.com/codemirror/view/compare/6.21.0...6.21.1) ##### Bug fixes Fix a bug that could corrupt the DOM view for specific changes involving newlines and mark decorations. ### [`v6.21.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6210-2023-09-29) [Compare Source](https://togithub.com/codemirror/view/compare/6.20.2...6.21.0) ##### Bug fixes Fix a bug that could cause zero-length widgets at the start of a line to be left in the view even after they were removed. ##### New features `RectangleMarker`'s dimension properties are now public. ### [`v6.20.2`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6202-2023-09-25) [Compare Source](https://togithub.com/codemirror/view/compare/6.20.1...6.20.2) ##### Bug fixes Fix an issue in the way the DOM selection is being read that could break backspacing of widgets on Android. Fix a bug where the editor could incorrectly computate its transform scale when it was small. ### [`v6.20.1`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6201-2023-09-22) [Compare Source](https://togithub.com/codemirror/view/compare/6.20.0...6.20.1) ##### Bug fixes Fix a crash in plugin event handlers after dynamic reconfiguration. Fix an issue where, on Chrome, tooltips would no longer use fixed positioning. ### [`v6.20.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6200-2023-09-20) [Compare Source](https://togithub.com/codemirror/view/compare/6.19.0...6.20.0) ##### Bug fixes Fix an issue that caused `repositionTooltips` to crash when it was called on an editor without tooltips. Fix an issue that caused the tooltip system to leave empty nodes in the DOM when an editor using the `parent` option to `tooltips` is destroyed. Fix a bug that regression mouse interaction with the area of a fixed-size editor that isn't covered by the content. Fix some issues with the way `moveVertically` behaved for positions on line wrap points. Fix a bug that could cause the document DOM to be incorrectly updated on some types of viewport changes. ##### New features The new `getDrawSelectionConfig` function returns the `drawSelection` configuration for a given state. ### [`v6.19.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6190-2023-09-14) [Compare Source](https://togithub.com/codemirror/view/compare/6.18.1...6.19.0) ##### Bug fixes Make sure the drop cursor is properly cleaned up even when another extension handles the drop event. Fix a crash related to non-inclusive replacing block decorations. ##### New features The new `EditorView.domEventObservers` (and the corresponding option to view plugins) allows you to register functions that are always called for an event, regardless of whether other handlers handled it. ### [`v6.18.1`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6181-2023-09-11) [Compare Source](https://togithub.com/codemirror/view/compare/6.18.0...6.18.1) ##### Bug fixes Fix an issue where the editor duplicated text when the browser moved content into the focused text node on composition. Make sure `widgetMarker` is called for gutters on lines covered by a block replace decoration. Fix an issue where the cursor could be shown in a position that doesn't allow a cursor when the selection is in a block widget. ### [`v6.18.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6180-2023-09-05) [Compare Source](https://togithub.com/codemirror/view/compare/6.17.1...6.18.0) ##### New features The new `EditorView.scaleX` and `scaleY` properties return the CSS-transformed scale of the editor (or 1 when not scaled). The editor now supports being scaled with CSS. ### [`v6.17.1`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6171-2023-08-31) [Compare Source](https://togithub.com/codemirror/view/compare/6.17.0...6.17.1) ##### Bug fixes Don't close the hover tooltip when the pointer moves over empty space caused by line breaks within the hovered range. Fix a bug where on Chrome Android, if a virtual keyboard was slow to apply a change, the editor could end up dropping it. Work around an issue where line-wise copy/cut didn't work in Firefox because the browser wasn't firing those events when nothing was selected. Fix a crash triggered by the way some Android IME systems update the DOM. Fix a bug that caused replacing a word by an emoji on Chrome Android to be treated as a backspace press. ### [`v6.17.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6170-2023-08-28) [Compare Source](https://togithub.com/codemirror/view/compare/6.16.0...6.17.0) ##### Bug fixes Fix a bug that broke hover tooltips when hovering over a widget. ##### New features The new `EditorView.cspNonce` facet can be used to provide a Content Security Policy nonce for the library's generated CSS. The new `EditorView.bidiIsolatedRanges` can be used to inform the editor about ranges styled as Unicode bidirection isolates, so that it can compute the character order correctly. `EditorView.dispatch` now also accepts an array of transactions to be applied together in a single view update. The new `dispatchTransactions` option to `new EditorView` now replaces the old (deprecated but still supported) `dispatch` option in a way that allows multiple transactions to be applied in one update. Input handlers are now passed an additional argument that they can use to retrieve the default transaction that would be applied for the insertion. ### [`v6.16.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6160-2023-07-31) [Compare Source](https://togithub.com/codemirror/view/compare/6.15.3...6.16.0) ##### Bug fixes Fix an issue that made the gutter not stick in place when the editor was in a right-to-left context. ##### New features The new `EditorView.coordsForChar` method returns the client rectangle for a given character in the editor. ### [`v6.15.3`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6153-2023-07-18) [Compare Source](https://togithub.com/codemirror/view/compare/6.15.2...6.15.3) ##### Bug fixes Fix another crash regression for compositions before line breaks. ### [`v6.15.2`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6152-2023-07-18) [Compare Source](https://togithub.com/codemirror/view/compare/6.15.1...6.15.2) ##### Bug fixes Fix the check that made sure compositions are dropped when the selection is moved. ### [`v6.15.1`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6151-2023-07-18) [Compare Source](https://togithub.com/codemirror/view/compare/6.15.0...6.15.1) ##### Bug fixes Fix a regression that could cause the composition content to be drawn incorrectly. ### [`v6.15.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6150-2023-07-17) [Compare Source](https://togithub.com/codemirror/view/compare/6.14.1...6.15.0) ##### Bug fixes Fix dragging a selection from inside the current selection on macOS. Fix an issue that could cause the scroll position to jump wildly Don't try to scroll fixed-positioned elements into view by scrolling their parent elements. Fix a bug that caused the cursor to be hidden when showing a placeholder that consisted of the empty string. Resolve some issues where composition could incorrectly affect nearby replaced content. ##### New features Key bindings can now set a `stopPropagation` field to cause the view to stop the key event propagation when it considers the event handled. ### [`v6.14.1`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6141-2023-07-06) [Compare Source](https://togithub.com/codemirror/view/compare/6.14.0...6.14.1) ##### Bug fixes Fix an issue where scrolling up through line-wrapped text would sometimes cause the scroll position to pop down. Fix an issue where clicking wouldn't focus the editor on Firefox when it was in an iframe and already the active element of the frame. Fix a bug that could cause compositions to be disrupted because their surrounding DOM was repurposed for some other piece of content. Fix a bug where adding content to the editor could inappropriately move the scroll position. Extend detection of Enter presses on Android to `beforeInput` events with an `"insertLineBreak"` type. ### [`v6.14.0`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6140-2023-06-23) [Compare Source](https://togithub.com/codemirror/view/compare/6.13.2...6.14.0) ##### Bug fixes When dragging text inside the editor, look at the state of Ctrl (or Alt on macOS) at the time of the drop, not the start of drag, to determine whether to move or copy the text. Fix an issue where having a bunch of padding on lines could cause vertical cursor motion and `posAtCoords` to jump over lines. ##### New features Block widget decorations can now be given an `inlineOrder` option to make them appear in the same ordering as surrounding inline widgets. ### [`v6.13.2`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6132-2023-06-13) [Compare Source](https://togithub.com/codemirror/view/compare/6.13.1...6.13.2) ##### Bug fixes Fix an issue in scroll position stabilization for changes above the visible, where Chrome already does this natively and we ended up compensating twice. ### [`v6.13.1`](https://togithub.com/codemirror/view/blob/HEAD/CHANGELOG.md#6131-2023-06-12) [Compare Source](https://togithub.com/codemirror/view/compare/6.13.0...6.13.1) ##### Bug fixes Fix a bug where the cursor would in some circumstances be drawn on the wrong side of an inline widget. Fix an issue where `scrollPastEnd` could cause the scroll position of editors that weren't in view to be changed unnecessarily.Configuration
📅 Schedule: Branch creation - "every 3 months on the first day of the month" (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 if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.