🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@ethereumjs/rlp

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethereumjs/rlp - npm Package Compare versions

Comparing version

to
10.0.0

13

package.json
{
"name": "@ethereumjs/rlp",
"version": "10.0.0-rc.1",
"version": "10.0.0",
"description": "Recursive Length Prefix Encoding Module",

@@ -30,3 +30,6 @@ "keywords": ["rlp", "ethereum"],

".": {
"import": "./dist/esm/index.js",
"import": {
"typescript": "./src/index.ts",
"default": "./dist/esm/index.js"
},
"require": "./dist/cjs/index.js"

@@ -53,5 +56,9 @@ }

"prepublishOnly": "../../config/cli/prepublish.sh",
"sc": "npm run spellcheck",
"spellcheck": "npm run spellcheck:ts && npm run spellcheck:md",
"spellcheck:ts": "npx cspell --gitignore -c ../../config/cspell-ts.json \"./**/*.ts\" --cache --show-suggestions --show-context",
"spellcheck:md": "npx cspell --gitignore -c ../../config/cspell-md.json \"**.md\" --cache --show-suggestions --show-context",
"test": "npm run test:node && npm run test:browser",
"test:browser": "npx vitest run --config=./vitest.config.browser.mts",
"test:node": "npx vitest run",
"test:node": "npx vitest run -c ../../config/vitest.config.mts",
"tsc": "../../config/cli/ts-compile.sh"

@@ -58,0 +65,0 @@ },

@@ -1,2 +0,2 @@

# @ethereumjs/rlp
# @ethereumjs/rlp `v10`

@@ -12,2 +12,12 @@ [![NPM Package][rlp-npm-badge]][rlp-npm-link]

## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Browser](#browser)
- [API](#api)
- [CLI](#cli)
- [EthereumJS](#ethereumjs)
- [License](#license)
## Installation

@@ -40,5 +50,5 @@

With the breaking release round in Summer 2023 we have added hybrid ESM/CJS builds for all our libraries (see section below) and have eliminated many of the caveats which had previously prevented a frictionless browser usage.
We provide hybrid ESM/CJS builds for all our libraries. With the v10 breaking release round from Spring 2025, all libraries are "pure-JS" by default and we have eliminated all hard-wired WASM code. Additionally we have substantially lowered the bundle sizes, reduced the number of dependencies, and cut out all usages of Node.js-specific primitives (like the Node.js event emitter).
It is now easily possible to run a browser build of one of the EthereumJS libraries within a modern browser using the provided ESM build. For a setup example see [./examples/browser.html](./examples/browser.html).
It is easily possible to run a browser build of one of the EthereumJS libraries within a modern browser using the provided ESM build. For a setup example see [./examples/browser.html](./examples/browser.html).

@@ -51,14 +61,2 @@ ## API

### Buffer -> Uint8Array
With the breaking releases from Summer 2023 we have removed all Node.js specific `Buffer` usages from our libraries and replace these with [Uint8Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) representations, which are available both in Node.js and the browser (`Buffer` is a subclass of `Uint8Array`).
We have converted existing Buffer conversion methods to Uint8Array conversion methods in the [@ethereumjs/util](https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/util) `bytes` module, see the respective README section for guidance.
### BigInt Support
Starting with v4 the usage of [BN.js](https://github.com/indutny/bn.js/) for big numbers has been removed from the library and replaced with the usage of the native JS [BigInt](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) data type (introduced in `ES2020`).
Please note that number-related API signatures have changed along with this version update and the minimal build target has been updated to `ES2020`.
## CLI

@@ -65,0 +63,0 @@