@platformatic/node 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 CHANGED
@@ -60,10 +60,6 @@ export interface PlatformaticNodeJsConfig {
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 PlatformaticNodeJsConfig {
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
@@ -153,13 +153,7 @@ export class NodeCapability extends BaseCapability {
153
153
  // The server promise must be created before requiring the entrypoint even if it's not going to be used
154
154
  // at all. Otherwise there is chance we miss the listen event.
155
155
  const serverOptions = this.serverConfig
156
-
157
- const serverPromise = createServerListener(
158
- serverOptions?.port ?? true,
159
- serverOptions?.hostname ?? true,
160
- typeof serverOptions?.backlog === 'number' ? { backlog: serverOptions.backlog } : {}
161
- )
162
-
156
+ const serverPromise = createServerListener(serverOptions?.port ?? true, serverOptions?.hostname ?? true)
163
157
  this.#module = await importFile(finalEntrypoint)
164
158
  this.#module = this.#module.default || this.#module
165
159
 
@@ -348,12 +342,6 @@ export class NodeCapability extends BaseCapability {
348
342
  const serverOptions = this.serverConfig
349
343
  const listenOptions = { host: serverOptions?.hostname || '127.0.0.1', port: serverOptions?.port || 0 }
350
344
 
351
- createServerListener(
352
- false,
353
- false,
354
- typeof serverOptions?.backlog === 'number' ? { backlog: serverOptions.backlog } : {}
355
- )
356
-
357
345
  if (this.#isFastify) {
358
346
  await this.#app.listen(listenOptions)
359
347
  this.url = getServerUrl(this.#app.server)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/node",
3
- "version": "3.23.0",
3
+ "version": "3.24.0-alpha0",
4
4
  "description": "Platformatic Node.js Capability",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -18,9 +18,9 @@
18
18
  "@watchable/unpromise": "^1.0.2",
19
19
  "json5": "^2.2.3",
20
20
  "light-my-request": "^6.0.0",
21
- "@platformatic/foundation": "3.23.0",
22
- "@platformatic/generators": "3.23.0",
23
- "@platformatic/basic": "3.23.0"
21
+ "@platformatic/basic": "3.24.0-alpha0",
22
+ "@platformatic/foundation": "3.24.0-alpha0",
23
+ "@platformatic/generators": "3.24.0-alpha0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "cleaner-spec-reporter": "^0.5.0",
@@ -32,8 +32,8 @@
32
32
  "neostandard": "^0.12.0",
33
33
  "tsx": "^4.19.0",
34
34
  "typescript": "^5.5.4",
35
- "@platformatic/gateway": "3.23.0",
36
- "@platformatic/service": "3.23.0"
35
+ "@platformatic/gateway": "3.24.0-alpha0",
36
+ "@platformatic/service": "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/node/3.23.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/node/3.24.0-alpha0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Node.js 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
  },