chore: update codemirror
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| @codemirror/highlight | 0.19.7 -> 0.19.8 |
||
| @codemirror/lang-javascript | 0.19.7 -> 0.20.1 |
||
| @codemirror/state | 0.19.9 -> 0.20.1 |
||
| @codemirror/view | 0.19.47 -> 0.20.7 |
Release Notes
codemirror/highlight (@codemirror/highlight)
v0.19.8
New features
Highlight styles can now set a themeType option to make them only apply to dark or light themed editors.
codemirror/lang-javascript (@codemirror/lang-javascript)
v0.20.1
New features
localCompletionSource (included in the support extensions returned from javascript) now provides a way to complete locally-defined names.
v0.20.0
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.
codemirror/state (@codemirror/state)
v0.20.1
New features
EditorView.phrase now accepts additional arguments, which it will interpolate into the phrase in the place of $ markers.
v0.20.0
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.
codemirror/view (@codemirror/view)
v0.20.7
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
Bug fixes
Make sure the editor re-measures itself when its attributes are updated.
v0.20.5
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
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
Bug fixes
Fix a bug where the input handling could crash on repeated (or held) backspace presses on Chrome Android.
v0.20.2
New features
The new hideOn option to hoverTooltip allows more fine-grained control over when the tooltip should hide.
v0.20.1
Bug fixes
Remove debug statements that accidentally made it into 0.20.0.
Fix a regression in moveVertically.
v0.20.0
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
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 vim mode too much, the editor will now only activate the tab-to-move-focus escape hatch after an escape press that wasn't handled by an event handler.
Make sure the view measures itself before the page is printed.
Tweak types of view plugin defining functions to avoid TypeScript errors when the plugin value doesn't have any of the interface's properties.
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.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
Deploy Preview for es-eslint ready!
| Name | Link |
|---|---|
| Latest commit | f8aa2e9e59467947011132dbefe0a9621b6e747c |
| Latest deploy log | https://app.netlify.com/projects/es-eslint/deploys/6924a3921a4b310008b8abe6 |
| Deploy Preview | https://deploy-preview-760--es-eslint.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
Deploy Preview for new-eslint ready!
| Name | Link |
|---|---|
| Latest commit | f8aa2e9e59467947011132dbefe0a9621b6e747c |
| Latest deploy log | https://app.netlify.com/projects/new-eslint/deploys/6924a3924279b20008f5969f |
| Deploy Preview | https://deploy-preview-760--new-eslint.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
Deploy Preview for zh-hans-eslint ready!
| Name | Link |
|---|---|
| Latest commit | f8aa2e9e59467947011132dbefe0a9621b6e747c |
| Latest deploy log | https://app.netlify.com/projects/zh-hans-eslint/deploys/6924a392c37bc400087c525f |
| Deploy Preview | https://deploy-preview-760--zh-hans-eslint.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
Deploy Preview for ja-eslint ready!
| Name | Link |
|---|---|
| Latest commit | f8aa2e9e59467947011132dbefe0a9621b6e747c |
| Latest deploy log | https://app.netlify.com/projects/ja-eslint/deploys/6924a39202802100086e40f4 |
| Deploy Preview | https://deploy-preview-760--ja-eslint.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
Deploy Preview for hi-eslint ready!
| Name | Link |
|---|---|
| Latest commit | f8aa2e9e59467947011132dbefe0a9621b6e747c |
| Latest deploy log | https://app.netlify.com/projects/hi-eslint/deploys/6924a392169a3100087ab5bf |
| Deploy Preview | https://deploy-preview-760--hi-eslint.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
Deploy Preview for fr-eslint ready!
| Name | Link |
|---|---|
| Latest commit | f8aa2e9e59467947011132dbefe0a9621b6e747c |
| Latest deploy log | https://app.netlify.com/projects/fr-eslint/deploys/6924a392f7e6750008f87452 |
| Deploy Preview | https://deploy-preview-760--fr-eslint.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
Deploy Preview for pt-br-eslint ready!
| Name | Link |
|---|---|
| Latest commit | f8aa2e9e59467947011132dbefe0a9621b6e747c |
| Latest deploy log | https://app.netlify.com/projects/pt-br-eslint/deploys/6924a39202802100086e40f9 |
| Deploy Preview | https://deploy-preview-760--pt-br-eslint.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
Deploy Preview for de-eslint ready!
| Name | Link |
|---|---|
| Latest commit | f8aa2e9e59467947011132dbefe0a9621b6e747c |
| Latest deploy log | https://app.netlify.com/projects/de-eslint/deploys/6924a39256aae4000904647b |
| Deploy Preview | https://deploy-preview-760--de-eslint.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
This update breaks the playground, do not merge. We need someone to investigate.
It looks like we're several versions behind.
The code-explorer repository is using v6 of the codemirror package:
https://github.com/eslint/code-explorer/blob/main/package.json#L34-L39
"@codemirror/lang-css": "^6.3.1",
"@codemirror/lang-html": "^6.4.11",
"@codemirror/lang-javascript": "^6.2.4",
"@codemirror/lang-json": "^6.0.2",
"@codemirror/lang-markdown": "^6.4.0",
"@codemirror/language": "^6.11.3",
Also, the @codemirror/highlight package has been deprecated as of v0.20.0 (https://www.npmjs.com/package/@codemirror/highlight). I think this change would require a complete migration to v6.
👋 Hi! This issue is being addressed in pull request https://github.com/eslint/eslint.org/pull/831. Thanks, @Pixel998!