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

fix(dependencies): update codemirror editor packages to v6 (major) #333

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 15, 2022

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@codemirror/autocomplete ^0.19.15 -> ^6.0.0 age adoption passing confidence
@codemirror/commands ^0.19.8 -> ^6.0.0 age adoption passing confidence
@codemirror/lang-javascript ^0.19.7 -> ^6.0.0 age adoption passing confidence
@codemirror/lang-json ^0.19.2 -> ^6.0.0 age adoption passing confidence
@codemirror/lang-markdown ^0.19.6 -> ^6.0.0 age adoption passing confidence
@codemirror/lang-python ^0.19.5 -> ^6.0.0 age adoption passing confidence
@codemirror/lang-sql ^0.19.4 -> ^6.0.0 age adoption passing confidence
@codemirror/lang-xml ^0.19.2 -> ^6.0.0 age adoption passing confidence
@codemirror/legacy-modes ^0.19.1 -> ^6.0.0 age adoption passing confidence
@codemirror/search ^0.19.10 -> ^6.0.0 age adoption passing confidence
@codemirror/state ^0.19.9 -> ^6.0.0 age adoption passing confidence
@codemirror/view ^0.19.48 -> ^6.0.0 age adoption passing confidence

Release Notes

codemirror/autocomplete (@​codemirror/autocomplete)

v6.18.3

Compare Source

Bug fixes

Backspacing to the start of the completed range will no longer close the completion tooltip when it was triggered implicitly by typing the character before that range.

v6.18.2

Compare Source

Bug fixes

Don't immediately show synchronously updated completions when there are some sources that still need to return.

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.

v6.9.1

Compare Source

Bug fixes

Make sure the cursor is scrolled into view after inserting completion text.

Make sure scrolling completions into view doesn't get confused when the tooltip is scaled.

v6.9.0

Compare Source

New features

Completions may now provide a displayLabel property that overrides the way they are displayed in the completion list.

v6.8.1

Compare Source

Bug fixes

acceptCompletion now returns false (allowing other handlers to take effect) when the completion popup is open but disabled.

v6.8.0

Compare Source

New features

The result of Completion.info may now include a destroy method that will be called when the tooltip is removed.

v6.7.1

Compare Source

Bug fixes

Fix a bug that cause incorrect ordering of completions when some results covered input text and others didn't.

v6.7.0

Compare Source

New features

The new hasNextSnippetField and hasPrevSnippetField functions can be used to figure out if the snippet-field-motion commands apply to a given state.

v6.6.1

Compare Source

Bug fixes

Fix a bug that made the editor use the completion's original position, rather than its current position, when changes happened in the document while a result was active.

v6.6.0

Compare Source

Bug fixes

Fix a bug in insertCompletionText that caused it to replace the wrong range when a result set's to fell after the cursor.

New features

Functions returned by snippet can now be called without a completion object.

v6.5.1

Compare Source

Bug fixes

Keep completions open when interaction with an info tooltip moves focus out of the editor.

v6.5.0

Compare Source

Bug fixes

When closeBrackets skips a bracket, it now generates a change that overwrites the bracket.

Replace the entire selected range when picking a completion with a non-cursor selection active.

New features

Completions can now provide a section field that is used to group them into sections.

The new positionInfo option can be used to provide custom logic for positioning the info tooltips.

v6.4.2

Compare Source

Bug fixes

Fix a bug where the apply method created by snippet didn't add a pickedCompletion annotation to the transactions it created.

v6.4.1

Compare Source

Bug fixes

Don't consider node names in trees that aren't the same language as the one at the completion position in ifIn and ifNotIn.

Make sure completions that exactly match the input get a higher score than those that don't (so that even if the latter has a score boost, it ends up lower in the list).

v6.4.0

Compare Source

Bug fixes

Fix an issue where the extension would sometimes try to draw a disabled dialog at an outdated position, leading to plugin crashes.

New features

A tooltipClass option to autocompletion can now be used to add additional CSS classes to the completion tooltip.

v6.3.4

Compare Source

Bug fixes

Fix an issue where completion lists could end up being higher than the tooltip they were in.

v6.3.3

Compare Source

Bug fixes

Set an explicit box-sizing style on completion icons so CSS resets don't mess them up.

Allow closing braces in templates to be escaped with a backslash.

v6.3.2

Compare Source

Bug fixes

Fix a regression that could cause the completion dialog to stick around when it should be hidden.

v6.3.1

Compare Source

Bug fixes

Fix a regression where transactions for picking a completion (without custom apply method) no longer had the pickedCompletion annotation.

Reduce flickering for completion sources without validFor info by temporarily showing a disabled tooltip while the completion updates.

Make sure completion info tooltips are kept within the space provided by the tooltipSpace option.

v6.3.0

Compare Source

New features

Close bracket configuration now supports a stringPrefixes property that can be used to allow autoclosing of prefixed strings.

v6.2.0

Compare Source

New features

Autocompletion now takes an interactionDelay option that can be used to control the delay between the time where completion opens and the time where commands like acceptCompletion affect it.

v6.1.1

Compare Source

Bug fixes

Fix a bug that prevented transactions produced by deleteBracketPair from being marked as deletion user events.

Improve positioning of completion info tooltips so they are less likely to stick out of the screen on small displays.

v6.1.0

Compare Source

New features

You can now provide a compareCompletions option to autocompletion to influence the way completions with the same match score are sorted.

The selectOnOpen option to autocompletion can be used to require explicitly selecting a completion option before acceptCompletion does anything.

v6.0.4

Compare Source

Bug fixes

Remove a leftover console.log in bracket closing code.

v6.0.3

Compare Source

Bug fixes

Fix a bug that caused closeBrackets to not close quotes when at the end of a syntactic construct that starts with a similar quote.

v6.0.2

Compare Source

Bug fixes

Declare package dependencies as peer dependencies as an attempt to avoid duplicated package issues.

v6.0.1

Compare Source

Bug fixes

Support escaping ${ or #{ in snippets.

v6.0.0

Compare Source

Bug fixes

Scroll the cursor into view when inserting a snippet.

v0.20.3

Compare Source

Bug fixes

Add an aria-label to the completion listbox.

Fix a regression that caused transactions generated for completion to not have a userEvent annotation.

v0.20.2

Compare Source

New features

The package now exports an insertCompletionText helper that implements the default behavior for applying a completion.

v0.20.1

Compare Source

New features

The new closeOnBlur option determines whether the completion tooltip is closed when the editor loses focus.

CompletionResult objects with filter: false may now have a getMatch property that determines the matched range in the options.

v0.20.0

Compare Source

Breaking changes

CompletionResult.span has been renamed to validFor, and may now hold a function as well as a regular expression.

Bug fixes

Remove code that dropped any options beyond the 300th one when matching and sorting option lists.

Completion will now apply to all cursors when there are multiple cursors.

New features

CompletionResult.update can now be used to implement quick autocompletion updates in a synchronous way.

The @​codemirror/closebrackets package was merged into this one.

codemirror/commands (@​codemirror/commands)

v6.7.1

Compare Source

Bug fixes

Change toggleBlockCommentByLine to not affect lines with the selection end right at their start.

v6.7.0

Compare Source

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

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.

v6.3.0

Compare Source

Bug fixes

Make it possible for selectParentSyntax to jump out of or into a syntax tree overlay.

Make Cmd-Backspace and Cmd-Delete on macOS delete to the next line wrap point, not the start/end of the line.

New features

The new deleteLineBoundaryForward and deleteLineBoundaryBackward commands delete to the start/end of the line or the next line wrapping point.

v6.2.5

Compare Source

Bug fixes

Make insertNewlineAndIndent properly count indentation for tabs when copying over the previous line's indentation.

The various sub-word motion commands will now use Intl.Segmenter, when available, to stop at CJK language word boundaries.

Fix a bug in insertNewlineAndIndent that would delete text between brackets if it had no corresponding AST node.

v6.2.4

Compare Source

Bug fixes

The by-subword motion commands now properly treat dashes, underscores, and similar as subword separators.

v6.2.3

Compare Source

Bug fixes

Block commenting the selection no longer includes indentation on the first line.

v6.2.2

Compare Source

Bug fixes

Fix a bug where line commenting got confused when commenting a range that crossed language boundaries.

v6.2.1

Compare Source

Bug fixes

Keep cursor position stable in cursorPageUp/cursorPageDown when there are panels or other scroll margins active.

Make sure toggleComment doesn't get thrown off by local language nesting, by fetching the language data for the start of the selection line.

v6.2.0

Compare Source

New features

The new joinToEvent history configuration option allows you to provide custom logic that determines whether a new transaction is added to an existing history event.

v6.1.3

Compare Source

Bug fixes

Preserve selection bidi level when extending the selection, to prevent shift-selection from getting stuck in some kinds of bidirectional text.

v6.1.2

Compare Source

Bug fixes

Fix a bug that caused deletion commands on non-empty ranges to incorrectly return false and do nothing, causing the editor to fall back to native behavior.

v6.1.1

Compare Source

Bug fixes

Make sure the selection endpoints are moved out of atomic ranges when applying a deletion command to a non-empty selection.

v6.1.0

Compare Source

Bug fixes

Prevent native behavior on Ctrl/Cmd-ArrowLeft/ArrowRight bindings, so that browsers with odd bidi behavior won't do the wrong thing at start/end of line.

Cmd-ArrowLeft/Right on macOS now moves the cursor in the direction of the arrow even in right-to-left content.

New features

The new cursorLineBoundaryLeft/Right and selectLineBoundaryLeft/Right commands allow directional motion to line boundaries.

v6.0.1

Compare Source

Bug fixes

Announce to the screen reader when the selection is deleted.

Also bind Ctrl-Shift-z to redo on Linux.

v6.0.0

Compare Source

Bug fixes

Fix a bug where by-page selection commands sometimes moved one line too far.

v0.20.0

Compare Source

Breaking changes

There is no longer a separate commentKeymap. Those bindings are now part of defaultKeymap.

Bug fixes

Make cursorPageUp and cursorPageDown move by window height when the editor is higher than the window.

Make sure the default behavior of Home/End is prevented, since it could produce unexpected results on macOS.

New features

The exports from @​codemirror/comment are now available in this package.

The exports from the @​codemirror/history package are now available from this package.

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 '>'.

v6.2.1

Compare Source

Bug fixes

autoCloseTags now generates two separate transactions, so that the completion can be undone separately.

v6.2.0

Compare Source

New features

Export a typescriptSnippets array and include TypeScript keyword completions in the default support extension when in TypeScript mode.

v6.1.9

Compare Source

Bug fixes

Make sure scopeCompletionSource doesn't try to complete property names that aren't simple identifier (such as numeric indices).

v6.1.8

Compare Source

Bug fixes

Stop completing keywords after . tokens.

v6.1.7

Compare Source

Bug fixes

Fix overeager JSX tag closing inside attribute values and in self-closing tags.

v6.1.6

Compare Source

Bug fixes

Fix a bug that allowed autoCloseTags to close JSX tags in JavaScript context.

v6.1.5

Compare Source

Bug fixes

Make TypeScript object type syntax foldable.

v6.1.4

Compare Source

Bug fixes

Make sure code in JSX context can be commented correctly.

v6.1.3

Compare Source

Bug fixes

Fix auto-closing of JSX fragments.

v6.1.2

Compare Source

Bug fixes

Automatic tag closing in JSX now works for namespaced and member-expression tag names.

v6.1.1

Compare Source

Bug fixes

Make completionPath handle ?. syntax.

v6.1.0

Compare Source

New features

The completionPath helper can now be used to find the object path to complete at a given position.

scopeCompletionSource provides a completion source based on a scope object.

v6.0.2

Compare Source

Bug fixes

Fix the source field in ESLint diagnostics to properly hold "eslint".

Fix (non-)auto indentation in template strings and comments.

v6.0.1

Compare Source

Bug fixes

Avoid completing variables/keywords in property or definition positions.

Fix a bug that broke local variable completion if JavaScript was parsed an overlay in an outer language.

v6.0.0

Compare Source

Breaking changes

Update dependencies to 6.0.0

v0.20.1

Compare Source

New features

localCompletionSource (included in the support extensions returned from javascript) now provides a way to complete locally-defined names.

v0.20.0

Compare Source

New features

The new autoCloseTags extension (included by default in the javascript language extension when jsx is configured) finishes JSX closing tags when you type a > or / character.

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

v6.0.1

Compare Source

Bug fixes

Make sure the language object has a name.

v6.0.0

Compare Source

Breaking changes

Update dependencies to 6.0.0

v0.20.0

Compare Source

Breaking changes

Update dependencies to 0.20.0

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

v6.3.1

Compare Source

Bug fixes

Fix an issue where insertNewlineContinueMarkup didn't work with the cursor directly after an HTML tag.

v6.3.0

Compare Source

New features

The new htmlTagLanguage option allows client code to configure which language is used to parse HTML tags in the document.

v6.2.5

Compare Source

Bug fixes

Disable folding for list nodes (since it will shadow the folding on the first list item).

v6.2.4

Compare Source

Bug fixes

Starting at the third list item, insertNewlineContinueMarkup will now keep the tightness of the list, and only require two presses to clear an empty list item.

v6.2.3

Compare Source

Bug fixes

Support code folding for GFM tables.

v6.2.2

Compare Source

Bug fixes

Fix a bug in insertNewlineContinueMarkup that caused it to put the cursor in the wrong place when the editor's line break was more than one character long.

v6.2.1

Compare Source

Bug fixes

Make insertNewlineContinueMarkup and deleteMarkupBackward use tabs for indentation when appropriate.

v6.2.0

Compare Source

New features

The markdown package now installs a completion source that completes HTML tags when in Markdown context.

v6.1.1

Compare Source

Bug fixes

Fix the declaration of comentTokens language data for Markdown.

Fix a bug in deleteMarkupBackward that would cause it to delete pieces of continued paragraphs below list item markers.

v6.1.0

Compare Source

New features

Add support for folding entire sections from the header.

v6.0.5

Compare Source

Bug fixes

Make sure task lists are indented correctly even when deeply nested.

v6.0.4

Compare Source

Bug fixes

Fix an issue where nested task lists were indented too deeply.

v6.0.3

Compare Source

Bug fixes

Add a name value to the Markdown language object.

v6.0.2

Compare Source

Bug fixes

Improve insertNewlineContinueMarkup's behavior in a fenced code block.

v6.0.1

Compare Source

Bug fixes

Ignore text after whitespace in code block metadata, when determining which language the block is.

v6.0.0

Compare Source

Breaking changes

Update dependencies to 6.0.0

v0.20.1

Compare Source

New features

The codeLanguages option to markdown may now be a function from an info string to a language.

v0.20.0

Compare Source

New features

insertNewlineContinueMarkup can now continue task lists. Move highlighting information into @​lezer/markdown

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

v6.1.6

Compare Source

Bug fixes

Improve the way indentation for the current body is preserved when inenting new lines.

v6.1.5

Compare Source

Bug fixes

Properly indent else: when attached to a for or while statement.

v6.1.4

Compare Source

Bug fixes

Explicitly declare dependencies on @​lezer/common and @​codemirror/state

v6.1.3

Compare Source

Bug fixes

Fix a bug where blocks started after a wrapped argument list or similar construct were indented too far.

v6.1.2

Compare Source

Bug fixes

Don't indent lines after a dedented comment line.

v6.1.1

Compare Source

Bug fixes

Remove leftover log statements.

v6.1.0

Compare Source

New features

The globalCompletion completion source (included in the language support returned from python()) completes standard Python globals and keywords.

Export a localCompletionSource function that completes locally defined variables. Included in the support extensions returned from python().

v6.0.4

Compare Source

Bug fixes

Make sure the language object has a name.

v6.0.3

Compare Source

Bug fixes

Add proper indentation handling of else clauses in try statements.

v6.0.2

Compare Source

Bug fixes

Allow prefixed strings to be closed by closeBrackets.

v6.0.1

Compare Source

Bug fixes

Fix (non-)auto indentation in template strings and comments.

v6.0.0

Compare Source

Breaking changes

Update dependencies to 6.0.0

v0.20.0

Compare Source

Bug fixes

Add folding information for set and tuple expressions.

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

v6.8.0

Compare Source

New features

The new keywordCompletion option can be used to define what kind of completions are generated for keywords.

v6.7.1

Compare Source

Bug fixes

Remove single-letter words from the list of Postgres keywords, since they interfere with alias-based autocompletion.

v6.7.0

Compare Source

New features

Dialects can now disable quoting of identifiers containing upper-case characters with the caseInsensitiveIdentifiers option.

v6.6.5

Compare Source

Bug fixes

Fix a bug that broke tokenizing of e'\n'-style strings.

v6.6.4

Compare Source

Bug fixes

Make statement folding leave the entire first line visible.

Fix a null dereference in schema-based autocompletion.

v6.6.3

Compare Source

Bug fixes

Fix a bug where Postgres-style dollar-quoted strings were enabled for all dialects, and the doubleDollarQuotedStrings options was ignored.

v6.6.2

Compare Source

Bug fixes

Properly support tags in PostgreSQL 4073 quoted strings.

v6.6.1

Compare Source

Bug fixes

Fix an issue that caused completions to be missing when using the defaultSchema option.

v6.6.0

Compare Source

Bug fixes

Don't tokenize identifiers after periods as anything but plain identifiers.

New features

The schema option now allows nested objects to define multiple levels of completions, as well as self completion options for specific levels. The old format (using tables/schemas) continues to work but is deprecated.

[


Configuration

📅 Schedule: Branch creation - "before 12pm on Wednesday" in timezone 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.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • 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 changed the title fix(dependencies): update codemirror editor packages to v6 (major) fix(Dependencies): update CodeMirror editor packages to v6 (major) Jun 27, 2022
@renovate renovate bot changed the title fix(Dependencies): update CodeMirror editor packages to v6 (major) fix(dependencies): update codemirror editor packages to v6 (major) Jun 28, 2022
@renovate renovate bot force-pushed the renovate/major-codemirror-editor-packages branch 2 times, most recently from fc19f05 to 35927ed Compare August 8, 2022 02:42
@renovate renovate bot force-pushed the renovate/major-codemirror-editor-packages branch 2 times, most recently from 4e07b1b to e0beb61 Compare September 9, 2022 07:28
@renovate renovate bot force-pushed the renovate/major-codemirror-editor-packages branch from e0beb61 to 37c0877 Compare October 26, 2022 10:42
@renovate renovate bot force-pushed the renovate/major-codemirror-editor-packages branch from 37c0877 to 2eaf8c2 Compare October 21, 2023 03:47
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