@platformatic/react-router 3.57.0 → 3.58.1
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 +2 -1
- package/lib/capability.js +2 -1
- package/package.json +7 -7
- package/schema.json +20 -2
package/config.d.ts
CHANGED
|
@@ -240,7 +240,7 @@ export interface PlatformaticReactRouterConfig {
|
|
|
240
240
|
reuseTcpPorts?: boolean;
|
|
241
241
|
startTimeout?: number;
|
|
242
242
|
restartOnError?: boolean | number;
|
|
243
|
-
exitOnUnhandledErrors?: boolean;
|
|
243
|
+
exitOnUnhandledErrors?: boolean | number;
|
|
244
244
|
gracefulShutdown?: {
|
|
245
245
|
runtime: number | string;
|
|
246
246
|
application: number | string;
|
|
@@ -262,6 +262,7 @@ export interface PlatformaticReactRouterConfig {
|
|
|
262
262
|
bufferPoolSize?: number | string;
|
|
263
263
|
defaultHighWaterMark?: number | string;
|
|
264
264
|
};
|
|
265
|
+
healthProbes?: boolean | string;
|
|
265
266
|
undici?: {
|
|
266
267
|
agentOptions?: {
|
|
267
268
|
[k: string]: unknown;
|
package/lib/capability.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import fastifyStatic from '@fastify/static'
|
|
2
2
|
import {
|
|
3
|
+
buildFastifyOptions,
|
|
3
4
|
buildListenOptions,
|
|
4
5
|
cleanBasePath,
|
|
5
6
|
createServerListener,
|
|
@@ -147,7 +148,7 @@ export class ReactRouterCapability extends ViteCapability {
|
|
|
147
148
|
const serverModule = await importFile(resolve(serverRoot, 'index.js'))
|
|
148
149
|
|
|
149
150
|
// Setup fastify
|
|
150
|
-
this.#app = fastify({ loggerInstance: this.logger })
|
|
151
|
+
this.#app = fastify({ loggerInstance: this.logger, ...(await buildFastifyOptions(this.serverConfig)) })
|
|
151
152
|
this._setApp(this.#app)
|
|
152
153
|
|
|
153
154
|
let assetsRoot = clientRoot
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/react-router",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.58.1",
|
|
4
4
|
"description": "Platformatic React Router Capability",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"@fastify/static": "^9.0.0",
|
|
19
19
|
"fastify": "^5.7.0",
|
|
20
20
|
"semver": "^7.6.3",
|
|
21
|
-
"@platformatic/
|
|
22
|
-
"@platformatic/
|
|
23
|
-
"@platformatic/
|
|
24
|
-
"@platformatic/
|
|
21
|
+
"@platformatic/foundation": "3.58.1",
|
|
22
|
+
"@platformatic/globals": "3.58.1",
|
|
23
|
+
"@platformatic/vite": "3.58.1",
|
|
24
|
+
"@platformatic/basic": "3.58.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@react-router/dev": "^7.10.0",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"typescript": "^5.5.4",
|
|
43
43
|
"vite": "^7.1.7",
|
|
44
44
|
"ws": "^8.18.0",
|
|
45
|
-
"@platformatic/gateway": "3.
|
|
46
|
-
"@platformatic/service": "3.
|
|
45
|
+
"@platformatic/gateway": "3.58.1",
|
|
46
|
+
"@platformatic/service": "3.58.1"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/react-router/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/react-router/3.58.1.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic React Router Config",
|
|
5
5
|
"type": "object",
|
|
@@ -1183,7 +1183,14 @@
|
|
|
1183
1183
|
},
|
|
1184
1184
|
"exitOnUnhandledErrors": {
|
|
1185
1185
|
"default": true,
|
|
1186
|
-
"
|
|
1186
|
+
"anyOf": [
|
|
1187
|
+
{
|
|
1188
|
+
"type": "boolean"
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
"type": "number"
|
|
1192
|
+
}
|
|
1193
|
+
]
|
|
1187
1194
|
},
|
|
1188
1195
|
"gracefulShutdown": {
|
|
1189
1196
|
"type": "object",
|
|
@@ -1365,6 +1372,17 @@
|
|
|
1365
1372
|
},
|
|
1366
1373
|
"additionalProperties": false
|
|
1367
1374
|
},
|
|
1375
|
+
"healthProbes": {
|
|
1376
|
+
"anyOf": [
|
|
1377
|
+
{
|
|
1378
|
+
"type": "boolean"
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
"type": "string"
|
|
1382
|
+
}
|
|
1383
|
+
],
|
|
1384
|
+
"default": true
|
|
1385
|
+
},
|
|
1368
1386
|
"undici": {
|
|
1369
1387
|
"type": "object",
|
|
1370
1388
|
"properties": {
|