Added
"react-native"and"browser"conditions topackage.json"exports"- fixes resolution under Metro (React Native 0.85+) and web bundlers that honor Package Exports, which previously fell through to the Node build and pulled in Node core modules unavailable in those environments. Conditions are placed aboverequire/defaultso conditional resolution matches them first.
Removed
- ESM build output (
dist/lib.esm.mjs) and the corresponding webpackesmConfig "import"condition from"exports"and the"module"field frompackage.json
Fixed
- Import failures in downstream projects caused by the ESM bundle introduced in 5.0.11
Full Changelog: 5.0.11...5.0.12