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

Update dependency discord-interactions to v4 #322

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 1, 2024

This PR contains the following updates:

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

Release Notes

discord/discord-interactions-js (discord-interactions)

v4.1.0: - New InteractionResponseType: LAUNCH_ACTIVITY (type 12)

Compare Source

Adds LAUNCH_ACTIVITY (type 12) to InteractionResponseType, adding support for launching activities in response to interactions.

v4.0.0

Compare Source

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 to learn more.

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


Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (UTC), 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies label Jul 1, 2024
@renovate renovate bot force-pushed the renovate/discord-interactions-4.x branch from 6d522fa to 91fdaf0 Compare August 26, 2024 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants