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

@codemirror/language

Package Overview
Dependencies
Maintainers
2
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/language - npm Package Compare versions

Comparing version 0.20.2 to 6.0.0

6

CHANGELOG.md

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

## 6.0.0 (2022-06-08)
### New features
The `foldingChanged` option to `foldGutter` can now be used to trigger a recomputation of the fold markers.
## 0.20.2 (2022-05-20)

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

7

dist/index.d.ts

@@ -5,3 +5,3 @@ import { NodeProp, Parser, Tree, TreeFragment, SyntaxNode, NodeType } from '@lezer/common';

import { Facet, Extension, EditorState, Range } from '@codemirror/state';
import { EditorView, DecorationSet, Command, KeyBinding, BlockInfo, Decoration } from '@codemirror/view';
import { EditorView, DecorationSet, Command, KeyBinding, ViewUpdate, BlockInfo, Decoration } from '@codemirror/view';
import { Highlighter, Tag } from '@lezer/highlight';

@@ -702,2 +702,7 @@ import { StyleModule, StyleSpec } from 'style-mod';

domEventHandlers?: Handlers;
/**
When given, if this returns true for a given view update,
recompute the fold markers.
*/
foldingChanged?: (update: ViewUpdate) => boolean;
}

@@ -704,0 +709,0 @@ /**

14

package.json
{
"name": "@codemirror/language",
"version": "0.20.2",
"version": "6.0.0",
"description": "Language support infrastructure for the CodeMirror code editor",

@@ -29,7 +29,7 @@ "scripts": {

"dependencies": {
"@codemirror/state": "^0.20.0",
"@codemirror/view": "^0.20.0",
"@lezer/common": "^0.16.0",
"@lezer/highlight": "^0.16.0",
"@lezer/lr": "^0.16.0",
"@codemirror/state": "^6.0.0",
"@codemirror/view": "^6.0.0",
"@lezer/common": "^1.0.0",
"@lezer/highlight": "^1.0.0",
"@lezer/lr": "^1.0.0",
"style-mod": "^4.0.0"

@@ -39,3 +39,3 @@ },

"@codemirror/buildhelper": "^0.1.5",
"@lezer/javascript": "^0.16.0"
"@lezer/javascript": "^1.0.0"
},

@@ -42,0 +42,0 @@ "repository": {

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