@eggjs/tegg-runtime 4.0.0-beta.8 → 4.0.1-beta.0

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.
Files changed (38) hide show
  1. package/dist/factory/EggContainerFactory.d.ts +30 -0
  2. package/dist/{ContextInitiator-DazHfq05.js → factory/EggContainerFactory.js} +5 -85
  3. package/dist/factory/EggObjectFactory.d.ts +17 -0
  4. package/dist/factory/EggObjectFactory.js +49 -0
  5. package/dist/factory/LoadUnitInstanceFactory.d.ts +15 -0
  6. package/dist/factory/LoadUnitInstanceFactory.js +49 -0
  7. package/dist/factory/index.d.ts +3 -0
  8. package/dist/factory/index.js +5 -0
  9. package/dist/impl/ContextInitiator.d.ts +13 -0
  10. package/dist/impl/ContextInitiator.js +44 -0
  11. package/dist/impl/ContextObjectGraph.d.ts +10 -0
  12. package/dist/impl/ContextObjectGraph.js +36 -0
  13. package/dist/impl/EggAlwaysNewObjectContainer.d.ts +17 -0
  14. package/dist/impl/EggAlwaysNewObjectContainer.js +29 -0
  15. package/dist/impl/EggObjectImpl.d.ts +21 -0
  16. package/dist/impl/EggObjectImpl.js +124 -0
  17. package/dist/impl/EggObjectUtil.d.ts +11 -0
  18. package/dist/impl/EggObjectUtil.js +144 -0
  19. package/dist/impl/ModuleLoadUnitInstance.d.ts +22 -0
  20. package/dist/impl/ModuleLoadUnitInstance.js +73 -0
  21. package/dist/impl/index.d.ts +6 -0
  22. package/dist/impl/index.js +8 -0
  23. package/dist/index.d.ts +17 -168
  24. package/dist/index.js +17 -524
  25. package/dist/model/AbstractEggContext.d.ts +22 -0
  26. package/dist/model/AbstractEggContext.js +82 -0
  27. package/dist/model/ContextHandler.d.ts +12 -0
  28. package/dist/model/ContextHandler.js +18 -0
  29. package/dist/model/EggContext.d.ts +7 -0
  30. package/dist/model/EggContext.js +7 -0
  31. package/dist/model/EggObject.d.ts +7 -0
  32. package/dist/model/EggObject.js +7 -0
  33. package/dist/model/LoadUnitInstance.d.ts +7 -0
  34. package/dist/model/LoadUnitInstance.js +7 -0
  35. package/dist/model/index.d.ts +5 -0
  36. package/dist/model/index.js +7 -0
  37. package/package.json +33 -37
  38. package/dist/ContextInitiator-GmZYvMSm.js +0 -3
@@ -0,0 +1,7 @@
1
+ import { LifecycleUtil } from "@eggjs/lifecycle";
2
+
3
+ //#region src/model/EggContext.ts
4
+ const EggContextLifecycleUtil = new LifecycleUtil();
5
+
6
+ //#endregion
7
+ export { EggContextLifecycleUtil };
@@ -0,0 +1,7 @@
1
+ import { EggObject, EggObjectLifeCycleContext } from "@eggjs/tegg-types";
2
+ import { LifecycleUtil } from "@eggjs/lifecycle";
3
+
4
+ //#region src/model/EggObject.d.ts
5
+ declare const EggObjectLifecycleUtil: LifecycleUtil<EggObjectLifeCycleContext, EggObject>;
6
+ //#endregion
7
+ export { EggObjectLifecycleUtil };
@@ -0,0 +1,7 @@
1
+ import { LifecycleUtil } from "@eggjs/lifecycle";
2
+
3
+ //#region src/model/EggObject.ts
4
+ const EggObjectLifecycleUtil = new LifecycleUtil();
5
+
6
+ //#endregion
7
+ export { EggObjectLifecycleUtil };
@@ -0,0 +1,7 @@
1
+ import { LoadUnitInstance, LoadUnitInstanceLifecycleContext } from "@eggjs/tegg-types";
2
+ import { LifecycleUtil } from "@eggjs/lifecycle";
3
+
4
+ //#region src/model/LoadUnitInstance.d.ts
5
+ declare const LoadUnitInstanceLifecycleUtil: LifecycleUtil<LoadUnitInstanceLifecycleContext, LoadUnitInstance>;
6
+ //#endregion
7
+ export { LoadUnitInstanceLifecycleUtil };
@@ -0,0 +1,7 @@
1
+ import { LifecycleUtil } from "@eggjs/lifecycle";
2
+
3
+ //#region src/model/LoadUnitInstance.ts
4
+ const LoadUnitInstanceLifecycleUtil = new LifecycleUtil();
5
+
6
+ //#endregion
7
+ export { LoadUnitInstanceLifecycleUtil };
@@ -0,0 +1,5 @@
1
+ import { AbstractEggContext } from "./AbstractEggContext.js";
2
+ import { ContextHandler } from "./ContextHandler.js";
3
+ import { EggContextLifecycleUtil } from "./EggContext.js";
4
+ import { EggObjectLifecycleUtil } from "./EggObject.js";
5
+ import { LoadUnitInstanceLifecycleUtil } from "./LoadUnitInstance.js";
@@ -0,0 +1,7 @@
1
+ import { ContextHandler } from "./ContextHandler.js";
2
+ import { EggObjectLifecycleUtil } from "./EggObject.js";
3
+ import { LoadUnitInstanceLifecycleUtil } from "./LoadUnitInstance.js";
4
+ import { EggContextLifecycleUtil } from "./EggContext.js";
5
+ import { AbstractEggContext } from "./AbstractEggContext.js";
6
+
7
+ export { };
package/package.json CHANGED
@@ -1,59 +1,55 @@
1
1
  {
2
2
  "name": "@eggjs/tegg-runtime",
3
- "version": "4.0.0-beta.8",
3
+ "version": "4.0.1-beta.0",
4
4
  "description": "tegg runtime",
5
- "type": "module",
6
- "exports": {
7
- ".": "./dist/index.js",
8
- "./package.json": "./package.json"
9
- },
10
- "files": [
11
- "dist"
12
- ],
13
5
  "keywords": [
14
6
  "egg",
15
- "typescript",
16
7
  "runtime",
17
- "tegg"
8
+ "tegg",
9
+ "typescript"
18
10
  ],
19
- "author": "killagu <killa123@126.com>",
20
- "license": "MIT",
21
- "homepage": "https://github.com/eggjs/tegg/tree/next/core/runtime",
11
+ "homepage": "https://github.com/eggjs/egg/tree/next/tegg/core/runtime",
22
12
  "bugs": {
23
- "url": "https://github.com/eggjs/tegg/issues"
13
+ "url": "https://github.com/eggjs/egg/issues"
24
14
  },
15
+ "license": "MIT",
16
+ "author": "killagu <killa123@126.com>",
25
17
  "repository": {
26
18
  "type": "git",
27
- "url": "git@github.com:eggjs/tegg.git",
28
- "directory": "core/runtime"
19
+ "url": "git+https://github.com/eggjs/egg.git",
20
+ "directory": "tegg/core/runtime"
29
21
  },
30
- "engines": {
31
- "node": ">=22.18.0"
22
+ "files": [
23
+ "dist"
24
+ ],
25
+ "type": "module",
26
+ "main": "./dist/index.js",
27
+ "module": "./dist/index.js",
28
+ "types": "./dist/index.d.ts",
29
+ "exports": {
30
+ ".": "./dist/index.js",
31
+ "./package.json": "./package.json"
32
+ },
33
+ "publishConfig": {
34
+ "access": "public"
32
35
  },
33
36
  "dependencies": {
34
- "@eggjs/core-decorator": "4.0.0-beta.8",
35
- "@eggjs/tegg-common-util": "4.0.0-beta.8",
36
- "@eggjs/tegg-lifecycle": "4.0.0-beta.8",
37
- "@eggjs/tegg-metadata": "4.0.0-beta.8",
38
- "@eggjs/tegg-types": "4.0.0-beta.8"
37
+ "@eggjs/lifecycle": "4.0.1-beta.0",
38
+ "@eggjs/core-decorator": "4.0.1-beta.0",
39
+ "@eggjs/metadata": "4.0.1-beta.0",
40
+ "@eggjs/tegg-common-util": "4.0.1-beta.0",
41
+ "@eggjs/tegg-types": "4.0.1-beta.0"
39
42
  },
40
43
  "devDependencies": {
41
- "@types/node": "^22.10.5",
44
+ "@types/node": "^24.10.2",
42
45
  "typescript": "^5.9.3",
43
- "tsdown": "^0.15.6",
44
- "unplugin-unused": "^0.5.3",
45
- "@eggjs/module-test-util": "4.0.0-beta.4",
46
- "@eggjs/tegg-loader": "4.0.0-beta.8"
46
+ "@eggjs/module-test-util": "4.0.0-beta.29",
47
+ "@eggjs/tegg-loader": "4.0.1-beta.0"
47
48
  },
48
- "publishConfig": {
49
- "access": "public"
49
+ "engines": {
50
+ "node": ">=22.18.0"
50
51
  },
51
- "main": "./dist/index.js",
52
- "module": "./dist/index.js",
53
- "types": "./dist/index.d.ts",
54
52
  "scripts": {
55
- "clean": "rimraf dist",
56
- "build": "tsdown",
57
- "typecheck": "tsc --noEmit"
53
+ "typecheck": "tsgo --noEmit"
58
54
  }
59
55
  }
@@ -1,3 +0,0 @@
1
- import { ContextInitiator } from "./ContextInitiator-DazHfq05.js";
2
-
3
- export { ContextInitiator };