@codemirror/language
Advanced tools
Comparing version 0.20.2 to 6.0.0
@@ -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 @@ |
@@ -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 @@ /** |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
222835
5686
1
+ Added@codemirror/state@6.4.1(transitive)
+ Added@codemirror/view@6.34.3(transitive)
+ Added@lezer/common@1.2.3(transitive)
+ Added@lezer/highlight@1.2.1(transitive)
+ Added@lezer/lr@1.4.2(transitive)
- Removed@codemirror/state@0.20.1(transitive)
- Removed@codemirror/view@0.20.7(transitive)
- Removed@lezer/common@0.16.1(transitive)
- Removed@lezer/highlight@0.16.0(transitive)
- Removed@lezer/lr@0.16.3(transitive)
Updated@codemirror/state@^6.0.0
Updated@codemirror/view@^6.0.0
Updated@lezer/common@^1.0.0
Updated@lezer/highlight@^1.0.0
Updated@lezer/lr@^1.0.0