-
Notifications
You must be signed in to change notification settings - Fork 3
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
chore(deps): update codemirror #41
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/codemirror
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables for this repo. you could follow readme for more information |
@rultor please, try to merge |
@renovate[bot] @yegor256 Oops, I failed. You can see the full log here (spent 11s)
|
renovate
bot
force-pushed
the
renovate/codemirror
branch
3 times, most recently
from
April 18, 2023 01:16
00709cc
to
95333c7
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
3 times, most recently
from
April 25, 2023 10:38
578c1d0
to
2f7485e
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
2 times, most recently
from
May 3, 2023 11:24
10d2ed0
to
3b28f53
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
2 times, most recently
from
May 13, 2023 19:25
ff49fa8
to
87f3df1
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
4 times, most recently
from
May 23, 2023 10:50
22fd48c
to
11e8abc
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
2 times, most recently
from
June 13, 2023 01:28
b0a9a3c
to
3867d28
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
from
June 14, 2023 01:26
3867d28
to
f88cc72
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
from
June 24, 2023 01:42
f88cc72
to
980cfd2
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
2 times, most recently
from
July 7, 2023 01:44
58eee50
to
75c56ad
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
2 times, most recently
from
July 19, 2023 02:45
852c11d
to
24e50d3
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
from
August 1, 2023 01:24
24e50d3
to
1790763
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
from
August 17, 2023 01:02
1790763
to
8d76a49
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
2 times, most recently
from
August 29, 2023 01:05
f9e6abd
to
4b03233
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
2 times, most recently
from
October 7, 2023 01:05
5cfdc73
to
6d7ad6a
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
2 times, most recently
from
October 19, 2023 01:06
af20162
to
9c987f5
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
from
October 25, 2023 01:06
9c987f5
to
e102ff8
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
from
November 4, 2023 01:06
e102ff8
to
83d417f
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
2 times, most recently
from
November 29, 2023 01:10
e8ab9dc
to
36614c8
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
3 times, most recently
from
December 14, 2023 01:09
19cb39c
to
149d625
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
from
December 29, 2023 00:58
149d625
to
c3120da
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
2 times, most recently
from
January 31, 2024 01:06
f5dfd2f
to
6b61940
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
from
February 3, 2024 00:16
6b61940
to
774af6c
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
from
February 10, 2024 01:04
774af6c
to
f3037b3
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
from
February 20, 2024 01:05
f3037b3
to
1d0275f
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
2 times, most recently
from
March 7, 2024 00:55
98fd3f4
to
695fa5f
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
from
March 15, 2024 01:06
695fa5f
to
76f764c
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
from
March 29, 2024 01:06
76f764c
to
7cf6662
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
2 times, most recently
from
April 13, 2024 00:56
edc722c
to
cac0439
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
2 times, most recently
from
April 20, 2024 01:08
c0f6e2f
to
ba20b19
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
2 times, most recently
from
May 1, 2024 01:13
6ce7b15
to
fc3283b
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
from
May 16, 2024 01:11
fc3283b
to
b08401a
Compare
renovate
bot
force-pushed
the
renovate/codemirror
branch
from
May 24, 2024 01:11
b08401a
to
4b0141d
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
6.0.1
->6.5.0
6.2.1
->6.10.1
6.0.0
->6.8.0
6.1.0
->6.4.1
6.1.2
->6.26.3
Release Notes
codemirror/commands (@codemirror/commands)
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
anddeleteLineBoundaryBackward
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
andselectLineBoundaryLeft
/Right
commands allow directional motion to line boundaries.codemirror/language (@codemirror/language)
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.v6.9.1
Compare Source
Bug fixes
Indentation now works a lot better in mixed-language documents that interleave the languages in a complex way.
Code folding is now able to pick the right foldable syntax node when the line end falls in a mixed-parsing language that doesn't match the target node.
v6.9.0
Compare Source
Bug fixes
Make
getIndentation
return null, rather than 0, when there is no syntax tree available.New features
The new
preparePlaceholder
option tocodeFolding
makes it possible to display contextual information in a folded range placeholder widget.v6.8.0
Compare Source
New features
The new
baseIndentFor
method inTreeIndentContext
can be used to find the base indentation for an arbitrary node.v6.7.0
Compare Source
New features
Export
DocInput
class for feeding editor documents to a Lezer parser.v6.6.0
Compare Source
New features
Syntax-driven language data queries now support sublanguages, which make it possible to return different data for specific parts of the tree produced by a single language.
v6.5.0
Compare Source
Bug fixes
Make indentation for stream languages more reliable by having
StringStream.indentation
return overridden indentations from the indent context.New features
The
toggleFold
command folds or unfolds depending on whether there's an existing folded range on the current line.indentUnit
now accepts any (repeated) whitespace character, not just spaces and tabs.v6.4.0
Compare Source
New features
The
bracketMatchingHandle
node prop can now be used to limit bracket matching behavior for larger nodes to a single subnode (for example the tag name of an HTML tag).v6.3.2
Compare Source
Bug fixes
Fix a bug that caused
ensureSyntaxTree
to return incomplete trees when using a viewport-aware parser likeStreamLanguage
.v6.3.1
Compare Source
Bug fixes
Make syntax-based folding include syntax nodes that start right at the end of a line as potential fold targets.
Fix the
indentService
protocol to allow a distinction between declining to handle the indentation and returning null to indicate the line has no definite indentation.v6.3.0
Compare Source
New features
HighlightStyle
objects now have aspecs
property holding the tag styles that were used to define them.Language
objects now have aname
field holding the language name.codemirror/lint (@codemirror/lint)
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
andtooltipFilter
function now get passed the current editor state.v6.4.2
Compare Source
Bug fixes
Make sure scrolling diagnostic into view in the panel works when the editor is scaled.
v6.4.1
Compare Source
Bug fixes
Fix a crash that could occur when a view was reconfigured in a way that removed the lint extension.
v6.4.0
Compare Source
New features
Diagnostics can now use
"hint"
as a severity level.Diagnostics can now set a
markClass
property to add an additional CSS class to the text marked by the diagnostic.v6.3.0
Compare Source
New features
A new
previousDiagnostic
command can be used to move back through the active diagnostics.v6.2.2
Compare Source
Bug fixes
Make sure lint gutter tooltips are properly closed when the content of their line changes.
v6.2.1
Compare Source
Bug fixes
The
linter
function now eagerly includes all lint-related extensions, rather than appending them to the configuration as-needed, so that turning off linting by clearing the compartment that contains it works properly.v6.2.0
Compare Source
New features
The new
needsRefresh
option tolinter
makes it possible to cause linting to be recalculated for non-document state changes.v6.1.1
Compare Source
Bug fixes
Give lint action buttons a pointer cursor style.
Fix a bug that caused diagnostic action callbacks to be called twice when their button was clicked.
v6.1.0
Compare Source
New features
The new
forEachDiagnostic
function can be used to iterate over the diagnostics in an editor state.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
andText.replace
could return objects with incorrectlength
when the givenfrom
/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 fromFacet
toFacetReader
.v6.3.0
Compare Source
New features
The new
FacetReader
type provides a way to export a read-only handle to aFacet
.v6.2.1
Compare Source
Bug fixes
Fix an issue that could cause
RangeSet.compare
to miss changes in the set of active ranges around a point range.v6.2.0
Compare Source
New features
EditorSelection.range
now accepts an optional 4th argument to specify the bidi level of the range's head position.v6.1.4
Compare Source
Bug fixes
Fix a bug that caused the
openStart
value passed to span iterators to be incorrect around widgets in some circumstances.v6.1.3
Compare Source
Bug fixes
Avoid unnecessary calls to computed facet getters when a state is reconfigured but no dependencies of the computed facet change.
Fix an infinite loop in
RangeSet.eq
when theto
parameter isn't given.v6.1.2
Compare Source
Bug fixes
Fix an issue where, when multiple transaction extenders took effect, only the highest-precedence one was actually included in the transaction.
v6.1.1
Compare Source
Bug fixes
Fix a bug in range set span iteration that would cause decorations to be inappropriately split in some situations.
codemirror/view (@codemirror/view)
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 toEditorView
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
, andresize
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.
v6.21.2
Compare Source
Bug fixes
Fix a regression that broke dragging text from inside the editor.
v6.21.1
Compare Source
Bug fixes
Fix a bug that could corrupt the DOM view for specific changes involving newlines and mark decorations.
v6.21.0
Compare Source
Bug fixes
Fix a bug that could cause zero-length widgets at the start of a line to be left in the view even after they were removed.
New features
RectangleMarker
's dimension properties are now public.v6.20.2
Compare Source
Bug fixes
Fix an issue in the way the DOM selection is being read that could break backspacing of widgets on Android.
Fix a bug where the editor could incorrectly computate its transform scale when it was small.
v6.20.1
Compare Source
Bug fixes
Fix a crash in plugin event handlers after dynamic reconfiguration.
Fix an issue where, on Chrome, tooltips would no longer use fixed positioning.
v6.20.0
Compare Source
Bug fixes
Fix an issue that caused
repositionTooltips
to crash when it was called on an editor without tooltips.Fix an issue that caused the tooltip system to leave empty nodes in the DOM when an editor using the
parent
option totooltips
is destroyed.Fix a bug that regression mouse interaction with the area of a fixed-size editor that isn't covered by the content.
Fix some issues with the way
moveVertically
behaved for positions on line wrap points.Fix a bug that could cause the document DOM to be incorrectly updated on some types of viewport changes.
New features
The new
getDrawSelectionConfig
function returns thedrawSelection
configuration for a given state.v6.19.0
Compare Source
Bug fixes
Make sure the drop cursor is properly cleaned up even when another extension handles the drop event.
Fix a crash related to non-inclusive replacing block decorations.
New features
The new
EditorView.domEventObservers
(and the corresponding option to view plugins) allows you to register functions that are always called for an event, regardless of whether other handlers handled it.v6.18.1
Compare Source
Bug fixes
Fix an issue where the editor duplicated text when the browser moved content into the focused text node on composition.
Make sure
widgetMarker
is called for gutters on lines covered by a block replace decoration.Fix an issue where the cursor could be shown in a position that doesn't allow a cursor when the selection is in a block widget.
v6.18.0
Compare Source
New features
The new
EditorView.scaleX
andscaleY
properties return the CSS-transformed scale of the editor (or 1 when not scaled).The editor now supports being scaled with CSS.
v6.17.1
Compare Source
Bug fixes
Don't close the hover tooltip when the pointer moves over empty space caused by line breaks within the hovered range.
Fix a bug where on Chrome Android, if a virtual keyboard was slow to apply a change, the editor could end up dropping it.
Work around an issue where line-wise copy/cut didn't work in Firefox because the browser wasn't firing those events when nothing was selected.
Fix a crash triggered by the way some Android IME systems update the DOM.
Fix a bug that caused replacing a word by an emoji on Chrome Android to be treated as a backspace press.
v6.17.0
Compare Source
Bug fixes
Fix a bug that broke hover tooltips when hovering over a widget.
New features
The new
EditorView.cspNonce
facet can be used to provide a Content Security Policy nonce for the library's generated CSS.The new
EditorView.bidiIsolatedRanges
can be used to inform the editor about ranges styled as Unicode bidirection isolates, so that it can compute the character order correctly.EditorView.dispatch
now also accepts an array of transactions to be applied together in a single view update.The new
dispatchTransactions
option tonew EditorView
now replaces the old (deprecated but still supported)dispatch
option in a way that allows multiple transactions to be applied in one update.Input handlers are now passed an additional argument that they can use to retrieve the default transaction that would be applied for the insertion.
v6.16.0
Compare Source
Bug fixes
Fix an issue that made the gutter not stick in place when the editor was in a right-to-left context.
New features
The new
EditorView.coordsForChar
method returns the client rectangle for a given character in the editor.v6.15.3
Compare Source
Bug fixes
Fix another crash regression for compositions before line breaks.
v6.15.2
Compare Source
Bug fixes
Fix the check that made sure compositions are dropped when the selection is moved.
v6.15.1
Compare Source
Bug fixes
Fix a regression that could cause the composition content to be drawn incorrectly.
v6.15.0
Compare Source
Bug fixes
Fix dragging a selection from inside the current selection on macOS.
Fix an issue that could cause the scroll position to jump wildly
Don't try to scroll fixed-positioned elements into view by scrolling their parent elements.
Fix a bug that caused the cursor to be hidden when showing a placeholder that consisted of the empty string.
Resolve some issues where composition could incorrectly affect nearby replaced content.
New features
Key bindings can now set a
stopPropagation
field to cause the view to stop the key event propagation when it considers the event handled.v6.14.1
Compare Source
Bug fixes
Fix an issue where scrolling up through line-wrapped text would sometimes cause the scroll position to pop down.
Fix an issue where clicking wouldn't focus the editor on Firefox when it was in an iframe and already the active element of the frame.
Fix a bug that could cause compositions to be disrupted because their surrounding DOM was repurposed for some other piece of content.
Fix a bug where adding content to the editor could inappropriately move the scroll position.
Extend detection of Enter presses on Android to
beforeInput
events with an"insertLineBreak"
type.v6.14.0
Compare Source
Bug fixes
When dragging text inside the editor, look at the state of Ctrl (or Alt on macOS) at the time of the drop, not the start of drag, to determine whether to move or copy the text.
Fix an issue where having a bunch of padding on lines could cause vertical cursor motion and
posAtCoords
to jump over lines.New features
Block widget decorations can now be given an
inlineOrder
option to make them appear in the same ordering as surrounding inline widgets.v6.13.2
Compare Source
Bug fixes
Fix an issue in scroll position stabilization for changes above the visible, where Chrome already does this natively and we ended up compensating twice.
v6.13.1
Compare Source
Bug fixes
Fix a bug where the cursor would in some circumstances be drawn on the wrong side of an inline widget.
Fix an issue where
scrollPastEnd
could cause the scroll position of editors that weren't in view to be changed unnecessarily.v6.13.0
Compare Source
Bug fixes
Forbid widget decoration side values bigger than 10000, to prevent them from breaking range ordering invariants.
Fix a bug where differences between widgets' estimated and actual heights could cause the editor to inappropriately move the scroll position.
Avoid another situation in which composition that inserts line breaks could corrupt the editor DOM.
New features
Inline widgets may now introduce line breaks, if they report this through the
WidgetType.lineBreaks
property.v6.12.0
Compare Source
Bug fixes
Remove an accidentally included
console.log
.New features
EditorViewConfig.dispatch
is now passed the view object as a second argument.v6.11.3
Compare Source
Bug fixes
Make sure pointer selection respects
EditorView.atomicRanges
.Preserve DOM widgets when their decoration type changes but they otherwise stay in the same place.
Fix a bug in
drawSelection
that could lead to invisible or incorrect selections for a blank line below a block widget.v6.11.2
Compare Source
Bug fixes
Fix a bug where the
crosshairCursor
extension could, when non-native key events were fired, trigger disruptive and needless view updates.Fix an Android issue where backspacing at the front of a line with widget decorations could replace those decorations with their text content.
Respect scroll margins when scrolling the target of drag-selection into view.
Validate selection offsets reported by the browser, to work around Safari giving us invalid values in some cases.
v6.11.1
Compare Source
Bug fixes
Don't preserve the DOM around a composition that spans multiple lines.
v6.11.0
Compare Source
New features
Gutters now support a
widgetMarker
option that can be used to add markers next to block widgets.v6.10.1
Compare Source
Bug fixes
Limit cursor height in front of custom placeholder DOM elements.
v6.10.0
Compare Source
Bug fixes
Fix a crash in
drawSelection
when a measured position falls on a position that doesn't have corresponding screen coordinates.Work around unhelpful interaction observer behavior that could cause the editor to not notice it was visible.
Give the cursor next to a line-wrapped placeholder a single-line height.
Make sure drop events below the editable element in a fixed-height editor get handled properly.
New features
Widget decorations can now define custom
coordsAtPos
methods to control the way the editor computes screen positions at or in the widget.v6.9.6
Compare Source
Bug fixes
Fix an issue where, when escape was pressed followed by a key that the editor handled, followed by tab, the tab would still move focus.
Fix an issue where, in some circumstances, the editor would ignore text changes at the end of a composition.
Allow inline widgets to be updated to a different length via
updateDOM
.v6.9.5
Compare Source
Bug fixes
Avoid disrupting the composition in specific cases where Safari invasively changes the DOM structure in the middle of a composition.
Fix a bug that prevented
destroy
being called on hover tooltips.Fix a bug where the editor could take focus when content changes required it to restore the DOM selection.
Fix height layout corruption caused by a division by zero.
Make sure styles targeting the editor's focus status are specific enough to not cause them to apply to editors nested inside another focused editor. This will require themes to adjust their selection background styles to match the new specificity.
v6.9.4
Compare Source
Bug fixes
Make the editor scroll while dragging a selection near its sides, even if the cursor isn't outside the scrollable element.
Fix a bug that interrupted composition after widgets in some circumstances on Firefox.
Make sure the last change in a composition has its user event set to
input.type.compose
, even if thecompositionend
event fires before the changes are applied.Make it possible to remove additional selection ranges by clicking on them with ctrl/cmd held, even if they aren't cursors.
Keep widget buffers between widgets and compositions, since removing them confuses IME on macOS Firefox.
Fix a bug where, for DOM changes that put the selection in the middle of the changed range, the editor incorrectly set its selection state.
Fix a bug where
coordsAtPos
could return a coordinates before the line break when querying a line-wrapped position with a positiveside
.v6.9.3
Compare Source
Bug fixes
Work around a Firefox issue that caused
coordsAtPos
to return rectangles with the full line height on empty lines.Opening a context menu by clicking below the content element but inside the editor now properly shows the browser's menu for editable elements.
Fix an issue that broke composition (especially of Chinese IME) after widget decorations.
Fix an issue that would cause the cursor to jump around during compositions inside nested mark decorations.
v6.9.2
Compare Source
Bug fixes
Work around a Firefox CSS bug that caused cursors to stop blinking in a scrolled editor.
Fix an issue in
drawSelection
where the selection extended into the editor's padding.Fix pasting of links copied from iOS share sheet.
v6.9.1
Compare Source
Bug fixes
Improve the way
posAtCoords
picks the side of a widget to return by comparing the coordinates the center of the widget.Fix an issue where transactions created for the
focusChangeEffect
facet were sometimes not dispatched.v6.9.0
Compare Source
Bug fixes
Fix an issue where inaccurate estimated vertical positions could cause the viewport to not converge in line-wrapped editors.
Don't suppress double-space to period conversion when autocorrect is enabled.
Make sure the measuring code notices when the scaling of the editor is changed, and does a full measure in that case.
New features
The new
EditorView.focusChangeEffect
facet can be used to dispatch a state effect when the editor is focused or blurred.v6.8.1
Compare Source
Bug fixes
Fix an issue where tooltips that have their height reduced have their height flicker when scrolling or otherwise interacting with the editor.
v6.8.0
Compare Source
Bug fixes
Fix a regression that caused clicking on the scrollbar to move the selection.
Fix an issue where focus or blur event handlers that dispatched editor transactions could corrupt the mouse selection state.
Fix a CSS regression that prevented the drop cursor from being positioned properly.
New features
WidgetType.updateDOM
is now passed the editor view object.v6.7.3
Compare Source
Bug fixes
Fix a bug in
posAtCoords
that could cause incorrect results for positions to the left of a wrapped line.v6.7.2
Compare Source
Bug fixes
Fix a regression where the cursor didn't restart its blink cycle when moving it with the pointer.
Even without a
key
property, measure request objects that are already scheduled will not be scheduled again byrequestMeasure
.Fix an issue where keymaps incorrectly interpreted key events that used Ctrl+Alt modifiers to simulate AltGr on Windows.
Fix a bug where line decorations with a different
class
property would be treated as equal.Fix a bug that caused
drawSelection
to not notice when it was reconfigured.Fix a crash in the gutter extension caused by sharing of mutable arrays.
Fix a regression that caused touch selection on mobile platforms to not work in an uneditable editor.
Fix a bug where DOM events on the boundary between lines could get assigned to the wrong line.
v6.7.1
Compare Source
Bug fixes
Make the editor properly scroll when moving the pointer out of it during drag selection.
Fix a regression where clicking below the content element in an editor with its own height didn't focus the editor.
v6.7.0
Compare Source
Bug fixes
Make the editor notice widget height changes to automatically adjust its height information.
Fix an issue where widget buffers could be incorrectly omitted after empty lines.
Fix an issue in content redrawing that could cause
coordsAtPos
to return incorrect results.New features
The static
RectangleMarker.forRange
method exposes the logic used by the editor to draw rectangles covering a selection range.Layers can now provide a
destroy
function to be called when the layer is removed.The new
highlightWhitespace
extension makes spaces and tabs in the editor visible.The
highlightTrailingWhitespace
extension can be used to make trailing whitespace stand out.v6.6.0
Compare Source
New features
The
layer
function can now be used to define extensions that draw DOM elements over or below the document text.Tooltips that are bigger than the available vertical space for them will now have their height set so that they don't stick out of the window. The new
resize
property onTooltipView
can be used to opt out of this behavior.v6.5.1
Compare Source
Bug fixes
Fix a bug that caused marked unnecessary splitting of mark decoration DOM elements in some cases.
v6.5.0
Compare Source
Bug fixes
Fix an issue where key bindings were activated for the wrong key in some situations with non-US keyboards.
New features
A tooltip's
positioned
callback is now passed the available space for tooltips.v6.4.2
Compare Source
Bug fixes
Typing into a read-only editor no longer moves the cursor.
Fix an issue where hover tooltips were closed when the mouse was moved over them if they had a custom parent element.
Fix an issue where the editor could end up displaying incorrect height measurements (typically after initializing).
v6.4.1
Compare Source
Bug fixes
Fix an issue where coordinates next to replaced widgets were returned incorrectly, causing the cursor to be drawn in the wrong place.
Update the
crosshairCursor
state on every mousemove event.Avoid an issue in the way that the editor enforces cursor associativity that could cause the cursor to get stuck on single-character wrapped lines.
v6.4.0
Compare Source
Bug fixes
Avoid an issue where
scrollPastEnd
makes a single-line editor have a vertical scrollbar.Work around a Chrome bug where it inserts a newline when you press space at the start of a wrapped line.
Align
rectangularSelection
's behavior with other popular editors by making it create cursors at the end of lines that are too short to touch the rectangle.Fix an issue where coordinates on mark decoration boundaries were sometimes taken from the wrong side of the position.
Prevent scrolling artifacts caused by attempts to scroll stuff into view when the editor isn't being displayed.
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.
This PR has been generated by Mend Renovate. View repository job log here.