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
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/view - npm Package Compare versions

Comparing version 0.19.9 to 0.19.10

24

CHANGELOG.md

@@ -0,1 +1,25 @@

## 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.
## 0.19.9 (2021-10-01)

@@ -2,0 +26,0 @@

8

dist/index.d.ts

@@ -122,2 +122,6 @@ import * as _codemirror_rangeset from '@codemirror/rangeset';

/**
Shorthand for `{attributes: {class: value}}`.
*/
class?: string;
/**
Other properties are allowed.

@@ -603,3 +607,5 @@ */

other than the one held by the global variable `document` (the
default), you should pass it here.
default), you should pass it here. If you provide `parent`, but
not this option, the editor will automatically look up a root
from the parent.
*/

@@ -606,0 +612,0 @@ root?: Document | ShadowRoot;

2

package.json
{
"name": "@codemirror/view",
"version": "0.19.9",
"version": "0.19.10",
"description": "DOM view component for the CodeMirror code editor",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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