cspell-trie-lib 10.0.0 → 10.0.1

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -2
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -483,8 +483,17 @@ function _createFindOptions$1(options) {
483
483
  const JOIN_SEPARATOR = "+";
484
484
  const WORD_SEPARATOR = " ";
485
485
  const CompoundWordsMethod = {
486
+ /**
487
+ * Do not compound words.
488
+ */
486
489
  NONE: 0,
490
+ /**
491
+ * Create word compounds separated by spaces.
492
+ */
487
493
  SEPARATE_WORDS: 1,
494
+ /**
495
+ * Create word compounds without separation.
496
+ */
488
497
  JOIN_WORDS: 2,
489
498
  0: "NONE",
490
499
  1: "SEPARATE_WORDS",
@@ -3917,7 +3926,7 @@ function optimizeNodesWithStringTable(src) {
3917
3926
  const prefixBytes = [charByte, ...childBytes];
3918
3927
  const prefixIdx = builder.addStringBytes(prefixBytes);
3919
3928
  const newNode = Uint32Array.from(childNode);
3920
- newNode[0] = prefixIdx << 9 | childHeader & ~NodeHeaderPrefixMask;
3929
+ newNode[0] = prefixIdx << 9 | childHeader & -1073741313;
3921
3930
  nodes[nodeIdx] = newNode;
3922
3931
  }
3923
3932
  }
@@ -4112,7 +4121,8 @@ var TrieBlobINode = class TrieBlobINode {
4112
4121
  entries() {
4113
4122
  if (this._entries) return this._entries;
4114
4123
  if (!this.hasChildren) return EMPTY_ENTRIES;
4115
- this._entries = this.getNodesEntries().map(([key, value]) => [key, new TrieBlobINode(this.trie, value)]);
4124
+ const entries = this.getNodesEntries();
4125
+ this._entries = entries.map(([key, value]) => [key, new TrieBlobINode(this.trie, value)]);
4116
4126
  return this._entries;
4117
4127
  }
4118
4128
  entryAt(keyIdx) {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "provenance": true
6
6
  },
7
- "version": "10.0.0",
7
+ "version": "10.0.1",
8
8
  "description": "Trie Data Structure to support cspell.",
9
9
  "type": "module",
10
10
  "sideEffects": false,
@@ -62,16 +62,16 @@
62
62
  "node": ">=22.18.0"
63
63
  },
64
64
  "peerDependencies": {
65
- "@cspell/cspell-types": "10.0.0"
65
+ "@cspell/cspell-types": "10.0.1"
66
66
  },
67
67
  "devDependencies": {
68
- "@cspell/cspell-performance-monitor": "10.0.0",
69
- "@cspell/cspell-pipe": "10.0.0",
68
+ "@cspell/cspell-performance-monitor": "10.0.1",
69
+ "@cspell/cspell-pipe": "10.0.1",
70
70
  "@cspell/dict-cpp": "^7.0.2",
71
71
  "@cspell/dict-en_us": "^4.4.33",
72
72
  "@cspell/dict-es-es": "^3.0.8",
73
73
  "@cspell/dict-nl-nl": "^2.4.2",
74
74
  "gensequence": "^8.0.8"
75
75
  },
76
- "gitHead": "6ddfd576b6bb554a7cb8dba1ab053a0b6ff8021f"
76
+ "gitHead": "0f43abf29e5da0ecbcb08214055cdc1e3267c3ea"
77
77
  }