AdiRishi/turborepo-remote-cache-cloudflare
An implementation of the turborepo-remote-cache server custom made for Cloudflare Workers
๐ Major Changes
- [#633](https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/633) [`9a4fe22`](https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/commit/9a4fe22e4bfeb586e3f52eab0bd653f8aae65d9f) Thanks [@ItsWendell](https://github.com/ItsWendell)! - replace hono with hono/tiny and zod with valibot to decrease bundle size and improve performance
๐ Patch Changes
- [#1049](https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/1049) [`ce7af83`](https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/commit/ce7af83542b1f36a8939ff0aed790f07af78d17a) Thanks [@AdiRishi](https://github.com/AdiRishi)! - Fix bearerAuth middleware usage by returning the middleware result instead of just awaiting it
๐ Minor Changes
- [#449](https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/449) [`b765ed4`](https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/commit/b765ed4de8d3bdd2c55942ca722895d9b6f6506e) Thanks [@AdiRishi](https://github.com/AdiRishi)! - Use KV key expiry to cost effectively remove cache keys
๐ Minor Changes
- [#394](https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/394) [`2005a64`](https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/commit/2005a64d7c661cafb1c3f651a9248a206db032c3) Thanks [@AdiRishi](https://github.com/AdiRishi)! - Update routes to conform to the new Turborepo OpenAPI spec.
- Overall this is not a breaking change as most additions are optional.
๐ Major Changes
- [#287](https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/287) [`7851729`](https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/commit/78517294d281182c7f6e7e27b69d7f22ea5115cc) Thanks [@AdiRishi](https://github.com/AdiRishi)! - You can now store your build artifacts in either Cloudflare ๐ชฃ R2 or ๐ KV storage. Find out how in our [official documentation](https://adirishi.github.io/turborepo-remote-cache-cloudflare/configuration/kv-storage)
- [#287](https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/287) [`7851729`](https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/commit/78517294d281182c7f6e7e27b69d7f22ea5115cc) Thanks [@AdiRishi](https://github.com/AdiRishi)! - This project now has brand new web documentation powered by VitePress. You can visit these docs at <https://adirishi.github.io/turborepo-remote-cache-cloudflare>
๐ Patch Changes
- 6455295: Use a default value for secrets.TURBO_TOKEN to prevent one-click deployment (fork) failures
๐ Patch Changes
- 273c29e: Fix incorrect usage of wranglerVersion in deploy.yml - this fixes the wrangler deploy github action
๐ Minor Changes
- 0a87179: Move release process to changesets cli
๐ Important changes
- Switch project package manager from `yarn v3` to `pnpm` https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/92
- Fix bug in `deploy.yml` github workflow which caused the secret values of `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID` to not be recognised and used correctly https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/110
๐ What's Changed
- chore(deps): update dependency hono to ^3.7.2 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/99
- chore(deps): update typescript-eslint monorepo to ^6.7.3 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/100
- chore(deps): update dependency miniflare to ^3.20230922.0 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/103
- chore(deps): update dependency @cloudflare/workers-types to ^4.20230922.0 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/102
- chore(deps): update dependency @hono/zod-validator to ^0.1.9 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/104
- chore(deps): update dependency wrangler to ^3.9.1 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/101
- chore(deps): update dependency wrangler to ^3.10.0 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/105
- chore(deps): update dependency wrangler to ^3.10.1 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/107
- + 7 more
๐ What's Changed
- (fix): Fix bug in the deploy github action causing TURBO_TOKEN to not be uploaded as a worker secret by @AdiRishi in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/98
- Full Changelog: https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/compare/v2.3.0...v2.4.0
๐ฆ Important package upgrades
- miniflare to ^3.20230918.0
- wrangler to ^3.9.0
- hono to ^3.7.1
๐ What's Changed
- chore(deps): update dependency hono to ^3.5.7 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/77
- chore(deps): update actions/checkout action to v4 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/78
- chore(deps): update typescript-eslint monorepo to ^6.6.0 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/80
- chore(deps): update dependency @cloudflare/workers-types to ^4.20230904.0 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/79
- chore(deps): update dependency hono to ^3.5.8 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/81
- chore(deps): update dependency miniflare to ^3.20230904.0 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/82
- chore(deps): update dependency wrangler to ^3.7.0 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/83
- chore(deps): update vitest monorepo to ^0.34.4 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/85
- + 12 more
โจ New features
- The GET api route for artefacts now returns cache control headers (https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/76). If you host your worker behind a custom domain you can take advantage of Cloudlfare's CDN for even faster response times
๐ What's Changed
- chore(deps): update yarn to v3.6.3 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/62
- chore(deps): update dependency hono to ^3.5.4 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/63
- chore(deps): update dependency typescript to ^5.2.2 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/64
- chore(deps): update dependency wrangler to ^3.6.0 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/65
- chore(deps): update dependency eslint to ^8.48.0 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/66
- chore(deps): update dependency vitest-environment-miniflare to ^2.14.1 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/67
- chore(deps): update dependency hono to ^3.5.5 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/68
- chore(deps): update typescript-eslint monorepo to ^6.5.0 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/69
- + 4 more
๐ Bug Fixes
- The cron used to delete expired objects would throw an error when zero objects are available for deletion. This was fixed in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/57
๐ What's Changed
- fix(deps): update dependency @hono/zod-validator to ^0.1.7 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/49
- fix(deps): update dependency zod to ^3.22.2 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/51
- fix(deps): update dependency @hono/zod-validator to ^0.1.8 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/50
- fix(deps): update dependency hono to ^3.5.0 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/52
- chore(deps): update typescript-eslint monorepo to ^6.4.1 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/53
- chore(deps): update dependency @cloudflare/workers-types to ^4.20230821.0 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/54
- chore(deps): update dependency miniflare to ^3.20230821.0 by @renovate in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/56
- Fix deletion cron throwing exception with zero keys by @colinmcdonald22 in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/57
- + 4 more
โจ New Contributors
- @colinmcdonald22 made their first contribution in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/57 ๐
- Full Changelog: https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/compare/v2.0.0...v2.1.0
๐ฅ Breaking Changes
- The `REQUIRE_AUTH` option has been removed in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/40. This option ended up being redundant as turborepo does not support remote cache endpoints without an api key. I've marked this as a breaking change regardless as someone potentially might be relying on this option.
๐ Bug fixes
- (fix): Resolve bug in deletion cron that errors when over 1000 items are available for deletion by @AdiRishi in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/45
๐ Project workflow changes
- Renovate bot now runs regularly over this project. It's PRs are reviewed regularly so expect the dependencies of this project to be updated very regularly.
๐ Minor changes
- Improve the README content by @AdiRishi in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/9
- Add routes for latency testing by @AdiRishi in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/41
- Refactor performance route by @AdiRishi in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/42
- (feat|refactor): Refactor the commandCentral routes and add new endpoints for random content generation by @AdiRishi in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/46
- (feat): Allow customisation of object expiration in /delete-expired-objects by @AdiRishi in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/47
- (feat): Add internal route to count the number of objects in a bucket by @AdiRishi in https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/pull/48
- Full Changelog: https://github.com/AdiRishi/turborepo-remote-cache-cloudflare/compare/v1.0.0...v2.0.0
Hello everyone, Although this project isn't an NPM package, I firmly believe in the importance of a well-documented history of changes. With that in mind, I am excited to introduce versioned releases starting today. I've decided to assign commit 765a237 on master as `v1.0.0`, marking this as the first official version of the project. My plan is to issue a new release for every significant feature or breaking change going forward, providing an accessible record of the project's progression. Additionally, I understand how crucial it is to stay informed about compatibility. Therefore, each release will include details of the TurboRepo version that the project has been tested with. As an inaugural reference, I've tested this initial release with `turbo` `1.10.6`. Hope this provides some helpful insight. Looking forward to many new releases in the future ๐
