flat-cache 6.1.11 → 6.1.12

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
@@ -123,7 +123,7 @@ In version 6 we attempted to keep as much as the functionality as possible which
123
123
 
124
124
  - `create(options?: FlatCacheOptions)` - Creates a new cache and will load the data from disk if it exists
125
125
  - `createFromFile(filePath, options?: FlatCacheOptions)` - Creates a new cache from a file
126
- - `clearCacheById(cacheId: string, cacheDir?: string)` - Clears the cache by the cacheId
126
+ - `clearCacheById(cacheId: string, cacheDir?: string)` - Clears the cache by the cacheId on the file system not in memory.
127
127
  - `clearAll(cacheDirectory?: string)` - Clears all the caches
128
128
 
129
129
 
package/dist/index.d.cts CHANGED
@@ -239,7 +239,7 @@ declare function create(options?: FlatCacheOptions): FlatCache;
239
239
  */
240
240
  declare function createFromFile(filePath: string, options?: FlatCacheOptions): FlatCache;
241
241
  /**
242
- * Clear the cache identified by the given Id
242
+ * Clear the cache identified by the given Id. This will only remove the cache from disk.
243
243
  * @method clearCacheById
244
244
  * @param cacheId {String} the id of the cache
245
245
  * @param cacheDirectory {String} directory for the cache entry
package/dist/index.d.ts CHANGED
@@ -239,7 +239,7 @@ declare function create(options?: FlatCacheOptions): FlatCache;
239
239
  */
240
240
  declare function createFromFile(filePath: string, options?: FlatCacheOptions): FlatCache;
241
241
  /**
242
- * Clear the cache identified by the given Id
242
+ * Clear the cache identified by the given Id. This will only remove the cache from disk.
243
243
  * @method clearCacheById
244
244
  * @param cacheId {String} the id of the cache
245
245
  * @param cacheDirectory {String} directory for the cache entry
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flat-cache",
3
- "version": "6.1.11",
3
+ "version": "6.1.12",
4
4
  "description": "A simple key/value storage using files to persist the data",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -52,18 +52,19 @@
52
52
  "file-system-cache"
53
53
  ],
54
54
  "devDependencies": {
55
- "@types/node": "^24.0.7",
55
+ "@faker-js/faker": "^9.9.0",
56
+ "@types/node": "^24.1.0",
56
57
  "@vitest/coverage-v8": "^3.2.4",
57
58
  "rimraf": "^6.0.1",
58
59
  "tsup": "^8.5.0",
59
60
  "typescript": "^5.8.3",
60
61
  "vitest": "^3.2.4",
61
- "xo": "^1.1.1"
62
+ "xo": "^1.2.1"
62
63
  },
63
64
  "dependencies": {
64
65
  "flatted": "^3.3.3",
65
66
  "hookified": "^1.10.0",
66
- "cacheable": "^1.10.1"
67
+ "cacheable": "^1.10.3"
67
68
  },
68
69
  "files": [
69
70
  "dist",