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

build: add angular 17 support #2079

Merged
merged 6 commits into from
Nov 23, 2023

Conversation

jpraetorius
Copy link
Contributor

  • extend allowed range of ng peer dependency to 18
  • add an additional integration test for NG17 with updated dependencies and tests.
  • add additional test in all places the other tests run

fixes #2078

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[x] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Updating an application using ngxs to Angular 17 fails, because all the packages declare < 17 as the range for their peer dependency

Issue Number: #2078

What is the new behavior?

Updating to Angular 17 works, the range of allowed Angular versions has been adapted to <18. Compatibility has been checked with an additional integration test.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Note that I first started by updating the dependencies for Angular to 17 too – that however results in a compile Error for the Angular 15 integration test, which is why I opted to not follow up on that change. The adaptation of custom-rxjs-subject below stems from that though (Updating Angular implies updating Typescript and the compiler complains about not being able to assert the type of <T> which made the explicit cast necessary.
I left that particular change in the commit, as I think it causes no harm and helps for further updates.

- extend allowed range of ng peer dependency to 18
- add an additional integration test for NG17 with updated dependencies and tests.
- add additional test in all places the other tests run

fixes ngxs#2078
Copy link

nx-cloud bot commented Nov 9, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 8011d01. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 3 targets

Sent with 💌 from NxCloud.

@jpraetorius
Copy link
Contributor Author

For all I can gather about the error this seems to be related to old(ish) yarn.lock versions that might keep old browserslist configurations around. I don't know if you folks have a way of bypassing the cache for this build?
(I don't want to just update, as I get your reasoning why you check the file in and keep the cache for the build).

@dmitry-stepanenko dmitry-stepanenko force-pushed the feature/Angular-17-Support branch from 0589d93 to 550beb6 Compare November 17, 2023 15:39
Copy link

codeclimate bot commented Nov 17, 2023

Code Climate has analyzed commit 8011d01 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 95.5% (0.5% change).

View more on Code Climate.

Copy link

bundlemon bot commented Nov 17, 2023

BundleMon (Integration Projects)

Unchanged files (1)
Status Path Size Limits
Main bundles(Gzip)
hello-world-ng15/dist-integration/main.(hash)
.js
63.35KB +1%

No change in files bundle size

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@monabbous
Copy link

Will this be reviewed soon?

@kuncevic @Carniatto @markwhitfeld @poloagustin @joaqcid @arturovt @splincode

@markwhitfeld
Copy link
Member

markwhitfeld commented Nov 23, 2023 via email

@ggros-septeo
Copy link

Yes, my plan was to release today, but we have had a massive fibre break in the area and I am without internet. Hopefully tomorrow the release will be going out.

Thanks for you time!

@markwhitfeld markwhitfeld merged commit 744e67c into ngxs:master Nov 23, 2023
9 checks passed
@Sina7312
Copy link

Sina7312 commented Nov 26, 2023

When does this get published on npm? @markwhitfeld

@frasermclean
Copy link

Keen to add this to a new Angular 17 project

@CesarD
Copy link

CesarD commented Nov 29, 2023

Same here!! 😅

markwhitfeld pushed a commit that referenced this pull request Nov 30, 2023
* build: add angular 17 support

- extend allowed range of ng peer dependency to 18
- add an additional integration test for NG17 with updated dependencies and tests.
- add additional test in all places the other tests run

fixes #2078

* Update index.html to correct version number in the title

* chore: regenerate yarn.lock

* build: angular v17 support in websocket-plugin

* chore: run CI on node 18

---------

Co-authored-by: Dmitriy Stepanenko <[email protected]>
(cherry picked from commit 744e67c)
@frasermclean
Copy link

Same here!! 😅

Seems like its good to go now. 3.8.2 is out

@danielbraghini
Copy link

any news about it?

@jpraetorius jpraetorius deleted the feature/Angular-17-Support branch May 23, 2024 13:56
@jpraetorius
Copy link
Contributor Author

@danielbraghini as the timeline above shows this landed in 3.8.2

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

Successfully merging this pull request may close these issues.

🚀[FEATURE]: Support Angular 17
10 participants