@adonisjs/cache 1.0.0-3 → 1.0.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.
@@ -1 +1 @@
1
- {"commands":[{"commandName":"cache:clear","description":"Clear the application cache","help":"","namespace":"cache","aliases":[],"flags":[{"name":"store","flagName":"store","required":false,"type":"string","description":"Define a custom cache store to clear","alias":"s"}],"args":[],"options":{"startApp":true},"filePath":"cache_clear.js","absoluteFilePath":"/Users/romainlanz/workspace/adonis/cache/build/commands/cache_clear.js"}],"version":1}
1
+ {"commands":[{"commandName":"cache:clear","description":"Clear the application cache","help":"","namespace":"cache","aliases":[],"flags":[{"name":"store","flagName":"store","required":false,"type":"string","description":"Define a custom cache store to clear","alias":"s"}],"args":[],"options":{"startApp":true},"filePath":"cache_clear.js"}],"version":1}
@@ -72,11 +72,13 @@ export const drivers = {
72
72
  /**
73
73
  * Create the driver
74
74
  */
75
- const { knexDriver } = await import('bentocache/drivers/sql');
76
- return knexDriver({
77
- connection: rawConnection.connection.client,
78
- dialect: dialect === 'postgres' ? 'pg' : dialect,
75
+ const { default: knex } = await import('knex');
76
+ const knexClient = knex({
77
+ ...rawConnection.config,
78
+ client: dialect === 'postgres' ? 'pg' : dialect,
79
79
  });
80
+ const { knexDriver } = await import('bentocache/drivers/knex');
81
+ return knexDriver({ connection: knexClient });
80
82
  });
81
83
  },
82
84
  /**
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": "1.0.0-3",
4
+ "version": "1.0.0-5",
5
5
  "engines": {
6
6
  "node": ">=18.16.0"
7
7
  },
@@ -34,46 +34,46 @@
34
34
  "prebuild": "npm run lint && npm run clean",
35
35
  "build": "tsc",
36
36
  "postbuild": "npm run copy:templates && npm run index:commands",
37
- "release": "np",
37
+ "release": "npx release-it",
38
38
  "version": "npm run build",
39
39
  "prepublishOnly": "npm run build"
40
40
  },
41
41
  "devDependencies": {
42
- "@adonisjs/assembler": "^7.2.3",
43
- "@adonisjs/core": "^6.3.1",
42
+ "@adonisjs/assembler": "^7.7.0",
43
+ "@adonisjs/core": "^6.12.1",
44
44
  "@adonisjs/eslint-config": "^1.3.0",
45
- "@adonisjs/lucid": "20.5.1",
45
+ "@adonisjs/lucid": "21.1.0",
46
46
  "@adonisjs/prettier-config": "^1.3.0",
47
- "@adonisjs/redis": "8.0.1",
47
+ "@adonisjs/redis": "9.1.0",
48
48
  "@adonisjs/tsconfig": "^1.3.0",
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.4.11",
55
- "@types/node": "^20.11.30",
56
- "better-sqlite3": "^9.4.3",
57
- "c8": "^9.1.0",
49
+ "@japa/assert": "3.0.0",
50
+ "@japa/expect-type": "^2.0.2",
51
+ "@japa/file-system": "^2.3.0",
52
+ "@japa/runner": "^3.1.4",
53
+ "@japa/snapshot": "^2.0.5",
54
+ "@swc/core": "^1.6.5",
55
+ "@types/node": "^20.14.8",
56
+ "better-sqlite3": "^11.0.0",
57
+ "c8": "^10.1.2",
58
58
  "copyfiles": "^2.4.1",
59
59
  "del-cli": "^5.1.0",
60
60
  "eslint": "^8.57.0",
61
- "ioredis": "^5.3.2",
61
+ "ioredis": "^5.4.1",
62
62
  "luxon": "^3.4.4",
63
- "np": "^10.0.2",
64
63
  "p-event": "^6.0.1",
65
- "prettier": "^3.2.5",
64
+ "prettier": "^3.3.2",
65
+ "release-it": "^17.4.0",
66
66
  "ts-node": "^10.9.2",
67
- "typescript": "~5.4.3"
67
+ "typescript": "~5.5.2"
68
68
  },
69
69
  "dependencies": {
70
- "bentocache": "1.0.0-beta.7"
70
+ "bentocache": "1.0.0-beta.9"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@adonisjs/assembler": "^7.0.0",
74
74
  "@adonisjs/core": "^6.2.0",
75
- "@adonisjs/lucid": "^20.0.0",
76
- "@adonisjs/redis": "^8.0.0"
75
+ "@adonisjs/lucid": "^20.0.0 || ^21.0.0",
76
+ "@adonisjs/redis": "^8.0.0 || ^9.0.0"
77
77
  },
78
78
  "peerDependenciesMeta": {
79
79
  "@adonisjs/redis": {
@@ -99,11 +99,17 @@
99
99
  "access": "public",
100
100
  "tag": "latest"
101
101
  },
102
- "np": {
103
- "message": "chore(release): %s",
104
- "tag": "latest",
105
- "branch": "main",
106
- "anyBranch": false
102
+ "release-it": {
103
+ "git": {
104
+ "commitMessage": "chore(release): ${version}",
105
+ "tagAnnotation": "v${version}",
106
+ "tagName": "v${version}"
107
+ },
108
+ "github": {
109
+ "release": true,
110
+ "releaseName": "v${version}",
111
+ "web": true
112
+ }
107
113
  },
108
114
  "c8": {
109
115
  "reporter": [