@codemirror/state
Advanced tools
Comparing version 0.18.2 to 0.18.3
@@ -0,1 +1,7 @@ | ||
## 0.18.3 (2021-03-23) | ||
### New features | ||
The `ChangeDesc` class now has `toJSON` and `fromJSON` methods. | ||
## 0.18.2 (2021-03-14) | ||
@@ -2,0 +8,0 @@ |
@@ -100,2 +100,11 @@ import { Text } from '@codemirror/text'; | ||
touchesRange(from: number, to?: number): boolean | "cover"; | ||
/** | ||
Serialize this change desc to a JSON-representable value. | ||
*/ | ||
toJSON(): readonly number[]; | ||
/** | ||
Create a change desc from its JSON representation (as produced | ||
by [`toJSON`](https://codemirror.net/6/docs/ref/#state.ChangeDesc.toJSON). | ||
*/ | ||
static fromJSON(json: any): ChangeDesc; | ||
} | ||
@@ -102,0 +111,0 @@ /** |
{ | ||
"name": "@codemirror/state", | ||
"version": "0.18.2", | ||
"version": "0.18.3", | ||
"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
205790
5389