@platformatic/service 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 +7 -7
  3. package/schema.json +22 -2
package/config.d.ts CHANGED
@@ -485,6 +485,18 @@ export interface PlatformaticServiceConfig {
485
485
  maxSize?: number;
486
486
  maxEntrySize?: number;
487
487
  maxCount?: number;
488
+ /**
489
+ * Whitelist of origins to cache. Supports exact strings and regex patterns (e.g., "/https:\\/\\/.*\\.example\\.com/").
490
+ */
491
+ origins?: string[];
492
+ /**
493
+ * Default cache duration in seconds for responses without explicit expiration headers.
494
+ */
495
+ cacheByDefault?: number;
496
+ /**
497
+ * Cache type. "shared" caches may be shared between users, "private" caches are user-specific.
498
+ */
499
+ type?: "shared" | "private";
488
500
  [k: string]: unknown;
489
501
  };
490
502
  watch?: boolean | string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/service",
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",
@@ -67,12 +67,12 @@
67
67
  "rfdc": "^1.3.1",
68
68
  "semgrator": "^0.3.0",
69
69
  "undici": "^7.0.0",
70
- "@platformatic/basic": "3.31.0",
71
- "@platformatic/foundation": "3.31.0",
72
- "@platformatic/generators": "3.31.0",
73
- "@platformatic/metrics": "3.31.0",
74
- "@platformatic/scalar-theme": "3.31.0",
75
- "@platformatic/telemetry": "3.31.0"
70
+ "@platformatic/foundation": "3.32.0-alpha.1",
71
+ "@platformatic/generators": "3.32.0-alpha.1",
72
+ "@platformatic/basic": "3.32.0-alpha.1",
73
+ "@platformatic/metrics": "3.32.0-alpha.1",
74
+ "@platformatic/telemetry": "3.32.0-alpha.1",
75
+ "@platformatic/scalar-theme": "3.32.0-alpha.1"
76
76
  },
77
77
  "engines": {
78
78
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/service/3.31.0.json",
3
- "version": "3.31.0",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/service/3.32.0-alpha.1.json",
3
+ "version": "3.32.0-alpha.1",
4
4
  "title": "Platformatic Service Config",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1987,6 +1987,26 @@
1987
1987
  },
1988
1988
  "maxCount": {
1989
1989
  "type": "integer"
1990
+ },
1991
+ "origins": {
1992
+ "type": "array",
1993
+ "items": {
1994
+ "type": "string"
1995
+ },
1996
+ "description": "Whitelist of origins to cache. Supports exact strings and regex patterns (e.g., \"/https:\\\\/\\\\/.*\\\\.example\\\\.com/\")."
1997
+ },
1998
+ "cacheByDefault": {
1999
+ "type": "integer",
2000
+ "description": "Default cache duration in seconds for responses without explicit expiration headers."
2001
+ },
2002
+ "type": {
2003
+ "type": "string",
2004
+ "enum": [
2005
+ "shared",
2006
+ "private"
2007
+ ],
2008
+ "default": "shared",
2009
+ "description": "Cache type. \"shared\" caches may be shared between users, \"private\" caches are user-specific."
1990
2010
  }
1991
2011
  }
1992
2012
  }