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 Compare versions

Comparing version 6.0.1 to 6.1.0

10

CHANGELOG.md

@@ -0,1 +1,11 @@

## 6.1.0 (2022-06-30)
### Bug fixes
Refine change mapping to preserve insertions made by concurrent changes.
### New features
The `enables` option to `Facet.define` may now take a function, which will be called with the facet value to create the extensions.
## 6.0.1 (2022-06-17)

@@ -2,0 +12,0 @@

11

dist/index.d.ts

@@ -508,9 +508,10 @@ /**

/**
If given, these extension(s) will be added to any state where
this facet is provided. (Note that, while a facet's default
value can be read from a state even if the facet wasn't present
in the state at all, these extensions won't be added in that
If given, these extension(s) (or the result of calling the given
function with the facet) will be added to any state where this
facet is provided. (Note that, while a facet's default value can
be read from a state even if the facet wasn't present in the
state at all, these extensions won't be added in that
situation.)
*/
enables?: Extension;
enables?: Extension | ((self: Facet<Input, Output>) => Extension);
};

@@ -517,0 +518,0 @@ /**

{
"name": "@codemirror/state",
"version": "6.0.1",
"version": "6.1.0",
"description": "Editor state data structures for the CodeMirror code editor",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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