@ts-cloud/core 0.11.6 → 0.11.7

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 (2) hide show
  1. package/dist/types.d.ts +17 -0
  2. package/package.json +2 -2
package/dist/types.d.ts CHANGED
@@ -3733,6 +3733,23 @@ export interface CloudflareCacheRulesConfig {
3733
3733
  documentBrowserTtl?: number;
3734
3734
  /** Path prefixes that must never be cached, matched with `starts_with`. */
3735
3735
  bypassPaths?: string[];
3736
+ /**
3737
+ * Request headers that select a different body at the same url, and therefore
3738
+ * make it uncacheable at the edge.
3739
+ *
3740
+ * Defaults to stx's SPA-router header. A single-page router fetches the url
3741
+ * the browser would navigate to and asks for a fragment of it — no `<head>`,
3742
+ * no stylesheet, no nav. Cloudflare keys on the url alone and honours `Vary`
3743
+ * for `Accept-Encoding` only, so caching these stores whichever representation
3744
+ * arrived first and serves it to everyone: one prefetch is enough to leave
3745
+ * every visitor on an unstyled, headless page until the TTL expires.
3746
+ *
3747
+ * Pass `[]` only for a site with no client-side router at all.
3748
+ */
3749
+ negotiatedRequestHeaders?: {
3750
+ name: string;
3751
+ value?: string;
3752
+ }[];
3736
3753
  }
3737
3754
  export interface DatabaseItemConfig {
3738
3755
  engine?: 'dynamodb' | 'postgres' | 'mysql';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ts-cloud/core",
3
3
  "type": "module",
4
- "version": "0.11.6",
4
+ "version": "0.11.7",
5
5
  "description": "Core CloudFormation generation library for ts-cloud",
6
6
  "author": "Chris Breuer <chris@stacksjs.com>",
7
7
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "typecheck": "tsc --noEmit"
32
32
  },
33
33
  "dependencies": {
34
- "@ts-cloud/aws-types": "0.11.6"
34
+ "@ts-cloud/aws-types": "0.11.7"
35
35
  },
36
36
  "devDependencies": {
37
37
  "typescript": "^7.0.2"