mdx icon indicating copy to clipboard operation
mdx copied to clipboard

Update CodeMirror to v6 (major)

Open renovate[bot] opened this issue 3 years ago • 2 comments

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.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.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.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, click this checkbox.

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

renovate[bot] avatar Jun 13 '22 00:06 renovate[bot]

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)

vercel[bot] avatar Jun 13 '22 00:06 vercel[bot]

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage :thumbsup:

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.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov-commenter avatar Jun 13 '22 00:06 codecov-commenter