@platformatic/foundation 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/lib/schema.js +44 -6
- package/package.json +1 -1
package/lib/schema.js
CHANGED
|
@@ -228,7 +228,6 @@ export const logger = {
|
|
|
228
228
|
properties: {
|
|
229
229
|
level: {
|
|
230
230
|
type: 'string',
|
|
231
|
-
default: 'info',
|
|
232
231
|
oneOf: [
|
|
233
232
|
{
|
|
234
233
|
enum: ['fatal', 'error', 'warn', 'info', 'debug', 'trace', 'silent']
|
|
@@ -337,7 +336,6 @@ export const logger = {
|
|
|
337
336
|
}
|
|
338
337
|
},
|
|
339
338
|
|
|
340
|
-
required: ['level'],
|
|
341
339
|
default: {},
|
|
342
340
|
additionalProperties: true
|
|
343
341
|
}
|
|
@@ -607,8 +605,7 @@ export const health = {
|
|
|
607
605
|
maxHeapUsed: overridableValue({ type: 'number', minimum: 0, maximum: 1 }, 0.99),
|
|
608
606
|
maxHeapTotal: overridableValue({ type: 'number', minimum: 0 }, 4 * Math.pow(1024, 3)), // 4GB
|
|
609
607
|
maxYoungGeneration: overridableValue({ type: 'number', minimum: 0 }, 128 * Math.pow(1024, 2)), // 128MB,
|
|
610
|
-
codeRangeSize: overridableValue({ type: 'number', minimum: 0 }, 268435456)
|
|
611
|
-
noHeapCheck: overridableValue({ type: 'boolean' }, false)
|
|
608
|
+
codeRangeSize: overridableValue({ type: 'number', minimum: 0 }, 268435456)
|
|
612
609
|
},
|
|
613
610
|
additionalProperties: false
|
|
614
611
|
}
|
|
@@ -724,6 +721,27 @@ export const policies = {
|
|
|
724
721
|
additionalProperties: false
|
|
725
722
|
}
|
|
726
723
|
|
|
724
|
+
export const compileCache = {
|
|
725
|
+
anyOf: [
|
|
726
|
+
{ type: 'boolean' },
|
|
727
|
+
{
|
|
728
|
+
type: 'object',
|
|
729
|
+
properties: {
|
|
730
|
+
enabled: {
|
|
731
|
+
type: 'boolean',
|
|
732
|
+
default: true,
|
|
733
|
+
description: 'Enable Node.js module compile cache for faster startup'
|
|
734
|
+
},
|
|
735
|
+
directory: {
|
|
736
|
+
type: 'string',
|
|
737
|
+
description: 'Directory to store compile cache. Defaults to .plt/compile-cache in app root'
|
|
738
|
+
}
|
|
739
|
+
},
|
|
740
|
+
additionalProperties: false
|
|
741
|
+
}
|
|
742
|
+
]
|
|
743
|
+
}
|
|
744
|
+
|
|
727
745
|
export const application = {
|
|
728
746
|
type: 'object',
|
|
729
747
|
anyOf: [{ required: ['id', 'path'] }, { required: ['id', 'url'] }],
|
|
@@ -868,7 +886,8 @@ export const application = {
|
|
|
868
886
|
}
|
|
869
887
|
}
|
|
870
888
|
}
|
|
871
|
-
}
|
|
889
|
+
},
|
|
890
|
+
compileCache
|
|
872
891
|
}
|
|
873
892
|
}
|
|
874
893
|
|
|
@@ -1047,6 +1066,23 @@ export const runtimeProperties = {
|
|
|
1047
1066
|
},
|
|
1048
1067
|
maxCount: {
|
|
1049
1068
|
type: 'integer'
|
|
1069
|
+
},
|
|
1070
|
+
origins: {
|
|
1071
|
+
type: 'array',
|
|
1072
|
+
items: {
|
|
1073
|
+
type: 'string'
|
|
1074
|
+
},
|
|
1075
|
+
description: 'Whitelist of origins to cache. Supports exact strings and regex patterns (e.g., "/https:\\\\/\\\\/.*\\\\.example\\\\.com/").'
|
|
1076
|
+
},
|
|
1077
|
+
cacheByDefault: {
|
|
1078
|
+
type: 'integer',
|
|
1079
|
+
description: 'Default cache duration in seconds for responses without explicit expiration headers.'
|
|
1080
|
+
},
|
|
1081
|
+
type: {
|
|
1082
|
+
type: 'string',
|
|
1083
|
+
enum: ['shared', 'private'],
|
|
1084
|
+
default: 'shared',
|
|
1085
|
+
description: 'Cache type. "shared" caches may be shared between users, "private" caches are user-specific.'
|
|
1050
1086
|
}
|
|
1051
1087
|
}
|
|
1052
1088
|
}
|
|
@@ -1341,7 +1377,8 @@ export const runtimeProperties = {
|
|
|
1341
1377
|
required: ['name', 'cron', 'callbackUrl']
|
|
1342
1378
|
}
|
|
1343
1379
|
},
|
|
1344
|
-
policies
|
|
1380
|
+
policies,
|
|
1381
|
+
compileCache
|
|
1345
1382
|
}
|
|
1346
1383
|
|
|
1347
1384
|
export const runtimeUnwrappablePropertiesList = [
|
|
@@ -1398,6 +1435,7 @@ export const schemaComponents = {
|
|
|
1398
1435
|
telemetryExporter,
|
|
1399
1436
|
telemetry,
|
|
1400
1437
|
policies,
|
|
1438
|
+
compileCache,
|
|
1401
1439
|
applications,
|
|
1402
1440
|
runtimeProperties,
|
|
1403
1441
|
wrappedRuntimeProperties,
|