@codemirror/state
Advanced tools
Comparing version 6.0.1 to 6.1.0
@@ -0,1 +1,11 @@ | ||
## 6.1.0 (2022-06-30) | ||
### Bug fixes | ||
Refine change mapping to preserve insertions made by concurrent changes. | ||
### New features | ||
The `enables` option to `Facet.define` may now take a function, which will be called with the facet value to create the extensions. | ||
## 6.0.1 (2022-06-17) | ||
@@ -2,0 +12,0 @@ |
@@ -508,9 +508,10 @@ /** | ||
/** | ||
If given, these extension(s) will be added to any state where | ||
this facet is provided. (Note that, while a facet's default | ||
value can be read from a state even if the facet wasn't present | ||
in the state at all, these extensions won't be added in that | ||
If given, these extension(s) (or the result of calling the given | ||
function with the facet) will be added to any state where this | ||
facet is provided. (Note that, while a facet's default value can | ||
be read from a state even if the facet wasn't present in the | ||
state at all, these extensions won't be added in that | ||
situation.) | ||
*/ | ||
enables?: Extension; | ||
enables?: Extension | ((self: Facet<Input, Output>) => Extension); | ||
}; | ||
@@ -517,0 +518,0 @@ /** |
{ | ||
"name": "@codemirror/state", | ||
"version": "6.0.1", | ||
"version": "6.1.0", | ||
"description": "Editor state data structures 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
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
358737
9327