@eggjs/redis 4.0.0-beta.33 → 4.0.0-beta.34

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/README.md CHANGED
@@ -36,11 +36,10 @@ If you want to know specific usage, you should refer to the document of [ioredis
36
36
  Change `${app_root}/config/plugin.ts` to enable redis plugin:
37
37
 
38
38
  ```ts
39
+ import redisPlugin from '@eggjs/redis';
40
+
39
41
  export default {
40
- redis: {
41
- enable: true,
42
- package: '@eggjs/redis',
43
- },
42
+ ...redisPlugin(),
44
43
  };
45
44
  ```
46
45
 
package/dist/index.d.ts CHANGED
@@ -1 +1,18 @@
1
1
  import './types.ts';
2
+ import { type EggPluginFactory } from 'egg';
3
+ /**
4
+ * Redis plugin
5
+ *
6
+ * @since 4.1.0
7
+ * Usage:
8
+ * ```ts
9
+ * // config/plugin.ts
10
+ * import redisPlugin from '@eggjs/redis';
11
+ *
12
+ * export default {
13
+ * ...redisPlugin(),
14
+ * };
15
+ * ```
16
+ */
17
+ declare const _default: EggPluginFactory;
18
+ export default _default;
package/dist/index.js CHANGED
@@ -1,2 +1,22 @@
1
1
  import "./types.js";
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxZQUFZLENBQUMifQ==
2
+ import { definePluginFactory } from 'egg';
3
+ /**
4
+ * Redis plugin
5
+ *
6
+ * @since 4.1.0
7
+ * Usage:
8
+ * ```ts
9
+ * // config/plugin.ts
10
+ * import redisPlugin from '@eggjs/redis';
11
+ *
12
+ * export default {
13
+ * ...redisPlugin(),
14
+ * };
15
+ * ```
16
+ */
17
+ export default definePluginFactory({
18
+ name: 'redis',
19
+ enable: true,
20
+ path: import.meta.dirname,
21
+ });
22
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxZQUFZLENBQUM7QUFFcEIsT0FBTyxFQUFFLG1CQUFtQixFQUF5QixNQUFNLEtBQUssQ0FBQztBQUVqRTs7Ozs7Ozs7Ozs7OztHQWFHO0FBQ0gsZUFBZSxtQkFBbUIsQ0FBQztJQUNqQyxJQUFJLEVBQUUsT0FBTztJQUNiLE1BQU0sRUFBRSxJQUFJO0lBQ1osSUFBSSxFQUFFLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTztDQUMxQixDQUFxQixDQUFDIn0=
package/package.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "name": "@eggjs/redis",
3
- "version": "4.0.0-beta.33",
3
+ "version": "4.0.0-beta.34",
4
4
  "description": "Valkey / Redis plugin for egg",
5
5
  "type": "module",
6
- "eggPlugin": {
7
- "name": "redis"
8
- },
9
6
  "exports": {
10
7
  ".": "./dist/index.js",
11
8
  "./agent": "./dist/agent.js",
@@ -47,7 +44,7 @@
47
44
  "ioredis": "^5.4.2"
48
45
  },
49
46
  "peerDependencies": {
50
- "egg": "4.1.0-beta.33"
47
+ "egg": "4.1.0-beta.34"
51
48
  },
52
49
  "devDependencies": {
53
50
  "@types/node": "^24.9.1",
@@ -56,10 +53,10 @@
56
53
  "rimraf": "^6.0.1",
57
54
  "tsdown": "0.15.11",
58
55
  "typescript": "^5.9.3",
59
- "vitest": "4.0.4",
60
- "@eggjs/mock": "7.0.0-beta.33",
61
- "@eggjs/tsconfig": "3.1.0-beta.33",
62
- "egg": "4.1.0-beta.33"
56
+ "vitest": "4.0.5",
57
+ "@eggjs/mock": "7.0.0-beta.34",
58
+ "@eggjs/tsconfig": "3.1.0-beta.34",
59
+ "egg": "4.1.0-beta.34"
63
60
  },
64
61
  "main": "./dist/index.js",
65
62
  "module": "./dist/index.js",