prosemirror-state
1.4.4 · 23 Oct 2025MIT41.4M / weekRepositoryHomepagenpmAtom feed
0.24.0 is the newest release of 0.20.x.
Release note
Breaking changes
Selection.near no longer accepts a textOnly parameter.
Bug fixes
TextSelection.between may now return a node selection when the document does not contain a valid cursor position.
New features
Selection objects now implement a content method that returns their content. This is used to determine what ends up on the clipboard when the selection is copied or dragged.
Selections may now specify multiple ranges that they cover, to generalize to more types of selections. The Selection superclass constructor takes an array of ranges as optional third argument.
Selections gained new methods replace and replaceWith to provide subclasses more control over how selections of that type respond to being deleted or overwritten.
Selections have a new method getBookmark that custom selection classes can implement to allow the undo history to accurately store and restore them.
The new selection class AllSelection can be used to select the entire document.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.