@platformatic/db 3.31.0 → 3.32.0-alpha.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.
- package/config.d.ts +12 -0
- package/package.json +12 -12
- package/schema.json +21 -1
package/config.d.ts
CHANGED
|
@@ -655,6 +655,18 @@ export interface PlatformaticDatabaseConfig {
|
|
|
655
655
|
maxSize?: number;
|
|
656
656
|
maxEntrySize?: number;
|
|
657
657
|
maxCount?: number;
|
|
658
|
+
/**
|
|
659
|
+
* Whitelist of origins to cache. Supports exact strings and regex patterns (e.g., "/https:\\/\\/.*\\.example\\.com/").
|
|
660
|
+
*/
|
|
661
|
+
origins?: string[];
|
|
662
|
+
/**
|
|
663
|
+
* Default cache duration in seconds for responses without explicit expiration headers.
|
|
664
|
+
*/
|
|
665
|
+
cacheByDefault?: number;
|
|
666
|
+
/**
|
|
667
|
+
* Cache type. "shared" caches may be shared between users, "private" caches are user-specific.
|
|
668
|
+
*/
|
|
669
|
+
type?: "shared" | "private";
|
|
658
670
|
[k: string]: unknown;
|
|
659
671
|
};
|
|
660
672
|
watch?: boolean | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/db",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.32.0-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -66,17 +66,17 @@
|
|
|
66
66
|
"rfdc": "^1.3.1",
|
|
67
67
|
"rimraf": "^4.4.1",
|
|
68
68
|
"semgrator": "^0.3.0",
|
|
69
|
-
"@platformatic/
|
|
70
|
-
"@platformatic/db-
|
|
71
|
-
"@platformatic/
|
|
72
|
-
"@platformatic/foundation": "3.
|
|
73
|
-
"@platformatic/service": "3.
|
|
74
|
-
"@platformatic/sql-events": "3.
|
|
75
|
-
"@platformatic/sql-graphql": "3.
|
|
76
|
-
"@platformatic/sql-mapper": "3.
|
|
77
|
-
"@platformatic/sql-json-schema-mapper": "3.
|
|
78
|
-
"@platformatic/
|
|
79
|
-
"@platformatic/
|
|
69
|
+
"@platformatic/basic": "3.32.0-alpha.1",
|
|
70
|
+
"@platformatic/db-authorization": "3.32.0-alpha.1",
|
|
71
|
+
"@platformatic/db-core": "3.32.0-alpha.1",
|
|
72
|
+
"@platformatic/foundation": "3.32.0-alpha.1",
|
|
73
|
+
"@platformatic/service": "3.32.0-alpha.1",
|
|
74
|
+
"@platformatic/sql-events": "3.32.0-alpha.1",
|
|
75
|
+
"@platformatic/sql-graphql": "3.32.0-alpha.1",
|
|
76
|
+
"@platformatic/sql-mapper": "3.32.0-alpha.1",
|
|
77
|
+
"@platformatic/sql-json-schema-mapper": "3.32.0-alpha.1",
|
|
78
|
+
"@platformatic/sql-openapi": "3.32.0-alpha.1",
|
|
79
|
+
"@platformatic/telemetry": "3.32.0-alpha.1"
|
|
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.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/db/3.32.0-alpha.1.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Database Config",
|
|
5
5
|
"type": "object",
|
|
@@ -2298,6 +2298,26 @@
|
|
|
2298
2298
|
},
|
|
2299
2299
|
"maxCount": {
|
|
2300
2300
|
"type": "integer"
|
|
2301
|
+
},
|
|
2302
|
+
"origins": {
|
|
2303
|
+
"type": "array",
|
|
2304
|
+
"items": {
|
|
2305
|
+
"type": "string"
|
|
2306
|
+
},
|
|
2307
|
+
"description": "Whitelist of origins to cache. Supports exact strings and regex patterns (e.g., \"/https:\\\\/\\\\/.*\\\\.example\\\\.com/\")."
|
|
2308
|
+
},
|
|
2309
|
+
"cacheByDefault": {
|
|
2310
|
+
"type": "integer",
|
|
2311
|
+
"description": "Default cache duration in seconds for responses without explicit expiration headers."
|
|
2312
|
+
},
|
|
2313
|
+
"type": {
|
|
2314
|
+
"type": "string",
|
|
2315
|
+
"enum": [
|
|
2316
|
+
"shared",
|
|
2317
|
+
"private"
|
|
2318
|
+
],
|
|
2319
|
+
"default": "shared",
|
|
2320
|
+
"description": "Cache type. \"shared\" caches may be shared between users, \"private\" caches are user-specific."
|
|
2301
2321
|
}
|
|
2302
2322
|
}
|
|
2303
2323
|
}
|