Added
npx exifreader buildcommand to (re)build a custom bundle from the
exifreaderconfiguration in yourpackage.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
postinstallscript is deprecated and
will be removed in v5. Usenpx exifreader buildinstead.
Fixed
- Custom builds now transpile to ES5 even when run with
NODE_ENV=production.
@babel/preset-envis applied unconditionally inbabel.config.jsoninstead
of only under Babel's default env. - Custom builds now install their build toolchain in a unique OS temporary
directory instead of temporarily movingexifreader's ownnode_modules
aside, so an interrupted or concurrent build can no longer strand or corrupt
the install.
Full Changelog: v4.40.5...v4.41.0