@netlify/cache 3.0.10 → 3.1.0

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/dist/main.cjs CHANGED
@@ -25,6 +25,7 @@ __export(main_exports, {
25
25
  MINUTE: () => MINUTE,
26
26
  WEEK: () => WEEK,
27
27
  YEAR: () => YEAR,
28
+ cacheHeaders: () => cacheHeaders,
28
29
  caches: () => caches,
29
30
  fetchWithCache: () => fetchWithCache,
30
31
  getCacheStatus: () => getCacheStatus,
@@ -373,6 +374,7 @@ var YEAR = 365 * DAY;
373
374
  MINUTE,
374
375
  WEEK,
375
376
  YEAR,
377
+ cacheHeaders,
376
378
  caches,
377
379
  fetchWithCache,
378
380
  getCacheStatus,
package/dist/main.d.cts CHANGED
@@ -89,6 +89,7 @@ interface VaryOptions {
89
89
  query?: boolean | string | string[];
90
90
  }
91
91
 
92
+ declare const cacheHeaders: (cacheSettings: CacheSettings) => Record<string, string>;
92
93
  declare const setCacheHeaders: (response: Response, cacheSettings: CacheSettings) => Response;
93
94
 
94
95
  interface CacheStatus {
@@ -188,4 +189,4 @@ declare const WEEK: number;
188
189
  */
189
190
  declare const YEAR: number;
190
191
 
191
- export { DAY, HOUR, MINUTE, WEEK, YEAR, caches, fetchWithCache, getCacheStatus, setCacheHeaders };
192
+ export { DAY, HOUR, MINUTE, WEEK, YEAR, cacheHeaders, caches, fetchWithCache, getCacheStatus, setCacheHeaders };
package/dist/main.d.ts CHANGED
@@ -89,6 +89,7 @@ interface VaryOptions {
89
89
  query?: boolean | string | string[];
90
90
  }
91
91
 
92
+ declare const cacheHeaders: (cacheSettings: CacheSettings) => Record<string, string>;
92
93
  declare const setCacheHeaders: (response: Response, cacheSettings: CacheSettings) => Response;
93
94
 
94
95
  interface CacheStatus {
@@ -188,4 +189,4 @@ declare const WEEK: number;
188
189
  */
189
190
  declare const YEAR: number;
190
191
 
191
- export { DAY, HOUR, MINUTE, WEEK, YEAR, caches, fetchWithCache, getCacheStatus, setCacheHeaders };
192
+ export { DAY, HOUR, MINUTE, WEEK, YEAR, cacheHeaders, caches, fetchWithCache, getCacheStatus, setCacheHeaders };
package/dist/main.js CHANGED
@@ -338,6 +338,7 @@ export {
338
338
  MINUTE,
339
339
  WEEK,
340
340
  YEAR,
341
+ cacheHeaders,
341
342
  caches,
342
343
  fetchWithCache,
343
344
  getCacheStatus,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/cache",
3
- "version": "3.0.10",
3
+ "version": "3.1.0",
4
4
  "description": "TypeScript utilities for interacting with the Netlify cache",
5
5
  "type": "module",
6
6
  "engines": {
@@ -68,8 +68,8 @@
68
68
  },
69
69
  "author": "Netlify Inc.",
70
70
  "devDependencies": {
71
- "@netlify/dev-utils": "4.1.2",
72
- "@netlify/types": "2.0.2",
71
+ "@netlify/dev-utils": "4.1.3",
72
+ "@netlify/types": "2.0.3",
73
73
  "npm-run-all2": "^7.0.2",
74
74
  "tsup": "^8.0.0",
75
75
  "vitest": "^3.0.0"