@platformatic/vite 3.29.1 → 3.31.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 +26 -2
  2. package/package.json +7 -7
  3. package/schema.json +67 -9
package/config.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  export interface PlatformaticViteConfig {
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 PlatformaticViteConfig {
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;
@@ -522,6 +522,18 @@ export interface PlatformaticViteConfig {
522
522
  [k: string]: string | [string, ...string[]];
523
523
  };
524
524
  };
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
+ };
525
537
  application?: {
526
538
  reuseTcpPorts?: boolean;
527
539
  workers?:
@@ -580,6 +592,18 @@ export interface PlatformaticViteConfig {
580
592
  )[];
581
593
  [k: string]: unknown;
582
594
  };
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
+ };
583
607
  };
584
608
  };
585
609
  vite?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/vite",
3
- "version": "3.29.1",
3
+ "version": "3.31.0",
4
4
  "description": "Platformatic Vite Capability",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -16,11 +16,11 @@
16
16
  "homepage": "https://github.com/platformatic/platformatic#readme",
17
17
  "dependencies": {
18
18
  "@fastify/static": "^8.0.0",
19
- "fastify": "^5.0.0",
19
+ "fastify": "^5.7.0",
20
20
  "semver": "^7.6.3",
21
- "@platformatic/basic": "3.29.1",
22
- "@platformatic/foundation": "3.29.1",
23
- "@platformatic/node": "3.29.1"
21
+ "@platformatic/basic": "3.31.0",
22
+ "@platformatic/foundation": "3.31.0",
23
+ "@platformatic/node": "3.31.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "cleaner-spec-reporter": "^0.5.0",
@@ -32,8 +32,8 @@
32
32
  "typescript": "^5.5.4",
33
33
  "vite": "^7.1.4",
34
34
  "ws": "^8.18.0",
35
- "@platformatic/gateway": "3.29.1",
36
- "@platformatic/service": "3.29.1"
35
+ "@platformatic/gateway": "3.31.0",
36
+ "@platformatic/service": "3.31.0"
37
37
  },
38
38
  "engines": {
39
39
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/vite/3.29.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/vite/3.31.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Vite Config",
5
5
  "type": "object",
@@ -12,7 +12,6 @@
12
12
  "properties": {
13
13
  "level": {
14
14
  "type": "string",
15
- "default": "info",
16
15
  "oneOf": [
17
16
  {
18
17
  "enum": [
@@ -155,9 +154,6 @@
155
154
  "additionalProperties": true
156
155
  }
157
156
  },
158
- "required": [
159
- "level"
160
- ],
161
157
  "default": {},
162
158
  "additionalProperties": true
163
159
  },
@@ -698,6 +694,28 @@
698
694
  }
699
695
  }
700
696
  }
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
+ ]
701
719
  }
702
720
  }
703
721
  }
@@ -777,7 +795,6 @@
777
795
  "properties": {
778
796
  "level": {
779
797
  "type": "string",
780
- "default": "info",
781
798
  "oneOf": [
782
799
  {
783
800
  "enum": [
@@ -920,9 +937,6 @@
920
937
  "additionalProperties": true
921
938
  }
922
939
  },
923
- "required": [
924
- "level"
925
- ],
926
940
  "default": {},
927
941
  "additionalProperties": true
928
942
  },
@@ -1964,6 +1978,28 @@
1964
1978
  ],
1965
1979
  "additionalProperties": false
1966
1980
  },
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
+ },
1967
2003
  "application": {
1968
2004
  "type": "object",
1969
2005
  "properties": {
@@ -2228,6 +2264,28 @@
2228
2264
  }
2229
2265
  }
2230
2266
  }
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
+ ]
2231
2289
  }
2232
2290
  },
2233
2291
  "additionalProperties": false