@platformatic/gateway 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 +67 -9
package/config.d.ts CHANGED
@@ -32,7 +32,7 @@ export interface PlatformaticGatewayConfig {
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;
@@ -409,7 +409,7 @@ export interface PlatformaticGatewayConfig {
409
409
  };
410
410
  workersRestartDelay?: number | string;
411
411
  logger?: {
412
- level: (
412
+ level?: (
413
413
  | ("fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent")
414
414
  | {
415
415
  [k: string]: unknown;
@@ -792,6 +792,18 @@ export interface PlatformaticGatewayConfig {
792
792
  [k: string]: string | [string, ...string[]];
793
793
  };
794
794
  };
795
+ compileCache?:
796
+ | boolean
797
+ | {
798
+ /**
799
+ * Enable Node.js module compile cache for faster startup
800
+ */
801
+ enabled?: boolean;
802
+ /**
803
+ * Directory to store compile cache. Defaults to .plt/compile-cache in app root
804
+ */
805
+ directory?: string;
806
+ };
795
807
  application?: {
796
808
  reuseTcpPorts?: boolean;
797
809
  workers?:
@@ -850,6 +862,18 @@ export interface PlatformaticGatewayConfig {
850
862
  )[];
851
863
  [k: string]: unknown;
852
864
  };
865
+ compileCache?:
866
+ | boolean
867
+ | {
868
+ /**
869
+ * Enable Node.js module compile cache for faster startup
870
+ */
871
+ enabled?: boolean;
872
+ /**
873
+ * Directory to store compile cache. Defaults to .plt/compile-cache in app root
874
+ */
875
+ directory?: string;
876
+ };
853
877
  };
854
878
  };
855
879
  telemetry?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/gateway",
3
- "version": "3.30.0",
3
+ "version": "3.31.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -33,7 +33,7 @@
33
33
  "typescript": "^5.5.4",
34
34
  "why-is-node-running": "2",
35
35
  "ws": "^8.16.0",
36
- "@platformatic/db": "3.30.0"
36
+ "@platformatic/db": "3.31.0"
37
37
  },
38
38
  "dependencies": {
39
39
  "@fastify/error": "^4.0.0",
@@ -64,11 +64,11 @@
64
64
  "rfdc": "^1.3.1",
65
65
  "semgrator": "^0.3.0",
66
66
  "undici": "^7.0.0",
67
- "@platformatic/basic": "3.30.0",
68
- "@platformatic/scalar-theme": "3.30.0",
69
- "@platformatic/service": "3.30.0",
70
- "@platformatic/telemetry": "3.30.0",
71
- "@platformatic/foundation": "^3.30.0"
67
+ "@platformatic/basic": "3.31.0",
68
+ "@platformatic/scalar-theme": "3.31.0",
69
+ "@platformatic/service": "3.31.0",
70
+ "@platformatic/telemetry": "3.31.0",
71
+ "@platformatic/foundation": "^3.31.0"
72
72
  },
73
73
  "engines": {
74
74
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/gateway/3.30.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/gateway/3.31.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Gateway 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
  }
@@ -1596,6 +1592,28 @@
1596
1592
  }
1597
1593
  }
1598
1594
  }
1595
+ },
1596
+ "compileCache": {
1597
+ "anyOf": [
1598
+ {
1599
+ "type": "boolean"
1600
+ },
1601
+ {
1602
+ "type": "object",
1603
+ "properties": {
1604
+ "enabled": {
1605
+ "type": "boolean",
1606
+ "default": true,
1607
+ "description": "Enable Node.js module compile cache for faster startup"
1608
+ },
1609
+ "directory": {
1610
+ "type": "string",
1611
+ "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
1612
+ }
1613
+ },
1614
+ "additionalProperties": false
1615
+ }
1616
+ ]
1599
1617
  }
1600
1618
  }
1601
1619
  }
@@ -1675,7 +1693,6 @@
1675
1693
  "properties": {
1676
1694
  "level": {
1677
1695
  "type": "string",
1678
- "default": "info",
1679
1696
  "oneOf": [
1680
1697
  {
1681
1698
  "enum": [
@@ -1818,9 +1835,6 @@
1818
1835
  "additionalProperties": true
1819
1836
  }
1820
1837
  },
1821
- "required": [
1822
- "level"
1823
- ],
1824
1838
  "default": {},
1825
1839
  "additionalProperties": true
1826
1840
  },
@@ -2862,6 +2876,28 @@
2862
2876
  ],
2863
2877
  "additionalProperties": false
2864
2878
  },
2879
+ "compileCache": {
2880
+ "anyOf": [
2881
+ {
2882
+ "type": "boolean"
2883
+ },
2884
+ {
2885
+ "type": "object",
2886
+ "properties": {
2887
+ "enabled": {
2888
+ "type": "boolean",
2889
+ "default": true,
2890
+ "description": "Enable Node.js module compile cache for faster startup"
2891
+ },
2892
+ "directory": {
2893
+ "type": "string",
2894
+ "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
2895
+ }
2896
+ },
2897
+ "additionalProperties": false
2898
+ }
2899
+ ]
2900
+ },
2865
2901
  "application": {
2866
2902
  "type": "object",
2867
2903
  "properties": {
@@ -3126,6 +3162,28 @@
3126
3162
  }
3127
3163
  }
3128
3164
  }
3165
+ },
3166
+ "compileCache": {
3167
+ "anyOf": [
3168
+ {
3169
+ "type": "boolean"
3170
+ },
3171
+ {
3172
+ "type": "object",
3173
+ "properties": {
3174
+ "enabled": {
3175
+ "type": "boolean",
3176
+ "default": true,
3177
+ "description": "Enable Node.js module compile cache for faster startup"
3178
+ },
3179
+ "directory": {
3180
+ "type": "string",
3181
+ "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
3182
+ }
3183
+ },
3184
+ "additionalProperties": false
3185
+ }
3186
+ ]
3129
3187
  }
3130
3188
  },
3131
3189
  "additionalProperties": false