@platformatic/react-router 3.57.0 → 3.59.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 +2 -1
- package/lib/capability.js +2 -1
- package/package.json +7 -7
- package/schema.json +37 -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.59.0",
|
|
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/basic": "3.
|
|
22
|
-
"@platformatic/
|
|
23
|
-
"@platformatic/globals": "3.
|
|
24
|
-
"@platformatic/
|
|
21
|
+
"@platformatic/basic": "3.59.0",
|
|
22
|
+
"@platformatic/foundation": "3.59.0",
|
|
23
|
+
"@platformatic/globals": "3.59.0",
|
|
24
|
+
"@platformatic/vite": "3.59.0"
|
|
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.59.0",
|
|
46
|
+
"@platformatic/service": "3.59.0"
|
|
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.59.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic React Router Config",
|
|
5
5
|
"type": "object",
|
|
@@ -444,6 +444,23 @@
|
|
|
444
444
|
"id": {
|
|
445
445
|
"type": "string"
|
|
446
446
|
},
|
|
447
|
+
"enabled": {
|
|
448
|
+
"anyOf": [
|
|
449
|
+
{
|
|
450
|
+
"type": "boolean"
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"type": "string"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"type": "object",
|
|
457
|
+
"additionalProperties": {
|
|
458
|
+
"type": "boolean"
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
],
|
|
462
|
+
"default": true
|
|
463
|
+
},
|
|
447
464
|
"path": {
|
|
448
465
|
"type": "string",
|
|
449
466
|
"allowEmptyPaths": true,
|
|
@@ -1183,7 +1200,14 @@
|
|
|
1183
1200
|
},
|
|
1184
1201
|
"exitOnUnhandledErrors": {
|
|
1185
1202
|
"default": true,
|
|
1186
|
-
"
|
|
1203
|
+
"anyOf": [
|
|
1204
|
+
{
|
|
1205
|
+
"type": "boolean"
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"type": "number"
|
|
1209
|
+
}
|
|
1210
|
+
]
|
|
1187
1211
|
},
|
|
1188
1212
|
"gracefulShutdown": {
|
|
1189
1213
|
"type": "object",
|
|
@@ -1365,6 +1389,17 @@
|
|
|
1365
1389
|
},
|
|
1366
1390
|
"additionalProperties": false
|
|
1367
1391
|
},
|
|
1392
|
+
"healthProbes": {
|
|
1393
|
+
"anyOf": [
|
|
1394
|
+
{
|
|
1395
|
+
"type": "boolean"
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
"type": "string"
|
|
1399
|
+
}
|
|
1400
|
+
],
|
|
1401
|
+
"default": true
|
|
1402
|
+
},
|
|
1368
1403
|
"undici": {
|
|
1369
1404
|
"type": "object",
|
|
1370
1405
|
"properties": {
|