@platformatic/basic 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.
Files changed (3) hide show
  1. package/config.d.ts +12 -0
  2. package/package.json +5 -5
  3. package/schema.json +21 -1
package/config.d.ts CHANGED
@@ -185,6 +185,18 @@ export interface PlatformaticBasicConfig {
185
185
  maxSize?: number;
186
186
  maxEntrySize?: number;
187
187
  maxCount?: number;
188
+ /**
189
+ * Whitelist of origins to cache. Supports exact strings and regex patterns (e.g., "/https:\\/\\/.*\\.example\\.com/").
190
+ */
191
+ origins?: string[];
192
+ /**
193
+ * Default cache duration in seconds for responses without explicit expiration headers.
194
+ */
195
+ cacheByDefault?: number;
196
+ /**
197
+ * Cache type. "shared" caches may be shared between users, "private" caches are user-specific.
198
+ */
199
+ type?: "shared" | "private";
188
200
  [k: string]: unknown;
189
201
  };
190
202
  watch?: boolean | string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/basic",
3
- "version": "3.31.0",
3
+ "version": "3.32.0-alpha.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -25,10 +25,10 @@
25
25
  "split2": "^4.2.0",
26
26
  "undici": "^7.0.0",
27
27
  "ws": "^8.18.0",
28
- "@platformatic/foundation": "3.31.0",
29
- "@platformatic/itc": "3.31.0",
30
- "@platformatic/metrics": "3.31.0",
31
- "@platformatic/telemetry": "3.31.0"
28
+ "@platformatic/foundation": "3.32.0-alpha.1",
29
+ "@platformatic/itc": "3.32.0-alpha.1",
30
+ "@platformatic/metrics": "3.32.0-alpha.1",
31
+ "@platformatic/telemetry": "3.32.0-alpha.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "cleaner-spec-reporter": "^0.5.0",
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/basic/3.31.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/basic/3.32.0-alpha.1.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Basic Config",
5
5
  "type": "object",
@@ -1005,6 +1005,26 @@
1005
1005
  },
1006
1006
  "maxCount": {
1007
1007
  "type": "integer"
1008
+ },
1009
+ "origins": {
1010
+ "type": "array",
1011
+ "items": {
1012
+ "type": "string"
1013
+ },
1014
+ "description": "Whitelist of origins to cache. Supports exact strings and regex patterns (e.g., \"/https:\\\\/\\\\/.*\\\\.example\\\\.com/\")."
1015
+ },
1016
+ "cacheByDefault": {
1017
+ "type": "integer",
1018
+ "description": "Default cache duration in seconds for responses without explicit expiration headers."
1019
+ },
1020
+ "type": {
1021
+ "type": "string",
1022
+ "enum": [
1023
+ "shared",
1024
+ "private"
1025
+ ],
1026
+ "default": "shared",
1027
+ "description": "Cache type. \"shared\" caches may be shared between users, \"private\" caches are user-specific."
1008
1028
  }
1009
1029
  }
1010
1030
  }