@platformatic/composer 3.32.0-alpha.0 → 3.32.0-alpha.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 +38 -4
- package/package.json +3 -3
- package/schema.json +87 -40
package/config.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export interface PlatformaticComposerConfig {
|
|
|
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;
|
|
@@ -196,7 +196,7 @@ export interface PlatformaticComposerConfig {
|
|
|
196
196
|
};
|
|
197
197
|
workersRestartDelay?: number | string;
|
|
198
198
|
logger?: {
|
|
199
|
-
level
|
|
199
|
+
level?: (
|
|
200
200
|
| ("fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent")
|
|
201
201
|
| {
|
|
202
202
|
[k: string]: unknown;
|
|
@@ -299,7 +299,6 @@ export interface PlatformaticComposerConfig {
|
|
|
299
299
|
maxHeapTotal?: number | string;
|
|
300
300
|
maxYoungGeneration?: number | string;
|
|
301
301
|
codeRangeSize?: number | string;
|
|
302
|
-
noHeapCheck?: boolean | string;
|
|
303
302
|
};
|
|
304
303
|
undici?: {
|
|
305
304
|
agentOptions?: {
|
|
@@ -351,6 +350,18 @@ export interface PlatformaticComposerConfig {
|
|
|
351
350
|
maxSize?: number;
|
|
352
351
|
maxEntrySize?: number;
|
|
353
352
|
maxCount?: number;
|
|
353
|
+
/**
|
|
354
|
+
* Whitelist of origins to cache. Supports exact strings and regex patterns (e.g., "/https:\\/\\/.*\\.example\\.com/").
|
|
355
|
+
*/
|
|
356
|
+
origins?: string[];
|
|
357
|
+
/**
|
|
358
|
+
* Default cache duration in seconds for responses without explicit expiration headers.
|
|
359
|
+
*/
|
|
360
|
+
cacheByDefault?: number;
|
|
361
|
+
/**
|
|
362
|
+
* Cache type. "shared" caches may be shared between users, "private" caches are user-specific.
|
|
363
|
+
*/
|
|
364
|
+
type?: "shared" | "private";
|
|
354
365
|
[k: string]: unknown;
|
|
355
366
|
};
|
|
356
367
|
watch?: boolean | string;
|
|
@@ -580,6 +591,18 @@ export interface PlatformaticComposerConfig {
|
|
|
580
591
|
[k: string]: string | [string, ...string[]];
|
|
581
592
|
};
|
|
582
593
|
};
|
|
594
|
+
compileCache?:
|
|
595
|
+
| boolean
|
|
596
|
+
| {
|
|
597
|
+
/**
|
|
598
|
+
* Enable Node.js module compile cache for faster startup
|
|
599
|
+
*/
|
|
600
|
+
enabled?: boolean;
|
|
601
|
+
/**
|
|
602
|
+
* Directory to store compile cache. Defaults to .plt/compile-cache in app root
|
|
603
|
+
*/
|
|
604
|
+
directory?: string;
|
|
605
|
+
};
|
|
583
606
|
application?: {
|
|
584
607
|
reuseTcpPorts?: boolean;
|
|
585
608
|
workers?:
|
|
@@ -603,7 +626,6 @@ export interface PlatformaticComposerConfig {
|
|
|
603
626
|
maxHeapTotal?: number | string;
|
|
604
627
|
maxYoungGeneration?: number | string;
|
|
605
628
|
codeRangeSize?: number | string;
|
|
606
|
-
noHeapCheck?: boolean | string;
|
|
607
629
|
};
|
|
608
630
|
arguments?: string[];
|
|
609
631
|
env?: {
|
|
@@ -639,6 +661,18 @@ export interface PlatformaticComposerConfig {
|
|
|
639
661
|
)[];
|
|
640
662
|
[k: string]: unknown;
|
|
641
663
|
};
|
|
664
|
+
compileCache?:
|
|
665
|
+
| boolean
|
|
666
|
+
| {
|
|
667
|
+
/**
|
|
668
|
+
* Enable Node.js module compile cache for faster startup
|
|
669
|
+
*/
|
|
670
|
+
enabled?: boolean;
|
|
671
|
+
/**
|
|
672
|
+
* Directory to store compile cache. Defaults to .plt/compile-cache in app root
|
|
673
|
+
*/
|
|
674
|
+
directory?: string;
|
|
675
|
+
};
|
|
642
676
|
};
|
|
643
677
|
};
|
|
644
678
|
telemetry?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/composer",
|
|
3
|
-
"version": "3.32.0-alpha.
|
|
3
|
+
"version": "3.32.0-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"json-schema-to-typescript": "^15.0.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@platformatic/
|
|
27
|
-
"@platformatic/
|
|
26
|
+
"@platformatic/foundation": "3.32.0-alpha.1",
|
|
27
|
+
"@platformatic/gateway": "3.32.0-alpha.1"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/composer/3.32.0-alpha.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/composer/3.32.0-alpha.1.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Composer Config",
|
|
5
5
|
"type": "object",
|
|
@@ -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
|
}
|
|
@@ -872,16 +868,6 @@
|
|
|
872
868
|
"type": "string"
|
|
873
869
|
}
|
|
874
870
|
]
|
|
875
|
-
},
|
|
876
|
-
"noHeapCheck": {
|
|
877
|
-
"anyOf": [
|
|
878
|
-
{
|
|
879
|
-
"type": "boolean"
|
|
880
|
-
},
|
|
881
|
-
{
|
|
882
|
-
"type": "string"
|
|
883
|
-
}
|
|
884
|
-
]
|
|
885
871
|
}
|
|
886
872
|
},
|
|
887
873
|
"additionalProperties": false
|
|
@@ -1006,6 +992,28 @@
|
|
|
1006
992
|
}
|
|
1007
993
|
}
|
|
1008
994
|
}
|
|
995
|
+
},
|
|
996
|
+
"compileCache": {
|
|
997
|
+
"anyOf": [
|
|
998
|
+
{
|
|
999
|
+
"type": "boolean"
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"type": "object",
|
|
1003
|
+
"properties": {
|
|
1004
|
+
"enabled": {
|
|
1005
|
+
"type": "boolean",
|
|
1006
|
+
"default": true,
|
|
1007
|
+
"description": "Enable Node.js module compile cache for faster startup"
|
|
1008
|
+
},
|
|
1009
|
+
"directory": {
|
|
1010
|
+
"type": "string",
|
|
1011
|
+
"description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
"additionalProperties": false
|
|
1015
|
+
}
|
|
1016
|
+
]
|
|
1009
1017
|
}
|
|
1010
1018
|
}
|
|
1011
1019
|
}
|
|
@@ -1085,7 +1093,6 @@
|
|
|
1085
1093
|
"properties": {
|
|
1086
1094
|
"level": {
|
|
1087
1095
|
"type": "string",
|
|
1088
|
-
"default": "info",
|
|
1089
1096
|
"oneOf": [
|
|
1090
1097
|
{
|
|
1091
1098
|
"enum": [
|
|
@@ -1228,9 +1235,6 @@
|
|
|
1228
1235
|
"additionalProperties": true
|
|
1229
1236
|
}
|
|
1230
1237
|
},
|
|
1231
|
-
"required": [
|
|
1232
|
-
"level"
|
|
1233
|
-
],
|
|
1234
1238
|
"default": {},
|
|
1235
1239
|
"additionalProperties": true
|
|
1236
1240
|
},
|
|
@@ -1526,17 +1530,6 @@
|
|
|
1526
1530
|
}
|
|
1527
1531
|
],
|
|
1528
1532
|
"default": 268435456
|
|
1529
|
-
},
|
|
1530
|
-
"noHeapCheck": {
|
|
1531
|
-
"anyOf": [
|
|
1532
|
-
{
|
|
1533
|
-
"type": "boolean"
|
|
1534
|
-
},
|
|
1535
|
-
{
|
|
1536
|
-
"type": "string"
|
|
1537
|
-
}
|
|
1538
|
-
],
|
|
1539
|
-
"default": false
|
|
1540
1533
|
}
|
|
1541
1534
|
},
|
|
1542
1535
|
"additionalProperties": false
|
|
@@ -1668,6 +1661,26 @@
|
|
|
1668
1661
|
},
|
|
1669
1662
|
"maxCount": {
|
|
1670
1663
|
"type": "integer"
|
|
1664
|
+
},
|
|
1665
|
+
"origins": {
|
|
1666
|
+
"type": "array",
|
|
1667
|
+
"items": {
|
|
1668
|
+
"type": "string"
|
|
1669
|
+
},
|
|
1670
|
+
"description": "Whitelist of origins to cache. Supports exact strings and regex patterns (e.g., \"/https:\\\\/\\\\/.*\\\\.example\\\\.com/\")."
|
|
1671
|
+
},
|
|
1672
|
+
"cacheByDefault": {
|
|
1673
|
+
"type": "integer",
|
|
1674
|
+
"description": "Default cache duration in seconds for responses without explicit expiration headers."
|
|
1675
|
+
},
|
|
1676
|
+
"type": {
|
|
1677
|
+
"type": "string",
|
|
1678
|
+
"enum": [
|
|
1679
|
+
"shared",
|
|
1680
|
+
"private"
|
|
1681
|
+
],
|
|
1682
|
+
"default": "shared",
|
|
1683
|
+
"description": "Cache type. \"shared\" caches may be shared between users, \"private\" caches are user-specific."
|
|
1671
1684
|
}
|
|
1672
1685
|
}
|
|
1673
1686
|
}
|
|
@@ -2283,6 +2296,28 @@
|
|
|
2283
2296
|
],
|
|
2284
2297
|
"additionalProperties": false
|
|
2285
2298
|
},
|
|
2299
|
+
"compileCache": {
|
|
2300
|
+
"anyOf": [
|
|
2301
|
+
{
|
|
2302
|
+
"type": "boolean"
|
|
2303
|
+
},
|
|
2304
|
+
{
|
|
2305
|
+
"type": "object",
|
|
2306
|
+
"properties": {
|
|
2307
|
+
"enabled": {
|
|
2308
|
+
"type": "boolean",
|
|
2309
|
+
"default": true,
|
|
2310
|
+
"description": "Enable Node.js module compile cache for faster startup"
|
|
2311
|
+
},
|
|
2312
|
+
"directory": {
|
|
2313
|
+
"type": "string",
|
|
2314
|
+
"description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
|
|
2315
|
+
}
|
|
2316
|
+
},
|
|
2317
|
+
"additionalProperties": false
|
|
2318
|
+
}
|
|
2319
|
+
]
|
|
2320
|
+
},
|
|
2286
2321
|
"application": {
|
|
2287
2322
|
"type": "object",
|
|
2288
2323
|
"properties": {
|
|
@@ -2430,16 +2465,6 @@
|
|
|
2430
2465
|
"type": "string"
|
|
2431
2466
|
}
|
|
2432
2467
|
]
|
|
2433
|
-
},
|
|
2434
|
-
"noHeapCheck": {
|
|
2435
|
-
"anyOf": [
|
|
2436
|
-
{
|
|
2437
|
-
"type": "boolean"
|
|
2438
|
-
},
|
|
2439
|
-
{
|
|
2440
|
-
"type": "string"
|
|
2441
|
-
}
|
|
2442
|
-
]
|
|
2443
2468
|
}
|
|
2444
2469
|
},
|
|
2445
2470
|
"additionalProperties": false
|
|
@@ -2557,6 +2582,28 @@
|
|
|
2557
2582
|
}
|
|
2558
2583
|
}
|
|
2559
2584
|
}
|
|
2585
|
+
},
|
|
2586
|
+
"compileCache": {
|
|
2587
|
+
"anyOf": [
|
|
2588
|
+
{
|
|
2589
|
+
"type": "boolean"
|
|
2590
|
+
},
|
|
2591
|
+
{
|
|
2592
|
+
"type": "object",
|
|
2593
|
+
"properties": {
|
|
2594
|
+
"enabled": {
|
|
2595
|
+
"type": "boolean",
|
|
2596
|
+
"default": true,
|
|
2597
|
+
"description": "Enable Node.js module compile cache for faster startup"
|
|
2598
|
+
},
|
|
2599
|
+
"directory": {
|
|
2600
|
+
"type": "string",
|
|
2601
|
+
"description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
|
|
2602
|
+
}
|
|
2603
|
+
},
|
|
2604
|
+
"additionalProperties": false
|
|
2605
|
+
}
|
|
2606
|
+
]
|
|
2560
2607
|
}
|
|
2561
2608
|
},
|
|
2562
2609
|
"additionalProperties": false
|