phecda-server 6.1.0 → 7.0.0-alpha.1

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 (82) hide show
  1. package/assets/ps.json +24 -24
  2. package/bin/cli.mjs +165 -157
  3. package/dist/{chunk-NL6QBQAR.js → chunk-7YQ57BQS.js} +21 -22
  4. package/dist/chunk-GSPBHZBH.js +534 -0
  5. package/dist/{chunk-J7B24YSE.mjs → chunk-HMVLXNV3.mjs} +5 -14
  6. package/dist/{chunk-TVT62GIX.js → chunk-J5CFUN4V.js} +8 -1
  7. package/dist/{chunk-JDV2XJYE.js → chunk-MBCHNDAY.js} +27 -36
  8. package/dist/{chunk-2CFYUXPM.mjs → chunk-V7EI76QQ.mjs} +136 -141
  9. package/dist/{chunk-G7TD2VB7.mjs → chunk-WHJ5FALK.mjs} +7 -0
  10. package/dist/{chunk-3H3T54IC.mjs → chunk-XYVMNY2X.mjs} +4 -5
  11. package/dist/{core-P1CsH6jz.d.mts → core-BIcUwV18.d.mts} +1 -1
  12. package/dist/{core-BlN0Spy9.d.ts → core-CYwEPfN4.d.ts} +1 -1
  13. package/dist/helper.d.mts +4 -6
  14. package/dist/helper.d.ts +4 -6
  15. package/dist/helper.js +3 -3
  16. package/dist/helper.mjs +2 -2
  17. package/dist/{server → http}/elysia/index.d.mts +5 -5
  18. package/dist/{server → http}/elysia/index.d.ts +5 -5
  19. package/dist/{server → http}/elysia/index.js +80 -62
  20. package/dist/{server → http}/elysia/index.mjs +50 -32
  21. package/dist/{server → http}/express/index.d.mts +5 -5
  22. package/dist/{server → http}/express/index.d.ts +5 -5
  23. package/dist/{server → http}/express/index.js +71 -55
  24. package/dist/{server → http}/express/index.mjs +42 -26
  25. package/dist/{server → http}/fastify/index.d.mts +5 -5
  26. package/dist/{server → http}/fastify/index.d.ts +5 -5
  27. package/dist/{server → http}/fastify/index.js +72 -72
  28. package/dist/{server → http}/fastify/index.mjs +47 -47
  29. package/dist/{server → http}/h3/index.d.mts +5 -5
  30. package/dist/{server → http}/h3/index.d.ts +5 -5
  31. package/dist/http/h3/index.js +160 -0
  32. package/dist/{server → http}/h3/index.mjs +68 -62
  33. package/dist/{server → http}/hono/index.d.mts +5 -5
  34. package/dist/{server → http}/hono/index.d.ts +5 -5
  35. package/dist/{server → http}/hono/index.js +69 -54
  36. package/dist/{server → http}/hono/index.mjs +41 -26
  37. package/dist/{server → http}/hyper-express/index.d.mts +5 -5
  38. package/dist/{server → http}/hyper-express/index.d.ts +5 -5
  39. package/dist/{server → http}/hyper-express/index.js +69 -56
  40. package/dist/{server → http}/hyper-express/index.mjs +41 -28
  41. package/dist/{server → http}/koa/index.d.mts +5 -5
  42. package/dist/{server → http}/koa/index.d.ts +5 -5
  43. package/dist/{server → http}/koa/index.js +71 -55
  44. package/dist/{server → http}/koa/index.mjs +42 -26
  45. package/dist/index.d.mts +52 -41
  46. package/dist/index.d.ts +52 -41
  47. package/dist/index.js +59 -81
  48. package/dist/index.mjs +39 -61
  49. package/dist/{meta-KtfiBIde.d.ts → meta-BXKLFTgG.d.mts} +2 -3
  50. package/dist/{meta-KtfiBIde.d.mts → meta-BXKLFTgG.d.ts} +2 -3
  51. package/dist/rpc/bullmq/index.d.mts +6 -6
  52. package/dist/rpc/bullmq/index.d.ts +6 -6
  53. package/dist/rpc/bullmq/index.js +24 -24
  54. package/dist/rpc/bullmq/index.mjs +14 -14
  55. package/dist/rpc/kafka/index.d.mts +3 -3
  56. package/dist/rpc/kafka/index.d.ts +3 -3
  57. package/dist/rpc/kafka/index.js +25 -21
  58. package/dist/rpc/kafka/index.mjs +15 -11
  59. package/dist/rpc/nats/index.d.mts +3 -3
  60. package/dist/rpc/nats/index.d.ts +3 -3
  61. package/dist/rpc/nats/index.js +22 -21
  62. package/dist/rpc/nats/index.mjs +13 -12
  63. package/dist/rpc/rabbitmq/index.d.mts +3 -3
  64. package/dist/rpc/rabbitmq/index.d.ts +3 -3
  65. package/dist/rpc/rabbitmq/index.js +23 -22
  66. package/dist/rpc/rabbitmq/index.mjs +12 -11
  67. package/dist/rpc/redis/index.d.mts +3 -3
  68. package/dist/rpc/redis/index.d.ts +3 -3
  69. package/dist/rpc/redis/index.js +24 -20
  70. package/dist/rpc/redis/index.mjs +15 -11
  71. package/dist/test.d.mts +3 -3
  72. package/dist/test.d.ts +3 -3
  73. package/dist/test.js +6 -6
  74. package/dist/test.mjs +2 -2
  75. package/dist/{types-JVT0mgLD.d.ts → types-BtbL49Zs.d.mts} +2 -1
  76. package/dist/{types-DIw7B6Up.d.ts → types-VFzEM7LL.d.ts} +5 -5
  77. package/dist/{types-BvD3B5Ny.d.mts → types-h40T3cRG.d.mts} +5 -5
  78. package/dist/{types-t9D1fU6G.d.mts → types-m3IEDKjP.d.ts} +2 -1
  79. package/package.json +23 -23
  80. package/register/loader.mjs +366 -367
  81. package/dist/chunk-DVTBLV6I.js +0 -539
  82. package/dist/server/h3/index.js +0 -154
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phecda-server",
3
- "version": "6.1.0",
3
+ "version": "7.0.0-alpha.1",
4
4
  "description": "server framework that provide IOC/type-reuse/http&rpc-adaptor",
5
5
  "author": "fgsreally",
6
6
  "license": "MIT",
@@ -26,32 +26,32 @@
26
26
  "import": "./dist/test.mjs"
27
27
  },
28
28
  "./h3": {
29
- "require": "./dist/server/h3/index.js",
30
- "import": "./dist/server/h3/index.mjs"
29
+ "require": "./dist/http/h3/index.js",
30
+ "import": "./dist/http/h3/index.mjs"
31
31
  },
32
32
  "./express": {
33
- "require": "./dist/server/express/index.js",
34
- "import": "./dist/server/express/index.mjs"
33
+ "require": "./dist/http/express/index.js",
34
+ "import": "./dist/http/express/index.mjs"
35
35
  },
36
36
  "./koa": {
37
- "require": "./dist/server/koa/index.js",
38
- "import": "./dist/server/koa/index.mjs"
37
+ "require": "./dist/http/koa/index.js",
38
+ "import": "./dist/http/koa/index.mjs"
39
39
  },
40
40
  "./fastify": {
41
- "require": "./dist/server/fastify/index.js",
42
- "import": "./dist/server/fastify/index.mjs"
41
+ "require": "./dist/http/fastify/index.js",
42
+ "import": "./dist/http/fastify/index.mjs"
43
43
  },
44
44
  "./hyper-express": {
45
- "require": "./dist/server/hyper-express/index.js",
46
- "import": "./dist/server/hyper-express/index.mjs"
45
+ "require": "./dist/http/hyper-express/index.js",
46
+ "import": "./dist/http/hyper-express/index.mjs"
47
47
  },
48
48
  "./hono": {
49
- "require": "./dist/server/hono/index.js",
50
- "import": "./dist/server/hono/index.mjs"
49
+ "require": "./dist/http/hono/index.js",
50
+ "import": "./dist/http/hono/index.mjs"
51
51
  },
52
52
  "./elysia": {
53
- "require": "./dist/server/elysia/index.js",
54
- "import": "./dist/server/elysia/index.mjs"
53
+ "require": "./dist/http/elysia/index.js",
54
+ "import": "./dist/http/elysia/index.mjs"
55
55
  },
56
56
  "./redis": {
57
57
  "require": "./dist/rpc/redis/index.js",
@@ -91,25 +91,25 @@
91
91
  "dist/helper.d.ts"
92
92
  ],
93
93
  "h3": [
94
- "dist/server/h3/index.d.ts"
94
+ "dist/http/h3/index.d.ts"
95
95
  ],
96
96
  "express": [
97
- "dist/server/express/index.d.ts"
97
+ "dist/http/express/index.d.ts"
98
98
  ],
99
99
  "koa": [
100
- "dist/server/koa/index.d.ts"
100
+ "dist/http/koa/index.d.ts"
101
101
  ],
102
102
  "fastify": [
103
- "dist/server/fastify/index.d.ts"
103
+ "dist/http/fastify/index.d.ts"
104
104
  ],
105
105
  "hyper-express": [
106
- "dist/server/hyper-express/index.d.ts"
106
+ "dist/http/hyper-express/index.d.ts"
107
107
  ],
108
108
  "hono": [
109
- "dist/server/hono/index.d.ts"
109
+ "dist/http/hono/index.d.ts"
110
110
  ],
111
111
  "elysia": [
112
- "dist/server/elysia/index.d.ts"
112
+ "dist/http/elysia/index.d.ts"
113
113
  ],
114
114
  "redis": [
115
115
  "dist/rpc/redis/index.d.ts"
@@ -143,6 +143,7 @@
143
143
  "chokidar": "^3.5.3",
144
144
  "debug": "^4.3.4",
145
145
  "fs-extra": "^11.2.0",
146
+ "h3": "^1.12.0",
146
147
  "picocolors": "^1.0.0",
147
148
  "reflect-metadata": "^0.1.13",
148
149
  "ts-mixer": "^6.0.4",
@@ -163,7 +164,6 @@
163
164
  "elysia": "^1.0.17",
164
165
  "express": "^4.18.2",
165
166
  "fastify": "^4.25.1",
166
- "h3": "^1.11.1",
167
167
  "hono": "^4.3.4",
168
168
  "hyper-express": "^6.15.2",
169
169
  "ioredis": "^5.3.2",