prosemirror-model
Advanced tools
Comparing version 1.18.0 to 1.18.1
@@ -0,1 +1,7 @@ | ||
## 1.18.1 (2022-06-15) | ||
### Bug fixes | ||
Upgrade to orderedmap 2.0.0 to avoid around a TypeScript compilation issue. | ||
## 1.18.0 (2022-06-07) | ||
@@ -2,0 +8,0 @@ |
@@ -753,2 +753,7 @@ import OrderedMap from 'orderedmap'; | ||
/** | ||
Indicates whether this node allows some of the same content as | ||
the given node type. | ||
*/ | ||
compatibleContent(other: NodeType): boolean; | ||
/** | ||
Create a `Node` of this type. The given attributes are | ||
@@ -1151,3 +1156,3 @@ checked and defaulted (you can pass `null` to use the type's | ||
*/ | ||
nodeFromJSON(json: any): any; | ||
nodeFromJSON(json: any): Node; | ||
/** | ||
@@ -1154,0 +1159,0 @@ Deserialize a mark from its JSON representation. This method is |
{ | ||
"name": "prosemirror-model", | ||
"version": "1.18.0", | ||
"version": "1.18.1", | ||
"description": "ProseMirror's document model", | ||
@@ -27,3 +27,3 @@ "type": "module", | ||
"dependencies": { | ||
"orderedmap": "^1.1.0" | ||
"orderedmap": "^2.0.0" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
@@ -119,3 +119,4 @@ import OrderedMap from "orderedmap" | ||
/// @internal | ||
/// Indicates whether this node allows some of the same content as | ||
/// the given node type. | ||
compatibleContent(other: NodeType) { | ||
@@ -602,3 +603,3 @@ return this == other || this.contentMatch.compatible(other.contentMatch) | ||
/// bound. | ||
nodeFromJSON(json: any) { | ||
nodeFromJSON(json: any): Node { | ||
return Node.fromJSON(this, json) | ||
@@ -609,3 +610,3 @@ } | ||
/// bound. | ||
markFromJSON(json: any) { | ||
markFromJSON(json: any): Mark { | ||
return Mark.fromJSON(this, json) | ||
@@ -612,0 +613,0 @@ } |
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
444518
10898
+ Addedorderedmap@2.1.1(transitive)
- Removedorderedmap@1.1.8(transitive)
Updatedorderedmap@^2.0.0