v2.0.0
Breaking changes:
- Rewritten source code in TypeScript (instead of Flow)
- Modern ESM and CJS dual exports (fully tree-shakable when using ESM)
- Massively reduced bundle size
- Targeted ES2015 (instead of ES5)
- Support only TypeScript versions >= 4.3
- Drop Flow support1
- Drop Node 10.x support
icompact
,compact
, andcompactObject
functions will now also removenull
values, not onlyundefined
-
I'm still open to bundling Flow types within this package, but only if that can be supported in a maintenance-free way, for example by using a script that will generate
*.flow
files from TypeScript source files. If someone can add support for that, I'm open to pull requests! 🙏 ↩