Skip to content

refactor(operators): convert operators to typescript#13731

Merged
sdepold merged 15 commits intomainfrom
fncolon-patch-2
Dec 17, 2021
Merged

refactor(operators): convert operators to typescript#13731
sdepold merged 15 commits intomainfrom
fncolon-patch-2

Conversation

@fzn0x
Copy link
Copy Markdown
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 DEPRECATED: replace with the "meta" issue type label Dec 2, 2021
@fzn0x fzn0x requested a review from sdepold December 2, 2021 04:12
@fzn0x
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Comment thread .eslintrc.json Outdated
Comment thread lib/operators.ts Outdated
Comment thread lib/operators.js Outdated
@fzn0x fzn0x marked this pull request as ready for review December 12, 2021 07:22
@fzn0x fzn0x requested review from Keimeno, WikiRik and wbourne0 and removed request for sdepold December 12, 2021 07:23
@fzn0x fzn0x added the typescript For issues and PRs. Things that involve typescript, such as typings and intellisense. label Dec 12, 2021
Copy link
Copy Markdown
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

Comment thread types/lib/operators.d.ts Outdated
Comment thread .eslintrc.json Outdated
@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
Copy Markdown
Member

sdepold commented Dec 17, 2021

I added some last bits to the PR

@github-actions
Copy link
Copy Markdown
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 <[email protected]>
Co-authored-by: Sascha Depold <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released type: refactor DEPRECATED: replace with the "meta" issue 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