Socket
Socket
Sign inDemoInstall

@codemirror/view

Package Overview
Dependencies
Maintainers
2
Versions
189
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/view - npm Package Versions

1
19

0.19.15

Diff

Changelog

Source

0.19.15 (2021-11-09)

Bug fixes

Fix a bug where the editor would think it was invisible when the document body was given screen height and scroll behavior.

Fix selection reading inside a shadow root on iOS.

marijn
published 0.19.14 •

Changelog

Source

0.19.14 (2021-11-07)

Bug fixes

Fix an issue where typing into a read-only editor would move the selection.

Fix slowness when backspace is held down on iOS.

marijn
published 0.19.13 •

Changelog

Source

0.19.13 (2021-11-06)

Bug fixes

Fix a bug where backspace, enter, and delete would get applied twice on iOS.

marijn
published 0.19.12 •

Changelog

Source

0.19.12 (2021-11-04)

Bug fixes

Make sure the workaround for the lost virtual keyboard on Chrome Android also works on slower phones. Slight style change in beforeinput handler

Avoid failure cases in viewport-based rendering of very long lines.

marijn
published 0.19.11 •

Changelog

Source

0.19.11 (2021-11-03)

Breaking changes

EditorView.scrollPosIntoView has been deprecated. Use the EditorView.scrollTo effect instead.

New features

The new EditorView.centerOn effect can be used to scroll a given range to the center of the view.

marijn
published 0.19.10 •

Changelog

Source

0.19.10 (2021-11-02)

Bug fixes

Don't crash when IntersectionObserver fires its callback without any records. Try to handle some backspace issues on Chrome Android

Using backspace near uneditable widgets on Chrome Android should now be more reliable.

Work around a number of browser bugs by always rendering zero-width spaces around in-content widgets, so that browsers will treat the positions near them as valid cursor positions and not try to run composition across widget boundaries.

Work around bogus composition changes created by Chrome Android after handled backspace presses.

Work around an issue where tapping on an uneditable node in the editor would sometimes fail to show the virtual keyboard on Chrome Android.

Prevent translation services from translating the editor content. Show direction override characters as special chars by default

specialChars will now, by default, replace direction override chars, to mitigate https://trojansource.codes/ attacks.

New features

The editor view will, if parent is given but root is not, derive the root from the parent element.

Line decorations now accept a class property to directly add DOM classes to the line.

marijn
published 0.19.9 •

Changelog

Source

0.19.9 (2021-10-01)

Bug fixes

Fix an issue where some kinds of reflows in the surrounding document could move unrendered parts of the editor into view without the editor noticing and updating its viewport.

Fix an occasional crash in the selection drawing extension.

marijn
published 0.19.8 •

Changelog

Source

0.19.8 (2021-09-26)

Bug fixes

Fix a bug that could, on DOM changes near block widgets, insert superfluous line breaks.

Make interacting with a destroyed editor view do nothing, rather than crash, to avoid tripping people up with pending timeouts and such.

Make sure ViewUpdate.viewportChanged is true whenever visibleRanges changes, so that plugins acting only on visible ranges can use it to check when to update.

Fix line-wise cut on empty lines.

marijn
published 0.19.7 •

Changelog

Source

0.19.7 (2021-09-13)

Bug fixes

The view is now aware of the new EditorState.readOnly property, and suppresses events that modify the document when it is true.

marijn
published 0.19.6 •

Changelog

Source

0.19.6 (2021-09-10)

Bug fixes

Remove a console.log that slipped into the previous release.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc