@platformatic/remix 3.22.0 → 3.23.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.
- package/config.d.ts +8 -0
- package/lib/capability.js +5 -0
- package/package.json +6 -6
- package/schema.json +9 -1
package/config.d.ts
CHANGED
|
@@ -60,6 +60,10 @@ export interface PlatformaticRemixConfig {
|
|
|
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;
|
|
63
67
|
http2?: boolean;
|
|
64
68
|
https?: {
|
|
65
69
|
allowHTTP1?: boolean;
|
|
@@ -185,6 +189,10 @@ export interface PlatformaticRemixConfig {
|
|
|
185
189
|
server?: {
|
|
186
190
|
hostname?: string;
|
|
187
191
|
port?: number | string;
|
|
192
|
+
/**
|
|
193
|
+
* The maximum length of the queue of pending connections
|
|
194
|
+
*/
|
|
195
|
+
backlog?: number;
|
|
188
196
|
http2?: boolean;
|
|
189
197
|
https?: {
|
|
190
198
|
allowHTTP1?: boolean;
|
package/lib/capability.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanBasePath,
|
|
3
|
+
createServerListener,
|
|
3
4
|
ensureTrailingSlash,
|
|
4
5
|
errors,
|
|
5
6
|
getServerUrl,
|
|
@@ -174,6 +175,10 @@ export class RemixCapability extends ViteCapability {
|
|
|
174
175
|
const serverOptions = this.serverConfig
|
|
175
176
|
const listenOptions = { host: serverOptions?.hostname || '127.0.0.1', port: serverOptions?.port || 0 }
|
|
176
177
|
|
|
178
|
+
if (typeof serverOptions?.backlog === 'number') {
|
|
179
|
+
createServerListener(false, false, { backlog: serverOptions.backlog })
|
|
180
|
+
}
|
|
181
|
+
|
|
177
182
|
this.#server = await new Promise((resolve, reject) => {
|
|
178
183
|
return this.#app
|
|
179
184
|
.listen(listenOptions, function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/remix",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.23.0",
|
|
4
4
|
"description": "Platformatic Remix Capability",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"light-my-request": "^6.0.0",
|
|
21
21
|
"pino-http": "^10.2.0",
|
|
22
22
|
"semver": "^7.6.3",
|
|
23
|
-
"@platformatic/basic": "3.
|
|
24
|
-
"@platformatic/
|
|
25
|
-
"@platformatic/
|
|
23
|
+
"@platformatic/basic": "3.23.0",
|
|
24
|
+
"@platformatic/foundation": "3.23.0",
|
|
25
|
+
"@platformatic/vite": "3.23.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@remix-run/dev": "^2.16.8",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"typescript": "^5.5.4",
|
|
42
42
|
"vite": "^5.4.2",
|
|
43
43
|
"ws": "^8.18.0",
|
|
44
|
-
"@platformatic/
|
|
45
|
-
"@platformatic/
|
|
44
|
+
"@platformatic/service": "3.23.0",
|
|
45
|
+
"@platformatic/gateway": "3.23.0"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/remix/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/remix/3.23.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Remix Config",
|
|
5
5
|
"type": "object",
|
|
@@ -178,6 +178,10 @@
|
|
|
178
178
|
}
|
|
179
179
|
]
|
|
180
180
|
},
|
|
181
|
+
"backlog": {
|
|
182
|
+
"type": "integer",
|
|
183
|
+
"description": "The maximum length of the queue of pending connections"
|
|
184
|
+
},
|
|
181
185
|
"http2": {
|
|
182
186
|
"type": "boolean"
|
|
183
187
|
},
|
|
@@ -907,6 +911,10 @@
|
|
|
907
911
|
}
|
|
908
912
|
]
|
|
909
913
|
},
|
|
914
|
+
"backlog": {
|
|
915
|
+
"type": "integer",
|
|
916
|
+
"description": "The maximum length of the queue of pending connections"
|
|
917
|
+
},
|
|
910
918
|
"http2": {
|
|
911
919
|
"type": "boolean"
|
|
912
920
|
},
|