@platformatic/react-router 3.29.0 → 3.29.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 +4 -6
- package/lib/capability.js +7 -0
- package/package.json +6 -6
- package/schema.json +33 -5
package/config.d.ts
CHANGED
|
@@ -133,6 +133,8 @@ export interface PlatformaticReactRouterConfig {
|
|
|
133
133
|
maxMemory?: number;
|
|
134
134
|
cooldown?: number;
|
|
135
135
|
gracePeriod?: number;
|
|
136
|
+
scaleUpELU?: number;
|
|
137
|
+
scaleDownELU?: number;
|
|
136
138
|
[k: string]: unknown;
|
|
137
139
|
};
|
|
138
140
|
workersRestartDelay?: number | string;
|
|
@@ -465,13 +467,7 @@ export interface PlatformaticReactRouterConfig {
|
|
|
465
467
|
maxWorkers?: number;
|
|
466
468
|
cooldownSec?: number;
|
|
467
469
|
gracePeriod?: number;
|
|
468
|
-
/**
|
|
469
|
-
* @deprecated
|
|
470
|
-
*/
|
|
471
470
|
scaleUpELU?: number;
|
|
472
|
-
/**
|
|
473
|
-
* @deprecated
|
|
474
|
-
*/
|
|
475
471
|
scaleDownELU?: number;
|
|
476
472
|
/**
|
|
477
473
|
* @deprecated
|
|
@@ -535,6 +531,8 @@ export interface PlatformaticReactRouterConfig {
|
|
|
535
531
|
static?: number;
|
|
536
532
|
minimum?: number;
|
|
537
533
|
maximum?: number;
|
|
534
|
+
scaleUpELU?: number;
|
|
535
|
+
scaleDownELU?: number;
|
|
538
536
|
[k: string]: unknown;
|
|
539
537
|
};
|
|
540
538
|
health?: {
|
package/lib/capability.js
CHANGED
|
@@ -55,6 +55,11 @@ export class ReactRouterCapability extends ViteCapability {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
async start ({ listen }) {
|
|
58
|
+
// Make this idempotent
|
|
59
|
+
if (this.url) {
|
|
60
|
+
return this.url
|
|
61
|
+
}
|
|
62
|
+
|
|
58
63
|
const config = this.config
|
|
59
64
|
const reactRouterConfig = await this.#getReactRouterConfig()
|
|
60
65
|
|
|
@@ -69,6 +74,8 @@ export class ReactRouterCapability extends ViteCapability {
|
|
|
69
74
|
}
|
|
70
75
|
|
|
71
76
|
if (reactRouterConfig.ssr) {
|
|
77
|
+
await super._start({ listen })
|
|
78
|
+
|
|
72
79
|
return this.#startSSRProduction(listen)
|
|
73
80
|
}
|
|
74
81
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/react-router",
|
|
3
|
-
"version": "3.29.
|
|
3
|
+
"version": "3.29.1",
|
|
4
4
|
"description": "Platformatic React Router Capability",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"light-my-request": "^6.0.0",
|
|
20
20
|
"pino-http": "^10.2.0",
|
|
21
21
|
"semver": "^7.6.3",
|
|
22
|
-
"@platformatic/
|
|
23
|
-
"@platformatic/
|
|
24
|
-
"@platformatic/
|
|
22
|
+
"@platformatic/foundation": "3.29.1",
|
|
23
|
+
"@platformatic/basic": "3.29.1",
|
|
24
|
+
"@platformatic/vite": "3.29.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/
|
|
46
|
-
"@platformatic/
|
|
45
|
+
"@platformatic/gateway": "3.29.1",
|
|
46
|
+
"@platformatic/service": "3.29.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.29.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/react-router/3.29.1.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic React Router Config",
|
|
5
5
|
"type": "object",
|
|
@@ -456,6 +456,16 @@
|
|
|
456
456
|
"maximum": {
|
|
457
457
|
"type": "number",
|
|
458
458
|
"minimum": 0
|
|
459
|
+
},
|
|
460
|
+
"scaleUpELU": {
|
|
461
|
+
"type": "number",
|
|
462
|
+
"minimum": 0,
|
|
463
|
+
"maximum": 1
|
|
464
|
+
},
|
|
465
|
+
"scaleDownELU": {
|
|
466
|
+
"type": "number",
|
|
467
|
+
"minimum": 0,
|
|
468
|
+
"maximum": 1
|
|
459
469
|
}
|
|
460
470
|
}
|
|
461
471
|
}
|
|
@@ -735,6 +745,16 @@
|
|
|
735
745
|
"gracePeriod": {
|
|
736
746
|
"type": "number",
|
|
737
747
|
"minimum": 0
|
|
748
|
+
},
|
|
749
|
+
"scaleUpELU": {
|
|
750
|
+
"type": "number",
|
|
751
|
+
"minimum": 0,
|
|
752
|
+
"maximum": 1
|
|
753
|
+
},
|
|
754
|
+
"scaleDownELU": {
|
|
755
|
+
"type": "number",
|
|
756
|
+
"minimum": 0,
|
|
757
|
+
"maximum": 1
|
|
738
758
|
}
|
|
739
759
|
}
|
|
740
760
|
}
|
|
@@ -1767,14 +1787,12 @@
|
|
|
1767
1787
|
"scaleUpELU": {
|
|
1768
1788
|
"type": "number",
|
|
1769
1789
|
"minimum": 0,
|
|
1770
|
-
"maximum": 1
|
|
1771
|
-
"deprecated": true
|
|
1790
|
+
"maximum": 1
|
|
1772
1791
|
},
|
|
1773
1792
|
"scaleDownELU": {
|
|
1774
1793
|
"type": "number",
|
|
1775
1794
|
"minimum": 0,
|
|
1776
|
-
"maximum": 1
|
|
1777
|
-
"deprecated": true
|
|
1795
|
+
"maximum": 1
|
|
1778
1796
|
},
|
|
1779
1797
|
"timeWindowSec": {
|
|
1780
1798
|
"type": "number",
|
|
@@ -1975,6 +1993,16 @@
|
|
|
1975
1993
|
"maximum": {
|
|
1976
1994
|
"type": "number",
|
|
1977
1995
|
"minimum": 0
|
|
1996
|
+
},
|
|
1997
|
+
"scaleUpELU": {
|
|
1998
|
+
"type": "number",
|
|
1999
|
+
"minimum": 0,
|
|
2000
|
+
"maximum": 1
|
|
2001
|
+
},
|
|
2002
|
+
"scaleDownELU": {
|
|
2003
|
+
"type": "number",
|
|
2004
|
+
"minimum": 0,
|
|
2005
|
+
"maximum": 1
|
|
1978
2006
|
}
|
|
1979
2007
|
}
|
|
1980
2008
|
}
|