v4.0.0
Breaking Changes
- ESM-only — CJS
require()is no longer supported. Consumers must useimport. - TypeScript 6.0 — Upgraded from TypeScript 5.x to 6.0.2.
Changed
- NodeNext module resolution —
.jsextensions on all relative imports, strict Node module semantics. - Build with
tscinstead oftsup— plaintsccompiles directly to a flatdist/directory. Removes tsup + 78 transitive dependencies. undiciis now a regular dependency — preventsERR_MODULE_NOT_FOUNDfor Node consumers. Browser/Deno/Bun entry points never load it.- Flat
dist/layout — output moved fromdist/node/,dist/browser/,dist/fetch/to a singledist/. - Added
workerdandedge-lightexport conditions — Cloudflare Workers and Vercel Edge Functions support. - Removed legacy
main,browser, andreact-nativetop-level fields —exportsmap is the sole resolution mechanism.
Removed
- CJS output
tsupdependency (78 transitive deps removed)- Unused
picomatchandbrace-expansiondevDependencies
Fixed
- Export
AptosClientRequest,AptosClientResponse, andCookieJarLiketypes from all entry points. - Export
Cookietype from Node and fetch entry points.
See CHANGELOG.md for full details.