cspell 8.15.6 → 8.16.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/README.md CHANGED
@@ -170,7 +170,8 @@ Options:
170
170
  --no-cache Do not use cache.
171
171
  --cache-reset Reset the cache file.
172
172
  --cache-strategy <strategy> Strategy to use for detecting changed files.
173
- (choices: "metadata", "content")
173
+ (choices: "content", "metadata", default:
174
+ "content")
174
175
  --cache-location <path> Path to the cache file or directory. (default:
175
176
  ".cspellcache")
176
177
  --dot Include files and directories starting with `.`
@@ -105,10 +105,9 @@ export function commandLint(prog) {
105
105
  .option('--cache', 'Use cache to only check changed files.')
106
106
  .option('--no-cache', 'Do not use cache.')
107
107
  .option('--cache-reset', 'Reset the cache file.')
108
- .addOption(crOpt('--cache-strategy <strategy>', 'Strategy to use for detecting changed files.').choices([
109
- 'metadata',
110
- 'content',
111
- ]))
108
+ .addOption(crOpt('--cache-strategy <strategy>', 'Strategy to use for detecting changed files.')
109
+ .choices(['content', 'metadata'])
110
+ .default('content'))
112
111
  .option('--cache-location <path>', `Path to the cache file or directory. (default: "${DEFAULT_CACHE_LOCATION}")`)
113
112
  .option('--dot', 'Include files and directories starting with `.` (period) when matching globs.')
114
113
  .option('--gitignore', 'Ignore files matching glob patterns found in .gitignore files.')
@@ -1,6 +1,6 @@
1
1
  export { pkgDir } from './dirname.js';
2
2
  export declare const name = "cspell";
3
- export declare const version = "8.15.6";
3
+ export declare const version = "8.16.0";
4
4
  export declare const engines: {
5
5
  node: string;
6
6
  };
@@ -1,7 +1,7 @@
1
1
  // This file is generated by tools/patch-version.mjs
2
2
  export { pkgDir } from './dirname.js';
3
3
  export const name = 'cspell';
4
- export const version = '8.15.6';
4
+ export const version = '8.16.0';
5
5
  export const engines = { node: '>=18' };
6
6
  export const npmPackage = { name, version, engines };
7
7
  //# sourceMappingURL=pkgInfo.js.map
@@ -24,7 +24,7 @@ export async function calcCacheSettings(config, cacheOptions, root) {
24
24
  const cs = config.cache ?? {};
25
25
  const useCache = cacheOptions.cache ?? cs.useCache ?? false;
26
26
  const cacheLocation = await resolveCacheLocation(path.resolve(root, cacheOptions.cacheLocation ?? cs.cacheLocation ?? DEFAULT_CACHE_LOCATION));
27
- const cacheStrategy = cacheOptions.cacheStrategy ?? cs.cacheStrategy ?? 'metadata';
27
+ const cacheStrategy = cacheOptions.cacheStrategy ?? cs.cacheStrategy ?? 'content';
28
28
  const cacheFormat = cacheOptions.cacheFormat ?? cs.cacheFormat ?? 'universal';
29
29
  const optionals = {};
30
30
  if (cacheOptions.cacheReset) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cspell",
3
- "version": "8.15.6",
3
+ "version": "8.16.0",
4
4
  "description": "A Spelling Checker for Code!",
5
5
  "funding": "https://github.com/streetsidesoftware/cspell?sponsor=1",
6
6
  "bin": {
@@ -81,19 +81,19 @@
81
81
  },
82
82
  "homepage": "https://cspell.org/",
83
83
  "dependencies": {
84
- "@cspell/cspell-json-reporter": "8.15.6",
85
- "@cspell/cspell-pipe": "8.15.6",
86
- "@cspell/cspell-types": "8.15.6",
87
- "@cspell/dynamic-import": "8.15.6",
88
- "@cspell/url": "8.15.6",
84
+ "@cspell/cspell-json-reporter": "8.16.0",
85
+ "@cspell/cspell-pipe": "8.16.0",
86
+ "@cspell/cspell-types": "8.16.0",
87
+ "@cspell/dynamic-import": "8.16.0",
88
+ "@cspell/url": "8.16.0",
89
89
  "chalk": "^5.3.0",
90
90
  "chalk-template": "^1.1.0",
91
91
  "commander": "^12.1.0",
92
- "cspell-dictionary": "8.15.6",
93
- "cspell-gitignore": "8.15.6",
94
- "cspell-glob": "8.15.6",
95
- "cspell-io": "8.15.6",
96
- "cspell-lib": "8.15.6",
92
+ "cspell-dictionary": "8.16.0",
93
+ "cspell-gitignore": "8.16.0",
94
+ "cspell-glob": "8.16.0",
95
+ "cspell-io": "8.16.0",
96
+ "cspell-lib": "8.16.0",
97
97
  "fast-json-stable-stringify": "^2.1.0",
98
98
  "file-entry-cache": "^9.1.0",
99
99
  "get-stdin": "^9.0.0",
@@ -111,5 +111,5 @@
111
111
  "micromatch": "^4.0.8",
112
112
  "minimatch": "^9.0.5"
113
113
  },
114
- "gitHead": "fa9d2dff7ea196b9b59b9089c8511c538433c054"
114
+ "gitHead": "41cd50f9ba34033b6da32408855d7fc3b888c5e0"
115
115
  }