-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
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", |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
"prepare": "npm run build", | ||
"build": "rm -rf ./dist && tsc" | ||
"_prepare": "npm run build", | ||
"_build": "rm -rf ./dist && tsc" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
// 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome commenting, love it
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true
This reverts commit 48e49ac.
No description provided.