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 errorInfo metadata in Vue 3.4+ #2062

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Conversation

yousif-bugsnag
Copy link
Contributor

Goal

In Vue 3.4+ the error handling has been updated and the info param passed to the error handler is now a link to the Vue error docs instead of a plain error code: vuejs/core@c261bea (#9165)

This breaks the errorInfo mapping in our plugin which attempts to map the error codes to message strings.

This PR updates the plugin to handle the new info parameter format by attempting to extract the error code from the URL.

Testing

New unit test added, and relied on existing CI tests

@yousif-bugsnag yousif-bugsnag changed the title fix errorInfo metadata in Vue 3.4+ Fix errorInfo metadata in Vue 3.4+ Jan 3, 2024
Copy link

github-actions bot commented Jan 3, 2024

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 43.67 kB 13.40 kB
After 43.67 kB 13.40 kB
± No change No change

code coverage diff

<temporarily disabled>

Generated by 🚫 dangerJS against 2ffaae4

@yousif-bugsnag yousif-bugsnag merged commit e7933ee into next Jan 3, 2024
68 checks passed
@yousif-bugsnag yousif-bugsnag deleted the vue-3-4-error-info branch January 3, 2024 11:47
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