@adonisjs/cache 2.0.1-next.0 → 2.0.1-next.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/build/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export { store } from './src/store.ts';
3
3
  export { configure } from './configure.ts';
4
4
  export { defineConfig } from './src/define_config.ts';
5
5
  export { drivers } from './src/drivers.ts';
6
+ export { tracingChannels } from 'bentocache';
package/build/index.js CHANGED
@@ -219,9 +219,13 @@ var drivers = {
219
219
  });
220
220
  }
221
221
  };
222
+
223
+ // index.ts
224
+ import { tracingChannels } from "bentocache";
222
225
  export {
223
226
  configure,
224
227
  defineConfig,
225
228
  drivers,
226
- store
229
+ store,
230
+ tracingChannels
227
231
  };
@@ -34,7 +34,11 @@ export default class CacheProvider {
34
34
  /**
35
35
  * Register bindings
36
36
  */
37
- register(): Promise<void>;
37
+ register(): void;
38
+ /**
39
+ * Boot provider
40
+ */
41
+ boot(): Promise<void>;
38
42
  /**
39
43
  * Gracefully shutdown connections when app goes down
40
44
  */
@@ -34,7 +34,7 @@ var CacheProvider = class {
34
34
  /**
35
35
  * Register the cache manager to the container
36
36
  */
37
- async #registerCacheManager() {
37
+ #registerCacheManager() {
38
38
  const cacheConfig = this.app.config.get("cache");
39
39
  this.app.container.singleton("cache.manager", async () => {
40
40
  const { BentoCache } = await import("bentocache");
@@ -71,10 +71,15 @@ var CacheProvider = class {
71
71
  /**
72
72
  * Register bindings
73
73
  */
74
- async register() {
75
- await this.#registerCacheManager();
76
- await this.#registerReplBindings();
74
+ register() {
75
+ this.#registerCacheManager();
76
+ }
77
+ /**
78
+ * Boot provider
79
+ */
80
+ async boot() {
77
81
  await this.#registerEdgeBindings();
82
+ await this.#registerReplBindings();
78
83
  }
79
84
  /**
80
85
  * Gracefully shutdown connections when app goes down
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adonisjs/cache",
3
3
  "description": "Official caching module for AdonisJS framework",
4
- "version": "2.0.1-next.0",
4
+ "version": "2.0.1-next.1",
5
5
  "engines": {
6
6
  "node": ">=22.0.0"
7
7
  },
@@ -38,40 +38,40 @@
38
38
  "prepublishOnly": "npm run build"
39
39
  },
40
40
  "devDependencies": {
41
- "@adonisjs/assembler": "^8.0.0-next.19",
42
- "@adonisjs/core": "^7.0.0-next.13",
43
- "@adonisjs/eslint-config": "^3.0.0-next.4",
44
- "@adonisjs/lucid": "^22.0.0-next.1",
41
+ "@adonisjs/assembler": "^8.0.0-next.28",
42
+ "@adonisjs/core": "^7.0.0-next.18",
43
+ "@adonisjs/eslint-config": "^3.0.0-next.7",
44
+ "@adonisjs/lucid": "^22.0.0-next.3",
45
45
  "@adonisjs/prettier-config": "^1.4.5",
46
- "@adonisjs/redis": "^10.0.0-next.1",
46
+ "@adonisjs/redis": "^10.0.0-next.2",
47
47
  "@adonisjs/tsconfig": "^2.0.0-next.3",
48
- "@japa/assert": "^4.1.1",
49
- "@japa/expect-type": "^2.0.3",
48
+ "@japa/assert": "^4.2.0",
49
+ "@japa/expect-type": "^2.0.4",
50
50
  "@japa/file-system": "^2.3.2",
51
51
  "@japa/runner": "^4.4.0",
52
- "@japa/snapshot": "^2.0.9",
52
+ "@japa/snapshot": "^2.0.10",
53
53
  "@poppinss/ts-exec": "^1.4.1",
54
- "@release-it/conventional-changelog": "^10.0.2",
55
- "@types/node": "~24.10.1",
54
+ "@release-it/conventional-changelog": "^10.0.4",
55
+ "@types/node": "~24.10.4",
56
56
  "better-sqlite3": "^12.5.0",
57
57
  "c8": "^10.1.3",
58
58
  "copyfiles": "^2.4.1",
59
59
  "del-cli": "^7.0.0",
60
- "edge.js": "^6.3.0",
61
- "eslint": "^9.39.1",
60
+ "edge.js": "^6.4.0",
61
+ "eslint": "^9.39.2",
62
62
  "ioredis": "^5.8.2",
63
63
  "knex": "^3.1.0",
64
64
  "luxon": "^3.7.2",
65
- "mysql2": "^3.15.3",
66
- "p-event": "^7.0.1",
65
+ "mysql2": "^3.16.0",
66
+ "p-event": "^7.0.2",
67
67
  "pg": "^8.16.3",
68
68
  "prettier": "^3.7.4",
69
- "release-it": "^19.0.6",
69
+ "release-it": "^19.2.2",
70
70
  "tsup": "^8.5.1",
71
71
  "typescript": "~5.9.3"
72
72
  },
73
73
  "dependencies": {
74
- "bentocache": "^1.5.0"
74
+ "bentocache": "^1.6.0"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "@adonisjs/assembler": "^8.0.0-next.19",
@@ -161,5 +161,5 @@
161
161
  "sourcemap": false,
162
162
  "target": "esnext"
163
163
  },
164
- "packageManager": "pnpm@10.24.0"
164
+ "packageManager": "pnpm@10.27.0"
165
165
  }