Skip to content

Conversation

@mcmire
Copy link
Contributor

@mcmire mcmire commented Nov 18, 2025

Explanation

In a future PR, we will convert all peer dependencies to dependencies. When this happens, contributors need to follow a new process for ensuring that breaking changes do not cause problems for other developers or users. This PR adds the necessary documentation.

References

Closes https://consensyssoftware.atlassian.net/browse/WPC-132.

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 communicated my changes to consumers by updating changelogs for packages I've changed, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

Note

Introduces a breaking-changes process guide and updates contributor docs, reviewing guide, and PR template checklist to reference and align with it.

  • Documentation:
    • New guide: Add docs/breaking-changes.md detailing what constitutes a breaking change and the process to document, audit dependents, and prepare upgrade PRs.
    • Contributor Guide (docs/contributing.md):
      • Add TOC entry and link to breaking-changes guide.
      • Highlight special handling for breaking changes in the release process.
    • Reviewing Release PRs (docs/reviewing-release-prs.md):
      • Replace inlined definition with concise definition and link to breaking-changes.md for examples.
  • PR Template (.github/pull_request_template.md):
    • Update checklist items to separate changelog updates from acknowledging/handling breaking changes with draft PRs.

Written by Cursor Bugbot for commit c0a30da. This will update automatically on new commits. Configure here.

In a future PR, we will convert all peer dependencies to dependencies.
When this happens, contributors need to follow a new process for
ensuring that breaking changes do not cause problems for other
developers or users. This PR adds the necessary documentation.
@mcmire mcmire marked this pull request as ready for review November 18, 2025 23:54
@mcmire mcmire requested a review from a team as a code owner November 18, 2025 23:54
Copy link
Member

@Mrtenz Mrtenz left a comment

Choose a reason for hiding this comment

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

Looks good in general. Just some minor comments.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe reference this from docs/contributing.md too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done here: 0030aa8


### 2. Audit dependent projects

Now that you've documented the affected symbols and exports in your package, locate all of the projects across MetaMask that use them. When you release your changes, how will those projects be affected?
Copy link
Member

Choose a reason for hiding this comment

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

Maybe add something to make it clear that other dependent packages in core should also be audited.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have made some changes here, can you take a second look?

Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

This looks great! Just had a few suggestions, this looks pretty close to ready though

Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

@mcmire mcmire enabled auto-merge November 21, 2025 04:04
@mcmire mcmire added this pull request to the merge queue Nov 21, 2025
Merged via the queue into main with commit 3459847 Nov 21, 2025
273 checks passed
@mcmire mcmire deleted the add-docs-for-breaking-changes branch November 21, 2025 10:06
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.

4 participants