Socket
Socket
Sign inDemoInstall

@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

124

0.19.6

Diff

Changelog

Source

0.19.6 (2021-11-19)

Bug fixes

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.

marijn
published 0.19.5 •

Changelog

Source

0.19.5 (2021-11-10)

Bug fixes

Fix a bug that would cause dynamic facet values influenced by a state reconfiguration to not properly recompute.

marijn
published 0.19.4 •

Changelog

Source

0.19.4 (2021-11-05)

Bug fixes

When reconfiguring a state, effects from the reconfiguring transaction can now be seen by newly added state fields.

marijn
published 0.19.3 •

Changelog

Source

0.19.3 (2021-11-03)

New features

The precedence levels (under Prec) now have more generic names, because their 'meaningful' names were entirely inappropriate in many situations.

marijn
published 0.19.2 •

Changelog

Source

0.19.2 (2021-09-13)

New features

The editor state now has a readOnly property with a matching facet to control its value.

marijn
published 0.19.1 •

Changelog

Source

0.19.1 (2021-08-15)

Bug fixes

Fix a bug where wordAt never returned a useful result.

marijn
published 0.19.0 •

Changelog

Source

0.19.0 (2021-08-11)

Breaking changes

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.

New features

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.

marijn
published 0.18.7 •

Changelog

Source

0.18.7 (2021-05-04)

Bug fixes

Fix an issue where state fields might be initialized with a state that they aren't actually part of during reconfiguration.

marijn
published 0.18.6 •

Changelog

Source

0.18.6 (2021-04-12)

New features

The new EditorState.wordAt method finds the word at a given position.

marijn
published 0.18.5 •

Changelog

Source

0.18.5 (2021-04-08)

Bug fixes

Fix an issue in the compiled output that would break the code when minified with terser.

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