Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CodeMirror #123

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update CodeMirror #123

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 6, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@codemirror/autocomplete 6.9.1 -> 6.18.1 age adoption passing confidence
@codemirror/commands 6.3.0 -> 6.6.2 age adoption passing confidence
@codemirror/lang-css 6.2.1 -> 6.3.0 age adoption passing confidence
@codemirror/lang-html 6.4.6 -> 6.4.9 age adoption passing confidence
@codemirror/lang-javascript 6.2.1 -> 6.2.2 age adoption passing confidence
@codemirror/language 6.9.1 -> 6.10.3 age adoption passing confidence
@codemirror/lint 6.4.2 -> 6.8.2 age adoption passing confidence
@codemirror/search 6.5.4 -> 6.5.6 age adoption passing confidence
@codemirror/state 6.2.1 -> 6.4.1 age adoption passing confidence
@codemirror/view 6.21.2 -> 6.34.1 age adoption passing confidence

Release Notes

codemirror/autocomplete (@​codemirror/autocomplete)

v6.18.1

Compare Source

Bug fixes

Fix an issue where insertCompletionText would get confused about the length of the inserted text when it contained CRLF line breaks, and create an invalid selection.

Add Alt-Backtick as additional binding on macOS, where IME can take over Ctrl-Space.

v6.18.0

Compare Source

Bug fixes

Style the info element so that newlines are preserved, to make it easier to display multi-line info from a string source.

New features

When registering an abort handler for a completion query, you can now use the onDocChange option to indicate that your query should be aborted as soon as the document changes while it is running.

v6.17.0

Compare Source

Bug fixes

Fix an issue where completions weren't properly reset when starting a new completion through activateOnCompletion.

New features

CompletionContext objects now have a view property that holds the editor view when the query context has a view available.

v6.16.3

Compare Source

Bug fixes

Avoid adding an aria-autocomplete attribute to the editor when there are no active sources active.

v6.16.2

Compare Source

Bug fixes

Allow backslash-escaped closing braces inside snippet field names/content.

v6.16.1

Compare Source

Bug fixes

Fix a bug where multiple backslashes before a brace in a snippet were all removed.

v6.16.0

Compare Source

New features

The new activateOnCompletion option allows autocompletion to be configured to chain completion activation for some types of completions.

v6.15.0

Compare Source

New features

The new filterStrict option can be used to turn off fuzzy matching of completions.

v6.14.0

Compare Source

New features

Completion results can now define a map method that can be used to adjust position-dependent information for document changes.

v6.13.0

Compare Source

New features

Completions may now provide 'commit characters' that, when typed, commit the completion before inserting the character.

v6.12.0

Compare Source

Bug fixes

Make sure snippet completions also set userEvent to input.complete.

Fix a crash when the editor lost focus during an update and autocompletion was active.

Fix a crash when using a snippet that has only one field, but multiple instances of that field.

New features

The new activateOnTypingDelay option allows control over the debounce time before the completions are queried when the user types.

v6.11.1

Compare Source

Bug fixes

Fix a bug that caused typing over closed brackets after pressing enter to still not work in many situations.

v6.11.0

Compare Source

Bug fixes

Fix an issue that would prevent typing over closed brackets after starting a new line with enter.

New features

Additional elements rendered in completion options with addToOptions are now given access to the editor view.

v6.10.2

Compare Source

Bug fixes

Fix a bug that caused updateSyncTime to always delay the initial population of the tooltip.

v6.10.1

Compare Source

Bug fixes

Fix a bug where picking a selection with the mouse could use the wrong completion if the completion list was updated after being opened.

v6.10.0

Compare Source

New features

The new autocompletion configuration option updateSyncTime allows control over how long fast sources are held back waiting for slower completion sources.

v6.9.2

Compare Source

Bug fixes

Fix a bug in completeAnyWord that could cause it to generate invalid regular expressions and crash.

codemirror/commands (@​codemirror/commands)

v6.6.2

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

New features

The insertNewlineKeepIndent command inserts a newline along with the same indentation as the line before.

v6.4.0

Compare Source

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.

v6.3.3

Compare Source

Bug fixes

Fix an issue causing cursor motion commands to not dispatch a transaction when the change only affects cursor associativity.

v6.3.2

Compare Source

Bug fixes

Fix a regression that caused deleteCharBackward to sometimes delete a large chunk of text.

v6.3.1

Compare Source

Bug fixes

When undoing, store the selection after the undone change with the redo event, so that redoing restores it.

deleteCharBackward will no longer delete variant selector characters as separate characters.

codemirror/lang-css (@​codemirror/lang-css)

v6.3.0

Compare Source

New features

CSS autocompletion now completes @-keywords.

codemirror/lang-html (@​codemirror/lang-html)

v6.4.9

Compare Source

Bug fixes

Fix a bug in autoCloseTags that made tags not close when typing > after an attribute.

v6.4.8

Compare Source

Bug fixes

Complete attribute names after whitespace in a tag even when completion isn't explicitly triggered.

v6.4.7

Compare Source

Bug fixes

Parse script tags with application/json type as JSON syntax.

codemirror/lang-javascript (@​codemirror/lang-javascript)

v6.2.2

Compare Source

Bug fixes

Fix a bug that would cause self-closing JSX tags to have another closing tag inserted when typing the final '>'.

codemirror/language (@​codemirror/language)

v6.10.3

Compare Source

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

Compare Source

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

Compare Source

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.

v6.10.0

Compare Source

New features

The new bidiIsolates extension can be used to wrap syntactic elements where this is appropriate in an element that isolates their text direction, avoiding weird ordering of neutral characters on direction boundaries.

v6.9.3

Compare Source

Bug fixes

Fix an issue in StreamLanguage where it ran out of node type ids if you repeatedly redefined a language with the same token table.

v6.9.2

Compare Source

Bug fixes

Allow StreamParser tokens get multiple highlighting tags.

codemirror/lint (@​codemirror/lint)

v6.8.2

Compare Source

Bug fixes

Show lint markers for code replaced by a block widget.

When multiple linters are installed, start displaying results from ones that return quickly even if others are slow to return.

v6.8.1

Compare Source

Bug fixes

Make lint markers non-inclusive again, since having them that way causes more issues than it solves.

v6.8.0

Compare Source

New features

The new autoPanel option can be used to make the panel automatically appear when diagnostics are added and close when no diagnostics are left.

v6.7.1

Compare Source

Bug fixes

Don't perform an additional superfluous timed lint run after forceLinting has been called.

v6.7.0

Compare Source

New features

The renderMessage function is now called with the editor view as first argument.

v6.6.0

Compare Source

New features

The new hideOn configuration option can be used to control in what circumstances lint tooltips get hidden by state changes.

v6.5.0

Compare Source

Bug fixes

Make lint mark decorations inclusive, so that they are applied even if the marked content is replaced by a widget decoration.

New features

linter can now be called with null as source to only provide a configuration.

markerFilter and tooltipFilter function now get passed the current editor state.

codemirror/search (@​codemirror/search)

v6.5.6

Compare Source

Bug fixes

Make highlightSelectionMatches include whitespace in the selection in its matches.

Fix a bug that caused SearchCursor to return invalid ranges when matching astral chars that the the normalizer normalized to single-code-unit chars.

v6.5.5

Compare Source

Bug fixes

Fix a bug that caused codes like \n to be unescaped in strings inserted via replace placeholders like $&.

Use the keybinding Mod-Alt-g for gotoLine to the search keymap, to make it usable for people whose keyboard layout uses Alt/Option-g to type some character.

codemirror/state (@​codemirror/state)

v6.4.1

Compare Source

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.

v6.4.0

Compare Source

Bug fixes

When multiple ranges in a single range set overlap, put the smaller ones inside the bigger ones, so that overlapping decorations don't break up each other's elements when coming from the same source.

New features

Selection and selection range eq methods now support an optional argument that makes them also compare by cursor associativity.

The RangeSet.join function can be used to join multiple range sets together.

v6.3.3

Compare Source

Bug fixes

Fix an issue where Text.slice and Text.replace could return objects with incorrect length when the given from/to values were out of range for the text.

v6.3.2

Compare Source

Bug fixes

Make sure transactions cannot add multiple selections when allowMultipleSelections is false.

Fix a bug that caused Text.iterLines to not return empty lines at the end of the iterated ranges.

v6.3.1

Compare Source

Bug fixes

Give the tag property on FacetReader the type of the output type parameter to force TypeScript to infer the proper type when converting from Facet to FacetReader.

v6.3.0

Compare Source

New features

The new FacetReader type provides a way to export a read-only handle to a Facet.

codemirror/view (@​codemirror/view)

v6.34.1

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

Bug fixes

Fix a bug where EditContext-based editing could corrupt the document in some situations.

v6.28.3

Compare Source

Bug fixes

Fix an issue causing the IME interface to appear in the wrong spot on Chrome Windows.

v6.28.2

Compare Source

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

Compare Source

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

Compare Source

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 API to capture text input.

v6.27.0

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

Bug fixes

Fix accidental non-optional field in layer config objects.

v6.25.0

Compare Source

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

Compare Source

Bug fixes

Fix a crash that happens when hover tooltips are active during changes, introduced in 6.24.0.

v6.24.0

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/codemirror branch 5 times, most recently from e964828 to ba930bd Compare October 13, 2023 07:30
@renovate renovate bot force-pushed the renovate/codemirror branch 3 times, most recently from c502bd1 to f74cbe8 Compare October 24, 2023 15:47
@renovate renovate bot force-pushed the renovate/codemirror branch 2 times, most recently from a170369 to f3ecd6b Compare November 9, 2023 13:54
@renovate renovate bot force-pushed the renovate/codemirror branch 3 times, most recently from 461c450 to eb28951 Compare November 29, 2023 03:40
@renovate renovate bot force-pushed the renovate/codemirror branch 2 times, most recently from eb89ae5 to c279cd0 Compare December 8, 2023 22:51
@renovate renovate bot force-pushed the renovate/codemirror branch 2 times, most recently from bcd309a to 515c099 Compare January 24, 2024 11:11
@renovate renovate bot force-pushed the renovate/codemirror branch 2 times, most recently from 0fcd7ed to 937110f Compare February 2, 2024 14:12
@renovate renovate bot force-pushed the renovate/codemirror branch 2 times, most recently from 37f68fa to 5b1d1f0 Compare February 9, 2024 10:19
@renovate renovate bot force-pushed the renovate/codemirror branch 3 times, most recently from 93efb3a to fb6783e Compare February 20, 2024 16:26
@renovate renovate bot force-pushed the renovate/codemirror branch 3 times, most recently from c7ce225 to 9d912cf Compare March 6, 2024 11:53
@renovate renovate bot force-pushed the renovate/codemirror branch 5 times, most recently from 3406638 to 5fc001e Compare June 4, 2024 15:56
@renovate renovate bot force-pushed the renovate/codemirror branch 2 times, most recently from b9f568d to 9133903 Compare June 12, 2024 19:32
@renovate renovate bot force-pushed the renovate/codemirror branch 2 times, most recently from 419bf76 to 95994f5 Compare June 21, 2024 17:17
@renovate renovate bot force-pushed the renovate/codemirror branch 3 times, most recently from 98151a8 to 4d3c7b2 Compare July 3, 2024 16:31
@renovate renovate bot force-pushed the renovate/codemirror branch 2 times, most recently from 2c0fed5 to 5765999 Compare July 19, 2024 14:51
@renovate renovate bot force-pushed the renovate/codemirror branch 2 times, most recently from 81347d9 to 1c1a350 Compare July 29, 2024 14:04
@renovate renovate bot force-pushed the renovate/codemirror branch 3 times, most recently from 00c581b to fadd742 Compare August 12, 2024 08:08
@renovate renovate bot force-pushed the renovate/codemirror branch 2 times, most recently from 2bcb77a to 02989a9 Compare August 28, 2024 06:44
@renovate renovate bot force-pushed the renovate/codemirror branch 2 times, most recently from dbb3861 to 0de9fe9 Compare September 7, 2024 12:51
@renovate renovate bot force-pushed the renovate/codemirror branch 3 times, most recently from bce2705 to 1f8390c Compare September 19, 2024 17:29
@renovate renovate bot force-pushed the renovate/codemirror branch 2 times, most recently from d9d02e7 to 0718029 Compare September 25, 2024 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants