file-entry-cache 10.0.3 → 10.0.5

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/index.cjs CHANGED
@@ -28,14 +28,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
30
  // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
33
  FileEntryCache: () => FileEntryCache,
34
34
  create: () => create,
35
35
  createFromFile: () => createFromFile,
36
36
  default: () => FileEntryDefault
37
37
  });
38
- module.exports = __toCommonJS(src_exports);
38
+ module.exports = __toCommonJS(index_exports);
39
39
  var import_node_crypto = __toESM(require("crypto"), 1);
40
40
  var import_node_fs = __toESM(require("fs"), 1);
41
41
  var import_node_path = __toESM(require("path"), 1);
@@ -251,9 +251,6 @@ var FileEntryCache = class {
251
251
  this._cache.setKey(result.key, result.meta);
252
252
  return result;
253
253
  }
254
- if (result.meta.data !== metaCache.data) {
255
- result.changed = true;
256
- }
257
254
  if (result.meta.data === void 0) {
258
255
  result.meta.data = metaCache.data;
259
256
  }
package/dist/index.js CHANGED
@@ -214,9 +214,6 @@ var FileEntryCache = class {
214
214
  this._cache.setKey(result.key, result.meta);
215
215
  return result;
216
216
  }
217
- if (result.meta.data !== metaCache.data) {
218
- result.changed = true;
219
- }
220
217
  if (result.meta.data === void 0) {
221
218
  result.meta.data = metaCache.data;
222
219
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "file-entry-cache",
3
- "version": "10.0.3",
3
+ "version": "10.0.5",
4
4
  "description": "A lightweight cache for file metadata, ideal for processes that work on a specific set of files and only need to reprocess files that have changed since the last run",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -29,16 +29,16 @@
29
29
  "cache"
30
30
  ],
31
31
  "devDependencies": {
32
- "@types/node": "^22.9.3",
33
- "@vitest/coverage-v8": "^2.1.5",
32
+ "@types/node": "^22.10.2",
33
+ "@vitest/coverage-v8": "^2.1.8",
34
34
  "rimraf": "^6.0.1",
35
35
  "tsup": "^8.3.5",
36
36
  "typescript": "^5.7.2",
37
- "vitest": "^2.1.5",
38
- "xo": "^0.59.3"
37
+ "vitest": "^2.1.8",
38
+ "xo": "^0.60.0"
39
39
  },
40
40
  "dependencies": {
41
- "flat-cache": "^6.1.2"
41
+ "flat-cache": "^6.1.5"
42
42
  },
43
43
  "files": [
44
44
  "dist",
@@ -46,6 +46,7 @@
46
46
  ],
47
47
  "scripts": {
48
48
  "build": "rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean",
49
+ "prepublish": "pnpm build",
49
50
  "test": "xo --fix && vitest run --coverage",
50
51
  "test:ci": "xo && vitest run",
51
52
  "clean": "rimraf ./dist ./coverage ./node_modules"