cspell-trie-lib 8.14.4 → 8.15.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/dist/lib/index.d.ts +3 -2
- package/dist/lib/trie.d.ts +1 -1
- package/package.json +7 -5
package/dist/lib/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ defaultTrieInfo as defaultTrieOptions, FORBID_PREFIX, OPTIONAL_COMPOUND_FIX, } f
|
|
|
6
6
|
export { decodeTrie } from './decodeTrie.js';
|
|
7
7
|
export type { WeightMap } from './distance/index.js';
|
|
8
8
|
export { createWeightedMap, editDistance, editDistanceWeighted } from './distance/index.js';
|
|
9
|
-
export { ExportOptions, importTrie, serializeTrie } from './io/importExport.js';
|
|
9
|
+
export { type ExportOptions, importTrie, serializeTrie } from './io/importExport.js';
|
|
10
10
|
export type { ITrie } from './ITrie.js';
|
|
11
11
|
export { mapDictionaryInformationToWeightMap } from './mappers/mapDictionaryInfoToWeightMap.js';
|
|
12
12
|
export type { SuggestionCostMapDef } from './models/suggestionCostsDef.js';
|
|
@@ -18,7 +18,8 @@ export { Trie } from './trie.js';
|
|
|
18
18
|
export { buildTrie, buildTrieFast, TrieBuilder } from './TrieBuilder.js';
|
|
19
19
|
export type { FindFullResult } from './TrieNode/find.js';
|
|
20
20
|
export { countNodes, countWords, createTrieRoot, createTrieRootFromList, findNode, has, insert, isCircular, isWordTerminationNode, iterateTrie, iteratorTrieWords, orderTrie, trieNodeToRoot, walk, } from './TrieNode/trie-util.js';
|
|
21
|
-
export { ChildMap,
|
|
21
|
+
export type { ChildMap, TrieNode, TrieRoot } from './TrieNode/TrieNode.js';
|
|
22
|
+
export { FLAG_WORD } from './TrieNode/TrieNode.js';
|
|
22
23
|
export { isDefined } from './utils/isDefined.js';
|
|
23
24
|
export { mergeDefaults } from './utils/mergeDefaults.js';
|
|
24
25
|
export { mergeOptionalWithDefaults } from './utils/mergeOptionalWithDefaults.js';
|
package/dist/lib/trie.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { SuggestionOptions } from './suggestions/genSuggestionsOptions.js';
|
|
|
4
4
|
import type { FindFullResult } from './TrieNode/find.js';
|
|
5
5
|
import type { TrieNode, TrieRoot } from './TrieNode/TrieNode.js';
|
|
6
6
|
import type { CompoundWordsMethod, WalkerIterator } from './walker/index.js';
|
|
7
|
-
export { PartialTrieInfo as PartialTrieOptions, TrieInfo as TrieOptions } from './ITrieNode/TrieInfo.js';
|
|
7
|
+
export type { PartialTrieInfo as PartialTrieOptions, TrieInfo as TrieOptions } from './ITrieNode/TrieInfo.js';
|
|
8
8
|
export declare class Trie {
|
|
9
9
|
readonly root: TrieRoot;
|
|
10
10
|
private count?;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cspell-trie-lib",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.15.0",
|
|
4
4
|
"description": "Trie Data Structure to support cspell.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -30,11 +30,13 @@
|
|
|
30
30
|
"clean-build": "pnpm run clean && pnpm run build",
|
|
31
31
|
"coverage": "vitest run --coverage",
|
|
32
32
|
"test:watch": "vitest",
|
|
33
|
-
"test:perf": "
|
|
33
|
+
"test:perf": "pnpm test:perf:js --all",
|
|
34
|
+
"test:perf:ts": "NODE_ENV=production NODE_OPTIONS=--import=@swc-node/register/esm-register insight --file \"**/*.perf.{mts,ts}\" -t 500",
|
|
34
35
|
"test:perf:js": "NODE_ENV=production insight -t 500",
|
|
35
36
|
"test:perf:prof": "NODE_ENV=production node --cpu-prof ../../node_modules/perf-insight/bin.mjs -t 1000",
|
|
36
37
|
"perf": "pnpm test:perf",
|
|
37
38
|
"test": "vitest run",
|
|
39
|
+
"test:update-snapshot": "vitest run -u",
|
|
38
40
|
"watch": "tsc -p . -w"
|
|
39
41
|
},
|
|
40
42
|
"repository": {
|
|
@@ -53,8 +55,8 @@
|
|
|
53
55
|
},
|
|
54
56
|
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-trie-lib#readme",
|
|
55
57
|
"dependencies": {
|
|
56
|
-
"@cspell/cspell-pipe": "8.
|
|
57
|
-
"@cspell/cspell-types": "8.
|
|
58
|
+
"@cspell/cspell-pipe": "8.15.0",
|
|
59
|
+
"@cspell/cspell-types": "8.15.0",
|
|
58
60
|
"gensequence": "^7.0.0"
|
|
59
61
|
},
|
|
60
62
|
"engines": {
|
|
@@ -66,5 +68,5 @@
|
|
|
66
68
|
"@cspell/dict-nl-nl": "^2.3.0",
|
|
67
69
|
"import-meta-resolve": "^4.1.0"
|
|
68
70
|
},
|
|
69
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "60b04562dfa023eede01929d86fa944163c07256"
|
|
70
72
|
}
|