Skip to content

4.41.0: Build custom bundles with `npx exifreader build`

Latest

Choose a tag to compare

@mattiasw mattiasw released this 08 Jun 09:32
· 10 commits to main since this release

Added

  • npx exifreader build command to (re)build a custom bundle from the
    exifreader configuration in your package.json. This is the supported
    replacement for the automatic postinstall rebuild and works the same way
    with npm, yarn, and pnpm.

Changed

  • Custom builds that exclude image formats or metadata groups are now smaller.
    The metadata merge pipeline no longer carries the merge handlers for excluded
    PNG, JPEG XL, ICC, and XMP data, so for example a JPEG plus Exif build drops
    by around 0.8 KiB gzipped.

Deprecated

  • The automatic custom build via the npm postinstall script is deprecated and
    will be removed in v5. Use npx exifreader build instead.

Fixed

  • Custom builds now transpile to ES5 even when run with NODE_ENV=production.
    @babel/preset-env is applied unconditionally in babel.config.json instead
    of only under Babel's default env.
  • Custom builds now install their build toolchain in a unique OS temporary
    directory instead of temporarily moving exifreader's own node_modules
    aside, so an interrupted or concurrent build can no longer strand or corrupt
    the install.

Full Changelog: v4.40.5...v4.41.0