Include CommonJS type declarations in the package to please new TypeScript resolution settings.
Include TypeScript type declarations.
Rename ES module files to use a .js extension, since Webpack gets confused by .mjs
The file referred to in the package's module
field now is compiled down to ES5.
Add a module
field to package json file.
Fix an issue where in mapSelectionBackward
mode, the plugin flipped the head and anchor of the selection, leading to selection glitches during collaborative editing.
Fix issue where mapSelectionBackward
didn't work because of a typo.
receiveTransaction
now supports a mapSelectionBackward
option that makes it so that text selections are mapped to stay in place when remote changes insert content at their position.
You can now use strings (as well as numbers) as client IDs (this already worked, but now the documentation reflects this).
sendableSteps
now also returns information about the original transactions that produced the steps.
Moved into a separate module.
Interface adjusted to work with the new plugin system.
When receiving changes, the module now generates a regular transform action instead of hard-setting the editor's document. This solves problematic corner cases for code keeping track of the document by listening to transform actions.