@platformatic/service 3.30.0 → 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.
Files changed (3) hide show
  1. package/config.d.ts +26 -2
  2. package/package.json +7 -7
  3. package/schema.json +68 -10
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;
@@ -714,6 +714,18 @@ export interface PlatformaticServiceConfig {
714
714
  [k: string]: string | [string, ...string[]];
715
715
  };
716
716
  };
717
+ compileCache?:
718
+ | boolean
719
+ | {
720
+ /**
721
+ * Enable Node.js module compile cache for faster startup
722
+ */
723
+ enabled?: boolean;
724
+ /**
725
+ * Directory to store compile cache. Defaults to .plt/compile-cache in app root
726
+ */
727
+ directory?: string;
728
+ };
717
729
  application?: {
718
730
  reuseTcpPorts?: boolean;
719
731
  workers?:
@@ -772,6 +784,18 @@ export interface PlatformaticServiceConfig {
772
784
  )[];
773
785
  [k: string]: unknown;
774
786
  };
787
+ compileCache?:
788
+ | boolean
789
+ | {
790
+ /**
791
+ * Enable Node.js module compile cache for faster startup
792
+ */
793
+ enabled?: boolean;
794
+ /**
795
+ * Directory to store compile cache. Defaults to .plt/compile-cache in app root
796
+ */
797
+ directory?: string;
798
+ };
775
799
  };
776
800
  };
777
801
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/service",
3
- "version": "3.30.0",
3
+ "version": "3.31.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.30.0",
71
- "@platformatic/generators": "3.30.0",
72
- "@platformatic/foundation": "3.30.0",
73
- "@platformatic/scalar-theme": "3.30.0",
74
- "@platformatic/metrics": "3.30.0",
75
- "@platformatic/telemetry": "3.30.0"
70
+ "@platformatic/basic": "3.31.0",
71
+ "@platformatic/foundation": "3.31.0",
72
+ "@platformatic/generators": "3.31.0",
73
+ "@platformatic/metrics": "3.31.0",
74
+ "@platformatic/scalar-theme": "3.31.0",
75
+ "@platformatic/telemetry": "3.31.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.30.0.json",
3
- "version": "3.30.0",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/service/3.31.0.json",
3
+ "version": "3.31.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
  }
@@ -1322,6 +1318,28 @@
1322
1318
  }
1323
1319
  }
1324
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
+ ]
1325
1343
  }
1326
1344
  }
1327
1345
  }
@@ -1401,7 +1419,6 @@
1401
1419
  "properties": {
1402
1420
  "level": {
1403
1421
  "type": "string",
1404
- "default": "info",
1405
1422
  "oneOf": [
1406
1423
  {
1407
1424
  "enum": [
@@ -1544,9 +1561,6 @@
1544
1561
  "additionalProperties": true
1545
1562
  }
1546
1563
  },
1547
- "required": [
1548
- "level"
1549
- ],
1550
1564
  "default": {},
1551
1565
  "additionalProperties": true
1552
1566
  },
@@ -2588,6 +2602,28 @@
2588
2602
  ],
2589
2603
  "additionalProperties": false
2590
2604
  },
2605
+ "compileCache": {
2606
+ "anyOf": [
2607
+ {
2608
+ "type": "boolean"
2609
+ },
2610
+ {
2611
+ "type": "object",
2612
+ "properties": {
2613
+ "enabled": {
2614
+ "type": "boolean",
2615
+ "default": true,
2616
+ "description": "Enable Node.js module compile cache for faster startup"
2617
+ },
2618
+ "directory": {
2619
+ "type": "string",
2620
+ "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
2621
+ }
2622
+ },
2623
+ "additionalProperties": false
2624
+ }
2625
+ ]
2626
+ },
2591
2627
  "application": {
2592
2628
  "type": "object",
2593
2629
  "properties": {
@@ -2852,6 +2888,28 @@
2852
2888
  }
2853
2889
  }
2854
2890
  }
2891
+ },
2892
+ "compileCache": {
2893
+ "anyOf": [
2894
+ {
2895
+ "type": "boolean"
2896
+ },
2897
+ {
2898
+ "type": "object",
2899
+ "properties": {
2900
+ "enabled": {
2901
+ "type": "boolean",
2902
+ "default": true,
2903
+ "description": "Enable Node.js module compile cache for faster startup"
2904
+ },
2905
+ "directory": {
2906
+ "type": "string",
2907
+ "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
2908
+ }
2909
+ },
2910
+ "additionalProperties": false
2911
+ }
2912
+ ]
2855
2913
  }
2856
2914
  },
2857
2915
  "additionalProperties": false