@codemirror/state 6.5.3 → 6.5.4

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.5.4 (2026-01-14)
2
+
3
+ ### Bug fixes
4
+
5
+ Make `SelectionRange.eq` return false when the ranges have different goal columns.
6
+
1
7
  ## 6.5.3 (2025-12-22)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -1337,7 +1337,7 @@ class SelectionRange {
1337
1337
  Compare this range to another range.
1338
1338
  */
1339
1339
  eq(other, includeAssoc = false) {
1340
- return this.anchor == other.anchor && this.head == other.head &&
1340
+ return this.anchor == other.anchor && this.head == other.head && this.goalColumn == other.goalColumn &&
1341
1341
  (!includeAssoc || !this.empty || this.assoc == other.assoc);
1342
1342
  }
1343
1343
  /**
package/dist/index.js CHANGED
@@ -1334,7 +1334,7 @@ class SelectionRange {
1334
1334
  Compare this range to another range.
1335
1335
  */
1336
1336
  eq(other, includeAssoc = false) {
1337
- return this.anchor == other.anchor && this.head == other.head &&
1337
+ return this.anchor == other.anchor && this.head == other.head && this.goalColumn == other.goalColumn &&
1338
1338
  (!includeAssoc || !this.empty || this.assoc == other.assoc);
1339
1339
  }
1340
1340
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/state",
3
- "version": "6.5.3",
3
+ "version": "6.5.4",
4
4
  "description": "Editor state data structures for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",
@@ -33,6 +33,6 @@
33
33
  },
34
34
  "repository": {
35
35
  "type": "git",
36
- "url": "https://github.com/codemirror/state.git"
36
+ "url": "git+https://github.com/codemirror/state.git"
37
37
  }
38
38
  }