@jayfong/x-server 1.33.5 → 1.33.6

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.
@@ -100,17 +100,17 @@ class Server {
100
100
  websocket: isWS,
101
101
  handler: async (req, res) => {
102
102
  const url = `${appUrl}${// 结构:/test/sss?x=2
103
- req.url}`;
103
+ isWS ? res.url : req.url}`;
104
104
 
105
105
  if (isWS) {
106
106
  await item.handler.handle(undefined, {
107
107
  url: url,
108
- headers: req.headers,
109
- setHeader: (k, v) => res.header(k, v),
110
- redirect: undefined,
108
+ headers: res.headers,
109
+ setHeader: _vtils.noop,
110
+ redirect: _vtils.noop,
111
111
  ws: req,
112
- req: req,
113
- res: res
112
+ req: res,
113
+ res: {}
114
114
  });
115
115
  return;
116
116
  }
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  exports.__esModule = true;
6
6
  exports.WsParserPlugin = void 0;
7
7
 
8
- var _fastifyWebsocket = _interopRequireDefault(require("fastify-websocket"));
8
+ var _websocket = _interopRequireDefault(require("@fastify/websocket"));
9
9
 
10
10
  /**
11
11
  * websocket 解析器插件
@@ -16,7 +16,7 @@ class WsParserPlugin {
16
16
  }
17
17
 
18
18
  register(fastify) {
19
- fastify.register(_fastifyWebsocket.default, this.options);
19
+ fastify.register(_websocket.default, this.options);
20
20
  }
21
21
 
22
22
  }
@@ -1,5 +1,5 @@
1
1
  import Fastify from 'fastify';
2
- import { castArray } from 'vtils';
2
+ import { castArray, noop } from 'vtils';
3
3
  import { HandlerMethodToHttpMethod } from "./http_method";
4
4
  import { x } from "../x";
5
5
  export class Server {
@@ -85,17 +85,17 @@ export class Server {
85
85
  websocket: isWS,
86
86
  handler: async (req, res) => {
87
87
  const url = `${appUrl}${// 结构:/test/sss?x=2
88
- req.url}`;
88
+ isWS ? res.url : req.url}`;
89
89
 
90
90
  if (isWS) {
91
91
  await item.handler.handle(undefined, {
92
92
  url: url,
93
- headers: req.headers,
94
- setHeader: (k, v) => res.header(k, v),
95
- redirect: undefined,
93
+ headers: res.headers,
94
+ setHeader: noop,
95
+ redirect: noop,
96
96
  ws: req,
97
- req: req,
98
- res: res
97
+ req: res,
98
+ res: {}
99
99
  });
100
100
  return;
101
101
  }
@@ -10,7 +10,7 @@ import type { Handler } from './handler';
10
10
  import type { IncomingHttpHeaders } from 'http';
11
11
  import type { MultipartFile } from 'fastify-multipart';
12
12
  import type { Queue } from 'bull';
13
- import type { SocketStream } from 'fastify-websocket';
13
+ import type { SocketStream } from '@fastify/websocket';
14
14
  export declare namespace XServer {
15
15
  type Mode = 'development' | 'production';
16
16
  interface Route {
@@ -1,4 +1,4 @@
1
1
  import { FastifyInstance } from 'fastify';
2
2
  export interface BasePlugin {
3
- readonly register: (fastify: FastifyInstance) => void;
3
+ readonly register: (fastify: FastifyInstance<any, any, any, any, any>) => void;
4
4
  }
@@ -17,5 +17,5 @@ export interface CorsPluginOptions {
17
17
  export declare class CorsPlugin implements BasePlugin {
18
18
  private options;
19
19
  constructor(options: CorsPluginOptions);
20
- register(fastify: FastifyInstance): void;
20
+ register(fastify: FastifyInstance<any, any, any, any, any>): void;
21
21
  }
@@ -9,5 +9,5 @@ export interface FileParserPluginOptions extends FastifyMultipartOptions {
9
9
  export declare class FileParserPlugin implements BasePlugin {
10
10
  private options?;
11
11
  constructor(options?: FileParserPluginOptions);
12
- register(fastify: FastifyInstance): void;
12
+ register(fastify: FastifyInstance<any, any, any, any, any>): void;
13
13
  }
@@ -9,5 +9,5 @@ export interface FormBodyParserPluginOptions extends FormBodyPluginOptions {
9
9
  export declare class FormBodyParserPlugin implements BasePlugin {
10
10
  private options?;
11
11
  constructor(options?: FormBodyParserPluginOptions);
12
- register(fastify: FastifyInstance): void;
12
+ register(fastify: FastifyInstance<any, any, any, any, any>): void;
13
13
  }
@@ -1,4 +1,4 @@
1
- import { WebsocketPluginOptions } from 'fastify-websocket';
1
+ import { WebsocketPluginOptions } from '@fastify/websocket';
2
2
  import { BasePlugin } from './base';
3
3
  import { FastifyInstance } from 'fastify';
4
4
  export interface WsParserPluginOptions extends WebsocketPluginOptions {
@@ -9,5 +9,5 @@ export interface WsParserPluginOptions extends WebsocketPluginOptions {
9
9
  export declare class WsParserPlugin implements BasePlugin {
10
10
  private options?;
11
11
  constructor(options?: WsParserPluginOptions);
12
- register(fastify: FastifyInstance): void;
12
+ register(fastify: FastifyInstance<any, any, any, any, any>): void;
13
13
  }
@@ -1,4 +1,4 @@
1
- import FastifyWebsocket from 'fastify-websocket';
1
+ import FastifyWebsocket from '@fastify/websocket';
2
2
 
3
3
  /**
4
4
  * websocket 解析器插件
@@ -15,5 +15,5 @@ export interface XmlParserPluginOptions extends Partial<fxp.X2jOptions> {
15
15
  export declare class XmlParserPlugin implements BasePlugin {
16
16
  private options?;
17
17
  constructor(options?: XmlParserPluginOptions);
18
- register(fastify: FastifyInstance): void;
18
+ register(fastify: FastifyInstance<any, any, any, any, any>): void;
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-server",
3
- "version": "1.33.5",
3
+ "version": "1.33.6",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",
@@ -27,6 +27,7 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@fastify/formbody": "^6.0.0",
30
+ "@fastify/websocket": "^7.0.1",
30
31
  "@prisma/client": "^3.12.0",
31
32
  "@types/bull": "^3.15.8",
32
33
  "@types/busboy": "^0.3.2",
@@ -52,7 +53,6 @@
52
53
  "fastify": "^3.28.0",
53
54
  "fastify-cors": "^6.0.3",
54
55
  "fastify-multipart": "^5.3.1",
55
- "fastify-websocket": "^4.2.2",
56
56
  "fs-extra": "^10.0.1",
57
57
  "got": "^11.8.2",
58
58
  "http-errors": "^1.8.1",
package/CHANGELOG.md DELETED
@@ -1,629 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- ### [1.33.5](https://github.com/jfWorks/x-server/compare/v1.33.4...v1.33.5) (2022-08-21)
6
-
7
- ### [1.33.4](https://github.com/jfWorks/x-server/compare/v1.33.3...v1.33.4) (2022-07-17)
8
-
9
-
10
- ### Bug Fixes
11
-
12
- * remove console log ([13df7b1](https://github.com/jfWorks/x-server/commit/13df7b1728ab67df8206e79b2742f03143ff5668))
13
-
14
- ### [1.33.3](https://github.com/jfWorks/x-server/compare/v1.33.2...v1.33.3) (2022-07-07)
15
-
16
- ### [1.33.2](https://github.com/jfWorks/x-server/compare/v1.33.1...v1.33.2) (2022-06-28)
17
-
18
- ### [1.33.1](https://github.com/jfWorks/x-server/compare/v1.33.0...v1.33.1) (2022-06-12)
19
-
20
- ## [1.33.0](https://github.com/jfWorks/x-server/compare/v1.32.1...v1.33.0) (2022-06-11)
21
-
22
-
23
- ### Features
24
-
25
- * defineTask concurrency ([d8174aa](https://github.com/jfWorks/x-server/commit/d8174aa302e9013610d41265d937512a02412359))
26
-
27
- ### [1.32.1](https://github.com/jfWorks/x-server/compare/v1.32.0...v1.32.1) (2022-06-02)
28
-
29
-
30
- ### Bug Fixes
31
-
32
- * trustProxy: true ([b116aaa](https://github.com/jfWorks/x-server/commit/b116aaac3dd90364d5aaf939bf66e50a6911aad2))
33
-
34
- ## [1.32.0](https://github.com/jfWorks/x-server/compare/v1.31.3...v1.32.0) (2022-05-31)
35
-
36
-
37
- ### Features
38
-
39
- * add DingtalkService ([3cbe91c](https://github.com/jfWorks/x-server/commit/3cbe91cd82c6cfc5fa4c5bcf2d8c7eb93711ef7c))
40
-
41
- ### [1.31.3](https://github.com/jfWorks/x-server/compare/v1.31.2...v1.31.3) (2022-05-30)
42
-
43
-
44
- ### Bug Fixes
45
-
46
- * defineCron ([5d72533](https://github.com/jfWorks/x-server/commit/5d72533c039645833391ce31f0403c96b2c5ef77))
47
-
48
- ### [1.31.2](https://github.com/jfWorks/x-server/compare/v1.31.1...v1.31.2) (2022-05-30)
49
-
50
- ### [1.31.1](https://github.com/jfWorks/x-server/compare/v1.31.0...v1.31.1) (2022-05-30)
51
-
52
- ## [1.31.0](https://github.com/jfWorks/x-server/compare/v1.30.2...v1.31.0) (2022-05-30)
53
-
54
-
55
- ### Features
56
-
57
- * defineCron ([f9f362e](https://github.com/jfWorks/x-server/commit/f9f362ee0a9845f662af0b686781299390c5647d))
58
-
59
- ### [1.30.2](https://github.com/jfWorks/x-server/compare/v1.30.1...v1.30.2) (2022-05-26)
60
-
61
-
62
- ### Bug Fixes
63
-
64
- * use lz-string ([bf0e9af](https://github.com/jfWorks/x-server/commit/bf0e9af411c86ebd2b6527fc75be1476559c25fa))
65
-
66
- ### [1.30.1](https://github.com/jfWorks/x-server/compare/v1.30.0...v1.30.1) (2022-05-26)
67
-
68
-
69
- ### Bug Fixes
70
-
71
- * deflate <-> inflate ([e7c5f63](https://github.com/jfWorks/x-server/commit/e7c5f631a6a5165bbecf20b5b5923bbef4b6db1e))
72
-
73
- ## [1.30.0](https://github.com/jfWorks/x-server/compare/v1.29.0...v1.30.0) (2022-05-26)
74
-
75
-
76
- ### Features
77
-
78
- * add responseDataObfuscate ([2f1a70d](https://github.com/jfWorks/x-server/commit/2f1a70dae70c4359fbb6430ce5391f9d80ec0d17))
79
- * client_helper ([00146d1](https://github.com/jfWorks/x-server/commit/00146d133167ba8f535bff2acef4ef33412678ba))
80
-
81
- ## [1.29.0](https://github.com/jfWorks/x-server/compare/v1.28.2...v1.29.0) (2022-05-19)
82
-
83
-
84
- ### Features
85
-
86
- * jwt sign support ttl ([2e2958f](https://github.com/jfWorks/x-server/commit/2e2958f564b779838a9ca13a1b8cebc4e2a9bb59))
87
-
88
- ### [1.28.2](https://github.com/jfWorks/x-server/compare/v1.28.1...v1.28.2) (2022-05-16)
89
-
90
-
91
- ### Bug Fixes
92
-
93
- * rhel-openssl-1.1.x ([c2a752a](https://github.com/jfWorks/x-server/commit/c2a752a2c06e8a1e37c3c72154d5f21d801de8a2))
94
-
95
- ### [1.28.1](https://github.com/jfWorks/x-server/compare/v1.28.0...v1.28.1) (2022-05-16)
96
-
97
-
98
- ### Bug Fixes
99
-
100
- * rhel-openssl-1.1.x ([38bbf2f](https://github.com/jfWorks/x-server/commit/38bbf2ff3b1b22eaf37eebb7bca5bc95ee8c90a0))
101
-
102
- ## [1.28.0](https://github.com/jfWorks/x-server/compare/v1.27.4...v1.28.0) (2022-05-15)
103
-
104
-
105
- ### Features
106
-
107
- * **cache:** add rememberMany ([d6460d3](https://github.com/jfWorks/x-server/commit/d6460d363000700745834c02d145ec86658400d1))
108
-
109
- ### [1.27.4](https://github.com/jfWorks/x-server/compare/v1.27.3...v1.27.4) (2022-05-15)
110
-
111
-
112
- ### Bug Fixes
113
-
114
- * cache remove use batch ([1075902](https://github.com/jfWorks/x-server/commit/1075902984e09e766ec72b0289c4e4a5d16d5d16))
115
-
116
- ### [1.27.3](https://github.com/jfWorks/x-server/compare/v1.27.2...v1.27.3) (2022-05-11)
117
-
118
-
119
- ### Bug Fixes
120
-
121
- * api gen ([5e0086f](https://github.com/jfWorks/x-server/commit/5e0086f166bf629f0a68ddea367816abf40197f0))
122
-
123
- ### [1.27.2](https://github.com/jfWorks/x-server/compare/v1.27.1...v1.27.2) (2022-05-11)
124
-
125
-
126
- ### Bug Fixes
127
-
128
- * api gen GET ([601d94a](https://github.com/jfWorks/x-server/commit/601d94a9abd4a33a91f805dae74a0a471ba2cd59))
129
-
130
- ### [1.27.1](https://github.com/jfWorks/x-server/compare/v1.27.0...v1.27.1) (2022-05-08)
131
-
132
-
133
- ### Bug Fixes
134
-
135
- * api ([d30109c](https://github.com/jfWorks/x-server/commit/d30109ce90db1f3f9c513b9867be6123bc6373e6))
136
-
137
- ## [1.27.0](https://github.com/jfWorks/x-server/compare/v1.26.9...v1.27.0) (2022-05-07)
138
-
139
-
140
- ### Features
141
-
142
- * 添加 fastifyOptions ([0be0509](https://github.com/jfWorks/x-server/commit/0be0509adb2bfcc24ff0122b1f5d52a155370738))
143
-
144
- ### [1.26.9](https://github.com/jfWorks/x-server/compare/v1.26.8...v1.26.9) (2022-05-07)
145
-
146
-
147
- ### Bug Fixes
148
-
149
- * initTasks ([3e1984d](https://github.com/jfWorks/x-server/commit/3e1984da3ad0cb99b858f88e211c68c8a6eab8c1))
150
-
151
- ### [1.26.8](https://github.com/jfWorks/x-server/compare/v1.26.7...v1.26.8) (2022-05-07)
152
-
153
-
154
- ### Bug Fixes
155
-
156
- * init ([b8f8e44](https://github.com/jfWorks/x-server/commit/b8f8e44ed1cf282293938ab3678796a402832dc2))
157
-
158
- ### [1.26.7](https://github.com/jfWorks/x-server/compare/v1.26.6...v1.26.7) (2022-05-07)
159
-
160
-
161
- ### Bug Fixes
162
-
163
- * _ => index ([e3000d0](https://github.com/jfWorks/x-server/commit/e3000d09f20d983e3edc00d7a307b419f786e485))
164
-
165
- ### [1.26.6](https://github.com/jfWorks/x-server/compare/v1.26.5...v1.26.6) (2022-05-07)
166
-
167
-
168
- ### Bug Fixes
169
-
170
- * ServiceOptions ([bd86e66](https://github.com/jfWorks/x-server/commit/bd86e6618a5e115cbba26b56dfbeba2a427bfda7))
171
-
172
- ### [1.26.5](https://github.com/jfWorks/x-server/compare/v1.26.4...v1.26.5) (2022-05-06)
173
-
174
-
175
- ### Bug Fixes
176
-
177
- * export MailServiceSendOptions type ([7c47c23](https://github.com/jfWorks/x-server/commit/7c47c23a0d2f4d9a08f49e66a0155e282518257f))
178
-
179
- ### [1.26.4](https://github.com/jfWorks/x-server/compare/v1.26.3...v1.26.4) (2022-05-03)
180
-
181
-
182
- ### Bug Fixes
183
-
184
- * bull ([5c92fc2](https://github.com/jfWorks/x-server/commit/5c92fc2f54c6e7ddcc237553d840b72af27d8630))
185
-
186
- ### [1.26.3](https://github.com/jfWorks/x-server/compare/v1.26.2...v1.26.3) (2022-05-03)
187
-
188
-
189
- ### Bug Fixes
190
-
191
- * hexoid 构建问题 ([0620d5a](https://github.com/jfWorks/x-server/commit/0620d5a3ea3ffe3d552a68aeaa51330abde70585))
192
-
193
- ### [1.26.2](https://github.com/jfWorks/x-server/compare/v1.26.1...v1.26.2) (2022-05-03)
194
-
195
-
196
- ### Bug Fixes
197
-
198
- * defineTask ([8b32f5c](https://github.com/jfWorks/x-server/commit/8b32f5c4b068ac5c03030901dffa599df4fb6cf6))
199
-
200
- ### [1.26.1](https://github.com/jfWorks/x-server/compare/v1.26.0...v1.26.1) (2022-05-03)
201
-
202
-
203
- ### Bug Fixes
204
-
205
- * defineTask ([7d5a5d2](https://github.com/jfWorks/x-server/commit/7d5a5d247a63301dc46042238a6d31f7f4cb5423))
206
-
207
- ## [1.26.0](https://github.com/jfWorks/x-server/compare/v1.25.0...v1.26.0) (2022-05-02)
208
-
209
-
210
- ### Features
211
-
212
- * add SensitiveWordsService ([ee03592](https://github.com/jfWorks/x-server/commit/ee03592f5acd795b03fa65717ea276db66f453c1))
213
-
214
- ## [1.25.0](https://github.com/jfWorks/x-server/compare/v1.24.2...v1.25.0) (2022-05-02)
215
-
216
-
217
- ### Features
218
-
219
- * add FormBodyParserPlugin ([b51392c](https://github.com/jfWorks/x-server/commit/b51392c5dce6480f9f5250192f676421c6a1cad2))
220
- * ctx add req res ([ccd1ea0](https://github.com/jfWorks/x-server/commit/ccd1ea08f9d10e0b29ff235b1b6572b180798d8d))
221
-
222
- ### [1.24.2](https://github.com/jfWorks/x-server/compare/v1.24.1...v1.24.2) (2022-05-02)
223
-
224
-
225
- ### Bug Fixes
226
-
227
- * returnUrl? ([fb46884](https://github.com/jfWorks/x-server/commit/fb4688405c16986727be2785695e9faa6a2db386))
228
- * verifyNotifyData ([a4b76e3](https://github.com/jfWorks/x-server/commit/a4b76e3c63babc2f789646f932b1375a1c0a76e4))
229
-
230
- ### [1.24.1](https://github.com/jfWorks/x-server/compare/v1.24.0...v1.24.1) (2022-05-02)
231
-
232
- ## [1.24.0](https://github.com/jfWorks/x-server/compare/v1.23.0...v1.24.0) (2022-05-02)
233
-
234
-
235
- ### Features
236
-
237
- * add PayService ([c8d5ecc](https://github.com/jfWorks/x-server/commit/c8d5eccf2393c1a1bf98415564032b09ffb10497))
238
-
239
- ## [1.23.0](https://github.com/jfWorks/x-server/compare/v1.22.0...v1.23.0) (2022-05-01)
240
-
241
-
242
- ### Features
243
-
244
- * **captcha:** add generateDataUrl ([54205df](https://github.com/jfWorks/x-server/commit/54205df24d0cc397029d8c66ea17020d7cb5c5fd))
245
-
246
- ## [1.22.0](https://github.com/jfWorks/x-server/compare/v1.21.0...v1.22.0) (2022-05-01)
247
-
248
-
249
- ### Features
250
-
251
- * **cors:** allowAll ([5ce4b5d](https://github.com/jfWorks/x-server/commit/5ce4b5d9183f68a32173d77de569f00c5409ccdc))
252
-
253
- ## [1.21.0](https://github.com/jfWorks/x-server/compare/v1.20.1...v1.21.0) (2022-04-29)
254
-
255
-
256
- ### Features
257
-
258
- * export * from '@prisma/client' ([3e6c707](https://github.com/jfWorks/x-server/commit/3e6c707d55bad0cbb719f1b76bdd306ef0527ba1))
259
-
260
- ### [1.20.1](https://github.com/jfWorks/x-server/compare/v1.20.0...v1.20.1) (2022-04-27)
261
-
262
-
263
- ### Bug Fixes
264
-
265
- * res == null ? ({} as any) : res ([ea0c531](https://github.com/jfWorks/x-server/commit/ea0c531524636cf9a92e43646fb37bd57b6148d7))
266
-
267
- ## [1.20.0](https://github.com/jfWorks/x-server/compare/v1.19.0...v1.20.0) (2022-04-27)
268
-
269
-
270
- ### Features
271
-
272
- * add responseContentType ([dcd9841](https://github.com/jfWorks/x-server/commit/dcd9841e7940d0bc4dfd55faa69deedd1463aee0))
273
-
274
- ## [1.19.0](https://github.com/jfWorks/x-server/compare/v1.18.0...v1.19.0) (2022-04-27)
275
-
276
-
277
- ### Features
278
-
279
- * http_header ([b4cc67b](https://github.com/jfWorks/x-server/commit/b4cc67b88f523e9bb0535e9edd2ce6e27d5ff209))
280
-
281
- ## [1.18.0](https://github.com/jfWorks/x-server/compare/v1.17.0...v1.18.0) (2022-04-27)
282
-
283
-
284
- ### Features
285
-
286
- * setHeader ([07596ba](https://github.com/jfWorks/x-server/commit/07596ba1c83f6a7583e16b969332936339bd06a8))
287
-
288
- ## [1.17.0](https://github.com/jfWorks/x-server/compare/v1.16.1...v1.17.0) (2022-04-27)
289
-
290
-
291
- ### Features
292
-
293
- * add ctx.url ([1092009](https://github.com/jfWorks/x-server/commit/10920094646e975e74dc0339ecc290e257f3ca52))
294
-
295
- ### [1.16.1](https://github.com/jfWorks/x-server/compare/v1.16.0...v1.16.1) (2022-04-27)
296
-
297
-
298
- ### Bug Fixes
299
-
300
- * RateLimitService ([20a489e](https://github.com/jfWorks/x-server/commit/20a489e3cb119ba055d4c77983354f607f61af0b))
301
-
302
- ## [1.16.0](https://github.com/jfWorks/x-server/compare/v1.15.3...v1.16.0) (2022-04-27)
303
-
304
-
305
- ### Features
306
-
307
- * add RateLimitService ([49b5edb](https://github.com/jfWorks/x-server/commit/49b5edba451dd355a24a1b5cc4e52ec14a8769e4))
308
-
309
-
310
- ### Bug Fixes
311
-
312
- * X_SERVER_ENVS ([6586cec](https://github.com/jfWorks/x-server/commit/6586cec0eb69336c379a52eb7bb67b29f6694785))
313
-
314
- ### [1.15.3](https://github.com/jfWorks/x-server/compare/v1.15.2...v1.15.3) (2022-04-26)
315
-
316
-
317
- ### Bug Fixes
318
-
319
- * verify ([aeaddd0](https://github.com/jfWorks/x-server/commit/aeaddd0eb307e815ee3d8f92e48dd7755cabce89))
320
-
321
- ### [1.15.2](https://github.com/jfWorks/x-server/compare/v1.15.1...v1.15.2) (2022-04-26)
322
-
323
-
324
- ### Bug Fixes
325
-
326
- * 验证码应取小写判断 ([36fa3f8](https://github.com/jfWorks/x-server/commit/36fa3f83374777740c28b1775efc4d1f5694a918))
327
-
328
- ### [1.15.1](https://github.com/jfWorks/x-server/compare/v1.15.0...v1.15.1) (2022-04-26)
329
-
330
-
331
- ### Bug Fixes
332
-
333
- * env ([4ae102e](https://github.com/jfWorks/x-server/commit/4ae102eabe2fb0f99f6367d75314d9b2db6b556e))
334
- * envs ([6fe04ee](https://github.com/jfWorks/x-server/commit/6fe04eedcc2875edd5e0b7398b3fe8f7a826c3e1))
335
-
336
- ## [1.15.0](https://github.com/jfWorks/x-server/compare/v1.14.1...v1.15.0) (2022-04-26)
337
-
338
-
339
- ### Features
340
-
341
- * x.env ([e39771f](https://github.com/jfWorks/x-server/commit/e39771f998f4b952bda528105fb18b6895e0ce81))
342
-
343
- ### [1.14.1](https://github.com/jfWorks/x-server/compare/v1.14.0...v1.14.1) (2022-04-26)
344
-
345
-
346
- ### Bug Fixes
347
-
348
- * requestDataSchema ([8b4f910](https://github.com/jfWorks/x-server/commit/8b4f910b1e9efbc082571b9ef407d7baf31b6319))
349
-
350
- ## [1.14.0](https://github.com/jfWorks/x-server/compare/v1.13.1...v1.14.0) (2022-04-26)
351
-
352
-
353
- ### Features
354
-
355
- * requestDataSchema ([72970dd](https://github.com/jfWorks/x-server/commit/72970dd63810ab9b3fcdc9390fcde3cfdd4a6013))
356
-
357
-
358
- ### Bug Fixes
359
-
360
- * text -> code ([a8571e3](https://github.com/jfWorks/x-server/commit/a8571e3c99036467f2110b5ab30798c4e6bc42af))
361
-
362
- ### [1.13.1](https://github.com/jfWorks/x-server/compare/v1.13.0...v1.13.1) (2022-04-26)
363
-
364
-
365
- ### Bug Fixes
366
-
367
- * appname -> appid ([88d14d1](https://github.com/jfWorks/x-server/commit/88d14d18078c7bc19ddf2c973e53cc0353a533de))
368
-
369
- ## [1.13.0](https://github.com/jfWorks/x-server/compare/v1.12.0...v1.13.0) (2022-04-26)
370
-
371
-
372
- ### Features
373
-
374
- * **CaptchaService:** generate, generateImage ([22bf340](https://github.com/jfWorks/x-server/commit/22bf3404cfb7d3a530714471fe004fcd9ee60760))
375
-
376
- ## [1.12.0](https://github.com/jfWorks/x-server/compare/v1.11.6...v1.12.0) (2022-04-25)
377
-
378
-
379
- ### Features
380
-
381
- * add MailService ([e7a5337](https://github.com/jfWorks/x-server/commit/e7a53370af0dc29d6183fe66ffa3919ae55f0905))
382
-
383
- ### [1.11.6](https://github.com/jfWorks/x-server/compare/v1.11.5...v1.11.6) (2022-04-21)
384
-
385
-
386
- ### Bug Fixes
387
-
388
- * initHelperPackage ([5ddae6a](https://github.com/jfWorks/x-server/commit/5ddae6a7fe6b9695f8817a8525a1cff3f90a3c38))
389
-
390
- ### [1.11.5](https://github.com/jfWorks/x-server/compare/v1.11.4...v1.11.5) (2022-04-20)
391
-
392
-
393
- ### Bug Fixes
394
-
395
- * tbify node ([f732b68](https://github.com/jfWorks/x-server/commit/f732b6895895bd6f751e32d7cf04d5ed5ebacd61))
396
-
397
- ### [1.11.4](https://github.com/jfWorks/x-server/compare/v1.11.3...v1.11.4) (2022-04-20)
398
-
399
-
400
- ### Bug Fixes
401
-
402
- * 下载 centos (rhel-openssl-1.0.x) 的可执行文件 ([1b5a13f](https://github.com/jfWorks/x-server/commit/1b5a13f30dd46d0cc5d76ee1697580ad07ab03cd))
403
-
404
- ### [1.11.3](https://github.com/jfWorks/x-server/compare/v1.11.2...v1.11.3) (2022-04-20)
405
-
406
-
407
- ### Bug Fixes
408
-
409
- * mainFields ([80fd62d](https://github.com/jfWorks/x-server/commit/80fd62d3973f556a83dc7bf1930e5bb06c6845ec))
410
-
411
- ### [1.11.2](https://github.com/jfWorks/x-server/compare/v1.11.1...v1.11.2) (2022-04-20)
412
-
413
-
414
- ### Bug Fixes
415
-
416
- * bin ([aa23fe9](https://github.com/jfWorks/x-server/commit/aa23fe9a6ccfef2b78f318676d4d983d24f315c4))
417
-
418
- ### [1.11.1](https://github.com/jfWorks/x-server/compare/v1.11.0...v1.11.1) (2022-04-20)
419
-
420
-
421
- ### Bug Fixes
422
-
423
- * module ([cdbc01b](https://github.com/jfWorks/x-server/commit/cdbc01b7e252283fa868c5519dd7f22263853aa9))
424
-
425
- ## [1.11.0](https://github.com/jfWorks/x-server/compare/v1.10.3...v1.11.0) (2022-04-20)
426
-
427
-
428
- ### Features
429
-
430
- * minify & sideEffects ([12cdccd](https://github.com/jfWorks/x-server/commit/12cdccdd23273117e610a1f428f33b735f6b199b))
431
-
432
- ### [1.10.3](https://github.com/jfWorks/x-server/compare/v1.10.2...v1.10.3) (2022-04-19)
433
-
434
-
435
- ### Bug Fixes
436
-
437
- * initModels ([85c6aa7](https://github.com/jfWorks/x-server/commit/85c6aa77d28ded5aeb336e57b2c62de3817a18f3))
438
-
439
- ### [1.10.2](https://github.com/jfWorks/x-server/compare/v1.10.1...v1.10.2) (2022-04-19)
440
-
441
-
442
- ### Bug Fixes
443
-
444
- * api gen ([cc33df1](https://github.com/jfWorks/x-server/commit/cc33df1bf15c2b367b1a62cf920a1a1184c20339))
445
-
446
- ### [1.10.1](https://github.com/jfWorks/x-server/compare/v1.10.0...v1.10.1) (2022-04-19)
447
-
448
- ## [1.10.0](https://github.com/jfWorks/x-server/compare/v1.8.0...v1.10.0) (2022-04-19)
449
-
450
-
451
- ### Features
452
-
453
- * use esbuild-register ([0b004db](https://github.com/jfWorks/x-server/commit/0b004db9a048d0faaf528c0d8030bf0ccfb8e2b3))
454
-
455
-
456
- ### Bug Fixes
457
-
458
- * template ([0f9bd05](https://github.com/jfWorks/x-server/commit/0f9bd0589d101de6f78f13f185ef9220edc887a7))
459
- * watcher initial ([82511a1](https://github.com/jfWorks/x-server/commit/82511a1bc9d1ccf4d96aa7a8ae7ee3d50a8ec2db))
460
-
461
- ## [1.9.0](https://github.com/jfWorks/x-server/compare/v1.7.2...v1.9.0) (2022-04-18)
462
-
463
-
464
- ### Features
465
-
466
- * 更改包名为 @jayfong/x-server ([1be9998](https://github.com/jfWorks/x-server/commit/1be9998070cc0960aeef2d333356f66a22bb5766))
467
- * 移除 cwd 选项 ([12cfa42](https://github.com/jfWorks/x-server/commit/12cfa4222ec8d69d73f2b38a68ea6aa975dbe575))
468
- * npc ([5d314ea](https://github.com/jfWorks/x-server/commit/5d314ea341a72ae5b09db979d5d2b63ffadf0670))
469
- * plugins ([1df0cd1](https://github.com/jfWorks/x-server/commit/1df0cd10ccf170d9e7180abf9d27416304856894))
470
- * service 通过 x 提供 ([a159154](https://github.com/jfWorks/x-server/commit/a1591541e865e755d4d6dbdeb405d5d08b334a4a))
471
- * templates ([deeb0d6](https://github.com/jfWorks/x-server/commit/deeb0d643bdf04d04533d20bd1d5a068b178347a))
472
- * use esbuild-register ([0b004db](https://github.com/jfWorks/x-server/commit/0b004db9a048d0faaf528c0d8030bf0ccfb8e2b3))
473
-
474
-
475
- ### Bug Fixes
476
-
477
- * template ([0f9bd05](https://github.com/jfWorks/x-server/commit/0f9bd0589d101de6f78f13f185ef9220edc887a7))
478
- * test ([994845b](https://github.com/jfWorks/x-server/commit/994845b0e2ac84ce050494de27b705c1e45fb343))
479
-
480
- ## [1.8.0](https://github.com/jfWorks/x-server/compare/v1.7.2...v1.8.0) (2022-04-18)
481
-
482
-
483
- ### Features
484
-
485
- * 更改包名为 @jayfong/x-server ([1be9998](https://github.com/jfWorks/x-server/commit/1be9998070cc0960aeef2d333356f66a22bb5766))
486
- * 移除 cwd 选项 ([12cfa42](https://github.com/jfWorks/x-server/commit/12cfa4222ec8d69d73f2b38a68ea6aa975dbe575))
487
- * npc ([5d314ea](https://github.com/jfWorks/x-server/commit/5d314ea341a72ae5b09db979d5d2b63ffadf0670))
488
- * plugins ([1df0cd1](https://github.com/jfWorks/x-server/commit/1df0cd10ccf170d9e7180abf9d27416304856894))
489
- * service 通过 x 提供 ([a159154](https://github.com/jfWorks/x-server/commit/a1591541e865e755d4d6dbdeb405d5d08b334a4a))
490
- * templates ([deeb0d6](https://github.com/jfWorks/x-server/commit/deeb0d643bdf04d04533d20bd1d5a068b178347a))
491
-
492
-
493
- ### Bug Fixes
494
-
495
- * test ([994845b](https://github.com/jfWorks/x-server/commit/994845b0e2ac84ce050494de27b705c1e45fb343))
496
-
497
- ### [1.7.2](https://github.com/jfWorks/x-server/compare/v1.7.1...v1.7.2) (2022-04-16)
498
-
499
-
500
- ### Bug Fixes
501
-
502
- * npx -> tnpx ([2ef5650](https://github.com/jfWorks/x-server/commit/2ef5650679dbc1ceea5a44e8348c31aa06f5ae5b))
503
-
504
- ### [1.7.1](https://github.com/jfWorks/x-server/compare/v1.7.0...v1.7.1) (2022-04-16)
505
-
506
- ## [1.7.0](https://github.com/jfWorks/x-server/compare/v1.6.0...v1.7.0) (2021-11-08)
507
-
508
-
509
- ### Features
510
-
511
- * 升级 vtils 使用 dedent, ms ([251591b](https://github.com/jfWorks/x-server/commit/251591ba47b9a9d619e038adcb66dfb52fd80264))
512
-
513
- ## [1.6.0](https://github.com/jfWorks/x-server/compare/v1.5.7...v1.6.0) (2021-11-07)
514
-
515
-
516
- ### Features
517
-
518
- * 支持 npc ([53069e6](https://github.com/jfWorks/x-server/commit/53069e6ba77d2ad8852cc2d5d7ede73a9d05c1da))
519
-
520
- ### [1.5.7](https://github.com/jfWorks/x-server/compare/v1.5.6...v1.5.7) (2021-11-07)
521
-
522
- ### [1.5.6](https://github.com/jfWorks/x-server/compare/v1.5.5...v1.5.6) (2021-11-07)
523
-
524
-
525
- ### Bug Fixes
526
-
527
- * task ([f36571a](https://github.com/jfWorks/x-server/commit/f36571a51d32fff19d62c233cc31fd250d90281a))
528
-
529
- ### [1.5.5](https://github.com/jfWorks/x-server/compare/v1.5.4...v1.5.5) (2021-11-07)
530
-
531
-
532
- ### Bug Fixes
533
-
534
- * env ([5917b3d](https://github.com/jfWorks/x-server/commit/5917b3dddaeb750c692c7ac8a1af6fdb65eab942))
535
-
536
- ### [1.5.4](https://github.com/jfWorks/x-server/compare/v1.5.3...v1.5.4) (2021-11-07)
537
-
538
-
539
- ### Bug Fixes
540
-
541
- * 兼容 prisma ([41c3417](https://github.com/jfWorks/x-server/commit/41c34175d2af074c44e76422d9ba2b421be556c9))
542
-
543
- ### [1.5.3](https://github.com/jfWorks/x-server/compare/v1.5.2...v1.5.3) (2021-11-07)
544
-
545
-
546
- ### Bug Fixes
547
-
548
- * 兼容 prisma ([668bfd1](https://github.com/jfWorks/x-server/commit/668bfd1d7efd91b1a3c607d7050379d43fccdd22))
549
-
550
- ### [1.5.2](https://github.com/jfWorks/x-server/compare/v1.5.1...v1.5.2) (2021-11-07)
551
-
552
- ### [1.5.1](https://github.com/jfWorks/x-server/compare/v1.5.0...v1.5.1) (2021-11-07)
553
-
554
-
555
- ### Bug Fixes
556
-
557
- * env ([f79cd48](https://github.com/jfWorks/x-server/commit/f79cd48a3ee9101605d9ac80dbaac5f8ca7f94df))
558
-
559
- ## [1.5.0](https://github.com/jfWorks/x-server/compare/v1.4.0...v1.5.0) (2021-11-07)
560
-
561
-
562
- ### Features
563
-
564
- * 支持 DATABASE_ACTION_URL ([e21884e](https://github.com/jfWorks/x-server/commit/e21884eeca8e1c451f8536d93663e1b663ee5303))
565
-
566
- ## [1.4.0](https://github.com/jfWorks/x-server/compare/v1.3.1...v1.4.0) (2021-11-06)
567
-
568
-
569
- ### Features
570
-
571
- * 进一步简化部署流程 ([a2062d8](https://github.com/jfWorks/x-server/commit/a2062d8d07df2a256d470ec10b633183fa5e44c1))
572
- * build 优化 ([4d988bb](https://github.com/jfWorks/x-server/commit/4d988bb953f68a44916d6bb89c9d05ee5801abb9))
573
-
574
- ### [1.3.1](https://github.com/jfWorks/x-server/compare/v1.3.0...v1.3.1) (2021-11-06)
575
-
576
-
577
- ### Bug Fixes
578
-
579
- * **cli/build:** 将 svg-captcha 加入 external ([d2b9b8d](https://github.com/jfWorks/x-server/commit/d2b9b8d7e4818d7eb3eb5249b6b24c344a9f027b))
580
- * ws ([6cdb442](https://github.com/jfWorks/x-server/commit/6cdb4421415b4e607a6e00c5469a955114aca112))
581
-
582
- ## [1.3.0](https://github.com/jfWorks/x-server/compare/v1.1.3...v1.3.0) (2021-11-06)
583
-
584
-
585
- ### Features
586
-
587
- * deploy ([b0808ce](https://github.com/jfWorks/x-server/commit/b0808cec8d5eb35fe80897e13db719151f6935b3))
588
- * **EnvUtil:** 支持多行 ([fb99204](https://github.com/jfWorks/x-server/commit/fb9920478db090fce3eb57340b71e8c9b5c9af96))
589
-
590
-
591
- ### Bug Fixes
592
-
593
- * deploy ([0a02537](https://github.com/jfWorks/x-server/commit/0a02537d4e1198249f6e0d9c1fc6e40b7c24684c))
594
-
595
- ## [1.2.0](https://github.com/jfWorks/x-server/compare/v1.1.3...v1.2.0) (2021-11-05)
596
-
597
-
598
- ### Features
599
-
600
- * deploy ([b0808ce](https://github.com/jfWorks/x-server/commit/b0808cec8d5eb35fe80897e13db719151f6935b3))
601
- * **EnvUtil:** 支持多行 ([fb99204](https://github.com/jfWorks/x-server/commit/fb9920478db090fce3eb57340b71e8c9b5c9af96))
602
-
603
- ### [1.1.3](https://github.com/jfWorks/x-server/compare/v1.1.2...v1.1.3) (2021-11-05)
604
-
605
-
606
- ### Bug Fixes
607
-
608
- * **EnvUtil:** 解析注释正则更新 ([5e9cfbf](https://github.com/jfWorks/x-server/commit/5e9cfbff44a8695f648e7b7ef25226b1e6c4b350))
609
-
610
- ### [1.1.2](https://github.com/jfWorks/x-server/compare/v1.1.1...v1.1.2) (2021-11-05)
611
-
612
- ### [1.1.1](https://github.com/jfWorks/x-server/compare/v1.1.0...v1.1.1) (2021-11-05)
613
-
614
- ## [1.1.0](https://github.com/jfWorks/x-server/compare/v1.0.1...v1.1.0) (2021-11-05)
615
-
616
-
617
- ### Features
618
-
619
- * **cli:** 新增 run ([c9d8de0](https://github.com/jfWorks/x-server/commit/c9d8de01de8373541f6e4e628fe43067a58d0b8b))
620
- * **cli:** prisma 支持通过 mode 传入环境 ([5547b7b](https://github.com/jfWorks/x-server/commit/5547b7b66205b25e545a94db88665c513cc8fbd0))
621
- * **cli:** prisma 支持增强 ([2be1aa1](https://github.com/jfWorks/x-server/commit/2be1aa1394d6aac5c2f4c9a7ca24a3b89a4c0811))
622
- * **run:** 不传 script 时选择 npm scripts ([474baf0](https://github.com/jfWorks/x-server/commit/474baf0f30b039600922679850f494dadbea4963))
623
-
624
-
625
- ### Bug Fixes
626
-
627
- * **cli:** 简化模式配置 ([a4e9e41](https://github.com/jfWorks/x-server/commit/a4e9e413b8e5209489a3944ae0bb7930c42a999c))
628
-
629
- ### 1.0.1 (2021-11-05)