Packages

prosemirror-state

1.4.4 · 23 Oct 2025MIT41.4M / weekRepositoryHomepagenpmAtom feed

Your version

0.21.0

3 May 2017Where it was published

0.24.0 is the newest release of 0.21.x.

Release note

Breaking changes

Selection.atStart, and atEnd no longer take a second textOnly parameter.

New features

Selection.near, atStart, and atEnd will now fall back to returning an AllSelection when unable to find a valid selection. This removes the (undocumented) requirement that documents always contain a valid selection position (though you'll probably still want to maintain this for practical UI reasons).

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.