@platformatic/gateway 3.31.0 → 3.32.0-alpha.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 +4 -26
  2. package/package.json +7 -7
  3. package/schema.json +40 -67
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;
@@ -512,6 +512,7 @@ export interface PlatformaticGatewayConfig {
512
512
  maxHeapTotal?: number | string;
513
513
  maxYoungGeneration?: number | string;
514
514
  codeRangeSize?: number | string;
515
+ noHeapCheck?: boolean | string;
515
516
  };
516
517
  undici?: {
517
518
  agentOptions?: {
@@ -792,18 +793,6 @@ export interface PlatformaticGatewayConfig {
792
793
  [k: string]: string | [string, ...string[]];
793
794
  };
794
795
  };
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
- };
807
796
  application?: {
808
797
  reuseTcpPorts?: boolean;
809
798
  workers?:
@@ -827,6 +816,7 @@ export interface PlatformaticGatewayConfig {
827
816
  maxHeapTotal?: number | string;
828
817
  maxYoungGeneration?: number | string;
829
818
  codeRangeSize?: number | string;
819
+ noHeapCheck?: boolean | string;
830
820
  };
831
821
  arguments?: string[];
832
822
  env?: {
@@ -862,18 +852,6 @@ export interface PlatformaticGatewayConfig {
862
852
  )[];
863
853
  [k: string]: unknown;
864
854
  };
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
- };
877
855
  };
878
856
  };
879
857
  telemetry?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/gateway",
3
- "version": "3.31.0",
3
+ "version": "3.32.0-alpha.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.31.0"
36
+ "@platformatic/db": "3.32.0-alpha.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.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"
67
+ "@platformatic/basic": "3.32.0-alpha.0",
68
+ "@platformatic/telemetry": "3.32.0-alpha.0",
69
+ "@platformatic/service": "3.32.0-alpha.0",
70
+ "@platformatic/foundation": "^3.32.0-alpha.0",
71
+ "@platformatic/scalar-theme": "3.32.0-alpha.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.31.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/gateway/3.32.0-alpha.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Gateway Config",
5
5
  "type": "object",
@@ -97,6 +97,7 @@
97
97
  "properties": {
98
98
  "level": {
99
99
  "type": "string",
100
+ "default": "info",
100
101
  "oneOf": [
101
102
  {
102
103
  "enum": [
@@ -239,6 +240,9 @@
239
240
  "additionalProperties": true
240
241
  }
241
242
  },
243
+ "required": [
244
+ "level"
245
+ ],
242
246
  "default": {},
243
247
  "additionalProperties": true
244
248
  }
@@ -1468,6 +1472,16 @@
1468
1472
  "type": "string"
1469
1473
  }
1470
1474
  ]
1475
+ },
1476
+ "noHeapCheck": {
1477
+ "anyOf": [
1478
+ {
1479
+ "type": "boolean"
1480
+ },
1481
+ {
1482
+ "type": "string"
1483
+ }
1484
+ ]
1471
1485
  }
1472
1486
  },
1473
1487
  "additionalProperties": false
@@ -1592,28 +1606,6 @@
1592
1606
  }
1593
1607
  }
1594
1608
  }
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
- ]
1617
1609
  }
1618
1610
  }
1619
1611
  }
@@ -1693,6 +1685,7 @@
1693
1685
  "properties": {
1694
1686
  "level": {
1695
1687
  "type": "string",
1688
+ "default": "info",
1696
1689
  "oneOf": [
1697
1690
  {
1698
1691
  "enum": [
@@ -1835,6 +1828,9 @@
1835
1828
  "additionalProperties": true
1836
1829
  }
1837
1830
  },
1831
+ "required": [
1832
+ "level"
1833
+ ],
1838
1834
  "default": {},
1839
1835
  "additionalProperties": true
1840
1836
  },
@@ -2130,6 +2126,17 @@
2130
2126
  }
2131
2127
  ],
2132
2128
  "default": 268435456
2129
+ },
2130
+ "noHeapCheck": {
2131
+ "anyOf": [
2132
+ {
2133
+ "type": "boolean"
2134
+ },
2135
+ {
2136
+ "type": "string"
2137
+ }
2138
+ ],
2139
+ "default": false
2133
2140
  }
2134
2141
  },
2135
2142
  "additionalProperties": false
@@ -2876,28 +2883,6 @@
2876
2883
  ],
2877
2884
  "additionalProperties": false
2878
2885
  },
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
- },
2901
2886
  "application": {
2902
2887
  "type": "object",
2903
2888
  "properties": {
@@ -3045,6 +3030,16 @@
3045
3030
  "type": "string"
3046
3031
  }
3047
3032
  ]
3033
+ },
3034
+ "noHeapCheck": {
3035
+ "anyOf": [
3036
+ {
3037
+ "type": "boolean"
3038
+ },
3039
+ {
3040
+ "type": "string"
3041
+ }
3042
+ ]
3048
3043
  }
3049
3044
  },
3050
3045
  "additionalProperties": false
@@ -3162,28 +3157,6 @@
3162
3157
  }
3163
3158
  }
3164
3159
  }
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
- ]
3187
3160
  }
3188
3161
  },
3189
3162
  "additionalProperties": false