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

refactor(operators): convert operators to typescript #13731

Merged
merged 15 commits into from
Dec 17, 2021
Merged

Conversation

fzn0x
Copy link
Member

@fzn0x fzn0x commented Dec 2, 2021

Pull Request Checklist

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

  • Have you added new tests to prevent regressions?
  • Does npm run test or npm run 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

To avoid name clashes with your global symbol keys and other (library code) global symbols, it might be a good idea to prefix your symbols

Todos

  • Migrate operators.js to typescript file

To avoid name clashes with your global symbol keys and other (library code) global symbols, it might be a good idea to prefix your symbols
@fzn0x fzn0x self-assigned this Dec 2, 2021
@fzn0x fzn0x added the type: refactor For issues and PRs. Things that improve the code readability, maintainability, testability, etc. label Dec 2, 2021
@fzn0x fzn0x requested a review from sdepold December 2, 2021 04:12
@fzn0x
Copy link
Member Author

fzn0x commented Dec 2, 2021

Since papb no longer active maintaining directly in the repository, so I assign @sdepold to review this.

@WikiRik
Copy link
Member

WikiRik commented Dec 2, 2021

Could you maybe migrate this file to TypeScript as well? Otherwise we will have to change this file twice in a short time

@fzn0x
Copy link
Member Author

fzn0x commented Dec 2, 2021

Could you maybe migrate this file to TypeScript as well? Otherwise we will have to change this file twice in a short time

Okay, will work on it, drafted

@fzn0x fzn0x marked this pull request as draft December 2, 2021 08:09
.eslintrc.json Outdated Show resolved Hide resolved
lib/operators.ts Outdated Show resolved Hide resolved
lib/operators.js Outdated Show resolved Hide resolved
@fzn0x fzn0x marked this pull request as ready for review December 12, 2021 07:22
@fzn0x fzn0x requested review from wbourne0, Keimeno and WikiRik and removed request for sdepold December 12, 2021 07:23
@fzn0x fzn0x added the type: typescript For issues and PRs. Things that involve typescript, such as typings and intellisense. label Dec 12, 2021
Copy link
Member

@WikiRik WikiRik left a comment

Choose a reason for hiding this comment

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

TypeScript changes look okay, but I'll leave it open for people with more experience. I do have some remarks about the other changes you made

types/lib/operators.d.ts Outdated Show resolved Hide resolved
.eslintrc.json Outdated Show resolved Hide resolved
@sdepold sdepold changed the title refactor(operators): symbol keys prefix refactor(operators): convert operators to typescript Dec 17, 2021
@sdepold sdepold merged commit b97f934 into main Dec 17, 2021
@sdepold sdepold deleted the fncolon-patch-2 branch December 17, 2021 19:01
@sdepold
Copy link
Member

sdepold commented Dec 17, 2021

I added some last bits to the PR

@github-actions
Copy link
Contributor

🎉 This PR is included in version 6.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@fzn0x fzn0x linked an issue Dec 18, 2021 that may be closed by this pull request
2 tasks
aliatsis pushed a commit to creditiq/sequelize that referenced this pull request Jun 2, 2022
* refactor(operators): symbol keys prefix

To avoid name clashes with your global symbol keys and other (library code) global symbols, it might be a good idea to prefix your symbols

* feat: add operators.ts

* feat: add operators.ts

* Not an object

* Change to string

* refactor(operators): convert to typescript

* fix(operators): revert values back to original values

Co-authored-by: Sascha Depold <sdepold@users.noreply.github.com>
Co-authored-by: Sascha Depold <sascha@depold.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released type: refactor For issues and PRs. Things that improve the code readability, maintainability, testability, etc. type: typescript For issues and PRs. Things that involve typescript, such as typings and intellisense.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typescript 4.5.4 does not like sequelize-ESM imports in v6.12
3 participants