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

@codemirror/highlight

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/highlight - npm Package Compare versions

Comparing version 0.19.1 to 0.19.2

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 0.19.2 (2021-08-19)
### Bug fixes
Fix a bug where old highlighting could stick around when switching language parser configuration.
## 0.19.1 (2021-08-11)

@@ -2,0 +8,0 @@

2

dist/index.js

@@ -378,3 +378,3 @@ import { NodeProp, NodeType } from '@lezer/common';

let styleChange = style != update.startState.facet(highlightStyle);
if (tree.length < update.view.viewport.to && !styleChange) {
if (tree.length < update.view.viewport.to && !styleChange && tree.type == this.tree.type) {
this.decorations = this.decorations.map(update.changes);

@@ -381,0 +381,0 @@ }

{
"name": "@codemirror/highlight",
"version": "0.19.1",
"version": "0.19.2",
"description": "Syntax highlighting for the CodeMirror code editor",

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

Sorry, the diff of this file is not supported yet

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