This repository was archived by the owner on May 3, 2024. It is now read-only.
chore(deps): update codemirror #57
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.19.3->0.20.30.19.0->0.19.20.19.3->0.20.00.19.0->0.19.10.19.0->0.19.40.19.1->0.19.90.19.4->0.19.80.19.0->0.19.20.19.1->0.20.10.19.1->0.20.00.19.3->0.20.40.19.2->0.20.20.19.0->0.20.30.19.1->0.19.40.19.1->0.19.90.19.1->0.20.10.19.0->0.20.00.19.6->0.20.7Release Notes
codemirror/autocomplete (@codemirror/autocomplete)
v0.20.3Compare Source
Bug fixes
Add an aria-label to the completion listbox.
Fix a regression that caused transactions generated for completion to not have a
userEventannotation.v0.20.2Compare Source
New features
The package now exports an
insertCompletionTexthelper that implements the default behavior for applying a completion.v0.20.1Compare Source
New features
The new
closeOnBluroption determines whether the completion tooltip is closed when the editor loses focus.CompletionResultobjects withfilter: falsemay now have agetMatchproperty that determines the matched range in the options.v0.20.0Compare Source
Breaking changes
CompletionResult.spanhas been renamed tovalidFor, 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.updatecan now be used to implement quick autocompletion updates in a synchronous way.The @codemirror/closebrackets package was merged into this one.
v0.19.15Compare Source
New features
The
selectedCompletionIndexfunction tells you the position of the currently selected completion.The new
setSelectionCompletionfunction creates a state effect that moves the selected completion to a given index.A completion's
infomethod may now return null to indicate that no further info is available.v0.19.14Compare Source
Bug fixes
Make the ARIA attributes added to the editor during autocompletion spec-compliant.
v0.19.13Compare 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.12Compare Source
Bug fixes
Fix completion navigation with PageUp/Down when the completion tooltip isn't part of the view DOM.
v0.19.11Compare 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.10Compare 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.9Compare 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.8Compare Source
Bug fixes
Give the completion tooltip a minimal width, and show ellipsis when completions overflow the tooltip width.
New features
autocompletionnow accepts anaboveCursoroption to make the completion tooltip show up above the cursor.v0.19.7Compare Source
Bug fixes
Make option deduplication less aggressive, so that options with different
typeorapplyfields don't get merged.v0.19.6Compare Source
Bug fixes
Fix an issue where parsing a snippet with a field that was labeled only by a number crashed.
v0.19.5Compare 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.4Compare 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.2Compare Source
Bug fixes
Remove quote characters from the default set of characters before which brackets are closed.
v0.19.1Compare 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.0Compare Source
Breaking changes
There is no longer a separate
commentKeymap. Those bindings are now part ofdefaultKeymap.Bug fixes
Make
cursorPageUpandcursorPageDownmove 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.8Compare Source
Bug fixes
deleteCharBackwardnow removes extending characters one at a time, rather than deleting the entire glyph at once.Alt-v is no longer bound in
emacsStyleKeymapand macOS'sstandardKeymap, because macOS doesn't bind it by default and it conflicts with some keyboard layouts.v0.19.7Compare 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
cursorPageUpandcursorPageDownnow scroll the view by the amount that the cursor moved.v0.19.6Compare 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.5Compare Source
New features
Adds an
insertBlankLinecommand which creates an empty line below the selection, and binds it to Mod-Enter in the default keymap.v0.19.4Compare Source
Bug fixes
Make commands that affect the editor's content check
state.readOnlyand return false when that is true.codemirror/comment (@codemirror/comment)
v0.19.1Compare Source
Bug fixes
The commenting commands now never do anything in a read-only editor.
Make
toggleCommentusetoggleBlockCommentPerLinewhen no line comment syntax is available.New features
Add a
toggleBlockCommentByLinecommand, which toggles commenting/uncommenting of entire selected lines.codemirror/fold (@codemirror/fold)
v0.19.4Compare Source
Bug fixes
Make sure the fold gutter is updated when the syntax tree changes.
v0.19.3Compare Source
New features
foldGutternow takes adomEventHandlersoption to register additional event handlers for the gutter.v0.19.2Compare Source
Bug fixes
Use more efficient line iteration in fold gutter.
v0.19.1Compare Source
New features
The
placeholderDOMoption now gets the view and an event handler function as arguments.codemirror/gutter (@codemirror/gutter)
v0.19.9Compare Source
New features
Gutter markers can now have a
destroymethod, which will be called when they are removed from the editor.v0.19.8Compare Source
Bug fixes
Fix a bug that causes gutters to disappear with some kinds of block widgets.
v0.19.7Compare Source
Bug fixes
Fix an issue where the gutter elements would be misaligned by the size of the top document padding.
v0.19.6Compare Source
Bug fixes
Optimizes gutter updates during scrolling by temporarily removing the gutters from the DOM during the update.
v0.19.5Compare Source
Bug fixes
The line number gutter will now properly redraw when its configuration changes.
New features
Gutters can now pass a
lineMarkerChangepredicate that checks when line markers should be redrawn.v0.19.4Compare Source
Bug fixes
Make sure the gutter resizes whenever the editor geometry changes.
v0.19.3Compare 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.2Compare Source
Bug fixes
Fix the
domEventHandlersoption tolineNumbers, which was entirely ignored before.codemirror/highlight (@codemirror/highlight)
v0.19.8Compare Source
New features
Highlight styles can now set a
themeTypeoption to make them only apply to dark or light themed editors.v0.19.7Compare Source
Bug fixes
Make
classHighlightStyleemit classes fortag.classNameandtags.definition(tags.propertyName). Follow precedence level renameNew features
Add a new highlighting tag
moduleKeyword.v0.19.6Compare Source
New features
Add two additional tags,
attributeNameandattributeValue, to make it easier to style XML/HTML languages in a specific way.v0.19.5Compare Source
New features
highlightTreenow takesfromandtoarguments to allow highlighting only a part of the tree.codemirror/history (@codemirror/history)
v0.19.2Compare 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.1Compare 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.1Compare Source
New features
localCompletionSource(included in the support extensions returned fromjavascript) now provides a way to complete locally-defined names.v0.20.0Compare Source
New features
The new
autoCloseTagsextension (included by default in thejavascriptlanguage extension whenjsxis configured) finishes JSX closing tags when you type a>or/character.v0.19.7Compare Source
v0.19.6Compare Source
Bug fixes
Remove accidentally released unfinished changes.
v0.19.5Compare Source
Bug fixes
Add the
functionhighlight modifier to variables used in tagged template expressions.v0.19.4Compare Source
Bug fixes
Fix highlighting of TypeScript private/public/protected keywords.
v0.19.3Compare Source
Bug fixes
Add styling for private properties.
v0.19.2Compare Source
New features
Use more specific highlighting tags for JSX attribute names and values.
codemirror/lang-json (@codemirror/lang-json)
v0.20.0Compare Source
Breaking changes
Update dependencies to 0.20.0
v0.19.2Compare Source
Bug fixes
Fix highlighting of
nulltokens.codemirror/lang-sql (@codemirror/lang-sql)
v0.20.4Compare Source
New features
Schema completion descriptions may now include dots in table names to indicate nested schemas.
v0.20.3Compare 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.2Compare Source
Bug fixes
Fix an infinite recursion bug in
schemaCompletionSource.v0.20.1Compare Source
Breaking changes
The
schemaCompletionandkeywordCompletionexports, which returned extensions, have been replaced withschemaCompletionSourceandkeywordCompletionSource, which return completion sources. The old exports will remain available until the next major version.v0.20.0Compare Source
Bug fixes
Fix autocompletion on columns when the table name is written with upper-case letters. Move to @lezer/highlight
v0.19.4Compare 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.2Compare Source
Bug fixes
List style-mod as a dependency.
v0.20.1Compare Source
Bug fixes
Make sure
allstyles in the CSS generated for aHighlightStylehave a lower precedence than the other rules defined for the style. Use a shorthand propertyv0.20.0Compare Source
Breaking changes
HighlightStyle.getis now calledhighlightingFor.HighlightStylesno longer function as extensions (to improve tree shaking), and must be wrapped withsyntaxHighlightingto add to an editor configuration.Languageobjects no longer have atopNodeproperty.New features
HighlightStyleanddefaultHighlightStylefrom the now-removed @codemirror/highlight package now live in this package.The new
forceParsingfunction 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.10Compare Source
Bug fixes
Autocompletion may now also trigger automatic indentation on input.
v0.19.9Compare 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.8Compare 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.7Compare 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.6Compare 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.5Compare Source
New features
The new function
syntaxTreeAvailablecan 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.4Compare Source
New features
LanguageDescription.ofnow takes an optional already-loaded extension.v0.19.3Compare Source
Bug fixes
Fix an issue where a parse that skipped content with
skipUntilInViewwould in some cases not be restarted when the range came into view.codemirror/lint (@codemirror/lint)
v0.20.3Compare Source
New features
Diagnostic objects may now have a
renderMessagemethod to render their message to the DOM.v0.20.2Compare Source
New features
The package now exports the
LintSourcefunction type.The new
markerFilterandtooltipFilteroptions tolinterandlintGutterallow more control over which diagnostics are visible and which have tooltips.v0.20.1Compare Source
Bug fixes
Hide lint tooltips when the document is changed.
v0.20.0Compare Source
Breaking changes
Update dependencies to 0.20.0
v0.19.6Compare 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.5Compare Source
Bug fixes
Make sure the lint gutter tooltips are positioned under their icon, even when the line is wrapped.
v0.19.4Compare 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
hoverTimeoption to the lint gutter. Change default hover time to 300v0.19.3Compare Source
New features
Export a function
lintGutterwhich 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.2Compare Source
Bug fixes
Fix a bug where reconfiguring the lint source didn't restart linting.
v0.19.1Compare 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
diagnosticCountmethod can now be used to determine whether there are active diagnostics.codemirror/matchbrackets (@codemirror/matchbrackets)
v0.19.4Compare Source
Bug fixes
The matching bracket styles no longer show up when the editor isn't focused.
v0.19.3Compare 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.2Compare 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.9Compare 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.8Compare Source
Bug fixes
Fix a bug where mapping a changeset through an empty set of changes would produce a new value.
v0.19.7Compare Source
Bug fixes
Fix an issue that caused the
sortoption toRangeSet.updateto have no effect.v0.19.6Compare Source
Bug fixes
Fix an issue where range sets that weren't mapped could cause
RangeSet.compareto miss changes.Fix a bug where a zero-length range, even when inclusive, was never mapped to cover any content.
v0.19.5Compare Source
New features
RangeSet.spansnow allows the iterator to have afilterPointmethod, which can determine which point ranges are ignored.v0.19.4Compare Source
Bug fixes
Make sure non-empty point ranges at the end of another point range are covered by the bigger range.
v0.19.3Compare Source
Bug fixes
Fix an issue in
RangeSet.comparewhere the interaction between spans and points sometimes caused points that had their wrapping spans changed to not be reported.v0.19.2Compare Source
Bug fixes
Fix a bug in
RangeSet.comparethat would cause it miss changes when range sets were identical but the content under them moved.Fix an issue where
RangeSet.eqwould consider rangesets equal even if they had a differing point range at the end of the compared range.codemirror/state (@codemirror/state)
v0.20.1Compare Source
New features
EditorView.phrasenow accepts additional arguments, which it will interpolate into the phrase in the place of$markers.v0.20.0Compare Source
Breaking changes
The deprecated precedence names
fallback,extend, andoverridewere 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.9Compare 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.8Compare Source
Bug fixes
Fix a bug where facet values with computed inputs could incorrectly retain their old value on reconfiguration.
v0.19.7Compare Source
Bug fixes
Avoid recomputing facets on state reconfiguration if that facet's inputs stayed precisely the same.
Selection ranges created with
EditorSelection.rangewill now have an assoc pointing at their anchor, when non-empty.v0.19.6Compare 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.5Compare Source
Bug fixes
Fix a bug that would cause dynamic facet values influenced by a state reconfiguration to not properly recompute.
v0.19.4Compare Source
Bug fixes
When reconfiguring a state, effects from the reconfiguring transaction can now be seen by newly added state fields.
v0.19.3Compare 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.2Compare Source
New features
The editor state now has a
readOnlyproperty with a matching facet to control its value.codemirror/theme-one-dark (@codemirror/theme-one-dark)
v0.20.0Compare Source
Breaking changes
Update dependencies to 0.20.0
v0.19.1Compare 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.7Compare 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.6Compare Source
Bug fixes
Make sure the editor re-measures itself when its attributes are updated.
v0.20.5Compare Source
Bug fixes
Fix an issue where gutter elements without any markers in them would not get the
cm-gutterElementclass assigned.Fix an issue where DOM event handlers registered by plugins were retained indefinitely, even after the editor was reconfigured.
v0.20.4Compare 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.3Compare Source
Bug fixes
Fix a bug where the input handling could crash on repeated (or held) backspace presses on Chrome Android.
v0.20.2Compare Source
New features
The new
hideOnoption tohoverTooltipallows more fine-grained control over when the tooltip should hide.v0.20.1Compare Source
Bug fixes
Remove debug statements that accidentally made it into 0.20.0.
Fix a regression in
moveVertically.v0.20.0Compare Source
Breaking changes
The deprecated interfaces
blockAtHeight,visualLineAtHeight,viewportLines,visualLineAt,scrollPosIntoView,scrollTo, andcenterOnwere 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
viewportLineBlocksto contain overlapping ranges.New features
The new
perLineTextDirectionfacet configures whether the editor reads text direction per line, or uses a single direction for the entire editor.EditorView.textDirectionAtreturns the direction around a given position.rectangularSelectionandcrosshairCursorfrom @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.48Compare 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.
This PR has been generated by Mend Renovate. View repository job log here.