@platformatic/service 3.24.0 → 3.26.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 +56 -0
  2. package/package.json +7 -7
  3. package/schema.json +260 -2
package/config.d.ts CHANGED
@@ -717,6 +717,62 @@ export interface PlatformaticServiceConfig {
717
717
  [k: string]: string | [string, ...string[]];
718
718
  };
719
719
  };
720
+ application?: {
721
+ reuseTcpPorts?: boolean;
722
+ workers?:
723
+ | number
724
+ | string
725
+ | {
726
+ static?: number;
727
+ minimum?: number;
728
+ maximum?: number;
729
+ [k: string]: unknown;
730
+ };
731
+ health?: {
732
+ enabled?: boolean | string;
733
+ interval?: number | string;
734
+ gracePeriod?: number | string;
735
+ maxUnhealthyChecks?: number | string;
736
+ maxELU?: number | string;
737
+ maxHeapUsed?: number | string;
738
+ maxHeapTotal?: number | string;
739
+ maxYoungGeneration?: number | string;
740
+ codeRangeSize?: number | string;
741
+ };
742
+ arguments?: string[];
743
+ env?: {
744
+ [k: string]: string;
745
+ };
746
+ envfile?: string;
747
+ sourceMaps?: boolean;
748
+ packageManager?: "npm" | "pnpm" | "yarn";
749
+ preload?: string | string[];
750
+ nodeOptions?: string;
751
+ execArgv?: string[];
752
+ permissions?: {
753
+ fs?: {
754
+ read?: string[];
755
+ write?: string[];
756
+ };
757
+ };
758
+ telemetry?: {
759
+ /**
760
+ * An array of instrumentations loaded if telemetry is enabled
761
+ */
762
+ instrumentations?: (
763
+ | string
764
+ | {
765
+ package: string;
766
+ exportName?: string;
767
+ options?: {
768
+ [k: string]: unknown;
769
+ };
770
+ [k: string]: unknown;
771
+ }
772
+ )[];
773
+ [k: string]: unknown;
774
+ };
775
+ };
720
776
  };
721
777
  }
722
778
  export interface Info {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/service",
3
- "version": "3.24.0",
3
+ "version": "3.26.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -67,12 +67,12 @@
67
67
  "rfdc": "^1.3.1",
68
68
  "semgrator": "^0.3.0",
69
69
  "undici": "^7.0.0",
70
- "@platformatic/basic": "3.24.0",
71
- "@platformatic/foundation": "3.24.0",
72
- "@platformatic/generators": "3.24.0",
73
- "@platformatic/metrics": "3.24.0",
74
- "@platformatic/scalar-theme": "3.24.0",
75
- "@platformatic/telemetry": "3.24.0"
70
+ "@platformatic/basic": "3.26.0",
71
+ "@platformatic/foundation": "3.26.0",
72
+ "@platformatic/metrics": "3.26.0",
73
+ "@platformatic/generators": "3.26.0",
74
+ "@platformatic/scalar-theme": "3.26.0",
75
+ "@platformatic/telemetry": "3.26.0"
76
76
  },
77
77
  "engines": {
78
78
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/service/3.24.0.json",
3
- "version": "3.24.0",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/service/3.26.0.json",
3
+ "version": "3.26.0",
4
4
  "title": "Platformatic Service Config",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1243,6 +1243,12 @@
1243
1243
  "nodeOptions": {
1244
1244
  "type": "string"
1245
1245
  },
1246
+ "execArgv": {
1247
+ "type": "array",
1248
+ "items": {
1249
+ "type": "string"
1250
+ }
1251
+ },
1246
1252
  "permissions": {
1247
1253
  "type": "object",
1248
1254
  "properties": {
@@ -2550,6 +2556,258 @@
2550
2556
  "deny"
2551
2557
  ],
2552
2558
  "additionalProperties": false
2559
+ },
2560
+ "application": {
2561
+ "type": "object",
2562
+ "properties": {
2563
+ "reuseTcpPorts": {
2564
+ "type": "boolean",
2565
+ "default": true
2566
+ },
2567
+ "workers": {
2568
+ "anyOf": [
2569
+ {
2570
+ "type": "number"
2571
+ },
2572
+ {
2573
+ "type": "string"
2574
+ },
2575
+ {
2576
+ "type": "object",
2577
+ "properties": {
2578
+ "static": {
2579
+ "type": "number",
2580
+ "minimum": 1
2581
+ },
2582
+ "minimum": {
2583
+ "type": "number",
2584
+ "minimum": 1
2585
+ },
2586
+ "maximum": {
2587
+ "type": "number",
2588
+ "minimum": 0
2589
+ }
2590
+ }
2591
+ }
2592
+ ]
2593
+ },
2594
+ "health": {
2595
+ "type": "object",
2596
+ "default": {},
2597
+ "properties": {
2598
+ "enabled": {
2599
+ "anyOf": [
2600
+ {
2601
+ "type": "boolean"
2602
+ },
2603
+ {
2604
+ "type": "string"
2605
+ }
2606
+ ]
2607
+ },
2608
+ "interval": {
2609
+ "anyOf": [
2610
+ {
2611
+ "type": "number",
2612
+ "minimum": 0
2613
+ },
2614
+ {
2615
+ "type": "string"
2616
+ }
2617
+ ]
2618
+ },
2619
+ "gracePeriod": {
2620
+ "anyOf": [
2621
+ {
2622
+ "type": "number",
2623
+ "minimum": 0
2624
+ },
2625
+ {
2626
+ "type": "string"
2627
+ }
2628
+ ]
2629
+ },
2630
+ "maxUnhealthyChecks": {
2631
+ "anyOf": [
2632
+ {
2633
+ "type": "number",
2634
+ "minimum": 1
2635
+ },
2636
+ {
2637
+ "type": "string"
2638
+ }
2639
+ ]
2640
+ },
2641
+ "maxELU": {
2642
+ "anyOf": [
2643
+ {
2644
+ "type": "number",
2645
+ "minimum": 0,
2646
+ "maximum": 1
2647
+ },
2648
+ {
2649
+ "type": "string"
2650
+ }
2651
+ ]
2652
+ },
2653
+ "maxHeapUsed": {
2654
+ "anyOf": [
2655
+ {
2656
+ "type": "number",
2657
+ "minimum": 0,
2658
+ "maximum": 1
2659
+ },
2660
+ {
2661
+ "type": "string"
2662
+ }
2663
+ ]
2664
+ },
2665
+ "maxHeapTotal": {
2666
+ "anyOf": [
2667
+ {
2668
+ "type": "number",
2669
+ "minimum": 0
2670
+ },
2671
+ {
2672
+ "type": "string"
2673
+ }
2674
+ ]
2675
+ },
2676
+ "maxYoungGeneration": {
2677
+ "anyOf": [
2678
+ {
2679
+ "type": "number",
2680
+ "minimum": 0
2681
+ },
2682
+ {
2683
+ "type": "string"
2684
+ }
2685
+ ]
2686
+ },
2687
+ "codeRangeSize": {
2688
+ "anyOf": [
2689
+ {
2690
+ "type": "number",
2691
+ "minimum": 0
2692
+ },
2693
+ {
2694
+ "type": "string"
2695
+ }
2696
+ ]
2697
+ }
2698
+ },
2699
+ "additionalProperties": false
2700
+ },
2701
+ "arguments": {
2702
+ "type": "array",
2703
+ "items": {
2704
+ "type": "string"
2705
+ }
2706
+ },
2707
+ "env": {
2708
+ "type": "object",
2709
+ "additionalProperties": {
2710
+ "type": "string"
2711
+ }
2712
+ },
2713
+ "envfile": {
2714
+ "type": "string"
2715
+ },
2716
+ "sourceMaps": {
2717
+ "type": "boolean"
2718
+ },
2719
+ "packageManager": {
2720
+ "type": "string",
2721
+ "enum": [
2722
+ "npm",
2723
+ "pnpm",
2724
+ "yarn"
2725
+ ]
2726
+ },
2727
+ "preload": {
2728
+ "anyOf": [
2729
+ {
2730
+ "type": "string",
2731
+ "resolvePath": true
2732
+ },
2733
+ {
2734
+ "type": "array",
2735
+ "items": {
2736
+ "type": "string",
2737
+ "resolvePath": true
2738
+ }
2739
+ }
2740
+ ]
2741
+ },
2742
+ "nodeOptions": {
2743
+ "type": "string"
2744
+ },
2745
+ "execArgv": {
2746
+ "type": "array",
2747
+ "items": {
2748
+ "type": "string"
2749
+ }
2750
+ },
2751
+ "permissions": {
2752
+ "type": "object",
2753
+ "properties": {
2754
+ "fs": {
2755
+ "type": "object",
2756
+ "properties": {
2757
+ "read": {
2758
+ "type": "array",
2759
+ "items": {
2760
+ "type": "string"
2761
+ }
2762
+ },
2763
+ "write": {
2764
+ "type": "array",
2765
+ "items": {
2766
+ "type": "string"
2767
+ }
2768
+ }
2769
+ },
2770
+ "additionalProperties": false
2771
+ }
2772
+ },
2773
+ "additionalProperties": false
2774
+ },
2775
+ "telemetry": {
2776
+ "type": "object",
2777
+ "properties": {
2778
+ "instrumentations": {
2779
+ "type": "array",
2780
+ "description": "An array of instrumentations loaded if telemetry is enabled",
2781
+ "items": {
2782
+ "oneOf": [
2783
+ {
2784
+ "type": "string"
2785
+ },
2786
+ {
2787
+ "type": "object",
2788
+ "properties": {
2789
+ "package": {
2790
+ "type": "string"
2791
+ },
2792
+ "exportName": {
2793
+ "type": "string"
2794
+ },
2795
+ "options": {
2796
+ "type": "object",
2797
+ "additionalProperties": true
2798
+ }
2799
+ },
2800
+ "required": [
2801
+ "package"
2802
+ ]
2803
+ }
2804
+ ]
2805
+ }
2806
+ }
2807
+ }
2808
+ }
2809
+ },
2810
+ "additionalProperties": false
2553
2811
  }
2554
2812
  },
2555
2813
  "additionalProperties": false