Skip to content

feat(fmt): add cache identity helpers - #224

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-fmt-cache-keys
Aug 6, 2026
Merged

feat(fmt): add cache identity helpers#224
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-fmt-cache-keys

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

This PR adds deterministic identity helpers for the upcoming rs fmt persistent cache. It provides a schema/Rstack/Prettier namespace, config-root-relative POSIX file keys, SHA-256 content hashing, and stable per-file option hashes with memoization. Files using custom Prettier plugins or unserializable options safely bypass caching; fast-json-stable-stringify remains a bundled dev dependency. This does not enable the cache or change current formatter behavior.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 91f4c00
Status: ✅  Deploy successful!
Preview URL: https://6016d642.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-feat-fmt-cache-ke.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit 279b050 into main Aug 6, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/feat-fmt-cache-keys branch August 6, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant