@platformatic/basic 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
@@ -81,10 +81,6 @@ export interface PlatformaticBasicConfig {
81
81
  server?: {
82
82
  hostname?: string;
83
83
  port?: number | string;
84
- /**
85
- * The maximum length of the queue of pending connections
86
- */
87
- backlog?: number;
88
84
  http2?: boolean;
89
85
  https?: {
90
86
  allowHTTP1?: boolean;
package/lib/capability.js CHANGED
@@ -487,7 +487,7 @@ export class BaseCapability extends EventEmitter {
487
487
  })
488
488
 
489
489
  this.childManager.on('event', event => {
490
- globalThis[kITC]?.notify('event', event)
490
+ globalThis[kITC].notify('event', event)
491
491
  this.emit('application:worker:event:' + event.event, event.payload)
492
492
  })
493
493
 
@@ -586,12 +586,6 @@ export class BaseCapability extends EventEmitter {
586
586
  /* c8 ignore next 2 - else */
587
587
  port: (this.isEntrypoint ? this.serverConfig?.port || 0 : undefined) ?? true,
588
588
  host: (this.isEntrypoint ? this.serverConfig?.hostname : undefined) ?? true,
589
- additionalServerOptions:
590
- typeof this.serverConfig?.backlog === 'number'
591
- ? {
592
- backlog: this.serverConfig.backlog
593
- }
594
- : {},
595
589
  telemetryConfig: this.telemetryConfig
596
590
  }
597
591
  }
@@ -360,7 +360,6 @@ export class ChildProcess extends ITC {
360
360
 
361
361
  const port = globalThis.platformatic.port
362
362
  const host = globalThis.platformatic.host
363
- const additionalOptions = globalThis.platformatic.additionalServerOptions ?? {}
364
363
 
365
364
  if (port !== false) {
366
365
  const hasFixedPort = typeof port === 'number'
@@ -370,9 +369,6 @@ export class ChildProcess extends ITC {
370
369
  if (typeof host === 'string') {
371
370
  options.host = host
372
371
  }
373
-
374
- Object.assign(options, additionalOptions)
375
- globalThis.platformatic?.events?.emitAndNotify('serverOptions', options)
376
372
  },
377
373
  asyncEnd: ({ server }) => {
378
374
  tracingChannel('net.server.listen').unsubscribe(subscribers)
@@ -1,6 +1,6 @@
1
1
  import { subscribe, tracingChannel, unsubscribe } from 'node:diagnostics_channel'
2
2
 
3
- export function createServerListener (overridePort = true, overrideHost = false, additionalOptions = {}) {
3
+ export function createServerListener (overridePort = true, overrideHost) {
4
4
  const { promise, resolve, reject } = Promise.withResolvers()
5
5
 
6
6
  const subscribers = {
@@ -18,9 +18,6 @@ export function createServerListener (overridePort = true, overrideHost = false,
18
18
  if (typeof overrideHost === 'string') {
19
19
  options.host = overrideHost
20
20
  }
21
-
22
- Object.assign(options, additionalOptions)
23
- globalThis.platformatic?.events?.emitAndNotify('serverOptions', options)
24
21
  },
25
22
  asyncEnd ({ server }) {
26
23
  cancel()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/basic",
3
- "version": "3.23.0",
3
+ "version": "3.24.0-alpha0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -25,10 +25,10 @@
25
25
  "split2": "^4.2.0",
26
26
  "undici": "^7.0.0",
27
27
  "ws": "^8.18.0",
28
- "@platformatic/foundation": "3.23.0",
29
- "@platformatic/itc": "3.23.0",
30
- "@platformatic/metrics": "3.23.0",
31
- "@platformatic/telemetry": "3.23.0"
28
+ "@platformatic/foundation": "3.24.0-alpha0",
29
+ "@platformatic/metrics": "3.24.0-alpha0",
30
+ "@platformatic/itc": "3.24.0-alpha0",
31
+ "@platformatic/telemetry": "3.24.0-alpha0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "cleaner-spec-reporter": "^0.5.0",
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/basic/3.23.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/basic/3.24.0-alpha0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Basic Config",
5
5
  "type": "object",
@@ -549,10 +549,6 @@
549
549
  }
550
550
  ]
551
551
  },
552
- "backlog": {
553
- "type": "integer",
554
- "description": "The maximum length of the queue of pending connections"
555
- },
556
552
  "http2": {
557
553
  "type": "boolean"
558
554
  },