Skip to content

Document MSW upgrade process and package-specific post-install steps#1049

Merged
dgee2 merged 1 commit into
mainfrom
agents/update-copilot-instructions-rebase
May 1, 2026
Merged

Document MSW upgrade process and package-specific post-install steps#1049
dgee2 merged 1 commit into
mainfrom
agents/update-copilot-instructions-rebase

Conversation

@dgee2
Copy link
Copy Markdown
Owner

@dgee2 dgee2 commented May 1, 2026

This pull request adds important guidance to the Node dependency update skill documentation, focusing on package-specific upgrade steps. The main addition is a section detailing how to properly update the msw package and regenerate its associated worker file to prevent runtime issues.

Documentation improvements for dependency updates:

  • Added a new section on package-specific upgrade steps, instructing contributors to check for and follow any required post-install steps from package changelogs or migration guides before finalizing dependency updates.

Special instructions for msw updates:

  • Documented the correct procedure for updating the msw package, including regenerating the mockServiceWorker.js file using the recommended MSW CLI command, and emphasized not to manually edit generated constants to avoid breaking browser request mocking.… steps

Add a 'Package-specific upgrade steps' section to the Node dependency update skill. Includes:

  • A general rule to check each package's changelog/migration guide for custom post-install steps before committing version bumps.
  • Explicit MSW guidance: mockServiceWorker.js is a generated file that must be regenerated via 'pnpm dlx msw init public/ --save' after any msw version bump. Manual edits to PACKAGE_VERSION or INTEGRITY_CHECKSUM can leave the worker out of sync and silently break browser mocking.

… steps

Add a 'Package-specific upgrade steps' section to the Node dependency
update skill. Includes:

- A general rule to check each package's changelog/migration guide for
  custom post-install steps before committing version bumps.
- Explicit MSW guidance: mockServiceWorker.js is a generated file that
  must be regenerated via 'pnpm dlx msw init public/ --save' after any
  msw version bump. Manual edits to PACKAGE_VERSION or INTEGRITY_CHECKSUM
  can leave the worker out of sync and silently break browser mocking.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 1, 2026 11:57
@dgee2 dgee2 enabled auto-merge (squash) May 1, 2026 11:58
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 1, 2026

@dgee2 dgee2 disabled auto-merge May 1, 2026 11:59
@dgee2 dgee2 enabled auto-merge (squash) May 1, 2026 11:59
Copy link
Copy Markdown
Contributor

Copilot AI left a 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 PR enhances the Node dependency update skill documentation by adding guidance for package-specific upgrade steps, with a concrete example for msw to prevent mismatched/generated worker artifacts in the UI.

Changes:

  • Added a “Package-specific upgrade steps” section instructing contributors to check changelogs/migration guides for required post-upgrade actions.
  • Documented the required msw worker regeneration step (pnpm dlx msw init public/ --save) and cautioned against manual edits to the generated worker constants.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dgee2 dgee2 merged commit fa59cf5 into main May 1, 2026
17 checks passed
@dgee2 dgee2 deleted the agents/update-copilot-instructions-rebase branch May 1, 2026 12:01
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.

2 participants