Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codemirror/view

Package Overview
Dependencies
Maintainers
2
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/view - npm Package Versions

1
20

0.19.11

Diff

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.

marijn
published 0.19.5 •

Changelog

Source

0.19.5 (2021-09-09)

New features

The new EditorView.scrollTo effect can be used to scroll a given range into view.

marijn
published 0.19.4 •

Changelog

Source

0.19.4 (2021-09-01)

Bug fixes

Fix an issue where lines containing just a widget decoration wrapped in a mark decoration could be displayed with 0 height.

marijn
published 0.19.3 •

Changelog

Source

0.19.3 (2021-08-25)

Bug fixes

Fix a view corruption that could happen in situations involving overlapping mark decorations.

marijn
published 0.19.2 •

Changelog

Source

0.19.2 (2021-08-23)

New features

The package now exports a scrollPastEnd function, which returns an extension that adds space below the document to allow the last line to be scrolled to the top of the editor.

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