Release v2.0.0
🚀 Major Updates
- Module Support: Added module field for ES module support. Now includes both CommonJS (dist/index.cjs.js) and ES modules (dist/index.esm.js) to improve compatibility with modern bundlers.
🆙 Breaking Changes
- Node & NPM Version Requirements: Updated minimum requirements to Node >= 18 and NPM >= 9 to leverage improvements in newer Node versions.
- Dependency Upgrades: Updated peerDependencies and devDependencies to support React 18 and the latest versions of TypeScript, Jest, Rollup, and associated plugins, ensuring compatibility and leveraging newer library features.
🧹 Enhancements
- Improved Build Process:
- Introduced typecheck script using TypeScript for enhanced type validation during the build.
- Optimized prebuild and postbuild scripts, ensuring a clean build directory before each build.
🛠️ Dependency Updates
Peer Dependencies:
- Updated to support React and ReactDOM >= 16.8.0 < 2, ensuring compatibility with React 18.
- Development Dependencies:
- Upgraded @types/react, @types/react-dom, typescript, jest, prettier, rollup, and other dev tools to their latest versions.
🔥 Deprecated Features
Removed unused keywords: Streamlined keywords for improved searchability on NPM registry.
Full Changelog: 1.0.13...v2.0.0