Skip to content

Release 39.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Nov 22:56
Immutable release. Only release title and notes can be modified.
39.4.0
6a8f371
  • 🌱 Upgraded ExifTool to version 13.64.

  • ✨ GroupedTags fields are now generated from the sample images. Each Group:TagName field has its own JSDoc frequency and example, and its own type, all taken from that group's values; where the generator curates a tag's type, every group's field also includes that type, so XMP:ISO is number | number[] while EXIF:ISO is number. IDE hover and go-to-definition now work on these fields. APP0...APP15 tags that the sample images had are now typed instead of unknown. The fields live in new exported per-group interfaces, such as EXIFGroupedTags and XMPGroupedTags, which the new GeneratedGroupedTags interface extends, and GroupedTags extends that. Because a group-prefixed tag() lookup against a bare-mode read returns the bare value, its return type now also includes the bare name's Tags type: tag(tags, "EXIF:BitsPerSample") is string | number | undefined.

  • ✨/💔 Type-checking this library is faster: tag()'s first overload now ends in (K extends keyof UngroupedVendoredTags ? Tags[K] : never) instead of (K extends keyof Tags ? Tags[K] : never), which took 44% of the project's TypeScript 6 check time. This doesn't change the return type of any call, but a generic wrapper whose explicit return type repeats the old conditional no longer compiles: copy tag()'s current return type, or drop the annotation.

  • ✨ Tags gains 67 fields, including ComponentsConfiguration and FlashpixVersion (in about 95% of the sample images), which a sorting bug in the tag generator had dropped. No fields were removed. WhiteBalanceBracket is now typed number instead of string, matching the sample images' values. Fields whose sample values have no majority type now get every observed type instead of string: GimbalYawDegree, OffsetX, OffsetY, and Zoom are now number | string, Filters is string | string[], and SonyTimeMinSec is ExifTime | string.

  • 🐞 DuckyTags, JPEGTags, JSONTags, and JUMBFTags are now exported. Tags extends them, but the package didn't export them by name.

  • 📦 Rebuilt Tags and GeneratedGroupedTags.

Full Changelog: 39.3.0...39.4.0