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 TS5 + ESM hang; and upgrade dev dependencies to ng17 #2197

Merged
merged 6 commits into from
Jan 3, 2024

Conversation

johncrim
Copy link
Contributor

@johncrim johncrim commented Jan 3, 2024

Summary

I attempted to fix #2138, and as a side effect also upgrade to ng 17, resolving #2196. The main fixes were adding/improving the typescript version detection and version bridging functions so that the breaking changes in TS 5 (that I'm aware of) are handled, without changing the current level of backward compatibility with older versions of typescript and angular.

Test plan

yarn test and yarn test-examples all pass (locally).

Tomorrow I will upgrade our projects to ng 17 and TS 5 to verify that our tests no longer hang, as described in #2138.

Does this PR introduce a breaking change?

  • Yes
  • No

Should not be breaking - I did my best to preserve the existing level of backward compatibility.

Other information

fixes: #2138
resolves: #2196

This update appears to fix thymikee#2138. It builds with TS 5, and all tests and example tests pass.

fixes: [Bug]: ESM with TypeScript >= 5.0 hangs forever thymikee#2138
@ahnpnl
Copy link
Collaborator

ahnpnl commented Jan 3, 2024

Something is wrong with lock file, would you please check?

The rest LGTM

Husky is required by the postinstall script, but was previously missing.
Tests pass, and example tests pass.

resolves: [Feature]: Angular 17 support  thymikee#2196
@johncrim
Copy link
Contributor Author

johncrim commented Jan 3, 2024

@ahnpnl - I had to add husky as a dev dependency - the yarn cache build steps were failing b/c it wasn't there. For some reason it wasn't on the main that I branched from.

Thanks for the review + guidance.

@ahnpnl
Copy link
Collaborator

ahnpnl commented Jan 3, 2024

Would you please also add eslint comments to bypass several Warning: 143:23 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any, make it look prettier 😃

@johncrim
Copy link
Contributor Author

johncrim commented Jan 3, 2024

I can confirm that these updates work as expected on our projects using TS 5.2.2 and ng 17.0.8 and ng 17.0.9.

@ahnpnl ahnpnl merged commit 90797e5 into thymikee:main Jan 3, 2024
10 checks passed
@ahnpnl
Copy link
Collaborator

ahnpnl commented Jan 3, 2024

Thanks!

@johncrim
Copy link
Contributor Author

johncrim commented Jan 3, 2024

Happy to help! Thank you!

@michaelfaith
Copy link
Contributor

Great work on this change!

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.

[Feature]: Angular 17 support [Bug]: ESM with TypeScript >= 5.0 hangs forever
3 participants