Skip to content
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

refactor: move and organize shared profile sync dependencies #4717

Conversation

Prithpal-Sooriya
Copy link
Contributor

Explanation

This decouples dependencies between profile sync SDK and profile sync Controllers.
It creates a shared section that both can use instead of the "cyclic dependencies". This should also help with tree shaking and reducing bundle size if using a subpath export.

References

https://consensyssoftware.atlassian.net/browse/NOTIFY-1129

Changelog

@metamask/profile-sync-controller

  • CHANGED: Moved encryption folder into shared folder
  • CHANGED: Moved storage-schema into shared folder
  • CHANGED: Moved env into shared folder
  • REMOVED: Removed old encryption file in SDK to instead use shared encryption file.

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

@Prithpal-Sooriya Prithpal-Sooriya added the team-notifications Notification Team changes. https://github.com/orgs/MetaMask/teams/notifications label Sep 19, 2024
@Prithpal-Sooriya Prithpal-Sooriya requested a review from a team as a code owner September 19, 2024 14:03
Copy link
Contributor

@mathieuartu mathieuartu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks for doing that!

@Prithpal-Sooriya Prithpal-Sooriya merged commit 5e30573 into main Sep 19, 2024
117 checks passed
@Prithpal-Sooriya Prithpal-Sooriya deleted the NOTIFY-1129/decouple-profile-sync-sdk-and-controller-deps branch September 19, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-notifications Notification Team changes. https://github.com/orgs/MetaMask/teams/notifications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants