wattpm 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/bin/cli.js +2 -15
  2. package/package.json +5 -5
  3. package/schema.json +56 -111
package/bin/cli.js CHANGED
@@ -1,24 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // Enable compile cache before loading any modules (Node.js 22.1.0+)
4
- import { homedir } from 'node:os'
5
- import { join } from 'node:path'
6
-
7
- try {
8
- const { enableCompileCache } = await import('node:module')
9
- if (typeof enableCompileCache === 'function') {
10
- enableCompileCache(join(homedir(), '.cache', 'platformatic', 'compile-cache'))
11
- }
12
- } catch {
13
- // Compile cache not available, continue without it
14
- }
15
-
16
- // Load wattpm via dynamic import so all modules benefit from compile cache
17
- const { checkNodeVersionForApplications, setExecutableId, setExecutableName } = await import('@platformatic/foundation')
3
+ import { checkNodeVersionForApplications, setExecutableId, setExecutableName } from '@platformatic/foundation'
18
4
 
19
5
  checkNodeVersionForApplications()
20
6
  setExecutableId('wattpm')
21
7
  setExecutableName('Watt')
22
8
 
9
+ // Use await import here so that we can throw a proper error on unsupported Node.js version
23
10
  const { main } = await import('../index.js')
24
11
  await main()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wattpm",
3
- "version": "3.31.0",
3
+ "version": "3.32.0-alpha.0",
4
4
  "description": "The Node.js Application Server",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -29,9 +29,9 @@
29
29
  "pino-pretty": "^13.0.0",
30
30
  "split2": "^4.2.0",
31
31
  "table": "^6.8.2",
32
- "@platformatic/control": "3.31.0",
33
- "@platformatic/foundation": "3.31.0",
34
- "@platformatic/runtime": "3.31.0"
32
+ "@platformatic/foundation": "3.32.0-alpha.0",
33
+ "@platformatic/control": "3.32.0-alpha.0",
34
+ "@platformatic/runtime": "3.32.0-alpha.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "cleaner-spec-reporter": "^0.5.0",
@@ -42,7 +42,7 @@
42
42
  "neostandard": "^0.12.0",
43
43
  "typescript": "^5.5.4",
44
44
  "undici": "^7.0.0",
45
- "@platformatic/node": "3.31.0"
45
+ "@platformatic/node": "3.32.0-alpha.0"
46
46
  },
47
47
  "engines": {
48
48
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/wattpm/3.31.0.json",
2
+ "$id": "https://schemas.platformatic.dev/wattpm/3.32.0-alpha.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Runtime Config",
5
5
  "type": "object",
@@ -208,6 +208,16 @@
208
208
  "type": "string"
209
209
  }
210
210
  ]
211
+ },
212
+ "noHeapCheck": {
213
+ "anyOf": [
214
+ {
215
+ "type": "boolean"
216
+ },
217
+ {
218
+ "type": "string"
219
+ }
220
+ ]
211
221
  }
212
222
  },
213
223
  "additionalProperties": false
@@ -332,28 +342,6 @@
332
342
  }
333
343
  }
334
344
  }
335
- },
336
- "compileCache": {
337
- "anyOf": [
338
- {
339
- "type": "boolean"
340
- },
341
- {
342
- "type": "object",
343
- "properties": {
344
- "enabled": {
345
- "type": "boolean",
346
- "default": true,
347
- "description": "Enable Node.js module compile cache for faster startup"
348
- },
349
- "directory": {
350
- "type": "string",
351
- "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
352
- }
353
- },
354
- "additionalProperties": false
355
- }
356
- ]
357
345
  }
358
346
  }
359
347
  }
@@ -544,6 +532,16 @@
544
532
  "type": "string"
545
533
  }
546
534
  ]
535
+ },
536
+ "noHeapCheck": {
537
+ "anyOf": [
538
+ {
539
+ "type": "boolean"
540
+ },
541
+ {
542
+ "type": "string"
543
+ }
544
+ ]
547
545
  }
548
546
  },
549
547
  "additionalProperties": false
@@ -668,28 +666,6 @@
668
666
  }
669
667
  }
670
668
  }
671
- },
672
- "compileCache": {
673
- "anyOf": [
674
- {
675
- "type": "boolean"
676
- },
677
- {
678
- "type": "object",
679
- "properties": {
680
- "enabled": {
681
- "type": "boolean",
682
- "default": true,
683
- "description": "Enable Node.js module compile cache for faster startup"
684
- },
685
- "directory": {
686
- "type": "string",
687
- "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
688
- }
689
- },
690
- "additionalProperties": false
691
- }
692
- ]
693
669
  }
694
670
  }
695
671
  }
@@ -878,6 +854,16 @@
878
854
  "type": "string"
879
855
  }
880
856
  ]
857
+ },
858
+ "noHeapCheck": {
859
+ "anyOf": [
860
+ {
861
+ "type": "boolean"
862
+ },
863
+ {
864
+ "type": "string"
865
+ }
866
+ ]
881
867
  }
882
868
  },
883
869
  "additionalProperties": false
@@ -1002,28 +988,6 @@
1002
988
  }
1003
989
  }
1004
990
  }
1005
- },
1006
- "compileCache": {
1007
- "anyOf": [
1008
- {
1009
- "type": "boolean"
1010
- },
1011
- {
1012
- "type": "object",
1013
- "properties": {
1014
- "enabled": {
1015
- "type": "boolean",
1016
- "default": true,
1017
- "description": "Enable Node.js module compile cache for faster startup"
1018
- },
1019
- "directory": {
1020
- "type": "string",
1021
- "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
1022
- }
1023
- },
1024
- "additionalProperties": false
1025
- }
1026
- ]
1027
991
  }
1028
992
  }
1029
993
  }
@@ -1212,6 +1176,16 @@
1212
1176
  "type": "string"
1213
1177
  }
1214
1178
  ]
1179
+ },
1180
+ "noHeapCheck": {
1181
+ "anyOf": [
1182
+ {
1183
+ "type": "boolean"
1184
+ },
1185
+ {
1186
+ "type": "string"
1187
+ }
1188
+ ]
1215
1189
  }
1216
1190
  },
1217
1191
  "additionalProperties": false
@@ -1336,28 +1310,6 @@
1336
1310
  }
1337
1311
  }
1338
1312
  }
1339
- },
1340
- "compileCache": {
1341
- "anyOf": [
1342
- {
1343
- "type": "boolean"
1344
- },
1345
- {
1346
- "type": "object",
1347
- "properties": {
1348
- "enabled": {
1349
- "type": "boolean",
1350
- "default": true,
1351
- "description": "Enable Node.js module compile cache for faster startup"
1352
- },
1353
- "directory": {
1354
- "type": "string",
1355
- "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
1356
- }
1357
- },
1358
- "additionalProperties": false
1359
- }
1360
- ]
1361
1313
  }
1362
1314
  }
1363
1315
  }
@@ -1437,6 +1389,7 @@
1437
1389
  "properties": {
1438
1390
  "level": {
1439
1391
  "type": "string",
1392
+ "default": "info",
1440
1393
  "oneOf": [
1441
1394
  {
1442
1395
  "enum": [
@@ -1583,6 +1536,9 @@
1583
1536
  "default": true
1584
1537
  }
1585
1538
  },
1539
+ "required": [
1540
+ "level"
1541
+ ],
1586
1542
  "default": {},
1587
1543
  "additionalProperties": true
1588
1544
  },
@@ -1878,6 +1834,17 @@
1878
1834
  }
1879
1835
  ],
1880
1836
  "default": 268435456
1837
+ },
1838
+ "noHeapCheck": {
1839
+ "anyOf": [
1840
+ {
1841
+ "type": "boolean"
1842
+ },
1843
+ {
1844
+ "type": "string"
1845
+ }
1846
+ ],
1847
+ "default": false
1881
1848
  }
1882
1849
  },
1883
1850
  "additionalProperties": false
@@ -2654,28 +2621,6 @@
2654
2621
  "deny"
2655
2622
  ],
2656
2623
  "additionalProperties": false
2657
- },
2658
- "compileCache": {
2659
- "anyOf": [
2660
- {
2661
- "type": "boolean"
2662
- },
2663
- {
2664
- "type": "object",
2665
- "properties": {
2666
- "enabled": {
2667
- "type": "boolean",
2668
- "default": true,
2669
- "description": "Enable Node.js module compile cache for faster startup"
2670
- },
2671
- "directory": {
2672
- "type": "string",
2673
- "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
2674
- }
2675
- },
2676
- "additionalProperties": false
2677
- }
2678
- ]
2679
2624
  }
2680
2625
  },
2681
2626
  "anyOf": [