Releases: shelfio/array-chunk-by-size
Releases · shelfio/array-chunk-by-size
v4.0.0
🚀 v4.0.0
This major version brings significant modernization improvements to the package.
✨ What's New
- ESM-first: Project has been modernized to use ES modules by default
- Node.js 22+: Updated minimum Node.js requirement to version 22
- Modern tooling: Upgraded to latest ESLint config and build tools
💥 Breaking Changes
- Minimum Node.js version: Now requires Node.js 22 or higher
- ES Modules: Package now uses ES modules by default (
"type": "module"in package.json) - Import/Export syntax: All imports and exports now use ES module syntax
🔧 Technical Improvements
- Migrated from CommonJS to ES modules
- Updated ESLint configuration to modern flat config format
- Upgraded all development dependencies to latest versions
- Improved TypeScript configuration
- Enhanced build process for better compatibility
📦 Migration Guide
If you're upgrading from v3.x:
- Ensure you're using Node.js 22 or higher
- Update your import statements to use ES module syntax:
// Before (v3.x) const { chunkArrayBySize } = require('@shelf/array-chunk-by-size'); // After (v4.x) import { chunkArrayBySize } from '@shelf/array-chunk-by-size';
- If you're using TypeScript, ensure your
tsconfig.jsonsupports ES modules
Full Changelog: v3.1.0...v4.0.0
v3.0.0
What's Changed
- Added TS Support by @harazdovskiy in #18
New Contributors
- @harazdovskiy made their first contribution in #18
Full Changelog: v2.1.1...v.3.0.0