Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

chore(deps): update codemirror #57

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

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Nov 13, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@codemirror/autocomplete 0.19.3 -> 0.20.3 age adoption passing confidence
@codemirror/closebrackets 0.19.0 -> 0.19.2 age adoption passing confidence
@codemirror/commands 0.19.3 -> 0.20.0 age adoption passing confidence
@codemirror/comment 0.19.0 -> 0.19.1 age adoption passing confidence
@codemirror/fold 0.19.0 -> 0.19.4 age adoption passing confidence
@codemirror/gutter 0.19.1 -> 0.19.9 age adoption passing confidence
@codemirror/highlight 0.19.4 -> 0.19.8 age adoption passing confidence
@codemirror/history 0.19.0 -> 0.19.2 age adoption passing confidence
@codemirror/lang-javascript 0.19.1 -> 0.20.1 age adoption passing confidence
@codemirror/lang-json 0.19.1 -> 0.20.0 age adoption passing confidence
@codemirror/lang-sql 0.19.3 -> 0.20.4 age adoption passing confidence
@codemirror/language 0.19.2 -> 0.20.2 age adoption passing confidence
@codemirror/lint 0.19.0 -> 0.20.3 age adoption passing confidence
@codemirror/matchbrackets 0.19.1 -> 0.19.4 age adoption passing confidence
@codemirror/rangeset 0.19.1 -> 0.19.9 age adoption passing confidence
@codemirror/state 0.19.1 -> 0.20.1 age adoption passing confidence
@codemirror/theme-one-dark 0.19.0 -> 0.20.0 age adoption passing confidence
@codemirror/view 0.19.6 -> 0.20.7 age adoption passing confidence

Release Notes

codemirror/autocomplete (@​codemirror/autocomplete)

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.

v0.19.15

Compare Source

New features

The selectedCompletionIndex function tells you the position of the currently selected completion.

The new setSelectionCompletion function creates a state effect that moves the selected completion to a given index.

A completion's info method may now return null to indicate that no further info is available.

v0.19.14

Compare Source

Bug fixes

Make the ARIA attributes added to the editor during autocompletion spec-compliant.

v0.19.13

Compare Source

Bug fixes

Fix an issue where the completion tooltip stayed open if it was explicitly opened and the user backspaced past its start.

Stop snippet filling when a change happens across one of the snippet fields' boundaries.

v0.19.12

Compare Source

Bug fixes

Fix completion navigation with PageUp/Down when the completion tooltip isn't part of the view DOM.

v0.19.11

Compare Source

Bug fixes

Fix a bug that caused page up/down to only move the selection by two options in the completion tooltip.

v0.19.10

Compare Source

Bug fixes

Make sure the info tooltip is hidden when the selected option is scrolled out of view.

Fix a bug in the completion ranking that would sometimes give options that match the input by word start chars higher scores than appropriate.

Options are now sorted (ascending) by length when their match score is otherwise identical.

v0.19.9

Compare Source

Bug fixes

Fix an issue where info tooltips would be visible in an inappropriate position when there was no room to place them properly.

v0.19.8

Compare Source

Bug fixes

Give the completion tooltip a minimal width, and show ellipsis when completions overflow the tooltip width.

New features

autocompletion now accepts an aboveCursor option to make the completion tooltip show up above the cursor.

v0.19.7

Compare Source

Bug fixes

Make option deduplication less aggressive, so that options with different type or apply fields don't get merged.

v0.19.6

Compare Source

Bug fixes

Fix an issue where parsing a snippet with a field that was labeled only by a number crashed.

v0.19.5

Compare Source

Bug fixes

Make sure info tooltips don't stick out of the bottom of the page.

New features

The package exports a new function selectedCompletion, which can be used to find out which completion is currently selected.

Transactions created by picking a completion now have an annotation (pickedCompletion) holding the original completion.

v0.19.4

Compare Source

Bug fixes

Don't rely on the platform's highlight colors for the active completion, since those are inconsistent and may not be appropriate for the theme.

Fix incorrect match underline for some kinds of matched completions.

codemirror/closebrackets (@​codemirror/closebrackets)

v0.19.2

Compare Source

Bug fixes

Remove quote characters from the default set of characters before which brackets are closed.

v0.19.1

Compare Source

Bug fixes

The extension now tries to look at the syntax tree to figure out when you might be likely to be closing a string, and doesn't duplicate quotes in that case.

Don't close brackets when a composition has started, to avoid breaking dead key input.

codemirror/commands (@​codemirror/commands)

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.

v0.19.8

Compare Source

Bug fixes

deleteCharBackward now removes extending characters one at a time, rather than deleting the entire glyph at once.

Alt-v is no longer bound in emacsStyleKeymap and macOS's standardKeymap, because macOS doesn't bind it by default and it conflicts with some keyboard layouts.

v0.19.7

Compare Source

Bug fixes

Don't bind Alt-< and Alt-> on macOS by default, since those interfere with some keyboard layouts. Make cursorPageUp/Down scroll the view to keep the cursor in place

cursorPageUp and cursorPageDown now scroll the view by the amount that the cursor moved.

v0.19.6

Compare Source

Bug fixes

The standard keymap no longer overrides Shift-Delete, in order to allow the native behavior of that key to happen on platforms that support it.

v0.19.5

Compare Source

New features

Adds an insertBlankLine command which creates an empty line below the selection, and binds it to Mod-Enter in the default keymap.

v0.19.4

Compare Source

Bug fixes

Make commands that affect the editor's content check state.readOnly and return false when that is true.

codemirror/comment (@​codemirror/comment)

v0.19.1

Compare Source

Bug fixes

The commenting commands now never do anything in a read-only editor.

Make toggleComment use toggleBlockCommentPerLine when no line comment syntax is available.

New features

Add a toggleBlockCommentByLine command, which toggles commenting/uncommenting of entire selected lines.

codemirror/fold (@​codemirror/fold)

v0.19.4

Compare Source

Bug fixes

Make sure the fold gutter is updated when the syntax tree changes.

v0.19.3

Compare Source

New features

foldGutter now takes a domEventHandlers option to register additional event handlers for the gutter.

v0.19.2

Compare Source

Bug fixes

Use more efficient line iteration in fold gutter.

v0.19.1

Compare Source

New features

The placeholderDOM option now gets the view and an event handler function as arguments.

codemirror/gutter (@​codemirror/gutter)

v0.19.9

Compare Source

New features

Gutter markers can now have a destroy method, which will be called when they are removed from the editor.

v0.19.8

Compare Source

Bug fixes

Fix a bug that causes gutters to disappear with some kinds of block widgets.

v0.19.7

Compare Source

Bug fixes

Fix an issue where the gutter elements would be misaligned by the size of the top document padding.

v0.19.6

Compare Source

Bug fixes

Optimizes gutter updates during scrolling by temporarily removing the gutters from the DOM during the update.

v0.19.5

Compare Source

Bug fixes

The line number gutter will now properly redraw when its configuration changes.

New features

Gutters can now pass a lineMarkerChange predicate that checks when line markers should be redrawn.

v0.19.4

Compare Source

Bug fixes

Make sure the gutter resizes whenever the editor geometry changes.

v0.19.3

Compare Source

Bug fixes

Fix a CSS bug that caused gutters without an element on every line to not span the height of the editor (leading to issues with background color and pointer events).

v0.19.2

Compare Source

Bug fixes

Fix the domEventHandlers option to lineNumbers, which was entirely ignored before.

codemirror/highlight (@​codemirror/highlight)

v0.19.8

Compare Source

New features

Highlight styles can now set a themeType option to make them only apply to dark or light themed editors.

v0.19.7

Compare Source

Bug fixes

Make classHighlightStyle emit classes for tag.className and tags.definition(tags.propertyName). Follow precedence level rename

New features

Add a new highlighting tag moduleKeyword.

v0.19.6

Compare Source

New features

Add two additional tags, attributeName and attributeValue, to make it easier to style XML/HTML languages in a specific way.

v0.19.5

Compare Source

New features

highlightTree now takes from and to arguments to allow highlighting only a part of the tree.

codemirror/history (@​codemirror/history)

v0.19.2

Compare Source

Bug fixes

Redoing a change now puts the cursor right after the change, regardless of where the selection was when the change was undone.

v0.19.1

Compare Source

Bug fixes

Scroll the selection into view after undoing or redoing. Only combine typing and deletion events into a single history event

Avoid combining most types of transactions into a single history event, except for typing and deleting.

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

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.

v0.19.7

Compare Source

v0.19.6

Compare Source

Bug fixes

Remove accidentally released unfinished changes.

v0.19.5

Compare Source

Bug fixes

Add the function highlight modifier to variables used in tagged template expressions.

v0.19.4

Compare Source

Bug fixes

Fix highlighting of TypeScript private/public/protected keywords.

v0.19.3

Compare Source

Bug fixes

Add styling for private properties.

v0.19.2

Compare Source

New features

Use more specific highlighting tags for JSX attribute names and values.

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

v0.20.0

Compare Source

Breaking changes

Update dependencies to 0.20.0

v0.19.2

Compare Source

Bug fixes

Fix highlighting of null tokens.

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

v0.20.4

Compare Source

New features

Schema completion descriptions may now include dots in table names to indicate nested schemas.

v0.20.3

Compare Source

Bug fixes

Fix a bug where the slash at the end of block comments wasn't considered part of the comment token.

v0.20.2

Compare Source

Bug fixes

Fix an infinite recursion bug in schemaCompletionSource.

v0.20.1

Compare Source

Breaking changes

The schemaCompletion and keywordCompletion exports, which returned extensions, have been replaced with schemaCompletionSource and keywordCompletionSource, which return completion sources. The old exports will remain available until the next major version.

v0.20.0

Compare Source

Bug fixes

Fix autocompletion on columns when the table name is written with upper-case letters. Move to @​lezer/highlight

v0.19.4

Compare Source

Bug fixes

Remove duplicate keywords/types in dialect configurations.

Fix a bug that caused characters directly before a space to be tokenized incorrectly.

codemirror/language (@​codemirror/language)

v0.20.2

Compare Source

Bug fixes

List style-mod as a dependency.

v0.20.1

Compare Source

Bug fixes

Make sure all styles in the CSS generated for a HighlightStyle have a lower precedence than the other rules defined for the style. Use a shorthand property

v0.20.0

Compare Source

Breaking changes

HighlightStyle.get is now called highlightingFor.

HighlightStyles no longer function as extensions (to improve tree shaking), and must be wrapped with syntaxHighlighting to add to an editor configuration.

Language objects no longer have a topNode property.

New features

HighlightStyle and defaultHighlightStyle from the now-removed @​codemirror/highlight package now live in this package.

The new forceParsing function can be used to run the parser forward on an editor view.

The exports that used to live in @​codemirror/matchbrackets are now exported from this package.

The @​codemirror/fold package has been merged into this one.

The exports from the old @​codemirror/stream-parser package now live in this package.

v0.19.10

Compare Source

Bug fixes

Autocompletion may now also trigger automatic indentation on input.

v0.19.9

Compare Source

Bug fixes

Make sure nodes that end at the end of a partial parse aren't treated as valid fold targets.

Fix an issue where the parser sometimes wouldn't reuse parsing work done in the background on transactions.

v0.19.8

Compare Source

Bug fixes

Fix an issue that could cause indentation logic to use the wrong line content when indenting multiple lines at once.

v0.19.7

Compare Source

Bug fixes

Fix an issue where the parse worker could incorrectly stop working when the parse tree has skipped gaps in it.

v0.19.6

Compare Source

Bug fixes

Fixes an issue where the background parse work would be scheduled too aggressively, degrading responsiveness on a newly-created editor with a large document.

Improve initial highlight for mixed-language editors and limit the amount of parsing done on state creation for faster startup.

v0.19.5

Compare Source

New features

The new function syntaxTreeAvailable can be used to check if a fully-parsed syntax tree is available up to a given document position.

The module now exports syntaxParserRunning, which tells you whether the background parser is still planning to do more work for a given editor view.

v0.19.4

Compare Source

New features

LanguageDescription.of now takes an optional already-loaded extension.

v0.19.3

Compare Source

Bug fixes

Fix an issue where a parse that skipped content with skipUntilInView would in some cases not be restarted when the range came into view.

codemirror/lint (@​codemirror/lint)

v0.20.3

Compare Source

New features

Diagnostic objects may now have a renderMessage method to render their message to the DOM.

v0.20.2

Compare Source

New features

The package now exports the LintSource function type.

The new markerFilter and tooltipFilter options to linter and lintGutter allow more control over which diagnostics are visible and which have tooltips.

v0.20.1

Compare Source

Bug fixes

Hide lint tooltips when the document is changed.

v0.20.0

Compare Source

Breaking changes

Update dependencies to 0.20.0

v0.19.6

Compare Source

Bug fixes

Fix a bug where hovering over the icons in the lint gutter would sometimes fail to show a tooltip or show the tooltip for another line.

v0.19.5

Compare Source

Bug fixes

Make sure the lint gutter tooltips are positioned under their icon, even when the line is wrapped.

v0.19.4

Compare Source

Bug fixes

Fix an issue where an outdated marker could stick around on the lint gutter after all diagnostics were removed.

New features

Add a hoverTime option to the lint gutter. Change default hover time to 300

v0.19.3

Compare Source

New features

Export a function lintGutter which returns an extension that installs a gutter marking lines with diagnostics.

The package now exports the effect used to update the diagnostics (setDiagnosticsEffect).

v0.19.2

Compare Source

Bug fixes

Fix a bug where reconfiguring the lint source didn't restart linting.

v0.19.1

Compare Source

Bug fixes

Prevent decorations that cover just a line break from being invisible by showing a widget instead of range for them.

New features

The diagnosticCount method can now be used to determine whether there are active diagnostics.

codemirror/matchbrackets (@​codemirror/matchbrackets)

v0.19.4

Compare Source

Bug fixes

The matching bracket styles no longer show up when the editor isn't focused.

v0.19.3

Compare Source

Bug fixes

Fix an issue where, for some kinds of trees, the extension would crash on an attempt to create an empty decoration.

v0.19.2

Compare Source

Bug fixes

Properly match tokens even if they are not the immediate inner syntax node around the given position (for example XML tags).

Make the default matching bracket styles use a background color, to be less invasive.

codemirror/rangeset (@​codemirror/rangeset)

v0.19.9

Compare Source

Bug fixes

Fix an issue where points that are entirely covered by a point coming before them could be returend by a span iterator when it started directly at the point's position.

v0.19.8

Compare Source

Bug fixes

Fix a bug where mapping a changeset through an empty set of changes would produce a new value.

v0.19.7

Compare Source

Bug fixes

Fix an issue that caused the sort option to RangeSet.update to have no effect.

v0.19.6

Compare Source

Bug fixes

Fix an issue where range sets that weren't mapped could cause RangeSet.compare to miss changes.

Fix a bug where a zero-length range, even when inclusive, was never mapped to cover any content.

v0.19.5

Compare Source

New features

RangeSet.spans now allows the iterator to have a filterPoint method, which can determine which point ranges are ignored.

v0.19.4

Compare Source

Bug fixes

Make sure non-empty point ranges at the end of another point range are covered by the bigger range.

v0.19.3

Compare Source

Bug fixes

Fix an issue in RangeSet.compare where the interaction between spans and points sometimes caused points that had their wrapping spans changed to not be reported.

v0.19.2

Compare Source

Bug fixes

Fix a bug in RangeSet.compare that would cause it miss changes when range sets were identical but the content under them moved.

Fix an issue where RangeSet.eq would consider rangesets equal even if they had a differing point range at the end of the compared range.

codemirror/state (@​codemirror/state)

v0.20.1

Compare Source

New features

EditorView.phrase now accepts additional arguments, which it will interpolate into the phrase in the place of $ markers.

v0.20.0

Compare Source

Breaking changes

The deprecated precedence names fallback, extend, and override were removed from the library.

Bug fixes

Fix a bug where, if an extension value occurs multiple times, its lowest, rather than highest precedence is used.

Fix an issue where facets with computed inputs would unneccesarily have their outputs recreated on state reconfiguration.

Fix a bug in the order in which new values for state fields and facets were computed, which could cause dynamic facets to hold the wrong value in some situations.

New features

The exports from @​codemirror/rangeset now live in this package.

The exports from @​codemirror/text now live in this package.

v0.19.9

Compare Source

Bug fixes

Mapping a non-empty selection range now always puts any newly inserted text on the sides of the range outside of the mapped version.

v0.19.8

Compare Source

Bug fixes

Fix a bug where facet values with computed inputs could incorrectly retain their old value on reconfiguration.

v0.19.7

Compare Source

Bug fixes

Avoid recomputing facets on state reconfiguration if that facet's inputs stayed precisely the same.

Selection ranges created with EditorSelection.range will now have an assoc pointing at their anchor, when non-empty.

v0.19.6

Compare Source

Bug fixes

Fix a bug that caused facet compare functions to be called with an invalid value in some situations.

Fix a bug that caused dynamic facet values to be incorrectly kept unchanged when reconfiguration changed one of their dependencies.

v0.19.5

Compare Source

Bug fixes

Fix a bug that would cause dynamic facet values influenced by a state reconfiguration to not properly recompute.

v0.19.4

Compare Source

Bug fixes

When reconfiguring a state, effects from the reconfiguring transaction can now be seen by newly added state fields.

v0.19.3

Compare Source

New features

The precedence levels (under Prec) now have more generic names, because their 'meaningful' names were entirely inappropriate in many situations.

v0.19.2

Compare Source

New features

The editor state now has a readOnly property with a matching facet to control its value.

codemirror/theme-one-dark (@​codemirror/theme-one-dark)

v0.20.0

Compare Source

Breaking changes

Update dependencies to 0.20.0

v0.19.1

Compare Source

Bug fixes

Give tooltips a somewhat lighter background so that they don't blend into the editor background.

codemirror/view (@​codemirror/view)

v0.20.7

Compare Source

Bug fixes

Fix an issue on Chrome Android where the DOM could fail to display the actual document after backspace.

Avoid an issue on Chrome Android where DOM changes were sometimes inappropriately replace by a backspace key effect due to spurious beforeinput events.

Fix a problem where the content element's width didn't cover the width of the actual content.

Work around a bug in Chrome 102 which caused wheel scrolling of the editor to be interrupted every few lines.

v0.20.6

Compare Source

Bug fixes

Make sure the editor re-measures itself when its attributes are updated.

v0.20.5

Compare Source

Bug fixes

Fix an issue where gutter elements without any markers in them would not get the cm-gutterElement class assigned.

Fix an issue where DOM event handlers registered by plugins were retained indefinitely, even after the editor was reconfigured.

v0.20.4

Compare Source

Bug fixes

Prevent Mac-style behavior of inserting a period when the user inserts two spaces.

Fix an issue where the editor would sometimes not restore the DOM selection when refocused with a selection identical to the one it held when it lost focus.

v0.20.3

Compare Source

Bug fixes

Fix a bug where the input handling could crash on repeated (or held) backspace presses on Chrome Android.

v0.20.2

Compare Source

New features

The new hideOn option to hoverTooltip allows more fine-grained control over when the tooltip should hide.

v0.20.1

Compare Source

Bug fixes

Remove debug statements that accidentally made it into 0.20.0.

Fix a regression in moveVertically.

v0.20.0

Compare Source

Breaking changes

The deprecated interfaces blockAtHeight, visualLineAtHeight, viewportLines, visualLineAt, scrollPosIntoView, scrollTo, and centerOn were removed from the library.

All decorations are now provided through EditorView.decorations, and are part of a single precedence ordering. Decoration sources that need access to the view are provided as functions.

Atomic ranges are now specified through a facet (EditorView.atomicRanges).

Scroll margins are now specified through a facet (EditorView.scrollMargins).

Plugin fields no longer exist in the library (and are replaced by facets holding function values).

This package no longer re-exports the Range type from @​codemirror/state.

Bug fixes

Fix a bug where zero-length block widgets could cause viewportLineBlocks to contain overlapping ranges.

New features

The new perLineTextDirection facet configures whether the editor reads text direction per line, or uses a single direction for the entire editor. EditorView.textDirectionAt returns the direction around a given position.

rectangularSelection and crosshairCursor from @​codemirror/rectangular-selection were merged into this package.

This package now exports the tooltip functionality that used to live in @​codemirror/tooltip.

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

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

v0.19.48

Compare Source

Bug fixes

Fix an issue where DOM syncing could crash when a DOM node was moved from a parent to a child node (via widgets reusing existing nodes).

To avoid interfering with things like a v


Configuration

📅 Schedule: Branch creation - "before 3am on Monday" in timezone Europe/Berlin, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, 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.

@vercel
Copy link

vercel bot commented Nov 13, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
query-console-demo ❌ Failed (Inspect) Nov 30, 2022 at 11:30AM (UTC)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants