@platformatic/vite 3.23.0 → 3.24.0-alpha0
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/config.d.ts +0 -8
- package/lib/capability.js +2 -7
- package/package.json +6 -6
- package/schema.json +1 -9
package/config.d.ts
CHANGED
|
@@ -60,10 +60,6 @@ export interface PlatformaticViteConfig {
|
|
|
60
60
|
server?: {
|
|
61
61
|
hostname?: string;
|
|
62
62
|
port?: number | string;
|
|
63
|
-
/**
|
|
64
|
-
* The maximum length of the queue of pending connections
|
|
65
|
-
*/
|
|
66
|
-
backlog?: number;
|
|
67
63
|
http2?: boolean;
|
|
68
64
|
https?: {
|
|
69
65
|
allowHTTP1?: boolean;
|
|
@@ -189,10 +185,6 @@ export interface PlatformaticViteConfig {
|
|
|
189
185
|
server?: {
|
|
190
186
|
hostname?: string;
|
|
191
187
|
port?: number | string;
|
|
192
|
-
/**
|
|
193
|
-
* The maximum length of the queue of pending connections
|
|
194
|
-
*/
|
|
195
|
-
backlog?: number;
|
|
196
188
|
http2?: boolean;
|
|
197
189
|
https?: {
|
|
198
190
|
allowHTTP1?: boolean;
|
package/lib/capability.js
CHANGED
|
@@ -180,7 +180,7 @@ export class ViteCapability extends BaseCapability {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
// Prepare options
|
|
183
|
-
const { hostname, port, https, cors
|
|
183
|
+
const { hostname, port, https, cors } = this.serverConfig ?? {}
|
|
184
184
|
const configFile = config.vite.configFile ? resolve(this.root, config.vite.configFile) : undefined
|
|
185
185
|
|
|
186
186
|
const serverOptions = {
|
|
@@ -199,8 +199,7 @@ export class ViteCapability extends BaseCapability {
|
|
|
199
199
|
// Require Vite
|
|
200
200
|
const serverPromise = createServerListener(
|
|
201
201
|
(this.isEntrypoint ? serverOptions?.port : undefined) ?? true,
|
|
202
|
-
(this.isEntrypoint ? serverOptions?.hostname : undefined) ?? true
|
|
203
|
-
typeof backlog === 'number' ? { backlog } : {}
|
|
202
|
+
(this.isEntrypoint ? serverOptions?.hostname : undefined) ?? true
|
|
204
203
|
)
|
|
205
204
|
const { createServer } = await importFile(resolve(this.#vite, 'dist/node/index.js'))
|
|
206
205
|
|
|
@@ -239,10 +238,6 @@ export class ViteCapability extends BaseCapability {
|
|
|
239
238
|
const serverOptions = this.serverConfig
|
|
240
239
|
const listenOptions = { host: serverOptions?.hostname || '127.0.0.1', port: serverOptions?.port || 0 }
|
|
241
240
|
|
|
242
|
-
if (typeof serverOptions?.backlog === 'number') {
|
|
243
|
-
createServerListener(false, false, { backlog: serverOptions.backlog })
|
|
244
|
-
}
|
|
245
|
-
|
|
246
241
|
await this.#app.listen(listenOptions)
|
|
247
242
|
this.url = getServerUrl(this.#app.server)
|
|
248
243
|
return this.url
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/vite",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.24.0-alpha0",
|
|
4
4
|
"description": "Platformatic Vite Capability",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"@fastify/static": "^8.0.0",
|
|
19
19
|
"fastify": "^5.0.0",
|
|
20
20
|
"semver": "^7.6.3",
|
|
21
|
-
"@platformatic/basic": "3.
|
|
22
|
-
"@platformatic/foundation": "3.
|
|
23
|
-
"@platformatic/node": "3.
|
|
21
|
+
"@platformatic/basic": "3.24.0-alpha0",
|
|
22
|
+
"@platformatic/foundation": "3.24.0-alpha0",
|
|
23
|
+
"@platformatic/node": "3.24.0-alpha0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"cleaner-spec-reporter": "^0.5.0",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"typescript": "^5.5.4",
|
|
33
33
|
"vite": "^7.1.4",
|
|
34
34
|
"ws": "^8.18.0",
|
|
35
|
-
"@platformatic/
|
|
36
|
-
"@platformatic/
|
|
35
|
+
"@platformatic/service": "3.24.0-alpha0",
|
|
36
|
+
"@platformatic/gateway": "3.24.0-alpha0"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/vite/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/vite/3.24.0-alpha0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Vite Config",
|
|
5
5
|
"type": "object",
|
|
@@ -178,10 +178,6 @@
|
|
|
178
178
|
}
|
|
179
179
|
]
|
|
180
180
|
},
|
|
181
|
-
"backlog": {
|
|
182
|
-
"type": "integer",
|
|
183
|
-
"description": "The maximum length of the queue of pending connections"
|
|
184
|
-
},
|
|
185
181
|
"http2": {
|
|
186
182
|
"type": "boolean"
|
|
187
183
|
},
|
|
@@ -911,10 +907,6 @@
|
|
|
911
907
|
}
|
|
912
908
|
]
|
|
913
909
|
},
|
|
914
|
-
"backlog": {
|
|
915
|
-
"type": "integer",
|
|
916
|
-
"description": "The maximum length of the queue of pending connections"
|
|
917
|
-
},
|
|
918
910
|
"http2": {
|
|
919
911
|
"type": "boolean"
|
|
920
912
|
},
|