CyberFlameGO / NCEAHelpWorker

NCEAHelp's Discord bot, built on Cloudflare Workers
2 stars 1 forks source link

fix(deps): update dependency discord-interactions to v4 - autoclosed #237

Closed renovate[bot] closed 2 months ago

renovate[bot] commented 2 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
discord-interactions ^3.4.0 -> ^4.0.0 age adoption passing confidence

Release Notes

discord/discord-interactions-js (discord-interactions) ### [`v4.0.0`](https://togithub.com/discord/discord-interactions-js/releases/tag/4.0.0) [Compare Source](https://togithub.com/discord/discord-interactions-js/compare/badeb8450734a2fd5fdd2848579a795ec3da2606...4.0.0) Welcome to 4.0! This release includes new features and a couple of breaking changes. #### Breaking Changes ##### Node.js 18.4 and up required Support for previous versions of node.js have been dropped. This isn't a soft break - we now rely on the `Ed25519` algorithm in subtlecrypto, which is only available in versions 18.4 and up. ##### verifyKey is now async Due to the dependency on subtle crypto, the `verifyKey` method is now **async**. Make sure to use an `await` when evaluating the result of `verifyKey`. See [https://github.com/discord/discord-interactions-js/pull/73](https://togithub.com/discord/discord-interactions-js/pull/73) to learn more. ```ts const signature = req.get('X-Signature-Ed25519'); const timestamp = req.get('X-Signature-Timestamp'); const isValid = await verifyKey(req.rawBody, signature, timestamp, 'MY_CLIENT_PUBLIC_KEY'); ``` #### Features - Added `ButtonStyleTypes.Premium` [https://github.com/discord/discord-interactions-js/pull/55](https://togithub.com/discord/discord-interactions-js/pull/55) - The library should be significantly faster due to dropping the dependency on tweetnacl

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.