Closed i5shuyi closed 1 month ago
First of all, thanks for this very important PR and your goal to make this library Winter CG compatible @xAmast. In this PR, we are replacing "crypto" the library, with a global import. However, I see from the official docs that this is only available (as stable) from Node 20: https://nodejs.org/docs/latest-v20.x/api/webcrypto.html#web-crypto-api. Dapr JS SDK supports Node 16+ (16 is EOL since a few months now, and we should move to 18+), but the crypto import still does not seem to be stable for node 18.
We can
Thoughts?
/cc @XavierGeerinck
@shubham1172 I'm very sorry, I've been using Bun and Node.JS 20 all along, thus overlooking this point. I'll resubmit the code later.
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!
This pull request has been automatically closed because it has not had activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!
Description
Upgraded TypeScript / ESLint / Prettier. Updated @types/node to version 18. Replaced the crypto module with crypto.
Issue reference
Please reference the issue this PR will close: #584
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: