@codemirror/state
Advanced tools
Changelog
0.19.8 (2022-02-15)
Fix a bug where facet values with computed inputs could incorrectly retain their old value on reconfiguration.
Changelog
0.19.7 (2022-02-11)
Avoid recomputing facets on state reconfiguration if that facet's inputs stayed precisely the same.
Selection ranges created with EditorSelection.range
will now have an assoc pointing at their anchor, when non-empty.
Changelog
0.19.6 (2021-11-19)
Fix a bug that caused facet compare functions to be called with an invalid value in some situations.
Fix a bug that caused dynamic facet values to be incorrectly kept unchanged when reconfiguration changed one of their dependencies.
Changelog
0.19.5 (2021-11-10)
Fix a bug that would cause dynamic facet values influenced by a state reconfiguration to not properly recompute.
Changelog
0.19.4 (2021-11-05)
When reconfiguring a state, effects from the reconfiguring transaction can now be seen by newly added state fields.
Changelog
0.19.3 (2021-11-03)
The precedence levels (under Prec
) now have more generic names, because their 'meaningful' names were entirely inappropriate in many situations.
Changelog
0.19.2 (2021-09-13)
The editor state now has a readOnly
property with a matching facet to control its value.
Changelog
0.19.0 (2021-08-11)
User event strings now work differently—the events emitted by the core packages follow a different system, and hierarchical event tags can be created by separating the words with dots.
languageDataAt
now takes an optional side
argument to specificy which side of the position you're interested in.
It is now possible to add a user event annotation with a direct userEvent
property on a transaction spec.
Transactions now have an isUserEvent
method that can be used to check if it is (a subtype of) some user event type.