UNPKG

cf-workers-query

Version:

Automatically cache and revalidate data in Cloudflare Workers. Using the Cache API and Execution Context

355 lines (164 loc) 6.73 kB
## 0.9.0 (2025-08-08) ### 🚀 Features - **cloudflare:** use the new wait until function from cloudflare ([4aee378](https://github.com/anymaniax/cf-workers-query/commit/4aee378)) ### ❤️ Thank You - Victor Bury ## 0.8.2 (2025-01-22) ### 🩹 Fixes - **create-query:** return cache properly ([5a87607](https://github.com/anymaniax/cf-workers-query/commit/5a87607)) ### ❤️ Thank You - Victor Bury ## 0.8.1 (2025-01-07) ### 🩹 Fixes - **create-query:** return data even if data is falsy ([60644bb](https://github.com/anymaniax/cf-workers-query/commit/60644bb)) ### ❤️ Thank You - Victor Bury ## 0.8.0 (2025-01-02) ### 🚀 Features - **create-query:** new revalidate mode probabilistic ([264b6b9](https://github.com/anymaniax/cf-workers-query/commit/264b6b9)) ### 🩹 Fixes - **build:** better handling commonjs ([a0c85f1](https://github.com/anymaniax/cf-workers-query/commit/a0c85f1)) ### ❤️ Thank You - Victor Bury ## 0.7.1 (2024-09-26) ### 🩹 Fixes - **build:** better handling commonjs ([a0c85f1](https://github.com/anymaniax/cf-workers-query/commit/a0c85f1)) ### ❤️ Thank You - Victor Bury ## 0.7.0 (2024-09-09) ### 🚀 Features - **create-query:** use handle query with retry anyway ([0f90324](https://github.com/anymaniax/cf-workers-query/commit/0f90324)) ### 🩹 Fixes - **cache-api:** handling current cache control ([a760e7c](https://github.com/anymaniax/cf-workers-query/commit/a760e7c)) ### ❤️ Thank You - Victor Bury ## 0.6.5 (2024-09-02) ### 🩹 Fixes - **create-query:** also check cached data with enabled ([30af66e](https://github.com/anymaniax/cf-workers-query/commit/30af66e)) ### ❤️ Thank You - Victor Bury ## 0.6.4 (2024-09-02) ### 🩹 Fixes - **cache-api:** staletime check milliseconds ([de23f39](https://github.com/anymaniax/cf-workers-query/commit/de23f39)) ### ❤️ Thank You - Victor Bury ## 0.6.3 (2024-09-02) ### 🩹 Fixes - **cache-api:** response headers immutability handling ([b399660](https://github.com/anymaniax/cf-workers-query/commit/b399660)) ### ❤️ Thank You - Victor Bury ## 0.6.2 (2024-09-02) ### 🩹 Fixes - **cache-api:** better handling raw response ([041572b](https://github.com/anymaniax/cf-workers-query/commit/041572b)) ### ❤️ Thank You - Victor Bury ## 0.6.1 (2024-09-02) ### 🩹 Fixes - **create-query:** correctly display warning context ([50a50dc](https://github.com/anymaniax/cf-workers-query/commit/50a50dc)) ### ❤️ Thank You - Victor Bury ## 0.6.0 (2024-09-02) ### 🚀 Features - **cache-api:** better handling receive a response in data ([332f306](https://github.com/anymaniax/cf-workers-query/commit/332f306)) - **create-query:** add enabled option ([b15c891](https://github.com/anymaniax/cf-workers-query/commit/b15c891)) ### ❤️ Thank You - Victor Bury ## 0.5.4 (2024-09-02) ### 🩹 Fixes - **cache-api:** use cache function everywhere ([42d5881](https://github.com/anymaniax/cf-workers-query/commit/42d5881)) ### ❤️ Thank You - Victor Bury ## 0.5.3 (2024-09-02) ### 🩹 Fixes - **cache-api:** properly handle no caches api ([f49d13b](https://github.com/anymaniax/cf-workers-query/commit/f49d13b)) ### ❤️ Thank You - Victor Bury ## 0.5.2 (2024-09-02) ### 🩹 Fixes - **cache-api:** detect if cache API is available ([3b6fb22](https://github.com/anymaniax/cf-workers-query/commit/3b6fb22)) - **tsconfig:** bundle ([2363c63](https://github.com/anymaniax/cf-workers-query/commit/2363c63)) ### ❤️ Thank You - Victor Bury ## 0.5.1 (2024-09-02) This was a version bump only, there were no code changes. ## 0.5.0 (2024-08-14) ### 🚀 Features - **hono:** add possibility to pass a function to revalidate ([0b41029](https://github.com/anymaniax/cf-workers-query/commit/0b41029)) ### ❤️ Thank You - Victor Bury ## 0.4.2 (2024-07-30) This was a version bump only, there were no code changes. ## 0.4.1 (2024-07-30) This was a version bump only, there were no code changes. ## 0.4.0 (2024-07-30) ### 🚀 Features - **cache-api:** queryKey handle object ([f76fb8e](https://github.com/anymaniax/cf-workers-query/commit/f76fb8e)) ### ❤️ Thank You - Victor Bury ## 0.3.10 (2024-07-25) ### 🩹 Fixes - **package:** type versions correctly formatted ([2add804](https://github.com/anymaniax/cf-workers-query/commit/2add804)) ### ❤️ Thank You - Victor Bury ## 0.3.9 (2024-07-25) ### 🩹 Fixes - **cache-api:** correctly handling key url ([8cbc15a](https://github.com/anymaniax/cf-workers-query/commit/8cbc15a)) ### ❤️ Thank You - Victor Bury ## 0.3.8 (2024-07-25) ### 🩹 Fixes - **package:** remove wrangler ([e3e910c](https://github.com/anymaniax/cf-workers-query/commit/e3e910c)) ### ❤️ Thank You - Victor Bury ## 0.3.7 (2024-07-25) ### 🩹 Fixes - **hono:** correctly cache handler ([5c62051](https://github.com/anymaniax/cf-workers-query/commit/5c62051)) ### ❤️ Thank You - Victor Bury ## 0.3.6 (2024-07-25) ### 🩹 Fixes - **hono:** clone response ([cac189a](https://github.com/anymaniax/cf-workers-query/commit/cac189a)) ### ❤️ Thank You - Victor Bury ## 0.3.5 (2024-07-25) This was a version bump only, there were no code changes. ## 0.3.4 (2024-07-25) ### 🩹 Fixes - **hono:** import create-query ([791a622](https://github.com/anymaniax/cf-workers-query/commit/791a622)) ### ❤️ Thank You - Victor Bury ## 0.3.3 (2024-07-25) ### 🩹 Fixes - **build:** path exports ([120045f](https://github.com/anymaniax/cf-workers-query/commit/120045f)) ### ❤️ Thank You - Victor Bury ## 0.3.2 (2024-07-25) ### 🩹 Fixes - **build:** exports ([13ae4b1](https://github.com/anymaniax/cf-workers-query/commit/13ae4b1)) ### ❤️ Thank You - Victor Bury ## 0.3.1 (2024-07-25) ### 🩹 Fixes - **build:** output folder ([c6e11e8](https://github.com/anymaniax/cf-workers-query/commit/c6e11e8)) ### ❤️ Thank You - Victor Bury ## 0.3.0 (2024-07-25) ### 🚀 Features - **hono:** add cache middleware ([f11b47b](https://github.com/anymaniax/cf-workers-query/commit/f11b47b)) ### ❤️ Thank You - Victor Bury ## 0.2.1 (2024-07-23) ### 🩹 Fixes - **context:** always provide executionCtx ([c2babfc](https://github.com/anymaniax/cf-workers-query/commit/c2babfc)) ### ❤️ Thank You - Victor Bury ## 0.2.0 (2024-07-23) ### 🚀 Features - **create-query:** throw on error ([205a60b](https://github.com/anymaniax/cf-workers-query/commit/205a60b)) ### ❤️ Thank You - Victor Bury ## 0.1.0 (2024-07-23) ### 🚀 Features - **invalidate-query:** setup ([e595e97](https://github.com/anymaniax/cf-workers-query/commit/e595e97)) ### ❤️ Thank You - Victor Bury