@codemirror/state 0.20.1 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 6.0.0 (2022-06-08)
2
+
3
+ ### Breaking changes
4
+
5
+ Update dependencies to 6.0.0
6
+
1
7
  ## 0.20.1 (2022-06-02)
2
8
 
3
9
  ### New features
package/dist/index.cjs CHANGED
@@ -648,10 +648,7 @@ function fromCodePoint(code) {
648
648
  return String.fromCharCode((code >> 10) + 0xd800, (code & 1023) + 0xdc00);
649
649
  }
650
650
  /**
651
- The first character that takes up two positions in a JavaScript
652
- string. It is often useful to compare with this after calling
653
- `codePointAt`, to figure out whether your character takes up 1 or
654
- 2 index positions.
651
+ The amount of positions a character takes up a JavaScript string.
655
652
  */
656
653
  function codePointSize(code) { return code < 0x10000 ? 1 : 2; }
657
654
 
@@ -690,6 +687,9 @@ class ChangeDesc {
690
687
  // unaffected sections, and the length of the replacement content
691
688
  // otherwise. So an insertion would be (0, n>0), a deletion (n>0,
692
689
  // 0), and a replacement two positive numbers.
690
+ /**
691
+ @internal
692
+ */
693
693
  constructor(
694
694
  /**
695
695
  @internal
package/dist/index.d.ts CHANGED
@@ -160,11 +160,6 @@ that doesn't store the inserted text. As such, it can't be
160
160
  applied, but is cheaper to store and manipulate.
161
161
  */
162
162
  declare class ChangeDesc {
163
- protected constructor(
164
- /**
165
- @internal
166
- */
167
- sections: readonly number[]);
168
163
  /**
169
164
  The length of the document before the change.
170
165
  */
@@ -1627,10 +1622,7 @@ respresents it (like
1627
1622
  */
1628
1623
  declare function fromCodePoint(code: number): string;
1629
1624
  /**
1630
- The first character that takes up two positions in a JavaScript
1631
- string. It is often useful to compare with this after calling
1632
- `codePointAt`, to figure out whether your character takes up 1 or
1633
- 2 index positions.
1625
+ The amount of positions a character takes up a JavaScript string.
1634
1626
  */
1635
1627
  declare function codePointSize(code: number): 1 | 2;
1636
1628
 
package/dist/index.js CHANGED
@@ -644,10 +644,7 @@ function fromCodePoint(code) {
644
644
  return String.fromCharCode((code >> 10) + 0xd800, (code & 1023) + 0xdc00);
645
645
  }
646
646
  /**
647
- The first character that takes up two positions in a JavaScript
648
- string. It is often useful to compare with this after calling
649
- `codePointAt`, to figure out whether your character takes up 1 or
650
- 2 index positions.
647
+ The amount of positions a character takes up a JavaScript string.
651
648
  */
652
649
  function codePointSize(code) { return code < 0x10000 ? 1 : 2; }
653
650
 
@@ -685,6 +682,9 @@ class ChangeDesc {
685
682
  // unaffected sections, and the length of the replacement content
686
683
  // otherwise. So an insertion would be (0, n>0), a deletion (n>0,
687
684
  // 0), and a replacement two positive numbers.
685
+ /**
686
+ @internal
687
+ */
688
688
  constructor(
689
689
  /**
690
690
  @internal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/state",
3
- "version": "0.20.1",
3
+ "version": "6.0.0",
4
4
  "description": "Editor state data structures for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",