Skip to content

Bump @snazzah/davey from 0.1.12 to 0.2.0 - #188

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/snazzah/davey-0.2.0
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/snazzah/davey-0.2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 5, 2026

Copy link
Copy Markdown
Contributor

Bumps @snazzah/davey from 0.1.12 to 0.2.0.

Release notes

Sourced from @​snazzah/davey's releases.

davey-node@0.2.0

Read the short migration guide: https://github.com/Snazzah/davey/wiki/Migrating-to-0.2.0


Breaking:

  • DAVESession#processCommit and DAVESession#processWelcome no longer update keys. Call DAVESession#prepareTransition with the transition ID and protocolVersion afterwards, and the key used to encrypt packets is only switched once that transition is executed with DAVESession#executeTransition, unless the transition ID is 0. (parity with libdave's sample)
  • DAVESession#reinit now keeps the current encryption and decryption keys until the next transition replaces them, so ready stays true. (parity with libdave)
  • DAVESession#processCommit now returns true if the transition should be prepared, or false if the commit was ignored because there is no established group or queued proposals, instead of throwing. (ref: discord/libdave@68f7c02)

Added:

  • DAVESession#processWelcome now has an optional recognizedUserIds argument that gets checked against the users in the welcome group. (parity with libdave v1.2.0)
  • DAVESession#prepareTransition and DAVESession#executeTransition for handling opcodes 21 and 22. Preparing a downgrade to protocol version 0 keeps the current decryption keys usable for 10 seconds.
  • DAVESession#canEncrypt to check whether the session has a key to encrypt with.
  • EncryptionStats#missingKeys and DecryptionStats#missingKeys for the number of encryptions and decryptions that failed due to a missing key, and DecryptionStats#invalidNonces for the number of decryptions that failed due to an invalid nonce.

Fixed:

  • Enabling passthrough mode now also applies to decryptors created afterwards.
  • Group IDs are now checked when processing welcomes. (parity with libdave v1.2.0 & v1.2.1)
  • Welcomes are now only accepted for the most recently created key package. (parity with libdave)
  • Own commits are only accepted if they exactly match the pending commit.
  • Passthrough mode can now only shorten the cipher manager expiry, not extend it. (ref: discord/libdave@48e6232)
  • Decrypting with a newer key generation can now only shorten the expiry of older generations, not extend it. (parity with libdave)
  • Missing nonces that arrive early are now tracked. (ref: discord/libdave@65be1a4)
  • Missing nonces are now limited to 1000 tracked nonces instead of a window of the last 1000 nonces, so older frames can still be decrypted. (ref: discord/libdave@3bdd9fd)
  • Fixed LEB128 not being read correctly in some cases.
  • DecryptionStats#attempts now only counts actual decryption attempts, not every key ratchet that was tried. (parity with libdave)
  • Duplicate key ratchet installs are now ignored. (ref: discord/libdave@8de72b1)
  • Re-installing the encryption key of the current epoch no longer restarts the nonce sequence, which reused nonces. (ref: discord/libdave@d3bac61)
  • Duplicate user IDs are now rejected in proposals, welcomes and commits. (parity with libdave)
  • Proposals and commits are now checked for their wire format, epoch, content type and sender, and commits are rejected without queued proposals or with non-reference proposals. (parity with libdave)
  • Welcomes are no longer lost when the members being added were proposed before the latest batch of proposals.
  • The newest key is now tried first when decrypting.
  • Only Opus audio silence packets are passed through.
  • Encrypting with an unknown codec now encrypts the full frame instead of panicking. (parity with libdave)
  • Encryption and decryption stats no longer overflow past 32-bit values.
  • Reduced buffer allocations in encryption and decryption. (#18)

davey-python@0.2.0

Read the short migration guide: https://github.com/Snazzah/davey/wiki/Migrating-to-0.2.0


Breaking:

  • DaveSession.get_user_ids() now returns List[int] instead of List[str]
  • DaveSession.process_commit() and DaveSession.process_welcome() no longer update keys. Call DaveSession.prepare_transition() with the transition ID and protocol_version afterwards, and the key used to encrypt packets is only switched once that transition is executed with DaveSession.execute_transition(), unless the transition ID is 0. (parity with libdave's sample)

... (truncated)

Commits
  • 72d1c6d chore: set all davey versions to 0.2.0
  • fa39446 ci(python): build linux aarch64 wheels on a native arm runner (#25)
  • 81f8948 fix: fully encrypt unknown codecs
  • c3248c5 fix: only accept the latest key package created
  • b020d6f fix: properly check for established group in set_external_sender()
  • 29d1344 chore: fix formatting
  • 1810baa chore: fix clippy issues
  • cd89547 chore: bump all versions
  • aa0abd4 chore: make changelog-section.sh executable...
  • 0863b2f fix: handle ignoring process_commit usage on non-established groups instead o...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@snazzah/davey](https://github.com/Snazzah/davey) from 0.1.12 to 0.2.0.
- [Release notes](https://github.com/Snazzah/davey/releases)
- [Commits](Snazzah/davey@js-0.1.12...js-0.2.0)

---
updated-dependencies:
- dependency-name: "@snazzah/davey"
  dependency-version: 0.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants