-
-
Notifications
You must be signed in to change notification settings - Fork 5
chore: remove unnecessary peer dependencies #828
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
📖 Storybook Preview |
"@solana/addresses": "^2.0.0", | ||
"bitcoin-address-validation": ">=2.0.0", |
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.
These were removed in #816 but dependencies weren't updated
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
Removes unnecessary peer dependencies (@solana/addresses
and bitcoin-address-validation
) from the MetaMask design system packages and storybook applications to reduce dependency tree weight and clean up unused code.
- Removed unused peer dependencies from all package.json files
- Cleaned up associated utility type definitions that are no longer needed
- Streamlined dependency management across the monorepo
Reviewed Changes
Copilot reviewed 5 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
packages/design-system-react/src/types/make-props-optional.ts | Removed unused utility type definition file |
packages/design-system-react/package.json | Removed @solana/addresses and bitcoin-address-validation dependencies |
packages/design-system-react-native/package.json | Removed @solana/addresses and bitcoin-address-validation dependencies |
apps/storybook-react/package.json | Removed @solana/addresses and bitcoin-address-validation dependencies |
apps/storybook-react-native/package.json | Removed @solana/addresses and bitcoin-address-validation dependencies |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
4e1a5a4
to
88bd704
Compare
"@vitest/coverage-v8": "^3.2.4", | ||
"autoprefixer": "^10.0.0", | ||
"axe-playwright": "^2.1.0", | ||
"bitcoin-address-validation": ">=2.0.0", |
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.
These were removed in #816 but dependencies weren't updated
"@metamask/design-tokens": "^8.1.0", | ||
"@metamask/utils": "^11.8.0", | ||
"@solana/addresses": "^2.0.0", | ||
"bitcoin-address-validation": ">=2.0.0", |
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.
These were removed in #816 but dependencies weren't updated
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.
No longer needed as we've removed bitcoin-address-validation
📖 Storybook Preview |
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.
No longer needed as we've removed bitcoin-address-validation
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.
## **Description** This PR releases version 15.0.0 of the MetaMask Design System, featuring patch releases across some packages with important dependency updates and cleanup. Also fixes flex layout issue with `AvatarBase` which is used by all avatar components. ## **Included PRs** #825, #827, #828, ## **Manual testing steps** 1. Pull and build the branch locally 2. Verify package versions are correctly updated (15.0.0 main, 0.4.1 for react/react-native, 0.1.1 for shared) 3. Run `yarn install` to ensure dependency resolution works correctly 4. Run `yarn build` to verify all packages build successfully 5. Check that peer dependency warnings are reduced after the cleanup ## **Screenshots/Recordings** Not applicable - this is a dependency and versioning update release. ### **Before** <!-- Not applicable --> ### **After** <!-- Not applicable --> ## **Pre-merge author checklist** - [x] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) - [x] I've completed the PR template to the best of my ability - [x] I've included tests if applicable - [x] I've documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I've applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
Description
Removes unnecessary peer dependencies (
@solana/addresses
andbitcoin-address-validation
) from the design system packages and storybook applications. These dependencies were removed in #816 not being used and were adding unnecessary weight to the dependency tree. Also cleaned up associated type definition files and unused utility types.Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/DSYS-181
Manual testing steps
yarn install
yarn build
yarn test
Screenshots/Recordings
Not applicable - dependency cleanup with no visual changes.
Before
bitcoin-address-validation
and@solana/addresses
weren't used outside of unnecessary peer dependencies and unused typesAfter
No instances of
bitcoin-address-validation
and@solana/addresses
remain in codebasePre-merge author checklist
Pre-merge reviewer checklist