Skip to content

v2.0.0

Compare
Choose a tag to compare
@nvie nvie released this 10 Apr 09:35
· 100 commits to main since this release

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, and compactObject functions will now also remove null values, not only undefined
  1. 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! 🙏