All of the
@codemirror/... packages maintained by me have been bumped to 0.19.0. This should be a very benign major version upgrade. The main change is that the Lezer dependencies were bumped to 0.15.0, which changes quite a few things compared to 0.13.x. Apart from that, these are the breaking changes to look out for:
The outer DOM element around an editor now has the
cm-editorCSS class, rather than
The format of the value of the
Transaction.userEventannotation changed—it now supports hierarchical names like
"input.paste". So testing it with
==is problematic and you should use the
EditorParseContextis now simply
ParseContext, and must be retrieved through a static function rather than being passed to parsers directly.
LezerLanguagewas renamed to
LRLanguagefor conceptual clarity.
IndentContext.lineIndent, which you may be using in custom language indentation logic, now takes a position rather than a line object.
defaultTabBindingkey binding is gone from @codemirror/commands (replaced by
GutterMarkerobjects no longer have an
classoption to a panel is no longer supported (you can add extra classes yourself when creating the DOM element).