prosemirror-transform
Advanced tools
Comparing version 0.23.0 to 0.24.0
{ | ||
"name": "prosemirror-transform", | ||
"version": "0.23.0", | ||
"version": "0.24.0", | ||
"description": "ProseMirror document transformations", | ||
@@ -19,3 +19,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"prosemirror-model": "^0.23.0" | ||
"prosemirror-model": "^0.24.0" | ||
}, | ||
@@ -25,3 +25,3 @@ "devDependencies": { | ||
"ist": "^1.0.0", | ||
"prosemirror-test-builder": "^0.23.0", | ||
"prosemirror-test-builder": "^0.24.0", | ||
"rollup": "^0.49.0", | ||
@@ -28,0 +28,0 @@ "rollup-plugin-buble": "^0.15.0" |
@@ -131,6 +131,15 @@ import {Slice, Fragment} from "prosemirror-model" | ||
let warnedAboutSetNodeType = false | ||
Transform.prototype.setNodeType = function(pos, type, attrs, marks) { | ||
if (!warnedAboutSetNodeType && typeof console == "object" && console.warn) { | ||
warnedAboutSetNodeType = true | ||
console.warn("setNodeType has been renamed to setNodeMarkup") | ||
} | ||
return this.setNodeMarkup(pos, type, attrs, marks) | ||
} | ||
// :: (number, ?NodeType, ?Object, ?[Mark]) → this | ||
// Change the type, attributes, and/or marks of the node at `pos`. | ||
// When `nodeType` is null, the existing node type is preserved, | ||
Transform.prototype.setNodeType = function(pos, type, attrs, marks) { | ||
Transform.prototype.setNodeMarkup = function(pos, type, attrs, marks) { | ||
let node = this.doc.nodeAt(pos) | ||
@@ -137,0 +146,0 @@ if (!node) throw new RangeError("No node at given position") |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
256915
18
2840
+ Addedprosemirror-model@0.24.0(transitive)
- Removedprosemirror-model@0.23.1(transitive)
Updatedprosemirror-model@^0.24.0