@platformatic/composer 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 +3 -3
- package/schema.json +21 -1
package/config.d.ts
CHANGED
|
@@ -350,6 +350,18 @@ export interface PlatformaticComposerConfig {
|
|
|
350
350
|
maxSize?: number;
|
|
351
351
|
maxEntrySize?: number;
|
|
352
352
|
maxCount?: number;
|
|
353
|
+
/**
|
|
354
|
+
* Whitelist of origins to cache. Supports exact strings and regex patterns (e.g., "/https:\\/\\/.*\\.example\\.com/").
|
|
355
|
+
*/
|
|
356
|
+
origins?: string[];
|
|
357
|
+
/**
|
|
358
|
+
* Default cache duration in seconds for responses without explicit expiration headers.
|
|
359
|
+
*/
|
|
360
|
+
cacheByDefault?: number;
|
|
361
|
+
/**
|
|
362
|
+
* Cache type. "shared" caches may be shared between users, "private" caches are user-specific.
|
|
363
|
+
*/
|
|
364
|
+
type?: "shared" | "private";
|
|
353
365
|
[k: string]: unknown;
|
|
354
366
|
};
|
|
355
367
|
watch?: boolean | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/composer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.32.0-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"json-schema-to-typescript": "^15.0.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@platformatic/foundation": "3.
|
|
27
|
-
"@platformatic/gateway": "3.
|
|
26
|
+
"@platformatic/foundation": "3.32.0-alpha.1",
|
|
27
|
+
"@platformatic/gateway": "3.32.0-alpha.1"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/composer/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/composer/3.32.0-alpha.1.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Composer Config",
|
|
5
5
|
"type": "object",
|
|
@@ -1661,6 +1661,26 @@
|
|
|
1661
1661
|
},
|
|
1662
1662
|
"maxCount": {
|
|
1663
1663
|
"type": "integer"
|
|
1664
|
+
},
|
|
1665
|
+
"origins": {
|
|
1666
|
+
"type": "array",
|
|
1667
|
+
"items": {
|
|
1668
|
+
"type": "string"
|
|
1669
|
+
},
|
|
1670
|
+
"description": "Whitelist of origins to cache. Supports exact strings and regex patterns (e.g., \"/https:\\\\/\\\\/.*\\\\.example\\\\.com/\")."
|
|
1671
|
+
},
|
|
1672
|
+
"cacheByDefault": {
|
|
1673
|
+
"type": "integer",
|
|
1674
|
+
"description": "Default cache duration in seconds for responses without explicit expiration headers."
|
|
1675
|
+
},
|
|
1676
|
+
"type": {
|
|
1677
|
+
"type": "string",
|
|
1678
|
+
"enum": [
|
|
1679
|
+
"shared",
|
|
1680
|
+
"private"
|
|
1681
|
+
],
|
|
1682
|
+
"default": "shared",
|
|
1683
|
+
"description": "Cache type. \"shared\" caches may be shared between users, \"private\" caches are user-specific."
|
|
1664
1684
|
}
|
|
1665
1685
|
}
|
|
1666
1686
|
}
|