-
Notifications
You must be signed in to change notification settings - Fork 255
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
Support Angular 19 #2278
Support Angular 19 #2278
Conversation
caeed8a
to
89bf476
Compare
26424d3
to
d36884e
Compare
d36884e
to
76f8949
Compare
// ErrorHandler.prototype.handleError.call(this, error) | ||
console.error(error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this meant to be like this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, not the commented out code - but yes! this is the default behaviour of the angular error handler which we're replicating. calling the prototype to do this can cause a mismatch between the compiled code and the angular version. I'll add a comment covering this.
bc48859
to
7b9d7d9
Compare
* chore(@bugnsnag/plugin-angular): ⬆️ update angular dependency to v17 * test: ✅ create angular 12 test fixture * test: ✅ remove extra package from package json * test: 🔥 remove unused fixture * build plugin using ng-packager * refactor: ♻️ refactor plugin-angular * set openssl-legacy-provider * update typescript version * update build directory * test: remove ErrorHandler.prototype.handleError.call * reinstate handleError prototype call * build angular 12 fixture with ivy * add console error to replicate default angular error handler behavior * change build to browser-esbuild * docs: 📝 update CHANGELOG.md * docs: 📝 explain console error left in angular plugin * chore: 👷 update build script to remove dist * fixup package lock * refactor: ♻️ remove angular workspace directory * add directory to publishConfig * run npm build during prepack
Goal
This PR fixes a number of bugs and updates the current level of Angular support, using the latest build system
Changeset
publishConfig.directory
to ensure only thedist
directory is published for updated angular packageprepack
script to re-build and ensure correct version number is used for published packageTesting
browser-esbuild
builder