@eggjs/tegg 4.0.0-beta.3 → 4.0.0-beta.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.
package/README.md CHANGED
@@ -1,6 +1,19 @@
1
1
  # `@eggjs/tegg`
2
2
 
3
+ [![NPM version][npm-image]][npm-url]
4
+ [![Known Vulnerabilities][snyk-image]][snyk-url]
5
+ [![npm download][download-image]][download-url]
6
+ [![Node.js Version](https://img.shields.io/node/v/@eggjs/tegg.svg?style=flat)](https://nodejs.org/en/download/)
7
+
8
+ [npm-image]: https://img.shields.io/npm/v/@eggjs/tegg.svg?style=flat-square
9
+ [npm-url]: https://npmjs.org/package/@eggjs/tegg
10
+ [snyk-image]: https://snyk.io/test/npm/@eggjs/tegg/badge.svg?style=flat-square
11
+ [snyk-url]: https://snyk.io/test/npm/@eggjs/tegg
12
+ [download-image]: https://img.shields.io/npm/dm/@eggjs/tegg.svg?style=flat-square
13
+ [download-url]: https://npmjs.org/package/@eggjs/tegg
14
+
3
15
  ## Install
16
+
4
17
  ```sh
5
18
  npm i @eggjs/tegg @eggjs/tegg-plugin
6
19
  ```
package/dist/ajv.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "@eggjs/ajv-decorator";
package/dist/ajv.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from "@eggjs/ajv-decorator"
2
+
3
+ export { };
package/dist/aop.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "@eggjs/aop-decorator";
package/dist/aop.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from "@eggjs/aop-decorator"
2
+
3
+ export { };
package/dist/dal.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "@eggjs/dal-decorator";
package/dist/dal.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from "@eggjs/dal-decorator"
2
+
3
+ export { };
@@ -0,0 +1,4 @@
1
+ export * from "@eggjs/tegg-runtime";
2
+ export * from "@eggjs/tegg-loader";
3
+ export * from "@eggjs/tegg-metadata";
4
+ export * from "@eggjs/tegg-common-util";
package/dist/helper.js ADDED
@@ -0,0 +1,9 @@
1
+ export * from "@eggjs/tegg-runtime"
2
+
3
+ export * from "@eggjs/tegg-loader"
4
+
5
+ export * from "@eggjs/tegg-metadata"
6
+
7
+ export * from "@eggjs/tegg-common-util"
8
+
9
+ export { };
@@ -0,0 +1,12 @@
1
+ import * as aop from "@eggjs/aop-decorator";
2
+ import { ModuleConfig, ModuleConfigHolder, ModuleConfigs, RuntimeConfig } from "@eggjs/tegg-common-util";
3
+ import * as orm from "@eggjs/tegg-orm-decorator";
4
+ import * as schedule from "@eggjs/tegg-schedule-decorator";
5
+ import { Logger } from "@eggjs/tegg-types";
6
+ export * from "@eggjs/core-decorator";
7
+ export * from "@eggjs/tegg-lifecycle";
8
+ export * from "@eggjs/controller-decorator";
9
+ export * from "@eggjs/eventbus-decorator";
10
+ export * from "@eggjs/tegg-dynamic-inject";
11
+ export * from "@eggjs/tegg-background-task";
12
+ export { type Logger, type ModuleConfig, type ModuleConfigHolder, ModuleConfigs, type RuntimeConfig, aop, orm, schedule };
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
1
+ import * as aop from "@eggjs/aop-decorator";
2
+ import { ModuleConfigs } from "@eggjs/tegg-common-util";
3
+ import * as orm from "@eggjs/tegg-orm-decorator";
4
+ import * as schedule from "@eggjs/tegg-schedule-decorator";
5
+
6
+ export * from "@eggjs/core-decorator"
7
+
8
+ export * from "@eggjs/tegg-lifecycle"
9
+
10
+ export * from "@eggjs/controller-decorator"
11
+
12
+ export * from "@eggjs/eventbus-decorator"
13
+
14
+ export * from "@eggjs/tegg-dynamic-inject"
15
+
16
+ export * from "@eggjs/tegg-background-task"
17
+
18
+ export { ModuleConfigs, aop, orm, schedule };
package/dist/orm.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "@eggjs/tegg-orm-decorator";
package/dist/orm.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from "@eggjs/tegg-orm-decorator"
2
+
3
+ export { };
@@ -0,0 +1 @@
1
+ export * from "@eggjs/tegg-schedule-decorator";
@@ -0,0 +1,3 @@
1
+ export * from "@eggjs/tegg-schedule-decorator"
2
+
3
+ export { };
@@ -0,0 +1 @@
1
+ export * from "@eggjs/standalone-decorator";
@@ -0,0 +1,3 @@
1
+ export * from "@eggjs/standalone-decorator"
2
+
3
+ export { };
@@ -0,0 +1 @@
1
+ export * from "@eggjs/tegg-transaction-decorator";
@@ -0,0 +1,3 @@
1
+ export * from "@eggjs/tegg-transaction-decorator"
2
+
3
+ export { };
@@ -0,0 +1 @@
1
+ export { };
package/dist/types.js ADDED
@@ -0,0 +1 @@
1
+ export { };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/tegg",
3
- "version": "4.0.0-beta.3",
3
+ "version": "4.0.0-beta.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -13,55 +13,24 @@
13
13
  ],
14
14
  "type": "module",
15
15
  "exports": {
16
- ".": {
17
- "types": "./index.d.ts",
18
- "default": "./index.js"
19
- },
20
- "./ajv": {
21
- "types": "./ajv.d.ts",
22
- "default": "./ajv.js"
23
- },
24
- "./aop": {
25
- "types": "./aop.d.ts",
26
- "default": "./aop.js"
27
- },
28
- "./dal": {
29
- "types": "./dal.d.ts",
30
- "default": "./dal.js"
31
- },
32
- "./helper": {
33
- "types": "./helper.d.ts",
34
- "default": "./helper.js"
35
- },
36
- "./orm": {
37
- "types": "./orm.d.ts",
38
- "default": "./orm.js"
39
- },
40
- "./schedule": {
41
- "types": "./schedule.d.ts",
42
- "default": "./schedule.js"
43
- },
44
- "./standalone": {
45
- "types": "./standalone.d.ts",
46
- "default": "./standalone.js"
47
- },
48
- "./transaction": {
49
- "types": "./transaction.d.ts",
50
- "default": "./transaction.js"
51
- }
16
+ ".": "./dist/index.js",
17
+ "./ajv": "./dist/ajv.js",
18
+ "./aop": "./dist/aop.js",
19
+ "./dal": "./dist/dal.js",
20
+ "./helper": "./dist/helper.js",
21
+ "./orm": "./dist/orm.js",
22
+ "./schedule": "./dist/schedule.js",
23
+ "./standalone": "./dist/standalone.js",
24
+ "./transaction": "./dist/transaction.js",
25
+ "./types": "./dist/types.js",
26
+ "./package.json": "./package.json"
52
27
  },
53
28
  "files": [
54
- "*.js",
55
- "*.d.ts"
29
+ "dist"
56
30
  ],
57
- "scripts": {
58
- "clean": "tsc -b --clean",
59
- "tsc:pub": "npm run clean && tsc -p ./tsconfig.json",
60
- "prepublishOnly": "npm run tsc:pub"
61
- },
62
31
  "author": "killagu <killa123@126.com>",
63
32
  "license": "MIT",
64
- "homepage": "https://github.com/eggjs/tegg",
33
+ "homepage": "https://github.com/eggjs/tegg/tree/next/core/tegg",
65
34
  "bugs": {
66
35
  "url": "https://github.com/eggjs/tegg/issues"
67
36
  },
@@ -71,32 +40,40 @@
71
40
  "directory": "core/tegg"
72
41
  },
73
42
  "engines": {
74
- "node": ">=20.0.0"
43
+ "node": ">=22.18.0"
75
44
  },
76
45
  "dependencies": {
77
- "@eggjs/ajv-decorator": "^4.0.0-beta.3",
78
- "@eggjs/aop-decorator": "^4.0.0-beta.3",
79
- "@eggjs/controller-decorator": "^4.0.0-beta.3",
80
- "@eggjs/core-decorator": "^4.0.0-beta.3",
81
- "@eggjs/dal-decorator": "^4.0.0-beta.3",
82
- "@eggjs/eventbus-decorator": "^4.0.0-beta.3",
83
- "@eggjs/standalone-decorator": "^4.0.0-beta.3",
84
- "@eggjs/tegg-background-task": "^4.0.0-beta.3",
85
- "@eggjs/tegg-common-util": "^4.0.0-beta.3",
86
- "@eggjs/tegg-dynamic-inject": "^4.0.0-beta.3",
87
- "@eggjs/tegg-lifecycle": "^4.0.0-beta.3",
88
- "@eggjs/tegg-loader": "^4.0.0-beta.3",
89
- "@eggjs/tegg-metadata": "^4.0.0-beta.3",
90
- "@eggjs/tegg-orm-decorator": "^4.0.0-beta.3",
91
- "@eggjs/tegg-runtime": "^4.0.0-beta.3",
92
- "@eggjs/tegg-schedule-decorator": "^4.0.0-beta.3",
93
- "@eggjs/tegg-transaction-decorator": "^4.0.0-beta.3",
94
- "@eggjs/tegg-types": "^4.0.0-beta.3"
46
+ "@eggjs/ajv-decorator": "4.0.0-beta.5",
47
+ "@eggjs/controller-decorator": "4.0.0-beta.5",
48
+ "@eggjs/core-decorator": "4.0.0-beta.5",
49
+ "@eggjs/dal-decorator": "4.0.0-beta.5",
50
+ "@eggjs/aop-decorator": "4.0.0-beta.5",
51
+ "@eggjs/standalone-decorator": "4.0.0-beta.5",
52
+ "@eggjs/eventbus-decorator": "4.0.0-beta.5",
53
+ "@eggjs/tegg-background-task": "4.0.0-beta.5",
54
+ "@eggjs/tegg-dynamic-inject": "4.0.0-beta.5",
55
+ "@eggjs/tegg-lifecycle": "4.0.0-beta.5",
56
+ "@eggjs/tegg-common-util": "4.0.0-beta.5",
57
+ "@eggjs/tegg-loader": "4.0.0-beta.5",
58
+ "@eggjs/tegg-metadata": "4.0.0-beta.5",
59
+ "@eggjs/tegg-orm-decorator": "4.0.0-beta.5",
60
+ "@eggjs/tegg-runtime": "4.0.0-beta.5",
61
+ "@eggjs/tegg-transaction-decorator": "4.0.0-beta.5",
62
+ "@eggjs/tegg-schedule-decorator": "4.0.0-beta.5",
63
+ "@eggjs/tegg-types": "4.0.0-beta.5"
95
64
  },
96
65
  "devDependencies": {
97
- "@types/node": "22",
98
- "ts-node": "10",
99
- "typescript": "5"
66
+ "@types/node": "^22.10.5",
67
+ "typescript": "^5.9.3",
68
+ "tsdown": "^0.15.6",
69
+ "unplugin-unused": "^0.5.3"
100
70
  },
101
- "gitHead": "6b84b0275fd728a4973746a5341236fe0481a33e"
102
- }
71
+ "main": "./dist/index.js",
72
+ "module": "./dist/index.js",
73
+ "types": "./dist/index.d.ts",
74
+ "scripts": {
75
+ "clean": "rimraf dist",
76
+ "build": "tsdown",
77
+ "typecheck": "tsc --noEmit"
78
+ }
79
+ }
package/ajv.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from '@eggjs/ajv-decorator';
package/ajv.js DELETED
@@ -1,2 +0,0 @@
1
- export * from '@eggjs/ajv-decorator';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWp2LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYWp2LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsc0JBQXNCLENBQUMifQ==
package/aop.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from '@eggjs/aop-decorator';
package/aop.js DELETED
@@ -1,2 +0,0 @@
1
- export * from '@eggjs/aop-decorator';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW9wLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYW9wLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsc0JBQXNCLENBQUMifQ==
package/dal.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from '@eggjs/dal-decorator';
package/dal.js DELETED
@@ -1,2 +0,0 @@
1
- export * from '@eggjs/dal-decorator';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGFsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGFsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsc0JBQXNCLENBQUMifQ==
package/helper.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from '@eggjs/tegg-runtime';
2
- export * from '@eggjs/tegg-loader';
3
- export * from '@eggjs/tegg-metadata';
4
- export * from '@eggjs/tegg-common-util';
package/helper.js DELETED
@@ -1,5 +0,0 @@
1
- export * from '@eggjs/tegg-runtime';
2
- export * from '@eggjs/tegg-loader';
3
- export * from '@eggjs/tegg-metadata';
4
- export * from '@eggjs/tegg-common-util';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVscGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaGVscGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMscUJBQXFCLENBQUM7QUFDcEMsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLHNCQUFzQixDQUFDO0FBQ3JDLGNBQWMseUJBQXlCLENBQUMifQ==
package/index.d.ts DELETED
@@ -1,12 +0,0 @@
1
- export * from '@eggjs/core-decorator';
2
- export * from '@eggjs/tegg-lifecycle';
3
- export * from '@eggjs/controller-decorator';
4
- export * from '@eggjs/eventbus-decorator';
5
- export * from '@eggjs/tegg-dynamic-inject';
6
- export * from '@eggjs/tegg-background-task';
7
- export * as aop from '@eggjs/aop-decorator';
8
- export * as orm from '@eggjs/tegg-orm-decorator';
9
- export * as schedule from '@eggjs/tegg-schedule-decorator';
10
- export { ModuleConfigs, ModuleConfig } from '@eggjs/tegg-common-util';
11
- export type { RuntimeConfig, ModuleConfigHolder } from '@eggjs/tegg-common-util';
12
- export type { Logger } from '@eggjs/tegg-types';
package/index.js DELETED
@@ -1,11 +0,0 @@
1
- export * from '@eggjs/core-decorator';
2
- export * from '@eggjs/tegg-lifecycle';
3
- export * from '@eggjs/controller-decorator';
4
- export * from '@eggjs/eventbus-decorator';
5
- export * from '@eggjs/tegg-dynamic-inject';
6
- export * from '@eggjs/tegg-background-task';
7
- export * as aop from '@eggjs/aop-decorator';
8
- export * as orm from '@eggjs/tegg-orm-decorator';
9
- export * as schedule from '@eggjs/tegg-schedule-decorator';
10
- export { ModuleConfigs } from '@eggjs/tegg-common-util';
11
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsdUJBQXVCLENBQUM7QUFDdEMsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxPQUFPLEtBQUssR0FBRyxNQUFNLHNCQUFzQixDQUFDO0FBQzVDLE9BQU8sS0FBSyxHQUFHLE1BQU0sMkJBQTJCLENBQUM7QUFDakQsT0FBTyxLQUFLLFFBQVEsTUFBTSxnQ0FBZ0MsQ0FBQztBQUMzRCxPQUFPLEVBQUUsYUFBYSxFQUFnQixNQUFNLHlCQUF5QixDQUFDIn0=
package/orm.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from '@eggjs/tegg-orm-decorator';
package/orm.js DELETED
@@ -1,2 +0,0 @@
1
- export * from '@eggjs/tegg-orm-decorator';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsib3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMkJBQTJCLENBQUMifQ==
package/schedule.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from '@eggjs/tegg-schedule-decorator';
package/schedule.js DELETED
@@ -1,2 +0,0 @@
1
- export * from '@eggjs/tegg-schedule-decorator';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZWR1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzY2hlZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGdDQUFnQyxDQUFDIn0=
package/standalone.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from '@eggjs/standalone-decorator';
package/standalone.js DELETED
@@ -1,2 +0,0 @@
1
- export * from '@eggjs/standalone-decorator';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhbmRhbG9uZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInN0YW5kYWxvbmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw2QkFBNkIsQ0FBQyJ9
package/transaction.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from '@eggjs/tegg-transaction-decorator';
package/transaction.js DELETED
@@ -1,2 +0,0 @@
1
- export * from '@eggjs/tegg-transaction-decorator';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0cmFuc2FjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG1DQUFtQyxDQUFDIn0=