@platformatic/db 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 +13 -13
  3. package/schema.json +67 -9
package/config.d.ts CHANGED
@@ -49,7 +49,7 @@ export interface PlatformaticDatabaseConfig {
49
49
  logger?:
50
50
  | boolean
51
51
  | {
52
- level: (
52
+ level?: (
53
53
  | ("fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent")
54
54
  | {
55
55
  [k: string]: unknown;
@@ -501,7 +501,7 @@ export interface PlatformaticDatabaseConfig {
501
501
  };
502
502
  workersRestartDelay?: number | string;
503
503
  logger?: {
504
- level: (
504
+ level?: (
505
505
  | ("fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent")
506
506
  | {
507
507
  [k: string]: unknown;
@@ -884,6 +884,18 @@ export interface PlatformaticDatabaseConfig {
884
884
  [k: string]: string | [string, ...string[]];
885
885
  };
886
886
  };
887
+ compileCache?:
888
+ | boolean
889
+ | {
890
+ /**
891
+ * Enable Node.js module compile cache for faster startup
892
+ */
893
+ enabled?: boolean;
894
+ /**
895
+ * Directory to store compile cache. Defaults to .plt/compile-cache in app root
896
+ */
897
+ directory?: string;
898
+ };
887
899
  application?: {
888
900
  reuseTcpPorts?: boolean;
889
901
  workers?:
@@ -942,6 +954,18 @@ export interface PlatformaticDatabaseConfig {
942
954
  )[];
943
955
  [k: string]: unknown;
944
956
  };
957
+ compileCache?:
958
+ | boolean
959
+ | {
960
+ /**
961
+ * Enable Node.js module compile cache for faster startup
962
+ */
963
+ enabled?: boolean;
964
+ /**
965
+ * Directory to store compile cache. Defaults to .plt/compile-cache in app root
966
+ */
967
+ directory?: string;
968
+ };
945
969
  };
946
970
  };
947
971
  watch?:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/db",
3
- "version": "3.29.1",
3
+ "version": "3.31.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -51,7 +51,7 @@
51
51
  "console-table-printer": "^2.12.0",
52
52
  "env-schema": "^6.0.0",
53
53
  "execa": "^9.0.0",
54
- "fastify": "^5.0.0",
54
+ "fastify": "^5.7.0",
55
55
  "fastify-metrics": "^12.0.0",
56
56
  "fastify-plugin": "^5.0.0",
57
57
  "fastify-print-routes": "^4.0.0",
@@ -66,17 +66,17 @@
66
66
  "rfdc": "^1.3.1",
67
67
  "rimraf": "^4.4.1",
68
68
  "semgrator": "^0.3.0",
69
- "@platformatic/basic": "3.29.1",
70
- "@platformatic/foundation": "3.29.1",
71
- "@platformatic/service": "3.29.1",
72
- "@platformatic/sql-events": "3.29.1",
73
- "@platformatic/sql-graphql": "3.29.1",
74
- "@platformatic/sql-mapper": "3.29.1",
75
- "@platformatic/sql-openapi": "3.29.1",
76
- "@platformatic/telemetry": "3.29.1",
77
- "@platformatic/sql-json-schema-mapper": "3.29.1",
78
- "@platformatic/db-authorization": "3.29.1",
79
- "@platformatic/db-core": "3.29.1"
69
+ "@platformatic/db-authorization": "3.31.0",
70
+ "@platformatic/db-core": "3.31.0",
71
+ "@platformatic/basic": "3.31.0",
72
+ "@platformatic/foundation": "3.31.0",
73
+ "@platformatic/service": "3.31.0",
74
+ "@platformatic/sql-events": "3.31.0",
75
+ "@platformatic/sql-graphql": "3.31.0",
76
+ "@platformatic/sql-mapper": "3.31.0",
77
+ "@platformatic/sql-json-schema-mapper": "3.31.0",
78
+ "@platformatic/telemetry": "3.31.0",
79
+ "@platformatic/sql-openapi": "3.31.0"
80
80
  },
81
81
  "engines": {
82
82
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/db/3.29.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/db/3.31.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Database Config",
5
5
  "type": "object",
@@ -98,7 +98,6 @@
98
98
  "properties": {
99
99
  "level": {
100
100
  "type": "string",
101
- "default": "info",
102
101
  "oneOf": [
103
102
  {
104
103
  "enum": [
@@ -241,9 +240,6 @@
241
240
  "additionalProperties": true
242
241
  }
243
242
  },
244
- "required": [
245
- "level"
246
- ],
247
243
  "default": {},
248
244
  "additionalProperties": true
249
245
  }
@@ -1633,6 +1629,28 @@
1633
1629
  }
1634
1630
  }
1635
1631
  }
1632
+ },
1633
+ "compileCache": {
1634
+ "anyOf": [
1635
+ {
1636
+ "type": "boolean"
1637
+ },
1638
+ {
1639
+ "type": "object",
1640
+ "properties": {
1641
+ "enabled": {
1642
+ "type": "boolean",
1643
+ "default": true,
1644
+ "description": "Enable Node.js module compile cache for faster startup"
1645
+ },
1646
+ "directory": {
1647
+ "type": "string",
1648
+ "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
1649
+ }
1650
+ },
1651
+ "additionalProperties": false
1652
+ }
1653
+ ]
1636
1654
  }
1637
1655
  }
1638
1656
  }
@@ -1712,7 +1730,6 @@
1712
1730
  "properties": {
1713
1731
  "level": {
1714
1732
  "type": "string",
1715
- "default": "info",
1716
1733
  "oneOf": [
1717
1734
  {
1718
1735
  "enum": [
@@ -1855,9 +1872,6 @@
1855
1872
  "additionalProperties": true
1856
1873
  }
1857
1874
  },
1858
- "required": [
1859
- "level"
1860
- ],
1861
1875
  "default": {},
1862
1876
  "additionalProperties": true
1863
1877
  },
@@ -2899,6 +2913,28 @@
2899
2913
  ],
2900
2914
  "additionalProperties": false
2901
2915
  },
2916
+ "compileCache": {
2917
+ "anyOf": [
2918
+ {
2919
+ "type": "boolean"
2920
+ },
2921
+ {
2922
+ "type": "object",
2923
+ "properties": {
2924
+ "enabled": {
2925
+ "type": "boolean",
2926
+ "default": true,
2927
+ "description": "Enable Node.js module compile cache for faster startup"
2928
+ },
2929
+ "directory": {
2930
+ "type": "string",
2931
+ "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
2932
+ }
2933
+ },
2934
+ "additionalProperties": false
2935
+ }
2936
+ ]
2937
+ },
2902
2938
  "application": {
2903
2939
  "type": "object",
2904
2940
  "properties": {
@@ -3163,6 +3199,28 @@
3163
3199
  }
3164
3200
  }
3165
3201
  }
3202
+ },
3203
+ "compileCache": {
3204
+ "anyOf": [
3205
+ {
3206
+ "type": "boolean"
3207
+ },
3208
+ {
3209
+ "type": "object",
3210
+ "properties": {
3211
+ "enabled": {
3212
+ "type": "boolean",
3213
+ "default": true,
3214
+ "description": "Enable Node.js module compile cache for faster startup"
3215
+ },
3216
+ "directory": {
3217
+ "type": "string",
3218
+ "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
3219
+ }
3220
+ },
3221
+ "additionalProperties": false
3222
+ }
3223
+ ]
3166
3224
  }
3167
3225
  },
3168
3226
  "additionalProperties": false