When multiple ranges in a single range set overlap, put the smaller ones inside the bigger ones, so that overlapping decorations don't break up each other's elements when coming from the same source.
New features
Selection and selection range eq methods now support an optional argument that makes them also compare by cursor associativity.
The RangeSet.join function can be used to join multiple range sets together.
6.3.3 (2023-12-06)
Bug fixes
Fix an issue where Text.slice and Text.replace could return objects with incorrect length when the given from/to values were out of range for the text.
6.3.2 (2023-11-27)
Bug fixes
Make sure transactions cannot add multiple selections when allowMultipleSelections is false.
Fix a bug that caused Text.iterLines to not return empty lines at the end of the iterated ranges.
6.3.1 (2023-10-18)
Bug fixes
Give the tag property on FacetReader the type of the output type parameter to force TypeScript to infer the proper type when converting from Facet to FacetReader.
6.3.0 (2023-10-12)
New features
The new FacetReader type provides a way to export a read-only handle to a Facet.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps @codemirror/state from 6.2.1 to 6.4.0.
Changelog
Sourced from
@codemirror/state
's changelog.Commits
8bc5f63
Mark version 6.4.0797d70d
Add RangeSet.joinbb03cbe
Add includeAssoc argument to selection comparison3b6f20c
Put smaller ranges inside bigger ones with the same rank738e61d
Mark version 6.3.388ecc25
Make sure from/to differences are computed from clipped values5771dc5
Mark version 6.3.20f61d04
Include empty end lines in Text.iterLinesa14b093
Fix check for allowMultipleSelections10d5f42
Fix typo in facet.tsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show