@cacheable/node-cache 1.7.0 → 1.7.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.
package/dist/index.cjs CHANGED
@@ -32,12 +32,9 @@ var import_hookified2 = require("hookified");
32
32
  // src/store.ts
33
33
  var import_cacheable = require("cacheable");
34
34
  var import_hookified = require("hookified");
35
- var import_keyv = require("keyv");
36
35
  var NodeCacheStore = class extends import_hookified.Hookified {
37
36
  _maxKeys = 0;
38
- _cache = new import_cacheable.Cacheable({
39
- primary: new import_keyv.Keyv({ store: new import_cacheable.CacheableMemory() })
40
- });
37
+ _cache = new import_cacheable.Cacheable();
41
38
  constructor(options) {
42
39
  super();
43
40
  if (options) {
package/dist/index.js CHANGED
@@ -1,16 +1,13 @@
1
1
  // src/index.ts
2
- import { CacheableMemory as CacheableMemory2, CacheableStats, shorthandToTime } from "cacheable";
2
+ import { CacheableMemory, CacheableStats, shorthandToTime } from "cacheable";
3
3
  import { Hookified as Hookified2 } from "hookified";
4
4
 
5
5
  // src/store.ts
6
- import { Cacheable, CacheableMemory } from "cacheable";
6
+ import { Cacheable } from "cacheable";
7
7
  import { Hookified } from "hookified";
8
- import { Keyv } from "keyv";
9
8
  var NodeCacheStore = class extends Hookified {
10
9
  _maxKeys = 0;
11
- _cache = new Cacheable({
12
- primary: new Keyv({ store: new CacheableMemory() })
13
- });
10
+ _cache = new Cacheable();
14
11
  constructor(options) {
15
12
  super();
16
13
  if (options) {
@@ -226,7 +223,7 @@ var NodeCache = class extends Hookified2 {
226
223
  };
227
224
  store = /* @__PURE__ */ new Map();
228
225
  _stats = new CacheableStats({ enabled: true });
229
- _cacheable = new CacheableMemory2();
226
+ _cacheable = new CacheableMemory();
230
227
  intervalId = 0;
231
228
  constructor(options) {
232
229
  super();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cacheable/node-cache",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Simple and Maintained fast NodeJS internal caching",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -34,8 +34,9 @@
34
34
  "cacheable-node"
35
35
  ],
36
36
  "devDependencies": {
37
- "@biomejs/biome": "^2.2.0",
38
- "@types/node": "^24.3.0",
37
+ "@biomejs/biome": "^2.2.4",
38
+ "@faker-js/faker": "^10.0.0",
39
+ "@types/node": "^24.5.0",
39
40
  "@vitest/coverage-v8": "^3.2.4",
40
41
  "rimraf": "^6.0.1",
41
42
  "tsup": "^8.5.0",
@@ -43,9 +44,9 @@
43
44
  "vitest": "^3.2.4"
44
45
  },
45
46
  "dependencies": {
46
- "hookified": "^1.11.0",
47
- "keyv": "^5.5.0",
48
- "cacheable": "^1.10.4"
47
+ "hookified": "^1.12.0",
48
+ "keyv": "^5.5.1",
49
+ "cacheable": "^2.0.1"
49
50
  },
50
51
  "files": [
51
52
  "dist",
@@ -54,8 +55,9 @@
54
55
  "scripts": {
55
56
  "build": "rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean",
56
57
  "prepublish": "pnpm build",
57
- "test": "biome check --write && vitest run --coverage",
58
- "test:ci": "biome check && vitest run --coverage",
58
+ "lint": "biome check --write --error-on-warnings",
59
+ "test": "pnpm lint && vitest run --coverage",
60
+ "test:ci": "biome check --error-on-warnings && vitest run --coverage",
59
61
  "clean": "rimraf ./dist ./coverage ./node_modules"
60
62
  }
61
63
  }