wattpm 2.9.1 → 2.11.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 (2) hide show
  1. package/package.json +8 -8
  2. package/schema.json +395 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wattpm",
3
- "version": "2.9.1",
3
+ "version": "2.11.0",
4
4
  "description": "The Node.js Application Server",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -31,14 +31,14 @@
31
31
  "help-me": "^5.0.0",
32
32
  "minimist": "^1.2.8",
33
33
  "pino": "^9.4.0",
34
- "pino-pretty": "^11.2.2",
34
+ "pino-pretty": "^12.0.0",
35
35
  "split2": "^4.2.0",
36
36
  "table": "^6.8.2",
37
- "@platformatic/config": "2.9.1",
38
- "@platformatic/basic": "2.9.1",
39
- "@platformatic/control": "2.9.1",
40
- "@platformatic/runtime": "2.9.1",
41
- "@platformatic/utils": "2.9.1"
37
+ "@platformatic/basic": "2.11.0",
38
+ "@platformatic/config": "2.11.0",
39
+ "@platformatic/runtime": "2.11.0",
40
+ "@platformatic/control": "2.11.0",
41
+ "@platformatic/utils": "2.11.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "borp": "^0.18.0",
@@ -48,7 +48,7 @@
48
48
  "neostandard": "^0.11.1",
49
49
  "typescript": "^5.5.4",
50
50
  "undici": "^6.19.8",
51
- "@platformatic/node": "2.9.1"
51
+ "@platformatic/node": "2.11.0"
52
52
  },
53
53
  "scripts": {
54
54
  "test": "npm run lint && borp --concurrency=1 --timeout=300000",
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/wattpm/2.9.1.json",
2
+ "$id": "https://schemas.platformatic.dev/wattpm/2.11.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "type": "object",
5
5
  "properties": {
@@ -51,6 +51,108 @@
51
51
  },
52
52
  "useHttp": {
53
53
  "type": "boolean"
54
+ },
55
+ "workers": {
56
+ "anyOf": [
57
+ {
58
+ "type": "number",
59
+ "minimum": 1
60
+ },
61
+ {
62
+ "type": "string"
63
+ }
64
+ ]
65
+ },
66
+ "health": {
67
+ "type": "object",
68
+ "properties": {
69
+ "enabled": {
70
+ "default": true,
71
+ "anyOf": [
72
+ {
73
+ "type": "boolean"
74
+ },
75
+ {
76
+ "type": "string"
77
+ }
78
+ ]
79
+ },
80
+ "interval": {
81
+ "default": 30000,
82
+ "anyOf": [
83
+ {
84
+ "type": "number",
85
+ "minimum": 0
86
+ },
87
+ {
88
+ "type": "string"
89
+ }
90
+ ]
91
+ },
92
+ "gracePeriod": {
93
+ "default": 30000,
94
+ "anyOf": [
95
+ {
96
+ "type": "number",
97
+ "minimum": 0
98
+ },
99
+ {
100
+ "type": "string"
101
+ }
102
+ ]
103
+ },
104
+ "maxUnhealthyChecks": {
105
+ "default": 3,
106
+ "anyOf": [
107
+ {
108
+ "type": "number",
109
+ "minimum": 1
110
+ },
111
+ {
112
+ "type": "string"
113
+ }
114
+ ]
115
+ },
116
+ "maxELU": {
117
+ "default": 0.95,
118
+ "anyOf": [
119
+ {
120
+ "type": "number",
121
+ "minimum": 0,
122
+ "maximum": 1
123
+ },
124
+ {
125
+ "type": "string"
126
+ }
127
+ ]
128
+ },
129
+ "maxHeapUsed": {
130
+ "default": 0.95,
131
+ "anyOf": [
132
+ {
133
+ "type": "number",
134
+ "minimum": 0,
135
+ "maximum": 1
136
+ },
137
+ {
138
+ "type": "string"
139
+ }
140
+ ]
141
+ },
142
+ "maxHeapTotal": {
143
+ "default": 4294967296,
144
+ "anyOf": [
145
+ {
146
+ "type": "number",
147
+ "minimum": 0
148
+ },
149
+ {
150
+ "type": "string"
151
+ }
152
+ ]
153
+ }
154
+ },
155
+ "additionalProperties": false
54
156
  }
55
157
  }
56
158
  }
@@ -102,6 +204,97 @@
102
204
  "type": "string"
103
205
  }
104
206
  ]
207
+ },
208
+ "health": {
209
+ "type": "object",
210
+ "properties": {
211
+ "enabled": {
212
+ "default": true,
213
+ "anyOf": [
214
+ {
215
+ "type": "boolean"
216
+ },
217
+ {
218
+ "type": "string"
219
+ }
220
+ ]
221
+ },
222
+ "interval": {
223
+ "default": 30000,
224
+ "anyOf": [
225
+ {
226
+ "type": "number",
227
+ "minimum": 0
228
+ },
229
+ {
230
+ "type": "string"
231
+ }
232
+ ]
233
+ },
234
+ "gracePeriod": {
235
+ "default": 30000,
236
+ "anyOf": [
237
+ {
238
+ "type": "number",
239
+ "minimum": 0
240
+ },
241
+ {
242
+ "type": "string"
243
+ }
244
+ ]
245
+ },
246
+ "maxUnhealthyChecks": {
247
+ "default": 3,
248
+ "anyOf": [
249
+ {
250
+ "type": "number",
251
+ "minimum": 1
252
+ },
253
+ {
254
+ "type": "string"
255
+ }
256
+ ]
257
+ },
258
+ "maxELU": {
259
+ "default": 0.95,
260
+ "anyOf": [
261
+ {
262
+ "type": "number",
263
+ "minimum": 0,
264
+ "maximum": 1
265
+ },
266
+ {
267
+ "type": "string"
268
+ }
269
+ ]
270
+ },
271
+ "maxHeapUsed": {
272
+ "default": 0.95,
273
+ "anyOf": [
274
+ {
275
+ "type": "number",
276
+ "minimum": 0,
277
+ "maximum": 1
278
+ },
279
+ {
280
+ "type": "string"
281
+ }
282
+ ]
283
+ },
284
+ "maxHeapTotal": {
285
+ "default": 4294967296,
286
+ "anyOf": [
287
+ {
288
+ "type": "number",
289
+ "minimum": 0
290
+ },
291
+ {
292
+ "type": "string"
293
+ }
294
+ ]
295
+ }
296
+ },
297
+ "additionalProperties": false
105
298
  }
106
299
  }
107
300
  }
@@ -163,6 +356,97 @@
163
356
  "type": "string"
164
357
  }
165
358
  ]
359
+ },
360
+ "health": {
361
+ "type": "object",
362
+ "properties": {
363
+ "enabled": {
364
+ "default": true,
365
+ "anyOf": [
366
+ {
367
+ "type": "boolean"
368
+ },
369
+ {
370
+ "type": "string"
371
+ }
372
+ ]
373
+ },
374
+ "interval": {
375
+ "default": 30000,
376
+ "anyOf": [
377
+ {
378
+ "type": "number",
379
+ "minimum": 0
380
+ },
381
+ {
382
+ "type": "string"
383
+ }
384
+ ]
385
+ },
386
+ "gracePeriod": {
387
+ "default": 30000,
388
+ "anyOf": [
389
+ {
390
+ "type": "number",
391
+ "minimum": 0
392
+ },
393
+ {
394
+ "type": "string"
395
+ }
396
+ ]
397
+ },
398
+ "maxUnhealthyChecks": {
399
+ "default": 3,
400
+ "anyOf": [
401
+ {
402
+ "type": "number",
403
+ "minimum": 1
404
+ },
405
+ {
406
+ "type": "string"
407
+ }
408
+ ]
409
+ },
410
+ "maxELU": {
411
+ "default": 0.95,
412
+ "anyOf": [
413
+ {
414
+ "type": "number",
415
+ "minimum": 0,
416
+ "maximum": 1
417
+ },
418
+ {
419
+ "type": "string"
420
+ }
421
+ ]
422
+ },
423
+ "maxHeapUsed": {
424
+ "default": 0.95,
425
+ "anyOf": [
426
+ {
427
+ "type": "number",
428
+ "minimum": 0,
429
+ "maximum": 1
430
+ },
431
+ {
432
+ "type": "string"
433
+ }
434
+ ]
435
+ },
436
+ "maxHeapTotal": {
437
+ "default": 4294967296,
438
+ "anyOf": [
439
+ {
440
+ "type": "number",
441
+ "minimum": 0
442
+ },
443
+ {
444
+ "type": "string"
445
+ }
446
+ ]
447
+ }
448
+ },
449
+ "additionalProperties": false
166
450
  }
167
451
  }
168
452
  }
@@ -214,17 +498,25 @@
214
498
  "type": "object",
215
499
  "properties": {
216
500
  "target": {
217
- "type": "string",
218
- "resolveModule": true
501
+ "anyOf": [
502
+ {
503
+ "type": "string",
504
+ "resolveModule": true
505
+ },
506
+ {
507
+ "type": "string",
508
+ "resolvePath": true
509
+ }
510
+ ]
219
511
  },
220
512
  "options": {
221
513
  "type": "object"
222
514
  },
223
515
  "level": {
224
516
  "type": "string"
225
- },
226
- "additionalProperties": false
227
- }
517
+ }
518
+ },
519
+ "additionalProperties": false
228
520
  }
229
521
  },
230
522
  "options": {
@@ -362,6 +654,11 @@
362
654
  },
363
655
  "additionalProperties": false
364
656
  },
657
+ "startTimeout": {
658
+ "default": 30000,
659
+ "type": "number",
660
+ "minimum": 0
661
+ },
365
662
  "restartOnError": {
366
663
  "default": true,
367
664
  "anyOf": [
@@ -409,6 +706,98 @@
409
706
  ],
410
707
  "additionalProperties": false
411
708
  },
709
+ "health": {
710
+ "type": "object",
711
+ "default": {},
712
+ "properties": {
713
+ "enabled": {
714
+ "default": true,
715
+ "anyOf": [
716
+ {
717
+ "type": "boolean"
718
+ },
719
+ {
720
+ "type": "string"
721
+ }
722
+ ]
723
+ },
724
+ "interval": {
725
+ "default": 30000,
726
+ "anyOf": [
727
+ {
728
+ "type": "number",
729
+ "minimum": 0
730
+ },
731
+ {
732
+ "type": "string"
733
+ }
734
+ ]
735
+ },
736
+ "gracePeriod": {
737
+ "default": 30000,
738
+ "anyOf": [
739
+ {
740
+ "type": "number",
741
+ "minimum": 0
742
+ },
743
+ {
744
+ "type": "string"
745
+ }
746
+ ]
747
+ },
748
+ "maxUnhealthyChecks": {
749
+ "default": 3,
750
+ "anyOf": [
751
+ {
752
+ "type": "number",
753
+ "minimum": 1
754
+ },
755
+ {
756
+ "type": "string"
757
+ }
758
+ ]
759
+ },
760
+ "maxELU": {
761
+ "default": 0.95,
762
+ "anyOf": [
763
+ {
764
+ "type": "number",
765
+ "minimum": 0,
766
+ "maximum": 1
767
+ },
768
+ {
769
+ "type": "string"
770
+ }
771
+ ]
772
+ },
773
+ "maxHeapUsed": {
774
+ "default": 0.95,
775
+ "anyOf": [
776
+ {
777
+ "type": "number",
778
+ "minimum": 0,
779
+ "maximum": 1
780
+ },
781
+ {
782
+ "type": "string"
783
+ }
784
+ ]
785
+ },
786
+ "maxHeapTotal": {
787
+ "default": 4294967296,
788
+ "anyOf": [
789
+ {
790
+ "type": "number",
791
+ "minimum": 0
792
+ },
793
+ {
794
+ "type": "string"
795
+ }
796
+ ]
797
+ }
798
+ },
799
+ "additionalProperties": false
800
+ },
412
801
  "undici": {
413
802
  "type": "object",
414
803
  "properties": {