@cspell/cspell-types 8.15.7 → 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.
@@ -15,7 +15,7 @@
15
15
  "properties": {
16
16
  "cacheFormat": {
17
17
  "$ref": "#/definitions/CacheFormat",
18
- "default": "legacy",
18
+ "default": "universal",
19
19
  "description": "Format of the cache file.\n- `legacy` - use absolute paths in the cache file\n- `universal` - use a sharable format.",
20
20
  "markdownDescription": "Format of the cache file.\n- `legacy` - use absolute paths in the cache file\n- `universal` - use a sharable format."
21
21
  },
@@ -40,12 +40,13 @@
40
40
  "type": "object"
41
41
  },
42
42
  "CacheStrategy": {
43
- "description": "The Strategy to use to detect if a file has changed.\n- `metadata` - uses the file system timestamp and size to detect changes (fastest).\n- `content` - uses a hash of the file content to check file changes (slower - more accurate).",
43
+ "default": "content",
44
+ "description": "The Strategy to use to detect if a file has changed.\n- `content` - uses a hash of the file content to check file changes (slower - more accurate).\n- `metadata` - uses the file system timestamp and size to detect changes (fastest, may not work in CI).",
44
45
  "enum": [
45
- "metadata",
46
- "content"
46
+ "content",
47
+ "metadata"
47
48
  ],
48
- "markdownDescription": "The Strategy to use to detect if a file has changed.\n- `metadata` - uses the file system timestamp and size to detect changes (fastest).\n- `content` - uses a hash of the file content to check file changes (slower - more accurate).",
49
+ "markdownDescription": "The Strategy to use to detect if a file has changed.\n- `content` - uses a hash of the file content to check file changes (slower - more accurate).\n- `metadata` - uses the file system timestamp and size to detect changes (fastest, may not work in CI).",
49
50
  "type": "string"
50
51
  },
51
52
  "CharacterSet": {
@@ -295,10 +295,11 @@ export interface PnPSettings {
295
295
  }
296
296
  /**
297
297
  * The Strategy to use to detect if a file has changed.
298
- * - `metadata` - uses the file system timestamp and size to detect changes (fastest).
299
298
  * - `content` - uses a hash of the file content to check file changes (slower - more accurate).
299
+ * - `metadata` - uses the file system timestamp and size to detect changes (fastest, may not work in CI).
300
+ * @default 'content'
300
301
  */
301
- export type CacheStrategy = 'metadata' | 'content';
302
+ export type CacheStrategy = 'content' | 'metadata';
302
303
  export type CacheFormat = 'legacy' | 'universal';
303
304
  export interface CacheSettings {
304
305
  /**
@@ -324,7 +325,7 @@ export interface CacheSettings {
324
325
  * Format of the cache file.
325
326
  * - `legacy` - use absolute paths in the cache file
326
327
  * - `universal` - use a sharable format.
327
- * @default 'legacy'
328
+ * @default 'universal'
328
329
  */
329
330
  cacheFormat?: CacheFormat | undefined;
330
331
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "provenance": true
6
6
  },
7
- "version": "8.15.7",
7
+ "version": "8.16.0",
8
8
  "description": "Types for cspell and cspell-lib",
9
9
  "type": "commonjs",
10
10
  "sideEffects": false,
@@ -88,5 +88,5 @@
88
88
  "node": ">=18"
89
89
  },
90
90
  "homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-types#readme",
91
- "gitHead": "9decdc45e8fd0d6bb9c3851813c2c0728d3c7c5e"
91
+ "gitHead": "41cd50f9ba34033b6da32408855d7fc3b888c5e0"
92
92
  }