@platformatic/nest 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 +6 -6
  3. package/schema.json +40 -67
package/config.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  export interface PlatformaticNestJSConfig {
9
9
  $schema?: string;
10
10
  logger?: {
11
- level?: (
11
+ level: (
12
12
  | ("fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent")
13
13
  | {
14
14
  [k: string]: unknown;
@@ -139,7 +139,7 @@ export interface PlatformaticNestJSConfig {
139
139
  };
140
140
  workersRestartDelay?: number | string;
141
141
  logger?: {
142
- level?: (
142
+ level: (
143
143
  | ("fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent")
144
144
  | {
145
145
  [k: string]: unknown;
@@ -242,6 +242,7 @@ export interface PlatformaticNestJSConfig {
242
242
  maxHeapTotal?: number | string;
243
243
  maxYoungGeneration?: number | string;
244
244
  codeRangeSize?: number | string;
245
+ noHeapCheck?: boolean | string;
245
246
  };
246
247
  undici?: {
247
248
  agentOptions?: {
@@ -522,18 +523,6 @@ export interface PlatformaticNestJSConfig {
522
523
  [k: string]: string | [string, ...string[]];
523
524
  };
524
525
  };
525
- compileCache?:
526
- | boolean
527
- | {
528
- /**
529
- * Enable Node.js module compile cache for faster startup
530
- */
531
- enabled?: boolean;
532
- /**
533
- * Directory to store compile cache. Defaults to .plt/compile-cache in app root
534
- */
535
- directory?: string;
536
- };
537
526
  application?: {
538
527
  reuseTcpPorts?: boolean;
539
528
  workers?:
@@ -557,6 +546,7 @@ export interface PlatformaticNestJSConfig {
557
546
  maxHeapTotal?: number | string;
558
547
  maxYoungGeneration?: number | string;
559
548
  codeRangeSize?: number | string;
549
+ noHeapCheck?: boolean | string;
560
550
  };
561
551
  arguments?: string[];
562
552
  env?: {
@@ -592,18 +582,6 @@ export interface PlatformaticNestJSConfig {
592
582
  )[];
593
583
  [k: string]: unknown;
594
584
  };
595
- compileCache?:
596
- | boolean
597
- | {
598
- /**
599
- * Enable Node.js module compile cache for faster startup
600
- */
601
- enabled?: boolean;
602
- /**
603
- * Directory to store compile cache. Defaults to .plt/compile-cache in app root
604
- */
605
- directory?: string;
606
- };
607
585
  };
608
586
  };
609
587
  nest?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/nest",
3
- "version": "3.31.0",
3
+ "version": "3.32.0-alpha.0",
4
4
  "description": "Platformatic Nest.js Capability",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -18,9 +18,9 @@
18
18
  "get-port": "^7.1.0",
19
19
  "light-my-request": "^6.0.0",
20
20
  "pino-http": "^10.2.0",
21
- "@platformatic/basic": "3.31.0",
22
- "@platformatic/generators": "3.31.0",
23
- "@platformatic/foundation": "3.31.0"
21
+ "@platformatic/foundation": "3.32.0-alpha.0",
22
+ "@platformatic/generators": "3.32.0-alpha.0",
23
+ "@platformatic/basic": "3.32.0-alpha.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@nestjs/cli": "^11.0.7",
@@ -33,8 +33,8 @@
33
33
  "neostandard": "^0.12.0",
34
34
  "tsx": "^4.19.0",
35
35
  "typescript": "^5.5.4",
36
- "@platformatic/gateway": "3.31.0",
37
- "@platformatic/service": "3.31.0"
36
+ "@platformatic/gateway": "3.32.0-alpha.0",
37
+ "@platformatic/service": "3.32.0-alpha.0"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/nest/3.31.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/nest/3.32.0-alpha.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic NestJS Config",
5
5
  "type": "object",
@@ -12,6 +12,7 @@
12
12
  "properties": {
13
13
  "level": {
14
14
  "type": "string",
15
+ "default": "info",
15
16
  "oneOf": [
16
17
  {
17
18
  "enum": [
@@ -154,6 +155,9 @@
154
155
  "additionalProperties": true
155
156
  }
156
157
  },
158
+ "required": [
159
+ "level"
160
+ ],
157
161
  "default": {},
158
162
  "additionalProperties": true
159
163
  },
@@ -570,6 +574,16 @@
570
574
  "type": "string"
571
575
  }
572
576
  ]
577
+ },
578
+ "noHeapCheck": {
579
+ "anyOf": [
580
+ {
581
+ "type": "boolean"
582
+ },
583
+ {
584
+ "type": "string"
585
+ }
586
+ ]
573
587
  }
574
588
  },
575
589
  "additionalProperties": false
@@ -694,28 +708,6 @@
694
708
  }
695
709
  }
696
710
  }
697
- },
698
- "compileCache": {
699
- "anyOf": [
700
- {
701
- "type": "boolean"
702
- },
703
- {
704
- "type": "object",
705
- "properties": {
706
- "enabled": {
707
- "type": "boolean",
708
- "default": true,
709
- "description": "Enable Node.js module compile cache for faster startup"
710
- },
711
- "directory": {
712
- "type": "string",
713
- "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
714
- }
715
- },
716
- "additionalProperties": false
717
- }
718
- ]
719
711
  }
720
712
  }
721
713
  }
@@ -795,6 +787,7 @@
795
787
  "properties": {
796
788
  "level": {
797
789
  "type": "string",
790
+ "default": "info",
798
791
  "oneOf": [
799
792
  {
800
793
  "enum": [
@@ -937,6 +930,9 @@
937
930
  "additionalProperties": true
938
931
  }
939
932
  },
933
+ "required": [
934
+ "level"
935
+ ],
940
936
  "default": {},
941
937
  "additionalProperties": true
942
938
  },
@@ -1232,6 +1228,17 @@
1232
1228
  }
1233
1229
  ],
1234
1230
  "default": 268435456
1231
+ },
1232
+ "noHeapCheck": {
1233
+ "anyOf": [
1234
+ {
1235
+ "type": "boolean"
1236
+ },
1237
+ {
1238
+ "type": "string"
1239
+ }
1240
+ ],
1241
+ "default": false
1235
1242
  }
1236
1243
  },
1237
1244
  "additionalProperties": false
@@ -1978,28 +1985,6 @@
1978
1985
  ],
1979
1986
  "additionalProperties": false
1980
1987
  },
1981
- "compileCache": {
1982
- "anyOf": [
1983
- {
1984
- "type": "boolean"
1985
- },
1986
- {
1987
- "type": "object",
1988
- "properties": {
1989
- "enabled": {
1990
- "type": "boolean",
1991
- "default": true,
1992
- "description": "Enable Node.js module compile cache for faster startup"
1993
- },
1994
- "directory": {
1995
- "type": "string",
1996
- "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
1997
- }
1998
- },
1999
- "additionalProperties": false
2000
- }
2001
- ]
2002
- },
2003
1988
  "application": {
2004
1989
  "type": "object",
2005
1990
  "properties": {
@@ -2147,6 +2132,16 @@
2147
2132
  "type": "string"
2148
2133
  }
2149
2134
  ]
2135
+ },
2136
+ "noHeapCheck": {
2137
+ "anyOf": [
2138
+ {
2139
+ "type": "boolean"
2140
+ },
2141
+ {
2142
+ "type": "string"
2143
+ }
2144
+ ]
2150
2145
  }
2151
2146
  },
2152
2147
  "additionalProperties": false
@@ -2264,28 +2259,6 @@
2264
2259
  }
2265
2260
  }
2266
2261
  }
2267
- },
2268
- "compileCache": {
2269
- "anyOf": [
2270
- {
2271
- "type": "boolean"
2272
- },
2273
- {
2274
- "type": "object",
2275
- "properties": {
2276
- "enabled": {
2277
- "type": "boolean",
2278
- "default": true,
2279
- "description": "Enable Node.js module compile cache for faster startup"
2280
- },
2281
- "directory": {
2282
- "type": "string",
2283
- "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
2284
- }
2285
- },
2286
- "additionalProperties": false
2287
- }
2288
- ]
2289
2262
  }
2290
2263
  },
2291
2264
  "additionalProperties": false