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.18.10

Diff

Changelog

Source

0.18.10 (2021-04-27)

Bug fixes

Fix a bug where some types of updates wouldn't properly cause marks around the changes to be joined in the DOM.

Fix an issue where the content and gutters in a fixed-height editor could be smaller than the editor height.

Fix a crash on Safari when initializing an editor in an unfocused window.

Fix a bug where the editor would incorrectly conclude it was out of view in some types of absolutely positioned parent elements.

marijn
published 0.18.9 •

Changelog

Source

0.18.9 (2021-04-23)

Bug fixes

Fix a crash that occurred when determining DOM coordinates in some specific situations.

Fix a crash when a DOM change that ended at a zero-width view element (widget) removed that element from the DOM.

Disable autocorrect and autocapitalize by default, since in most code-editor contexts they get in the way. You can use EditorView.contentAttributes to override this.

Fix a bug that interfered with native touch selection handling on Android.

Fix an unnecessary DOM update after composition that would disrupt touch selection on Android.

Add a workaround for Safari's broken selection reporting when the editor is in a shadow DOM tree.

Fix select-all from the context menu on Safari.

marijn
published 0.18.8 •

Changelog

Source

0.18.8 (2021-04-19)

Bug fixes

Handle selection replacements where the inserted text matches the start/end of the replaced text better.

Fix an issue where the editor would miss scroll events when it was placed in a DOM component slot.

marijn
published 0.18.7 •

Changelog

Source

0.18.7 (2021-04-13)

Bug fixes

Fix a crash when drag-selecting out of the editor with editable turned off.

Backspace and delete now largely work in an editor without a keymap.

Pressing backspace on iOS should now properly update the virtual keyboard's capitalize and autocorrect state.

Prevent random line-wrapping in (non-wrapping) editors on Mobile Safari.

marijn
published 0.18.6 •

Changelog

Source

0.18.6 (2021-04-08)

Bug fixes

Fix an issue in the compiled output that would break the code when minified with terser.

marijn
published 0.18.5 •

Changelog

Source

0.18.5 (2021-04-07)

Bug fixes

Improve handling of bidi text with brackets (conforming to Unicode 13's bidi algorithm).

Fix the position where drawSelection displays the cursor on bidi boundaries.

marijn
published 0.18.4 •

Changelog

Source

0.18.4 (2021-04-07)

Bug fixes

Fix an issue where the default focus ring gets obscured by the gutters and active line.

Fix an issue where the editor believed Chrome Android didn't support the CSS tab-size style.

Don't style active lines when there are non-empty selection ranges, so that the active line background doesn't obscure the selection.

Make iOS autocapitalize update properly when you press Enter.

marijn
published 0.18.3 •

Changelog

Source

0.18.3 (2021-03-19)

Breaking changes

The outer DOM element now has class cm-editor instead of cm-wrap (cm-wrap will be present as well until 0.19).

Bug fixes

Improve behavior of posAtCoords when the position is near text but not in any character's actual box.

marijn
published 0.18.2 •

Changelog

Source

0.18.2 (2021-03-19)

Bug fixes

Triple-clicking now selects the line break after the clicked line (if any).

Fix an issue where the drawSelection plugin would fail to draw the top line of the selection when it started in an empty line.

Fix an issue where, at the end of a specific type of composition on iOS, the editor read the DOM before the browser was done updating it.

marijn
published 0.18.1 •

Changelog

Source

0.18.1 (2021-03-05)

Bug fixes

Fix an issue where, on iOS, some types of IME would cause the composed content to be deleted when confirming a composition.

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