Skip to content

v4.0.0

Choose a tag to compare

@gregnazario gregnazario released this 14 Apr 18:40
· 7 commits to main since this release
bb96b90

Breaking Changes

  • ESM-only — CJS require() is no longer supported. Consumers must use import.
  • TypeScript 6.0 — Upgraded from TypeScript 5.x to 6.0.2.

Changed

  • NodeNext module resolution.js extensions on all relative imports, strict Node module semantics.
  • Build with tsc instead of tsup — plain tsc compiles directly to a flat dist/ directory. Removes tsup + 78 transitive dependencies.
  • undici is now a regular dependency — prevents ERR_MODULE_NOT_FOUND for Node consumers. Browser/Deno/Bun entry points never load it.
  • Flat dist/ layout — output moved from dist/node/, dist/browser/, dist/fetch/ to a single dist/.
  • Added workerd and edge-light export conditions — Cloudflare Workers and Vercel Edge Functions support.
  • Removed legacy main, browser, and react-native top-level fieldsexports map is the sole resolution mechanism.

Removed

  • CJS output
  • tsup dependency (78 transitive deps removed)
  • Unused picomatch and brace-expansion devDependencies

Fixed

  • Export AptosClientRequest, AptosClientResponse, and CookieJarLike types from all entry points.
  • Export Cookie type from Node and fetch entry points.

See CHANGELOG.md for full details.