Update dependency ethereumjs-util to v7.1.5 #588
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
7.0.6→7.1.5Release Notes
ethereumjs/ethereumjs-monorepo (ethereumjs-util)
v7.1.5: ethereumjs-util v7.1.5Compare Source
signaturemodule methods now allow for passing invvalues of0and1in the context of typed txs (e.g. EIP-1559 txs):ecrecover(),toRpcSig(),toCompactSig(),isValidSignature(), PR #1905v7.1.4: ethereumjs-util v7.1.4Compare Source
Buffer <-> Uint8Array Conversion Helpers (RLP v3)
The new RLP v3 release is accepting and returning
Uint8Arrayobjects instead ofBufferfor improved browser compatibility and usage.There are two new helper functions in the
bytesmodule from theUtillibrary introduced in PR #1648 to help with associated Buffer conversions (while this is our main reason for introducing these functions the functionality can of course be used for other things as well):arrToBufArr(): Converts aUint8ArrayorNestedUint8ArraytoBufferorNestedBufferArraybufArrToArr(): Converts aBufferorNestedBufferArraytoUint8ArrayorNestedUint8ArrayNote: the RLP version exposed by this package as a re-export is still RLP
v2. This won't change along additionalv7Util releases and other current monorepo libraries (VM, Tx,...) are also still using thev2RLP version.Features
validateNoLeadingZeroes()function inbytesmodule for validating Buffers to have no leading zeros (mainly within an RLP context), PR #1568MAX_UINT64constant which can be used to check if aBNinstance exceeds the max. possible 64-bit integer value, PR #1568Maintenance
toBuffer(bytesmodule) now throws when a negative BN is provided as input, PR #1606v7.1.3: ethereumjs-util v7.1.3Compare Source
Removal of ethjs-util Package Re-Export
This release replaces
ethjs-utildependency with aninternal.tsfile which re-exports all the used functions (thanks to @talentlessguy for the PR).This has a list of benefits:
See: PR #1517
Related Changes / Bug Fixes
toUtf8not working correctly with leading or trailing single 0s, see PR #1522toUtf8function and added extended code docs, method now throws on malformed uneven hex input values, see PR #1525v7.1.2: ethereumjs-util v7.1.2Compare Source
ethjs-utilintToHexandintToBufferre-exports with own implementations which throw on wrong integer input (decimal values, non-safe integers, negative numbers,...) to allow for a safer integer type input, PR #1500v7.1.1: ethereumjs-util v7.1.1Compare Source
toType()helper function to now returnnull/undefinedfor respective input values, PR #1477EIP-1191format checksums when usingtoChecksumAddress()(breaks checksum backwards compatibility in current form), PR #1463v7.1.0: ethereumjs-util v7.1.0Compare Source
Distribution Changes
Dual ES5 and ES2017 Builds
We significantly updated our internal tool and CI setup along the work on PR #913 with an update to
ESLintfromTSLintfor code linting and formatting and the introduction of a new build setup.Packages now target
ES2017for Node.js builds (themainentrypoint frompackage.json) and introduce a separateES5build distributed along using thebrowserdirective as an entrypoint, see PR #921. This will result in performance benefits for Node.js consumers, see here for a releated discussion.Included Source Files
Source files from the
srcfolder are now included in the distribution build, see PR #1301. This allows for a better debugging experience in debug tools like Chrome DevTools by having working source map references to the original sources available for inspection.EIP-2098 Support (Compact 64-byte Signatures)
The
signaturemodule comes with a new helper functiontoCompactSig(v: BNLike, r: Buffer, s: Buffer, chainId?: BNLike): stringwhich allows to convert signature parameters into the format of Compact Signature Representation as defined in EIP-2098.Other Changes
bnToRlp()helper function tobnToUnpaddedBuffer(), PR #1293v7.0.10: ethereumjs-util v7.0.10Compare Source
Address.isPrecompileOrSystemAddress()method which returnstrueif address is in the address range defined by EIP-1352, PR #1170false(instead of throwing) for non-hex-string values in account moduleisValidAddress,isValidChecksumAddress,isZeroAddressmethods (it now gets enough to just handle thefalsecase on function usage), PR #1173v7.0.9Compare Source
v7.0.8Compare Source
v7.0.7Compare Source
Configuration
📅 Schedule: Branch creation - "on sunday" in timezone America/Los_Angeles, 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 was generated by Mend Renovate. View the repository job log.