包详细信息

@codemirror/history

codemirror317.1kMIT不推荐使用0.19.2

As of 0.20.0, this package has been merged into @codemirror/commands

Undo/redo history for the CodeMirror code editor

editor, code

自述文件

更新日志

0.19.2 (2022-01-03)

Bug fixes

Redoing a change now puts the cursor right after the change, regardless of where the selection was when the change was undone.

0.19.1 (2021-12-28)

Bug fixes

Scroll the selection into view after undoing or redoing. Only combine typing and deletion events into a single history event

Avoid combining most types of transactions into a single history event, except for typing and deleting.

0.19.0 (2021-08-11)

Bug fixes

Transactions generated by the history are now tagged with a user event string.

0.18.1 (2021-03-23)

New features

The state field used by the history is now public, and has toJSON and fromJSON functions for serialization.

0.18.0 (2021-03-03)

Breaking changes

Update dependencies to 0.18.

0.17.2 (2021-01-19)

Bug fixes

Fix a bug where the history could get corrupted when the document length was reduced to zero. Fix another bad use of changes.length

0.17.1 (2021-01-06)

New features

The package now also exports a CommonJS module.

0.17.0 (2020-12-29)

Breaking changes

First numbered release.