- Perform semantic cleanups for
Delta#diff().
- Drop support for Internet Explorer 11
- Increase the minimum Node.js version to v12
Op.iterator()is removed in favor ofDelta.OpIterator, so instead ofDelta.Op.iterator(ops), you should usenew Delta.OpIterator().
- Add
Delta.registerEmbed()for Operational Transform support for embeds. esModuleInteropoption is not required for TypeScript projects.AttributeMapis available as a top-level named export so you can import it likeimport { AttributeMap } from 'quill-delta'.
- Switch dependent internal utility functions to lodash family
- Fix invert retain across multiple ops
- Add
invert()
- Use fast-diff 1.2.0 in
diff(), so that diffs do not split Unicode surrogate pairs
- Fix build package casing
Source rewritten in Typescript
These were never documented as officially supported but to be safe we are doing a major version bump.
- No longer works in IE8 as there is function called
deleteand IE8 treats that as a reserved identifier - The source structure has changed so those utilizing NPM's ability to import from arbitrary directories ex.
import DeltaOp from 'quill-delta/lib/op'will have to update their imports
- Performance optimization for
compose
- Documentation fixes
- Stop using
=>because of IE11
- Add experimental method
changeLength()
- Add counter and early return to
eachLine()
- Support index suggestion in
diff()
- Add
partition()
- Add
eachLine(),map(),reduce(),filter(),forEach()
- Pull out quilljs/delta from ottypes/rich-text
- Deep copy and compare attributes and deltas
- Add
concat()method for document Deltas
compose()returns a new Delta instead of self-modifying
- Support embed being any non-string type