Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Mar 9, 2022

Bumps rlp from 2.2.7 to 3.0.0.

Release notes

Sourced from rlp's releases.

rlp v3.0.0

rlp v3 is a breaking release with several important updates. Special thanks to @​paulmillr for the majority of this work in PR #90.

Dependencies

bn.js was removed in favor of BigInt support so the package now contains zero dependencies.

Default export

A new default export RLP now contains encode and decode.

You can now import and use RLP like this:

import RLP from 'rlp'
RLP.encode(1)

Uint8Array

Buffers were replaced in favor of using Uint8Arrays for improved performance and greater compatibility with browsers.

When upgrading from rlp v2 to v3, you must convert your Buffers to Uint8Arrays before passing in. To help, two new utility methods were added to ethereumjs-util v7.1.4: arrToBufArr and bufArrToArr. These will recursively step through your arrays to replace Buffers with Uint8Arrays, or vise versa.

Example:

// Old, rlp v2
import * as rlp from 'rlp'
const bufArr = [Buffer.from('123', 'hex'), Buffer.from('456', 'hex')]
const encoded = rlp.encode(bufArr)
const decoded = rlp.decode(encoded)
// New, rlp v3
import RLP from 'rlp'
const encoded: Uint8Array = RLP.encode(bufArrToArr(bufArr))
const encodedAsBuffer = Buffer.from(encoded)
const decoded: Uint8Array[] = RLP.decode(encoded)
const decodedAsBuffers = arrToBufArr(decoded)

Invalid RLPs

Increased strictness has been added to ensure invalid RLPs are not decoded, see PR #101.


PRs included in this release:

  • Fix karma, readme updates, combine source to one file, PR #109

... (truncated)

Commits

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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Mar 9, 2022
@vercel
Copy link

vercel bot commented Mar 9, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/ubeswap/ubeswap-interface/H76GeenrJad3BB3qfMoH87X5JhsR
✅ Preview: https://ubeswap-interface-git-dependabot-npmandyarnrlp-300-ubeswap.vercel.app

@vercel
Copy link

vercel bot commented May 23, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
ubeswap-interface ✅ Ready (Inspect) Visit Preview Dec 20, 2022 at 11:35PM (UTC)

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/rlp-3.0.0 branch 2 times, most recently from ac40aba to 9213619 Compare May 23, 2022 13:00
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/rlp-3.0.0 branch from 9213619 to 5d359c7 Compare May 31, 2022 15:03
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/rlp-3.0.0 branch from 5d359c7 to aeed9e6 Compare June 12, 2022 16:39
Bumps [rlp](https://github.com/ethereumjs/ethereumjs-monorepo) from 2.2.7 to 3.0.0.
- [Release notes](https://github.com/ethereumjs/ethereumjs-monorepo/releases)
- [Commits](https://github.com/ethereumjs/ethereumjs-monorepo/compare/[email protected]@3.0.0)

---
updated-dependencies:
- dependency-name: rlp
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants