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 0.20.0 to 0.20.1

6

CHANGELOG.md

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

## 0.20.1 (2022-06-02)
### New features
`EditorView.phrase` now accepts additional arguments, which it will interpolate into the phrase in the place of `$` markers.
## 0.20.0 (2022-04-20)

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

19

dist/index.d.ts

@@ -163,3 +163,8 @@ /**

declare class ChangeDesc {
protected constructor(
/**
@internal
*/
sections: readonly number[]);
/**
The length of the document before the change.

@@ -267,2 +272,3 @@ */

declare class ChangeSet extends ChangeDesc {
private constructor();
/**

@@ -353,2 +359,3 @@ Apply the changes to a document, returning the modified

private flags;
private constructor();
/**

@@ -424,2 +431,3 @@ The anchor of the range—the side that doesn't move when you

readonly mainIndex: number;
private constructor();
/**

@@ -892,2 +900,3 @@ Map a selection through a change. Used to adjust the selection

readonly scrollIntoView: boolean;
private constructor();
/**

@@ -1050,2 +1059,3 @@ The new document produced by the transaction. Contrary to

readonly selection: EditorSelection;
private constructor();
/**

@@ -1212,4 +1222,9 @@ Retrieve the value of a [state field](https://codemirror.net/6/docs/ref/#state.StateField). Throws

original string if no translation is found.
If additional arguments are passed, they will be inserted in
place of markers like `$1` (for the first value) and `$2`, etc.
A single `$` is equivalent to `$1`, and `$$` will produce a
literal dollar sign.
*/
phrase(phrase: string): string;
phrase(phrase: string, ...insert: any[]): string;
/**

@@ -1381,2 +1396,3 @@ A facet used to register [language

readonly value: T;
private constructor();
}

@@ -1482,2 +1498,3 @@ /**

declare class RangeSet<T extends RangeValue> {
private constructor();
/**

@@ -1484,0 +1501,0 @@ The number of ranges in the set.

2

package.json
{
"name": "@codemirror/state",
"version": "0.20.0",
"version": "0.20.1",
"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