@platformatic/next 3.10.0 → 3.12.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 +11 -1
- package/package.json +5 -5
- package/schema.json +36 -5
package/config.d.ts
CHANGED
|
@@ -405,12 +405,13 @@ export interface PlatformaticNextJsConfig {
|
|
|
405
405
|
verticalScaler?: {
|
|
406
406
|
enabled?: boolean;
|
|
407
407
|
maxTotalWorkers?: number;
|
|
408
|
+
maxTotalMemory?: number;
|
|
408
409
|
minWorkers?: number;
|
|
409
410
|
maxWorkers?: number;
|
|
410
411
|
scaleUpELU?: number;
|
|
411
412
|
scaleDownELU?: number;
|
|
412
|
-
minELUDiff?: number;
|
|
413
413
|
timeWindowSec?: number;
|
|
414
|
+
scaleDownTimeWindowSec?: number;
|
|
414
415
|
cooldownSec?: number;
|
|
415
416
|
scaleIntervalSec?: number;
|
|
416
417
|
gracePeriod?: number;
|
|
@@ -445,6 +446,15 @@ export interface PlatformaticNextJsConfig {
|
|
|
445
446
|
maxRetries?: number;
|
|
446
447
|
[k: string]: unknown;
|
|
447
448
|
}[];
|
|
449
|
+
policies?: {
|
|
450
|
+
deny: {
|
|
451
|
+
/**
|
|
452
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
453
|
+
* via the `patternProperty` "^.*$".
|
|
454
|
+
*/
|
|
455
|
+
[k: string]: string | [string, ...string[]];
|
|
456
|
+
};
|
|
457
|
+
};
|
|
448
458
|
};
|
|
449
459
|
next?: {
|
|
450
460
|
trailingSlash?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/next",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"description": "Platformatic Next.js Capability",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"iovalkey": "^0.3.0",
|
|
24
24
|
"msgpackr": "^1.11.2",
|
|
25
25
|
"semver": "^7.6.3",
|
|
26
|
-
"@platformatic/
|
|
27
|
-
"@platformatic/
|
|
26
|
+
"@platformatic/basic": "3.12.0",
|
|
27
|
+
"@platformatic/foundation": "3.12.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@fastify/reply-from": "^12.0.0",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"next": "^15.0.0",
|
|
41
41
|
"typescript": "^5.5.4",
|
|
42
42
|
"ws": "^8.18.0",
|
|
43
|
-
"@platformatic/
|
|
44
|
-
"@platformatic/
|
|
43
|
+
"@platformatic/gateway": "3.12.0",
|
|
44
|
+
"@platformatic/service": "3.12.0"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/next/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/next/3.12.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Next.js Config",
|
|
5
5
|
"type": "object",
|
|
@@ -1577,6 +1577,10 @@
|
|
|
1577
1577
|
"type": "number",
|
|
1578
1578
|
"minimum": 1
|
|
1579
1579
|
},
|
|
1580
|
+
"maxTotalMemory": {
|
|
1581
|
+
"type": "number",
|
|
1582
|
+
"minimum": 0
|
|
1583
|
+
},
|
|
1580
1584
|
"minWorkers": {
|
|
1581
1585
|
"type": "number",
|
|
1582
1586
|
"minimum": 1
|
|
@@ -1595,12 +1599,11 @@
|
|
|
1595
1599
|
"minimum": 0,
|
|
1596
1600
|
"maximum": 1
|
|
1597
1601
|
},
|
|
1598
|
-
"
|
|
1602
|
+
"timeWindowSec": {
|
|
1599
1603
|
"type": "number",
|
|
1600
|
-
"minimum": 0
|
|
1601
|
-
"maximum": 1
|
|
1604
|
+
"minimum": 0
|
|
1602
1605
|
},
|
|
1603
|
-
"
|
|
1606
|
+
"scaleDownTimeWindowSec": {
|
|
1604
1607
|
"type": "number",
|
|
1605
1608
|
"minimum": 0
|
|
1606
1609
|
},
|
|
@@ -1735,6 +1738,34 @@
|
|
|
1735
1738
|
"callbackUrl"
|
|
1736
1739
|
]
|
|
1737
1740
|
}
|
|
1741
|
+
},
|
|
1742
|
+
"policies": {
|
|
1743
|
+
"type": "object",
|
|
1744
|
+
"properties": {
|
|
1745
|
+
"deny": {
|
|
1746
|
+
"type": "object",
|
|
1747
|
+
"patternProperties": {
|
|
1748
|
+
"^.*$": {
|
|
1749
|
+
"oneOf": [
|
|
1750
|
+
{
|
|
1751
|
+
"type": "string"
|
|
1752
|
+
},
|
|
1753
|
+
{
|
|
1754
|
+
"type": "array",
|
|
1755
|
+
"items": {
|
|
1756
|
+
"type": "string"
|
|
1757
|
+
},
|
|
1758
|
+
"minItems": 1
|
|
1759
|
+
}
|
|
1760
|
+
]
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
},
|
|
1765
|
+
"required": [
|
|
1766
|
+
"deny"
|
|
1767
|
+
],
|
|
1768
|
+
"additionalProperties": false
|
|
1738
1769
|
}
|
|
1739
1770
|
},
|
|
1740
1771
|
"additionalProperties": false
|