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

feat(types): add typescript 4.8 compatibility #14990

Merged
merged 3 commits into from Sep 17, 2022

Conversation

bnorbi95
Copy link
Contributor

Pull Request Checklist

Please make sure to review and check all of these items:

  • Have you added new tests to prevent regressions?
  • Does yarn test or yarn test-DIALECT pass with this change (including linting)?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Did you update the typescript typings accordingly (if applicable)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Did you follow the commit message conventions explained in CONTRIBUTING.md?

Description Of Change

Sequelize typings are affected in a few places by a TypeScript 4.8 breaking change (https://devblogs.microsoft.com/typescript/announcing-typescript-4-8/#unconstrained-generics-no-longer-assignable-to).

This PR addresses #14934.

Copy link
Member

@fzn0x fzn0x left a comment

Choose a reason for hiding this comment

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

Can you write types tests for this?

@WikiRik
Copy link
Member

WikiRik commented Sep 16, 2022

Thanks for the PR!
I've gone ahead and added the new TypeScript versions to the CI in this PR. I hope you don't mind.

Are you willing to make a PR towards the main branch as well?

Copy link
Member

@ephys ephys left a comment

Choose a reason for hiding this comment

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

Other than that, if tests pass (and they do), lgtm!

I think the type test suite here should already cover everything that has been impacted https://github.com/sequelize/sequelize/tree/main/test/types

src/hooks.d.ts Outdated Show resolved Hide resolved
@ephys ephys changed the title feat(types): typescript 4.8 compatibility feat(types): add typescript 4.8 compatibility Sep 17, 2022
@ephys
Copy link
Member

ephys commented Sep 17, 2022

Failing tests are flaky tests, we can merge

@ephys ephys merged commit 3468378 into sequelize:v6 Sep 17, 2022
@github-actions
Copy link
Contributor

🎉 This PR is included in version 6.23.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@fzn0x
Copy link
Member

fzn0x commented Sep 17, 2022

Thank you for the initiatives!

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

4 participants