@platformatic/next 3.61.1 → 3.62.1

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 +25 -0
  2. package/package.json +7 -7
  3. package/schema.json +144 -1
package/config.d.ts CHANGED
@@ -130,6 +130,23 @@ export interface PlatformaticNextJsConfig {
130
130
  };
131
131
  runtime?: {
132
132
  preload?: string | string[];
133
+ extensions?:
134
+ | string
135
+ | {
136
+ path: string;
137
+ options?: {
138
+ [k: string]: unknown;
139
+ };
140
+ }
141
+ | (
142
+ | string
143
+ | {
144
+ path: string;
145
+ options?: {
146
+ [k: string]: unknown;
147
+ };
148
+ }
149
+ )[];
133
150
  basePath?: string;
134
151
  services?: {
135
152
  [k: string]: unknown;
@@ -263,6 +280,8 @@ export interface PlatformaticNextJsConfig {
263
280
  gracePeriod?: number | string;
264
281
  maxUnhealthyChecks?: number | string;
265
282
  maxELU?: number | string;
283
+ maxEventLoopDelay?: number | string;
284
+ maxEventLoopDelayP99?: number | string;
266
285
  maxHeapUsed?: number | string;
267
286
  maxHeapTotal?: number | string;
268
287
  maxYoungGeneration?: number | string;
@@ -733,6 +752,8 @@ export interface PlatformaticNextJsConfig {
733
752
  gracePeriod?: number | string;
734
753
  maxUnhealthyChecks?: number | string;
735
754
  maxELU?: number | string;
755
+ maxEventLoopDelay?: number | string;
756
+ maxEventLoopDelayP99?: number | string;
736
757
  maxHeapUsed?: number | string;
737
758
  maxHeapTotal?: number | string;
738
759
  maxYoungGeneration?: number | string;
@@ -740,6 +761,10 @@ export interface PlatformaticNextJsConfig {
740
761
  bufferPoolSize?: number | string;
741
762
  defaultHighWaterMark?: number | string;
742
763
  };
764
+ /**
765
+ * Overrides the runtime-level restartOnError for this application. Set to false or 0 to never restart the application when it crashes, a positive number to wait that amount of milliseconds between restarts, or true to use the default delay.
766
+ */
767
+ restartOnError?: boolean | number;
743
768
  arguments?: string[];
744
769
  env?: {
745
770
  [k: string]: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/next",
3
- "version": "3.61.1",
3
+ "version": "3.62.1",
4
4
  "description": "Platformatic Next.js Capability",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -25,9 +25,9 @@
25
25
  "light-my-request": "^6.0.0",
26
26
  "msgpackr": "^1.11.2",
27
27
  "semver": "^7.6.3",
28
- "@platformatic/basic": "3.61.1",
29
- "@platformatic/foundation": "3.61.1",
30
- "@platformatic/globals": "3.61.1"
28
+ "@platformatic/basic": "3.62.1",
29
+ "@platformatic/globals": "3.62.1",
30
+ "@platformatic/foundation": "3.62.1"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@fastify/reply-from": "^12.0.0",
@@ -42,10 +42,10 @@
42
42
  "json-schema-to-typescript": "^15.0.1",
43
43
  "neostandard": "^0.12.0",
44
44
  "next": "^16.1.0",
45
- "typescript": "^5.5.4",
45
+ "typescript": "^5.9.3",
46
46
  "ws": "^8.18.0",
47
- "@platformatic/gateway": "3.61.1",
48
- "@platformatic/service": "3.61.1"
47
+ "@platformatic/gateway": "3.62.1",
48
+ "@platformatic/service": "3.62.1"
49
49
  },
50
50
  "engines": {
51
51
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/next/3.61.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/next/3.62.1.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Next.js Config",
5
5
  "type": "object",
@@ -427,6 +427,59 @@
427
427
  }
428
428
  ]
429
429
  },
430
+ "extensions": {
431
+ "anyOf": [
432
+ {
433
+ "type": "string",
434
+ "resolvePath": true
435
+ },
436
+ {
437
+ "type": "object",
438
+ "additionalProperties": false,
439
+ "required": [
440
+ "path"
441
+ ],
442
+ "properties": {
443
+ "path": {
444
+ "type": "string",
445
+ "resolvePath": true
446
+ },
447
+ "options": {
448
+ "type": "object",
449
+ "additionalProperties": true
450
+ }
451
+ }
452
+ },
453
+ {
454
+ "type": "array",
455
+ "items": {
456
+ "anyOf": [
457
+ {
458
+ "type": "string",
459
+ "resolvePath": true
460
+ },
461
+ {
462
+ "type": "object",
463
+ "additionalProperties": false,
464
+ "required": [
465
+ "path"
466
+ ],
467
+ "properties": {
468
+ "path": {
469
+ "type": "string",
470
+ "resolvePath": true
471
+ },
472
+ "options": {
473
+ "type": "object",
474
+ "additionalProperties": true
475
+ }
476
+ }
477
+ }
478
+ ]
479
+ }
480
+ }
481
+ ]
482
+ },
430
483
  "basePath": {
431
484
  "type": "string"
432
485
  },
@@ -587,6 +640,28 @@
587
640
  }
588
641
  ]
589
642
  },
643
+ "maxEventLoopDelay": {
644
+ "anyOf": [
645
+ {
646
+ "type": "number",
647
+ "minimum": 0
648
+ },
649
+ {
650
+ "type": "string"
651
+ }
652
+ ]
653
+ },
654
+ "maxEventLoopDelayP99": {
655
+ "anyOf": [
656
+ {
657
+ "type": "number",
658
+ "minimum": 0
659
+ },
660
+ {
661
+ "type": "string"
662
+ }
663
+ ]
664
+ },
590
665
  "maxHeapUsed": {
591
666
  "anyOf": [
592
667
  {
@@ -657,6 +732,18 @@
657
732
  },
658
733
  "additionalProperties": false
659
734
  },
735
+ "restartOnError": {
736
+ "description": "Overrides the runtime-level restartOnError for this application. Set to false or 0 to never restart the application when it crashes, a positive number to wait that amount of milliseconds between restarts, or true to use the default delay.",
737
+ "anyOf": [
738
+ {
739
+ "type": "boolean"
740
+ },
741
+ {
742
+ "type": "number",
743
+ "minimum": 0
744
+ }
745
+ ]
746
+ },
660
747
  "dependencies": {
661
748
  "type": "array",
662
749
  "items": {
@@ -1329,6 +1416,28 @@
1329
1416
  ],
1330
1417
  "default": 0.99
1331
1418
  },
1419
+ "maxEventLoopDelay": {
1420
+ "anyOf": [
1421
+ {
1422
+ "type": "number",
1423
+ "minimum": 0
1424
+ },
1425
+ {
1426
+ "type": "string"
1427
+ }
1428
+ ]
1429
+ },
1430
+ "maxEventLoopDelayP99": {
1431
+ "anyOf": [
1432
+ {
1433
+ "type": "number",
1434
+ "minimum": 0
1435
+ },
1436
+ {
1437
+ "type": "string"
1438
+ }
1439
+ ]
1440
+ },
1332
1441
  "maxHeapUsed": {
1333
1442
  "anyOf": [
1334
1443
  {
@@ -2673,6 +2782,28 @@
2673
2782
  }
2674
2783
  ]
2675
2784
  },
2785
+ "maxEventLoopDelay": {
2786
+ "anyOf": [
2787
+ {
2788
+ "type": "number",
2789
+ "minimum": 0
2790
+ },
2791
+ {
2792
+ "type": "string"
2793
+ }
2794
+ ]
2795
+ },
2796
+ "maxEventLoopDelayP99": {
2797
+ "anyOf": [
2798
+ {
2799
+ "type": "number",
2800
+ "minimum": 0
2801
+ },
2802
+ {
2803
+ "type": "string"
2804
+ }
2805
+ ]
2806
+ },
2676
2807
  "maxHeapUsed": {
2677
2808
  "anyOf": [
2678
2809
  {
@@ -2743,6 +2874,18 @@
2743
2874
  },
2744
2875
  "additionalProperties": false
2745
2876
  },
2877
+ "restartOnError": {
2878
+ "description": "Overrides the runtime-level restartOnError for this application. Set to false or 0 to never restart the application when it crashes, a positive number to wait that amount of milliseconds between restarts, or true to use the default delay.",
2879
+ "anyOf": [
2880
+ {
2881
+ "type": "boolean"
2882
+ },
2883
+ {
2884
+ "type": "number",
2885
+ "minimum": 0
2886
+ }
2887
+ ]
2888
+ },
2746
2889
  "arguments": {
2747
2890
  "type": "array",
2748
2891
  "items": {