Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codemirror/state

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/state - npm Package Versions

234

6.4.1

Diff

Changelog

Source

6.4.1 (2024-02-19)

Bug fixes

Fix an issue that caused widgets at the end of a mark decoration to be rendered in their own separate mark DOM element.

marijn
published 6.4.0 •

Changelog

Source

6.4.0 (2023-12-28)

Bug fixes

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.

marijn
published 6.3.3 •

Changelog

Source

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.

marijn
published 6.3.2 •

Changelog

Source

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.

marijn
published 6.3.1 •

Changelog

Source

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.

marijn
published 6.3.0 •

Changelog

Source

6.3.0 (2023-10-12)

New features

The new FacetReader type provides a way to export a read-only handle to a Facet.

marijn
published 6.2.1 •

Changelog

Source

6.2.1 (2023-05-23)

Bug fixes

Fix an issue that could cause RangeSet.compare to miss changes in the set of active ranges around a point range.

marijn
published 6.2.0 •

Changelog

Source

6.2.0 (2022-12-26)

New features

EditorSelection.range now accepts an optional 4th argument to specify the bidi level of the range's head position.

marijn
published 6.1.4 •

Changelog

Source

6.1.4 (2022-11-15)

Bug fixes

Fix a bug that caused the openStart value passed to span iterators to be incorrect around widgets in some circumstances.

marijn
published 6.1.3 •

Changelog

Source

6.1.3 (2022-11-10)

Bug fixes

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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc