Hi all. Here’s a status update on the CodeMirror 6 rewrite. Just in time for the new year, I’ve put the library on NPM in its (pretty much) final shape—as a bunch of separate packages named
@codemirror/view, etc. The code works well, and I’m really happy with how it turned out, but of course hasn’t been used anywhere near as widely and intensively as the 5.x codebase. So this is where I invite you all to start testing it. Some highlights…
The API changed completely. It got a lot better, but this does mean you will have to change/rewrite the code that interacts with the editor.
Especially for demanding, complex integrations, the new interface is likely to be a lot more effective to work with than the old. Collaborative editing integration is provided as a core package (
The new codebase is way more modern—written in TypeScript, with fully typed docs, exporting tree-shaking-friendly ES modules instead of a hodgepodge of UMD files.
This version is a lot more accessible, bidi-capable, and touchscreen-friendly than the 5.x codebase.
So, if you’re in a position to upgrade and these interest you, take a look and let me know what you think.
Version 5.x is going to continue being maintained on the level it has been for the past years—no major new work will happen but I’ll look at patches and fix significant bugs—for at least a while longer.