@platformatic/foundation 3.29.1 → 3.31.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/lib/schema.js +26 -4
- package/package.json +3 -3
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
|
}
|
|
@@ -723,6 +721,27 @@ export const policies = {
|
|
|
723
721
|
additionalProperties: false
|
|
724
722
|
}
|
|
725
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
|
+
|
|
726
745
|
export const application = {
|
|
727
746
|
type: 'object',
|
|
728
747
|
anyOf: [{ required: ['id', 'path'] }, { required: ['id', 'url'] }],
|
|
@@ -867,7 +886,8 @@ export const application = {
|
|
|
867
886
|
}
|
|
868
887
|
}
|
|
869
888
|
}
|
|
870
|
-
}
|
|
889
|
+
},
|
|
890
|
+
compileCache
|
|
871
891
|
}
|
|
872
892
|
}
|
|
873
893
|
|
|
@@ -1340,7 +1360,8 @@ export const runtimeProperties = {
|
|
|
1340
1360
|
required: ['name', 'cron', 'callbackUrl']
|
|
1341
1361
|
}
|
|
1342
1362
|
},
|
|
1343
|
-
policies
|
|
1363
|
+
policies,
|
|
1364
|
+
compileCache
|
|
1344
1365
|
}
|
|
1345
1366
|
|
|
1346
1367
|
export const runtimeUnwrappablePropertiesList = [
|
|
@@ -1397,6 +1418,7 @@ export const schemaComponents = {
|
|
|
1397
1418
|
telemetryExporter,
|
|
1398
1419
|
telemetry,
|
|
1399
1420
|
policies,
|
|
1421
|
+
compileCache,
|
|
1400
1422
|
applications,
|
|
1401
1423
|
runtimeProperties,
|
|
1402
1424
|
wrappedRuntimeProperties,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/foundation",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.31.0",
|
|
4
4
|
"description": "Platformatic Foundation",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"pino": "^9.9.0",
|
|
30
30
|
"pino-pretty": "^13.0.0",
|
|
31
31
|
"semver": "^7.6.3",
|
|
32
|
-
"undici": "7.
|
|
32
|
+
"undici": "7.18.2",
|
|
33
33
|
"yaml": "^2.4.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"c8": "^10.0.0",
|
|
37
37
|
"cleaner-spec-reporter": "^0.5.0",
|
|
38
38
|
"eslint": "9",
|
|
39
|
-
"fastify": "^5.
|
|
39
|
+
"fastify": "^5.7.0",
|
|
40
40
|
"neostandard": "^0.12.0",
|
|
41
41
|
"pino": "^9.9.0",
|
|
42
42
|
"pino-test": "^1.0.1",
|