cspell-lib 6.13.3 → 6.14.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.
@@ -4,6 +4,7 @@ exports.DictionaryLoader = void 0;
4
4
  const sync_1 = require("@cspell/cspell-pipe/sync");
5
5
  const cspell_dictionary_1 = require("cspell-dictionary");
6
6
  const errors_1 = require("../../util/errors");
7
+ const strong_weak_map_1 = require("@cspell/strong-weak-map");
7
8
  const SpellingDictionaryError_1 = require("../SpellingDictionaryError");
8
9
  const MAX_AGE = 10000;
9
10
  const loaders = {
@@ -28,8 +29,8 @@ var LoadingState;
28
29
  class DictionaryLoader {
29
30
  constructor(cspellIO) {
30
31
  this.cspellIO = cspellIO;
31
- this.dictionaryCache = new Map();
32
- this.dictionaryCacheByDef = new Map();
32
+ this.dictionaryCache = new strong_weak_map_1.StrongWeakMap();
33
+ this.dictionaryCacheByDef = new strong_weak_map_1.StrongWeakMap();
33
34
  this.reader = toReader(cspellIO);
34
35
  this.readerSync = toReaderSync(cspellIO);
35
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cspell-lib",
3
- "version": "6.13.3",
3
+ "version": "6.14.1",
4
4
  "description": "A library of useful functions used across various cspell tools.",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -48,18 +48,19 @@
48
48
  },
49
49
  "homepage": "https://github.com/streetsidesoftware/cspell#readme",
50
50
  "dependencies": {
51
- "@cspell/cspell-bundled-dicts": "6.13.3",
52
- "@cspell/cspell-pipe": "6.13.3",
53
- "@cspell/cspell-types": "6.13.3",
51
+ "@cspell/cspell-bundled-dicts": "6.14.1",
52
+ "@cspell/cspell-pipe": "6.14.1",
53
+ "@cspell/cspell-types": "6.14.1",
54
+ "@cspell/strong-weak-map": "6.14.1",
54
55
  "clear-module": "^4.1.2",
55
56
  "comment-json": "^4.2.3",
56
57
  "configstore": "^5.0.1",
57
58
  "cosmiconfig": "^7.0.1",
58
- "cspell-dictionary": "6.13.3",
59
- "cspell-glob": "6.13.3",
60
- "cspell-grammar": "6.13.3",
61
- "cspell-io": "6.13.3",
62
- "cspell-trie-lib": "6.13.3",
59
+ "cspell-dictionary": "6.14.1",
60
+ "cspell-glob": "6.14.1",
61
+ "cspell-grammar": "6.14.1",
62
+ "cspell-io": "6.14.1",
63
+ "cspell-trie-lib": "6.14.1",
63
64
  "fast-equals": "^4.0.3",
64
65
  "find-up": "^5.0.0",
65
66
  "fs-extra": "^10.1.0",
@@ -71,11 +72,11 @@
71
72
  "vscode-uri": "^3.0.6"
72
73
  },
73
74
  "engines": {
74
- "node": ">=14"
75
+ "node": ">=14.6"
75
76
  },
76
77
  "devDependencies": {
77
78
  "@cspell/dict-cpp": "^4.0.0",
78
- "@cspell/dict-csharp": "^4.0.0",
79
+ "@cspell/dict-csharp": "^4.0.1",
79
80
  "@cspell/dict-css": "^3.0.0",
80
81
  "@cspell/dict-fa-ir": "^2.0.0",
81
82
  "@cspell/dict-fr-fr": "^2.1.1",
@@ -84,15 +85,15 @@
84
85
  "@cspell/dict-python": "^4.0.0",
85
86
  "@types/configstore": "^5.0.1",
86
87
  "@types/fs-extra": "^9.0.13",
87
- "@types/jest": "^29.2.0",
88
- "@types/node": "^18.11.8",
88
+ "@types/jest": "^29.2.2",
89
+ "@types/node": "^18.11.9",
89
90
  "cspell-dict-nl-nl": "^1.1.2",
90
91
  "jest": "^29.2.2",
91
92
  "lorem-ipsum": "^2.0.8",
92
93
  "rimraf": "^3.0.2",
93
- "rollup": "^2.79.1",
94
+ "rollup": "^3.2.5",
94
95
  "rollup-plugin-dts": "^5.0.0",
95
96
  "ts-jest": "^29.0.3"
96
97
  },
97
- "gitHead": "a690c0bf064f8e5724bb159e337aa9162a33307f"
98
+ "gitHead": "35db1ed216cd9aaf479429d3268482f30d824e70"
98
99
  }