@platformatic/remix 3.14.0 → 3.15.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 CHANGED
@@ -214,6 +214,7 @@ export interface PlatformaticRemixConfig {
214
214
  rejectUnauthorized?: boolean;
215
215
  };
216
216
  };
217
+ reuseTcpPorts?: boolean;
217
218
  startTimeout?: number;
218
219
  restartOnError?: boolean | number;
219
220
  exitOnUnhandledErrors?: boolean;
package/lib/capability.js CHANGED
@@ -6,7 +6,6 @@ import {
6
6
  importFile,
7
7
  resolvePackage
8
8
  } from '@platformatic/basic'
9
- import { features } from '@platformatic/foundation'
10
9
  import { ViteCapability } from '@platformatic/vite'
11
10
  import { createRequestHandler } from '@remix-run/express'
12
11
  import express from 'express'
@@ -60,6 +59,8 @@ export class RemixCapability extends ViteCapability {
60
59
  return this.url
61
60
  }
62
61
 
62
+ await this._start()
63
+
63
64
  const config = this.config
64
65
  const command = config.application.commands[this.isProduction ? 'production' : 'development']
65
66
 
@@ -156,6 +157,7 @@ export class RemixCapability extends ViteCapability {
156
157
  await preloadVite()
157
158
  }
158
159
 
160
+ await super._start({ listen })
159
161
  await super.start({ listen })
160
162
 
161
163
  /* c8 ignore next 3 */
@@ -172,10 +174,6 @@ export class RemixCapability extends ViteCapability {
172
174
  const serverOptions = this.serverConfig
173
175
  const listenOptions = { host: serverOptions?.hostname || '127.0.0.1', port: serverOptions?.port || 0 }
174
176
 
175
- if (this.isProduction && features.node.reusePort) {
176
- listenOptions.reusePort = true
177
- }
178
-
179
177
  this.#server = await new Promise((resolve, reject) => {
180
178
  return this.#app
181
179
  .listen(listenOptions, function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/remix",
3
- "version": "3.14.0",
3
+ "version": "3.15.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/vite": "3.14.0",
24
- "@platformatic/foundation": "3.14.0",
25
- "@platformatic/basic": "3.14.0"
23
+ "@platformatic/basic": "3.15.0",
24
+ "@platformatic/foundation": "3.15.0",
25
+ "@platformatic/vite": "3.15.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/service": "3.14.0",
45
- "@platformatic/gateway": "3.14.0"
44
+ "@platformatic/gateway": "3.15.0",
45
+ "@platformatic/service": "3.15.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.14.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/remix/3.15.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Remix Config",
5
5
  "type": "object",
@@ -426,6 +426,10 @@
426
426
  "useHttp": {
427
427
  "type": "boolean"
428
428
  },
429
+ "reuseTcpPorts": {
430
+ "type": "boolean",
431
+ "default": true
432
+ },
429
433
  "workers": {
430
434
  "anyOf": [
431
435
  {
@@ -992,6 +996,10 @@
992
996
  },
993
997
  "additionalProperties": false
994
998
  },
999
+ "reuseTcpPorts": {
1000
+ "type": "boolean",
1001
+ "default": true
1002
+ },
995
1003
  "startTimeout": {
996
1004
  "default": 30000,
997
1005
  "type": "number",