Skip to content

Commit 459e7b9

Browse files
Release 5.0.11 version
1 parent 2e04356 commit 459e7b9

3 files changed

Lines changed: 22 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,24 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1313
### Removed
1414
-->
1515

16+
### [5.0.11] - 2026-04-01
17+
18+
### Added
19+
20+
- ESM build output (`dist/lib.esm.mjs`) via webpack `experiments.outputModule`, enabling native named imports in modern TypeScript and Node.js ESM projects
21+
- `"exports"` field in `package.json` routing ESM consumers (`import`) to `lib.esm.mjs` and CJS consumers (`require`) to `lib.node.js`
22+
- `"module"` field in `package.json` for bundler tools (Vite, Rollup, esbuild) that use it for tree-shaking
23+
- `"engines": { "node": ">=18" }` to formally declare the minimum Node.js version required by the fetch adapter
24+
- Unit tests for `HttpHandler` covering both `axios` and `fetch` client paths, including success, HTTP errors, and network failures
25+
26+
### Fixed
27+
28+
- `DEP0169` deprecation warning (`url.parse()`) on Node.js 22 from two sources:
29+
- Removed unused `@open-rpc/client-js` dependency whose compiled mock (`build/__mocks__/requestData.js`) called `url.parse()` during test runs
30+
- Switched `axios` to its built-in `fetch` adapter (`adapter: 'fetch'`), bypassing `follow-redirects` which called `url.parse()` on every RPC request
31+
- `HttpError` being silently swallowed in `processFetchRequest`: the status check is now outside the `try/catch` so `HttpError` propagates correctly to callers instead of being re-wrapped as a generic `Error`
32+
- Named imports failing with `SyntaxError` in modern TypeScript projects using `"module": "ESNext"` — caused by the lack of an `"exports"` field and the UMD bundle being unanalyzable by Node.js `cjs-module-lexer`
33+
1634
### [5.0.10] - 2026-02-24
1735

1836
### Added

package-lock.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "casper-js-sdk",
3-
"version": "5.0.10",
3+
"version": "5.0.11",
44
"license": "Apache 2.0",
55
"description": "SDK to interact with the Casper blockchain",
66
"homepage": "https://github.com/casper-ecosystem/casper-js-sdk#README.md",

0 commit comments

Comments
 (0)