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.2.0 to 6.2.1

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 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.
## 6.2.0 (2022-12-26)

@@ -2,0 +8,0 @@

27

dist/index.d.ts

@@ -88,2 +88,7 @@ /**

/**
Return the document as a string, using newline characters to
separate lines.
*/
toString(): string;
/**
Convert the document to an array of lines (which can be

@@ -256,3 +261,3 @@ deserialized again via [`Text.of`](https://codemirror.net/6/docs/ref/#state.Text^of)).

*/
declare type ChangeSpec = {
type ChangeSpec = {
from: number;

@@ -484,3 +489,3 @@ to?: number;

declare type FacetConfig<Input, Output> = {
type FacetConfig<Input, Output> = {
/**

@@ -565,4 +570,4 @@ How to combine the input values into a single output value. When

}
declare type Slot<T> = Facet<any, T> | StateField<T> | "doc" | "selection";
declare type StateFieldSpec<Value> = {
type Slot<T> = Facet<any, T> | StateField<T> | "doc" | "selection";
type StateFieldSpec<Value> = {
/**

@@ -642,3 +647,3 @@ Creates the initial value for the field when a state is created.

*/
declare type Extension = {
type Extension = {
extension: Extension;

@@ -788,3 +793,6 @@ } | readonly Extension[];

Define a new effect type. The type parameter indicates the type
of values that his effect holds.
of values that his effect holds. It should be a type that
doesn't include `undefined`, since that is used in
[mapping](https://codemirror.net/6/docs/ref/#state.StateEffect.map) to indicate that an effect is
removed.
*/

@@ -1326,3 +1334,3 @@ static define<Value = null>(spec?: StateEffectSpec<Value>): StateEffectType<Value>;

*/
declare type StateCommand = (target: {
type StateCommand = (target: {
state: EditorState;

@@ -1469,3 +1477,3 @@ dispatch: (transaction: Transaction) => void;

}
declare type RangeSetUpdate<T extends RangeValue> = {
type RangeSetUpdate<T extends RangeValue> = {
/**

@@ -1549,4 +1557,3 @@ An array of ranges to add. If given, this should be sorted by

This indicates how the underlying data changed between these
ranges, and is needed to synchronize the iteration. `from` and
`to` are coordinates in the _new_ space, after these changes.
ranges, and is needed to synchronize the iteration.
*/

@@ -1553,0 +1560,0 @@ textDiff: ChangeDesc, comparator: RangeComparator<T>,

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

@@ -15,3 +15,3 @@ "scripts": {

"name": "Marijn Haverbeke",
"email": "marijnh@gmail.com",
"email": "marijn@haverbeke.berlin",
"url": "http://marijnhaverbeke.nl"

@@ -18,0 +18,0 @@ },

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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