@platformatic/service 3.32.0-alpha.0 → 3.32.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 +38 -4
- package/package.json +7 -7
- package/schema.json +88 -41
package/config.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export interface PlatformaticServiceConfig {
|
|
|
32
32
|
logger?:
|
|
33
33
|
| boolean
|
|
34
34
|
| {
|
|
35
|
-
level
|
|
35
|
+
level?: (
|
|
36
36
|
| ("fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent")
|
|
37
37
|
| {
|
|
38
38
|
[k: string]: unknown;
|
|
@@ -331,7 +331,7 @@ export interface PlatformaticServiceConfig {
|
|
|
331
331
|
};
|
|
332
332
|
workersRestartDelay?: number | string;
|
|
333
333
|
logger?: {
|
|
334
|
-
level
|
|
334
|
+
level?: (
|
|
335
335
|
| ("fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent")
|
|
336
336
|
| {
|
|
337
337
|
[k: string]: unknown;
|
|
@@ -434,7 +434,6 @@ export interface PlatformaticServiceConfig {
|
|
|
434
434
|
maxHeapTotal?: number | string;
|
|
435
435
|
maxYoungGeneration?: number | string;
|
|
436
436
|
codeRangeSize?: number | string;
|
|
437
|
-
noHeapCheck?: boolean | string;
|
|
438
437
|
};
|
|
439
438
|
undici?: {
|
|
440
439
|
agentOptions?: {
|
|
@@ -486,6 +485,18 @@ export interface PlatformaticServiceConfig {
|
|
|
486
485
|
maxSize?: number;
|
|
487
486
|
maxEntrySize?: number;
|
|
488
487
|
maxCount?: number;
|
|
488
|
+
/**
|
|
489
|
+
* Whitelist of origins to cache. Supports exact strings and regex patterns (e.g., "/https:\\/\\/.*\\.example\\.com/").
|
|
490
|
+
*/
|
|
491
|
+
origins?: string[];
|
|
492
|
+
/**
|
|
493
|
+
* Default cache duration in seconds for responses without explicit expiration headers.
|
|
494
|
+
*/
|
|
495
|
+
cacheByDefault?: number;
|
|
496
|
+
/**
|
|
497
|
+
* Cache type. "shared" caches may be shared between users, "private" caches are user-specific.
|
|
498
|
+
*/
|
|
499
|
+
type?: "shared" | "private";
|
|
489
500
|
[k: string]: unknown;
|
|
490
501
|
};
|
|
491
502
|
watch?: boolean | string;
|
|
@@ -715,6 +726,18 @@ export interface PlatformaticServiceConfig {
|
|
|
715
726
|
[k: string]: string | [string, ...string[]];
|
|
716
727
|
};
|
|
717
728
|
};
|
|
729
|
+
compileCache?:
|
|
730
|
+
| boolean
|
|
731
|
+
| {
|
|
732
|
+
/**
|
|
733
|
+
* Enable Node.js module compile cache for faster startup
|
|
734
|
+
*/
|
|
735
|
+
enabled?: boolean;
|
|
736
|
+
/**
|
|
737
|
+
* Directory to store compile cache. Defaults to .plt/compile-cache in app root
|
|
738
|
+
*/
|
|
739
|
+
directory?: string;
|
|
740
|
+
};
|
|
718
741
|
application?: {
|
|
719
742
|
reuseTcpPorts?: boolean;
|
|
720
743
|
workers?:
|
|
@@ -738,7 +761,6 @@ export interface PlatformaticServiceConfig {
|
|
|
738
761
|
maxHeapTotal?: number | string;
|
|
739
762
|
maxYoungGeneration?: number | string;
|
|
740
763
|
codeRangeSize?: number | string;
|
|
741
|
-
noHeapCheck?: boolean | string;
|
|
742
764
|
};
|
|
743
765
|
arguments?: string[];
|
|
744
766
|
env?: {
|
|
@@ -774,6 +796,18 @@ export interface PlatformaticServiceConfig {
|
|
|
774
796
|
)[];
|
|
775
797
|
[k: string]: unknown;
|
|
776
798
|
};
|
|
799
|
+
compileCache?:
|
|
800
|
+
| boolean
|
|
801
|
+
| {
|
|
802
|
+
/**
|
|
803
|
+
* Enable Node.js module compile cache for faster startup
|
|
804
|
+
*/
|
|
805
|
+
enabled?: boolean;
|
|
806
|
+
/**
|
|
807
|
+
* Directory to store compile cache. Defaults to .plt/compile-cache in app root
|
|
808
|
+
*/
|
|
809
|
+
directory?: string;
|
|
810
|
+
};
|
|
777
811
|
};
|
|
778
812
|
};
|
|
779
813
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/service",
|
|
3
|
-
"version": "3.32.0
|
|
3
|
+
"version": "3.32.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -67,12 +67,12 @@
|
|
|
67
67
|
"rfdc": "^1.3.1",
|
|
68
68
|
"semgrator": "^0.3.0",
|
|
69
69
|
"undici": "^7.0.0",
|
|
70
|
-
"@platformatic/basic": "3.32.0
|
|
71
|
-
"@platformatic/foundation": "3.32.0
|
|
72
|
-
"@platformatic/
|
|
73
|
-
"@platformatic/
|
|
74
|
-
"@platformatic/scalar-theme": "3.32.0
|
|
75
|
-
"@platformatic/telemetry": "3.32.0
|
|
70
|
+
"@platformatic/basic": "3.32.0",
|
|
71
|
+
"@platformatic/foundation": "3.32.0",
|
|
72
|
+
"@platformatic/metrics": "3.32.0",
|
|
73
|
+
"@platformatic/generators": "3.32.0",
|
|
74
|
+
"@platformatic/scalar-theme": "3.32.0",
|
|
75
|
+
"@platformatic/telemetry": "3.32.0"
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|
|
78
78
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/service/3.32.0
|
|
3
|
-
"version": "3.32.0
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/service/3.32.0.json",
|
|
3
|
+
"version": "3.32.0",
|
|
4
4
|
"title": "Platformatic Service Config",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -97,7 +97,6 @@
|
|
|
97
97
|
"properties": {
|
|
98
98
|
"level": {
|
|
99
99
|
"type": "string",
|
|
100
|
-
"default": "info",
|
|
101
100
|
"oneOf": [
|
|
102
101
|
{
|
|
103
102
|
"enum": [
|
|
@@ -240,9 +239,6 @@
|
|
|
240
239
|
"additionalProperties": true
|
|
241
240
|
}
|
|
242
241
|
},
|
|
243
|
-
"required": [
|
|
244
|
-
"level"
|
|
245
|
-
],
|
|
246
242
|
"default": {},
|
|
247
243
|
"additionalProperties": true
|
|
248
244
|
}
|
|
@@ -1198,16 +1194,6 @@
|
|
|
1198
1194
|
"type": "string"
|
|
1199
1195
|
}
|
|
1200
1196
|
]
|
|
1201
|
-
},
|
|
1202
|
-
"noHeapCheck": {
|
|
1203
|
-
"anyOf": [
|
|
1204
|
-
{
|
|
1205
|
-
"type": "boolean"
|
|
1206
|
-
},
|
|
1207
|
-
{
|
|
1208
|
-
"type": "string"
|
|
1209
|
-
}
|
|
1210
|
-
]
|
|
1211
1197
|
}
|
|
1212
1198
|
},
|
|
1213
1199
|
"additionalProperties": false
|
|
@@ -1332,6 +1318,28 @@
|
|
|
1332
1318
|
}
|
|
1333
1319
|
}
|
|
1334
1320
|
}
|
|
1321
|
+
},
|
|
1322
|
+
"compileCache": {
|
|
1323
|
+
"anyOf": [
|
|
1324
|
+
{
|
|
1325
|
+
"type": "boolean"
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
"type": "object",
|
|
1329
|
+
"properties": {
|
|
1330
|
+
"enabled": {
|
|
1331
|
+
"type": "boolean",
|
|
1332
|
+
"default": true,
|
|
1333
|
+
"description": "Enable Node.js module compile cache for faster startup"
|
|
1334
|
+
},
|
|
1335
|
+
"directory": {
|
|
1336
|
+
"type": "string",
|
|
1337
|
+
"description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
|
|
1338
|
+
}
|
|
1339
|
+
},
|
|
1340
|
+
"additionalProperties": false
|
|
1341
|
+
}
|
|
1342
|
+
]
|
|
1335
1343
|
}
|
|
1336
1344
|
}
|
|
1337
1345
|
}
|
|
@@ -1411,7 +1419,6 @@
|
|
|
1411
1419
|
"properties": {
|
|
1412
1420
|
"level": {
|
|
1413
1421
|
"type": "string",
|
|
1414
|
-
"default": "info",
|
|
1415
1422
|
"oneOf": [
|
|
1416
1423
|
{
|
|
1417
1424
|
"enum": [
|
|
@@ -1554,9 +1561,6 @@
|
|
|
1554
1561
|
"additionalProperties": true
|
|
1555
1562
|
}
|
|
1556
1563
|
},
|
|
1557
|
-
"required": [
|
|
1558
|
-
"level"
|
|
1559
|
-
],
|
|
1560
1564
|
"default": {},
|
|
1561
1565
|
"additionalProperties": true
|
|
1562
1566
|
},
|
|
@@ -1852,17 +1856,6 @@
|
|
|
1852
1856
|
}
|
|
1853
1857
|
],
|
|
1854
1858
|
"default": 268435456
|
|
1855
|
-
},
|
|
1856
|
-
"noHeapCheck": {
|
|
1857
|
-
"anyOf": [
|
|
1858
|
-
{
|
|
1859
|
-
"type": "boolean"
|
|
1860
|
-
},
|
|
1861
|
-
{
|
|
1862
|
-
"type": "string"
|
|
1863
|
-
}
|
|
1864
|
-
],
|
|
1865
|
-
"default": false
|
|
1866
1859
|
}
|
|
1867
1860
|
},
|
|
1868
1861
|
"additionalProperties": false
|
|
@@ -1994,6 +1987,26 @@
|
|
|
1994
1987
|
},
|
|
1995
1988
|
"maxCount": {
|
|
1996
1989
|
"type": "integer"
|
|
1990
|
+
},
|
|
1991
|
+
"origins": {
|
|
1992
|
+
"type": "array",
|
|
1993
|
+
"items": {
|
|
1994
|
+
"type": "string"
|
|
1995
|
+
},
|
|
1996
|
+
"description": "Whitelist of origins to cache. Supports exact strings and regex patterns (e.g., \"/https:\\\\/\\\\/.*\\\\.example\\\\.com/\")."
|
|
1997
|
+
},
|
|
1998
|
+
"cacheByDefault": {
|
|
1999
|
+
"type": "integer",
|
|
2000
|
+
"description": "Default cache duration in seconds for responses without explicit expiration headers."
|
|
2001
|
+
},
|
|
2002
|
+
"type": {
|
|
2003
|
+
"type": "string",
|
|
2004
|
+
"enum": [
|
|
2005
|
+
"shared",
|
|
2006
|
+
"private"
|
|
2007
|
+
],
|
|
2008
|
+
"default": "shared",
|
|
2009
|
+
"description": "Cache type. \"shared\" caches may be shared between users, \"private\" caches are user-specific."
|
|
1997
2010
|
}
|
|
1998
2011
|
}
|
|
1999
2012
|
}
|
|
@@ -2609,6 +2622,28 @@
|
|
|
2609
2622
|
],
|
|
2610
2623
|
"additionalProperties": false
|
|
2611
2624
|
},
|
|
2625
|
+
"compileCache": {
|
|
2626
|
+
"anyOf": [
|
|
2627
|
+
{
|
|
2628
|
+
"type": "boolean"
|
|
2629
|
+
},
|
|
2630
|
+
{
|
|
2631
|
+
"type": "object",
|
|
2632
|
+
"properties": {
|
|
2633
|
+
"enabled": {
|
|
2634
|
+
"type": "boolean",
|
|
2635
|
+
"default": true,
|
|
2636
|
+
"description": "Enable Node.js module compile cache for faster startup"
|
|
2637
|
+
},
|
|
2638
|
+
"directory": {
|
|
2639
|
+
"type": "string",
|
|
2640
|
+
"description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
|
|
2641
|
+
}
|
|
2642
|
+
},
|
|
2643
|
+
"additionalProperties": false
|
|
2644
|
+
}
|
|
2645
|
+
]
|
|
2646
|
+
},
|
|
2612
2647
|
"application": {
|
|
2613
2648
|
"type": "object",
|
|
2614
2649
|
"properties": {
|
|
@@ -2756,16 +2791,6 @@
|
|
|
2756
2791
|
"type": "string"
|
|
2757
2792
|
}
|
|
2758
2793
|
]
|
|
2759
|
-
},
|
|
2760
|
-
"noHeapCheck": {
|
|
2761
|
-
"anyOf": [
|
|
2762
|
-
{
|
|
2763
|
-
"type": "boolean"
|
|
2764
|
-
},
|
|
2765
|
-
{
|
|
2766
|
-
"type": "string"
|
|
2767
|
-
}
|
|
2768
|
-
]
|
|
2769
2794
|
}
|
|
2770
2795
|
},
|
|
2771
2796
|
"additionalProperties": false
|
|
@@ -2883,6 +2908,28 @@
|
|
|
2883
2908
|
}
|
|
2884
2909
|
}
|
|
2885
2910
|
}
|
|
2911
|
+
},
|
|
2912
|
+
"compileCache": {
|
|
2913
|
+
"anyOf": [
|
|
2914
|
+
{
|
|
2915
|
+
"type": "boolean"
|
|
2916
|
+
},
|
|
2917
|
+
{
|
|
2918
|
+
"type": "object",
|
|
2919
|
+
"properties": {
|
|
2920
|
+
"enabled": {
|
|
2921
|
+
"type": "boolean",
|
|
2922
|
+
"default": true,
|
|
2923
|
+
"description": "Enable Node.js module compile cache for faster startup"
|
|
2924
|
+
},
|
|
2925
|
+
"directory": {
|
|
2926
|
+
"type": "string",
|
|
2927
|
+
"description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
|
|
2928
|
+
}
|
|
2929
|
+
},
|
|
2930
|
+
"additionalProperties": false
|
|
2931
|
+
}
|
|
2932
|
+
]
|
|
2886
2933
|
}
|
|
2887
2934
|
},
|
|
2888
2935
|
"additionalProperties": false
|