@codemirror/state
Advanced tools
Changelog
6.2.0 (2022-12-26)
EditorSelection.range
now accepts an optional 4th argument to specify the bidi level of the range's head position.
Changelog
6.1.4 (2022-11-15)
Fix a bug that caused the openStart
value passed to span iterators to be incorrect around widgets in some circumstances.
Changelog
6.1.3 (2022-11-10)
Avoid unnecessary calls to computed facet getters when a state is reconfigured but no dependencies of the computed facet change.
Fix an infinite loop in RangeSet.eq
when the to
parameter isn't given.
Changelog
6.1.2 (2022-09-21)
Fix an issue where, when multiple transaction extenders took effect, only the highest-precedence one was actually included in the transaction.
Changelog
6.1.1 (2022-08-03)
Fix a bug in range set span iteration that would cause decorations to be inappropriately split in some situations.
Changelog
6.1.0 (2022-06-30)
Refine change mapping to preserve insertions made by concurrent changes.
The enables
option to Facet.define
may now take a function, which will be called with the facet value to create the extensions.
Changelog
6.0.1 (2022-06-17)
Fix a problem that caused effects' map
methods to be called with an incorrect change set when filtering changes.
Changelog
0.20.1 (2022-06-02)
EditorView.phrase
now accepts additional arguments, which it will interpolate into the phrase in the place of $
markers.
Changelog
0.20.0 (2022-04-20)
The deprecated precedence names fallback
, extend
, and override
were removed from the library.
Fix a bug where, if an extension value occurs multiple times, its lowest, rather than highest precedence is used.
Fix an issue where facets with computed inputs would unneccesarily have their outputs recreated on state reconfiguration.
Fix a bug in the order in which new values for state fields and facets were computed, which could cause dynamic facets to hold the wrong value in some situations.
The exports from @codemirror/rangeset now live in this package.
The exports from @codemirror/text now live in this package.