@adonisjs/cache 1.0.0-0 → 1.0.0-2

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.
@@ -6,6 +6,7 @@
6
6
  * For the full copyright and license information, please view the LICENSE
7
7
  * file that was distributed with this source code.
8
8
  */
9
+ import { stubsRoot } from './stubs/main.js';
9
10
  const DRIVERS = ['redis', 'file', 'memory', 'database', 'dynamodb'];
10
11
  const DRIVERS_INFO = {
11
12
  file: {},
@@ -57,5 +58,5 @@ export async function configure(command) {
57
58
  /**
58
59
  * Publish config
59
60
  */
60
- await command.publishStub('config.stub', { driver: driver });
61
+ await codemods.makeUsingStub(stubsRoot, 'config.stub', { driver: driver });
61
62
  }
package/build/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export { errors } from 'bentocache';
2
2
  export { configure } from './configure.js';
3
- export { stubsRoot } from './stubs/main.js';
4
3
  export { defineConfig } from './src/define_config.js';
5
4
  export { drivers } from './src/drivers.js';
6
5
  export { store } from './src/store.js';
package/build/index.js CHANGED
@@ -8,7 +8,6 @@
8
8
  */
9
9
  export { errors } from 'bentocache';
10
10
  export { configure } from './configure.js';
11
- export { stubsRoot } from './stubs/main.js';
12
11
  export { defineConfig } from './src/define_config.js';
13
12
  export { drivers } from './src/drivers.js';
14
13
  export { store } from './src/store.js';
@@ -30,7 +30,7 @@ export declare class Store {
30
30
  * Create a config provider for the store
31
31
  */
32
32
  entry(): ConfigProvider<{
33
- "__#70@#private": any;
33
+ "__#116@#private": any;
34
34
  useL1Layer(driver: CreateDriverResult<L1CacheDriver>): any;
35
35
  useL2Layer(driver: CreateDriverResult<L2CacheDriver>): any;
36
36
  useBus(bus: CreateBusDriverResult): any;
@@ -6,5 +6,6 @@
6
6
  * For the full copyright and license information, please view the LICENSE
7
7
  * file that was distributed with this source code.
8
8
  */
9
- import { getDirname } from '@poppinss/utils';
10
- export const stubsRoot = getDirname(import.meta.url);
9
+ import { dirname } from 'node:path';
10
+ import { fileURLToPath } from 'node:url';
11
+ export const stubsRoot = dirname(fileURLToPath(import.meta.url));
package/package.json CHANGED
@@ -1,23 +1,17 @@
1
1
  {
2
2
  "name": "@adonisjs/cache",
3
3
  "description": "Official caching module for AdonisJS framework",
4
- "version": "1.0.0-0",
4
+ "version": "1.0.0-2",
5
5
  "engines": {
6
6
  "node": ">=18.16.0"
7
7
  },
8
8
  "main": "build/index.js",
9
9
  "type": "module",
10
10
  "files": [
11
- "build/configure.js",
12
- "build/configure.d.ts",
13
- "build/index.js",
14
- "build/index.d.ts",
15
- "build/factories",
16
- "build/providers",
17
- "build/services",
18
- "build/commands",
19
- "build/src",
20
- "build/stubs"
11
+ "build",
12
+ "!build/bin",
13
+ "!build/tests",
14
+ "!build/test_helpers"
21
15
  ],
22
16
  "exports": {
23
17
  ".": "./build/index.js",
@@ -45,47 +39,43 @@
45
39
  "prepublishOnly": "npm run build"
46
40
  },
47
41
  "devDependencies": {
48
- "@adonisjs/assembler": "^6.1.3-25",
49
- "@adonisjs/core": "^6.1.5-29",
50
- "@adonisjs/eslint-config": "^1.1.8",
51
- "@adonisjs/lucid": "19.0.0-3",
52
- "@adonisjs/prettier-config": "^1.1.8",
53
- "@adonisjs/redis": "8.0.0-12",
54
- "@adonisjs/tsconfig": "^1.1.8",
55
- "@japa/assert": "2.0.1",
56
- "@japa/expect-type": "^2.0.0",
57
- "@japa/file-system": "^2.0.1",
58
- "@japa/runner": "^3.0.5",
59
- "@japa/snapshot": "^2.0.1",
60
- "@swc/core": "^1.3.96",
61
- "@types/node": "^20.8.10",
62
- "better-sqlite3": "^9.0.0",
63
- "c8": "^8.0.1",
42
+ "@adonisjs/assembler": "^7.0.0",
43
+ "@adonisjs/core": "^6.2.0",
44
+ "@adonisjs/eslint-config": "^1.2.1",
45
+ "@adonisjs/lucid": "19.0.0",
46
+ "@adonisjs/prettier-config": "^1.2.1",
47
+ "@adonisjs/redis": "8.0.1",
48
+ "@adonisjs/tsconfig": "^1.2.1",
49
+ "@japa/assert": "2.1.0",
50
+ "@japa/expect-type": "^2.0.1",
51
+ "@japa/file-system": "^2.2.0",
52
+ "@japa/runner": "^3.1.1",
53
+ "@japa/snapshot": "^2.0.4",
54
+ "@swc/core": "^1.3.105",
55
+ "@types/node": "^20.11.5",
56
+ "better-sqlite3": "^9.3.0",
57
+ "c8": "^9.1.0",
64
58
  "copyfiles": "^2.4.1",
65
59
  "del-cli": "^5.1.0",
66
- "eslint": "^8.53.0",
60
+ "eslint": "^8.56.0",
67
61
  "ioredis": "^5.3.2",
68
- "luxon": "^3.4.3",
69
- "np": "^8.0.4",
62
+ "luxon": "^3.4.4",
63
+ "np": "^9.2.0",
70
64
  "p-event": "^6.0.0",
71
- "prettier": "^3.0.3",
72
- "ts-node": "^10.9.1",
73
- "typescript": "^5.2.2"
65
+ "prettier": "^3.2.4",
66
+ "ts-node": "^10.9.2",
67
+ "typescript": "~5.3.3"
74
68
  },
75
69
  "dependencies": {
76
- "@poppinss/utils": "^6.5.1",
77
- "bentocache": "1.0.0-beta.4"
70
+ "bentocache": "1.0.0-beta.6"
78
71
  },
79
72
  "peerDependencies": {
80
- "@adonisjs/assembler": "^6.1.3-22",
81
- "@adonisjs/core": "^6.1.5-26",
82
- "@adonisjs/lucid": "19.0.0-3",
83
- "@adonisjs/redis": "8.0.0-12"
73
+ "@adonisjs/assembler": "^7.0.0",
74
+ "@adonisjs/core": "^6.2.0",
75
+ "@adonisjs/lucid": "19.0.0",
76
+ "@adonisjs/redis": "^8.0.0"
84
77
  },
85
78
  "peerDependenciesMeta": {
86
- "@adonisjs/assembler": {
87
- "optional": true
88
- },
89
79
  "@adonisjs/redis": {
90
80
  "optional": true
91
81
  },