I just tagged a 0.12.0 release for all the prosemirror-* modules. The main new thing is decorations (the replacement for
markRange), but a number of other things happened. The demos on the website are fully functional again with this release, and I intend to stabilize this release’s interface towards a 1.0 release. (I.e. only make more breaking changes when there is a really extra super good reason to do so.)
This would be a good time to start porting 0.10.x code forward, since 0.12.0 covers all the features 0.10.x had. The reference docs are complete, the guide docs still aren’t very extensive.
prosemirror-model 0.12.0 (2016-10-21)
Drops support for some undocumented options to the DOM serializer that were used by the view.
When rendering DOM attributes, only ignore null values, not all falsy values.
prosemirror-transform 0.12.0 (2016-10-21)
Mapped positions now count as deleted when the token to the side specified by the
assoc parameter is deleted, rather than when both tokens around them are deleted. (This is usually what you already wanted anyway.)
prosemirror-state 0.12.0 (2016-10-21)
The way plugins declare their state field has changed. Only one state field per plugin is supported, and state fields no longer have hard-coded names.
Plugin.getState is the way to access plugin state now.
Plugin dependencies are no longer supported.
Plugin.reconfigure is gone. Plugins are now always created with
Plugins no longer have a
Node selections are now properly dropped when mapped over a change that replaces their nodes.
Plugin keys can now be used to find plugins by identity.
Transform actions now have a
time field containing the timestamp when the change was made.
prosemirror-view 0.12.0 (2016-10-21)
The return value of
EditorView.posAtCoords changed to contain an
inside property pointing at the innermost node that the coordinates are inside of. (Note that the docs for this method were wrong in the previous release.)
Reduce reliance on shift-state tracking to minimize damage when it gets out of sync.
Fix bug that’d produce bogus document positions for DOM positions inside non-document nodes.
Don’t treat fast ctrl-clicks as double or triple clicks.
prosemirror-keymap 0.12.0 (2016-10-21)
Key names are now based on
KeyboardEvent.key instead of
.code. This means that, for character-producing keys, you’ll want to use the character typed, not the key name. So
Ctrl-Z now means uppercase Z, and you’ll usually want
Ctrl-z instead. Single-quoted key names are no longer supported.
prosemirror-history 0.12.0 (2016-10-21)
history export is now a function that creates a history plugin, rather than a plugin instance.
newGroupDelay plugin option. This brings back the behavior where pausing between edits will automatically cause the history to put subsequent changes in a new undo event.
prosemirror-commands 0.12.0 (2016-10-21)
Fix crash when backspacing into nodes with complex content expressions.
prosemirror-schema-basic 0.12.0 (2016-10-21)
Don’t treat <b style=font-weight: normal> as strong when parsing. (Google Docs puts such ridiculous HTML on the clipboard.)