Skip to content

feat: upgrade to angular 13 #18

Closed
wants to merge 3 commits into from
Closed

feat: upgrade to angular 13 #18

wants to merge 3 commits into from

Conversation

bufke
Copy link

@bufke bufke commented Apr 12, 2022

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows Conventional Commits
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Other... Please describe:

What is the current behavior?

Published @micro-sentry/angular builds use legacy View Engine, Angular 13 now publishes only Ivy.

Closes #17

What is the new behavior?

By upgrading to Angular 13, published package will now ship only with Ivy.

Does this PR introduce a breaking change?

  • Yes
  • No

Any Angular project that doesn't have Ivy enabled may break. Ivy was made default in Feb Angular 9 in 2020, over two years ago. Projects running Angular <9 should upgrade their Angular version before upgrading micro-sentry.

@micro-sentry/core should be unaffected.

Other information

Tests pass, I'm marking draft as I continue testing it. I'm not very familiar with nx, so it would be good to build the package and ensure it works as expected.

It's worth pointing out that micro-sentry doesn't even have html templates. This change isn't going to do a whole lot. Still, keeping up to date packages is a good practice and it will slightly speed up builds and remove a warning when installing the package.

I had to add this nx bug workaround for jest to work. Everything else is from the automated nx upgrade process.

@bufke bufke marked this pull request as ready for review April 12, 2022 14:36
@bufke
Copy link
Author

bufke commented Apr 12, 2022

I tested by running npm run build and then copying the directories from dist/libs into another projects node_modules/@micro-sentry. I was able to run the project without getting a warning about ngcc. I was able to successfully capture error events.

@hakimio
Copy link

hakimio commented Apr 25, 2022

@MarsiBarsi are you planning to review and merge this?

@bufke
Copy link
Author

bufke commented May 26, 2022

Let me know if there is anything further I should do. I don't mind helping to ensure this package always works for the latest angular version (though I would not have time to add features). I could also fork the repo/npm package if that's easier.

@maxcodefaster
Copy link

Would be awesome if this Pull Request lands, as we have to always use npm i -f to install with latest angular.

@IKatsuba IKatsuba changed the base branch from main to beta June 8, 2022 06:02
@IKatsuba IKatsuba closed this in 768aca0 Jun 9, 2022
@tinkoff-bot
Copy link

🎉 This issue is included in version core@5.0.0 🎉

The release is available on GitHub release

@tinkoff-bot
Copy link

🎉 This issue is included in version browser@5.0.0 🎉

The release is available on GitHub release

@tinkoff-bot
Copy link

🎉 This issue is included in version angular@5.0.0 🎉

The release is available on GitHub release

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update angular version to 13, publish with ivy
6 participants