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

fix: improve the worker integrity warning #2091

Merged
merged 1 commit into from Mar 16, 2024

Conversation

kettanaito
Copy link
Member

Improve the integrity check warning to be more developer-friendly.

@@ -48,7 +49,10 @@ self.addEventListener('message', async function (event) {
case 'INTEGRITY_CHECK_REQUEST': {
sendToClient(client, {
type: 'INTEGRITY_CHECK_RESPONSE',
payload: INTEGRITY_CHECKSUM,
payload: {
packageVersion: PACKAGE_VERSION,
Copy link
Member Author

Choose a reason for hiding this comment

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

Send the MSW version used to generate the worker script in this message to have a better warning.

@kettanaito kettanaito merged commit e749355 into main Mar 16, 2024
12 checks passed
@kettanaito kettanaito deleted the fix/integrity-check-better-warning branch March 16, 2024 13:09
@kettanaito
Copy link
Member Author

Released: v2.2.5 🎉

This has been released in v2.2.5!

Make sure to always update to the latest version (npm i msw@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.

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.

None yet

1 participant