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

[ORD-1873] Enable use for Ioredis, redis@3, & redi@2 #2

Merged
merged 9 commits into from
Aug 15, 2024

Conversation

althoff0
Copy link
Collaborator

No description provided.

package.json Outdated
"@typescript-eslint/eslint-plugin": "^4.8.1",
"@typescript-eslint/parser": "^4.8.1",
"ava": "^3.13.0",
"eslint": "^7.13.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-prettier": "^3.1.4",
"ioredis": "^5.4.1",
"node": "^18.20.4",
Copy link
Member

Choose a reason for hiding this comment

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

You don't install note via package.json, node and npm need to be installed before you can use the package.json

look in the CI workflow file

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oh whoops thats right, forgot about that. Then should I change 12 => in the npm-publish.yml file instead (once I reverse the last commit)

      - uses: actions/setup-node@v1
        with:
          node-version: 12 =>18

package.json Outdated
Comment on lines 13 to 14
"prepare": "npm run build",
"build": "rm -rf ./dist && tsc"
"_prepare": "npm run build",
"_build": "rm -rf ./dist && tsc"
Copy link
Member

Choose a reason for hiding this comment

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

These need to be reverted

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thought we already did, sorry should've caught that myself

Comment on lines +135 to +137
// Redis@3 & Redis@2 need to be promisified b/c they can't return promises (Redis@4 can)
// Ioredis already returns promises, so it returns the following warning when used
// (node:21449) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
Copy link
Member

Choose a reason for hiding this comment

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

Awesome commenting, love it

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks. I got excited when I upgraded to node 18 and it went away but when I did it the right way the warnings stayed. Can address this another time (maybe when we upgrade redis version or remove it and only use ioredis)

ambient.d.ts Outdated
@@ -0,0 +1 @@
declare module "redis3";
Copy link
Member

Choose a reason for hiding this comment

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

Don't think we need this, we just use "redis" as redis 3 now

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

true

@althoff0 althoff0 merged commit eb6f4a7 into master Aug 15, 2024
1 check passed
@smithamax smithamax deleted the feature/support_multiple_clients branch August 15, 2024 06:02
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.

2 participants