Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update CodeMirror to v6 (major) #2060

Closed
wants to merge 1 commit into from
Closed

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 13, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@codemirror/lang-markdown ^0.20.0 -> ^6.0.0 age adoption passing confidence
@codemirror/state ^0.20.0 -> ^6.0.0 age adoption passing confidence
@codemirror/theme-one-dark ^0.20.0 -> ^6.0.0 age adoption passing confidence
@codemirror/view ^0.20.0 -> ^6.0.0 age adoption passing confidence

Release Notes

codemirror/lang-markdown

v6.0.5

Compare Source

Bug fixes

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

v6.0.4

Compare Source

Bug fixes

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

v6.0.3

Compare Source

Bug fixes

Add a name value to the Markdown language object.

v6.0.2

Compare Source

Bug fixes

Improve insertNewlineContinueMarkup's behavior in a fenced code block.

v6.0.1

Compare Source

Bug fixes

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

v6.0.0

Compare Source

Breaking changes

Update dependencies to 6.0.0

codemirror/state

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 the to 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.

v6.1.0

Compare Source

Bug fixes

Refine change mapping to preserve insertions made by concurrent changes.

New features

The enables option to Facet.define may now take a function, which will be called with the facet value to create the extensions.

v6.0.1

Compare Source

Bug fixes

Fix a problem that caused effects' map methods to be called with an incorrect change set when filtering changes.

v6.0.0

Compare Source

Breaking changes

Update dependencies to 6.0.0

codemirror/theme-one-dark

v6.1.0

Compare Source

New features

Export a color object holding the colors used in the theme.

v6.0.0

Compare Source

Breaking changes

Update dependencies to 6.0.0

codemirror/view

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 by requestMeasure.

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 on TooltipView 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.

New features

TooltipView objects can now provide a destroy method to be called when the tooltip is removed.

v6.3.1

Compare Source

Bug fixes

Fix a crash when trying to scroll something into view in an editor that wasn't in the visible DOM.

Fix an issue where coordsAtPos returned the coordinates on the wrong side of a widget decoration wrapped in a mark decoration.

Fix an issue where content on long wrapped lines could fail to properly scroll into view.

Fix an issue where DOM change reading on Chrome Android could get confused when a transaction came in right after a beforeinput event for backspace, enter, or delete.

v6.3.0

Compare Source

Bug fixes

Reduce the amount of wrap-point jittering when scrolling through a very long wrapped line.

Fix an issue where scrolling to content that wasn't currently drawn due to being on a very long line would often fail to scroll to the right position.

Suppress double-space-adds-period behavior on Chrome Mac when it behaves weirdly next to widget.

New features

Key binding objects with an any property will now add handlers that are called for any key, within the ordering of the keybindings.

v6.2.5

Compare Source

Bug fixes

Don't override double/triple tap behavior on touch screen devices, so that the mobile selection menu pops up properly.

Fix an issue where updating the selection could crash on Safari when the editor was hidden.

v6.2.4

Compare Source

Bug fixes

Highlight the active line even when there is a selection. Prevent the active line background from obscuring the selection backdrop.

Fix an issue where elements with negative margins would confuse the editor's scrolling-into-view logic.

Fix scrolling to a specific position in an editor that has not been in view yet.

v6.2.3

Compare Source

Bug fixes

Fix a bug where cursor motion, when starting from a non-empty selection range, could get stuck on atomic ranges in some circumstances.

Avoid triggering Chrome Android's text-duplication issue when a period is typed in the middle of a word.

v6.2.2

Compare Source

Bug fixes

Don't reset the selection for selection change events that were suppressed by a node view.

v6.2.1

Compare Source

Bug fixes

Don't use the global document variable to track focus, since that doesn't work in another window/frame.

Fix an issue where key handlers that didn't return true were sometimes called twice for the same keypress.

Avoid editing glitches when using deletion keys like ctrl-d on iOS.

Properly treat characters from the 'Arabic Presentation Forms-A' Unicode block as right-to-left.

Work around a Firefox bug that inserts text at the wrong point for specific cross-line selections.

v6.2.0

Compare Source

Bug fixes

Fix a bug where posAtCoords would return the wrong results for positions to the right of wrapped lines.

New features

The new EditorView.setRoot method can be used when an editor view is moved to a new document or shadow root.

v6.1.4

Compare Source

Bug fixes

Make selection-restoration on focus more reliable.

v6.1.3

Compare Source

Bug fixes

Fix a bug where a document that contains only non-printing characters would lead to bogus text measurements (and, from those, to crashing).

Make sure differences between estimated and actual block heights don't cause visible scroll glitches.

v6.1.2

Compare Source

Bug fixes

Fix an issue where double tapping enter to confirm IME input and insert a newline on iOS would sometimes insert two newlines.

Fix an issue on iOS where a composition could get aborted if the editor scrolled on backspace.

v6.1.1

Compare Source

Bug fixes

Make highlightSpecialChars replace directional isolate characters by default.

The editor will now try to suppress browsers' native behavior of resetting the selection in the editable content when the editable element is focused (programmatically, with tab, etc).

Fix a CSS issue that made it possible, when the gutters were wide enough, for them to overlap with the content.

v6.1.0

Compare Source

New features

MatchDecorator now supports a decorate option that can be used to customize the way decorations are added for each match.

v6.0.3

Compare Source

Bug fixes

Fix a problem where posAtCoords could incorrectly return the start of the next line when querying positions between lines.

Fix an issue where registering a high-precedence keymap made keymap handling take precedence over other keydown event handlers.

Ctrl/Cmd-clicking can now remove ranges from a multi-range selection.

v6.0.2

Compare Source

Bug fixes

Fix a CSS issue that broke horizontal scroll width stabilization.

Fix a bug where defaultLineHeight could get an incorrect value in very narrow editors.

v6.0.1

Compare Source

Bug fixes

Avoid DOM selection corruption when the editor doesn't have focus but has selection and updates its content.

Fall back to dispatching by key code when a key event produces a non-ASCII character (so that Cyrillic and Arabic keyboards can still use bindings specified with Latin characters).

v6.0.0

Compare Source

New features

The new static EditorView.findFromDOM method can be used to retrieve an editor instance from its DOM structure.

Instead of passing a constructed state to the EditorView constructor, it is now also possible to inline the configuration options to the state in the view config object.


Configuration

πŸ“… Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).

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

β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

πŸ”• Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@vercel
Copy link

vercel bot commented Jun 13, 2022

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Updated
mdx βœ… Ready (Inspect) Visit Preview Jan 13, 2023 at 1:53PM (UTC)

@codecov-commenter
Copy link

codecov-commenter commented Jun 13, 2022

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage πŸ‘

Coverage data is based on head (e28ef39) compared to base (6667d7c).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #2060   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines         2064      2064           
=========================================
  Hits          2064      2064           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

β˜” View full report at Codecov.
πŸ“’ Do you have feedback about the report comment? Let us know in this issue.

@renovate renovate bot force-pushed the renovate/major-codemirror branch from e6c820f to e28ef39 Compare January 13, 2023 13:51
@wooorm wooorm closed this in #2234 Feb 8, 2023
wooorm pushed a commit that referenced this pull request Feb 8, 2023
Closes GH-2060.
Closes GH-2061.
Closes GH-2234.

Reviewed-by: Titus Wormer <tituswormer@gmail.com>
@wooorm wooorm added πŸ“¦ area/deps This affects dependencies πŸ’ͺ phase/solved Post is done πŸ•Έ area/website This affects the website labels Feb 8, 2023
@wooorm wooorm deleted the renovate/major-codemirror branch February 8, 2023 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
πŸ“¦ area/deps This affects dependencies πŸ•Έ area/website This affects the website πŸ’ͺ phase/solved Post is done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants