-
Notifications
You must be signed in to change notification settings - Fork 0
Minor improvements Part 2 on eth-rpc-cache #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request makes several minor improvements to eth-rpc-cache, including simplifying the cloning logic, removing an unused debug dependency, updating the README with a new bundlephobia badge, and moving configuration files to their conventional locations.
- Removed the custom clone function in favor of native structuredClone.
- Removed the debug dependency and associated logging.
- Updated the README badge and added a new npm-publish workflow.
Reviewed Changes
Copilot reviewed 5 out of 14 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/eth-rpc-cache/src/utils/clone.ts | Removed the custom JSON-based clone utility in favor of structuredClone. |
| packages/eth-rpc-cache/src/rpc.ts | Removed debug logging and replaced the clone function with structuredClone. |
| packages/eth-rpc-cache/README.md | Added the bundlephobia badge alongside the existing NPM version badge. |
| .github/workflows/npm-publish.yml | Added a new npm-publish workflow using hemilabs/actions. |
Files not reviewed (9)
- .commitlintrc.json: Language not supported
- .github/actions/setup-env/action.yml: Language not supported
- .husky/commit-msg: Language not supported
- .husky/pre-commit: Language not supported
- .husky/pre-push: Language not supported
- .lintstagedrc.json: Language not supported
- .prettierrc.json: Language not supported
- package.json: Language not supported
- packages/eth-rpc-cache/package.json: Language not supported
This PR applies a few minor improvements on the
eth-rpc-cache. It's easier to review by commitcloneutility, so structuredClone is used insteaddebugdependency as it was only used in one place for one particular log. Not really needed.package.jsonso it matches the convention we've generally been usingnpm-publishaction (Here Gabriel you should check thatNPM_TOKENis available)eth-rpc-cache