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

Set minimum TS version to 4.5, use Ember v4 types #298

Merged
merged 4 commits into from
Jun 3, 2022
Merged

Conversation

chriskrycho
Copy link
Collaborator

@chriskrycho chriskrycho commented Jun 3, 2022

This started out with the goal of fixing CI, but then I realized that upgrading to use the Ember v4 types requires bumping to the minimum version of TS supported by those types (4.4). While we could just target v4.4, it's preferable to target v4.5 since that comes with support for the very nice import { foo, type Bar } from 'somewhere' syntax.

  • fix lockfile for Ember v4 @types packages
  • simplify testing for supported TS versions (stop using ember-try for it)

Caching means we end up with conflicts between `@types/*` packages,
which results in needless conflicts. It is also *much* slower!
@chriskrycho chriskrycho changed the title Fix CI Set minimum TS version to 4.5, use Ember v4 types Jun 3, 2022
Motivation: we need *at least* v4.4 to work with the Ember v4 types, so
we *must* make a breaking change there.  However, v4.5 gives us the
very nice `import { type ... }` syntax, and while there are some nice
things in v4.6 and v4.7 we don't particularly need any of them.
@chriskrycho chriskrycho merged commit cd5b6c2 into main Jun 3, 2022
@chriskrycho chriskrycho deleted the fix-ci branch June 3, 2022 15:20
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.

None yet

1 participant