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

Generate type definition using Angular 17 #2275

Merged
merged 9 commits into from
Dec 18, 2024

Conversation

gingerbenw
Copy link
Member

@gingerbenw gingerbenw commented Dec 11, 2024

Goal

Ensure @bugsnag/plugin-angular works with recent versions of angular

Design

Update dev dependency to v17 to ensure that generated types are compatible with Angular 17 (earliest supported version according to the angular documentation)

Changeset

Update Angular dependencies to v17
Remove code for dropped ngDebugContext

Testing

Update test fixture to v17 and test against full ci build

Copy link

github-actions bot commented Dec 11, 2024

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 45.89 kB 13.78 kB
After 45.89 kB 13.78 kB
± No change No change

code coverage diff

<temporarily disabled>

Generated by 🚫 dangerJS against 02486a0

@gingerbenw gingerbenw force-pushed the PLAT-13302/angular-type-definition branch 2 times, most recently from 11f76f4 to a039da2 Compare December 11, 2024 17:34
@gingerbenw gingerbenw force-pushed the PLAT-13302/angular-type-definition branch from a039da2 to d7bd486 Compare December 11, 2024 17:59
@gingerbenw gingerbenw marked this pull request as ready for review December 12, 2024 12:23
@gingerbenw gingerbenw requested a review from lemnik December 12, 2024 12:23
@@ -57,7 +57,7 @@ import 'core-js/es7/reflect';
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
import 'zone.js/dist/zone'; // Included with Angular CLI.
import 'zone.js'; // Included with Angular CLI.
Copy link
Member Author

Choose a reason for hiding this comment

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

as per update guide

@gingerbenw gingerbenw changed the title Update Angular definition to v17 Generate type definition using Angular 17 Dec 12, 2024
@gingerbenw gingerbenw force-pushed the PLAT-13302/angular-type-definition branch from 2e7c4d9 to c9990c8 Compare December 17, 2024 09:20
@@ -9,4 +9,3 @@ Scenario: basic error handler usage
And the test should run in this browser
Then I wait to receive an error
And the error is a valid browser payload for the error reporting API
And the event "metaData.angular" is not null
Copy link
Member Author

Choose a reason for hiding this comment

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

Dropped as ngDebugContext is no longer present, and previously only worked in debug builds. Will raise a separate task to reintroduce similar metadata if available in ivy builds.

Copy link
Contributor

@lemnik lemnik left a comment

Choose a reason for hiding this comment

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

LGTM

@gingerbenw gingerbenw force-pushed the PLAT-13302/angular-type-definition branch from 26eea00 to 02486a0 Compare December 17, 2024 17:32
@gingerbenw gingerbenw merged commit bc03ca7 into next Dec 18, 2024
62 checks passed
@gingerbenw gingerbenw deleted the PLAT-13302/angular-type-definition branch December 18, 2024 09:19
This was referenced Jan 23, 2025
hannah-smartbear pushed a commit that referenced this pull request Jan 31, 2025
* chore(@bugnsnag/plugin-angular): ⬆️ update angular dependency to v17

* test: ✅ update browserslist for angular plugin fixture

* chore: add .angular to gitignore

* docs: 📝 update CHANGELOG

* test: ✅ update skip logic

* refactor: 🔥 remove debug context metadata

ngDebugContext has been removed and was not reported in production

* add globalthis polyfill

* add queueMicrotask polyfill
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