Packages

file-type

22.2.0 · 14 Oct 2026MIT51.4M / weekRepositoryHomepagenpmAtom feed

Upgrading file-type from 18.7.0 to 21.3.2

24 releases in betweenevery note read

Other targets from 18.7.0Clears its advisory21.3.1Latest22.2.0

Before you upgrade

Tick each one off as you go
  • breaking21.0.0
  • breaking21.0.0
  • breaking21.0.0
  • breaking21.0.0
  • breaking21.0.0
  • breaking21.0.0
  • breaking20.0.0
  • breaking20.0.0
  • breaking19.0.0
  • breaking19.0.0

Security

Fixes 1 advisory affecting 18.7.0

Release by release

  1. 21.3.2

    13 Mar 20261 fix
    • fixed

      Fix bound recursive BOM and ID3 detection 370ed91

  2. 21.3.1nothing new or fixed in the note

  3. 21.3.0

    4 Jan 20261 new
    • new

      Add support for Mach-O Universal (aka "Fat") binaries and additional architectures (#779) d223491

  4. 21.2.0

    25 Dec 20252 new
    • new

      Add support for SPSS data files (#787) 889f638

    • new

      Add support for JMP (#784) 093dba0

  5. 21.1.1

    19 Nov 20251 fix
    • fixed

      Fix handling of partial Gunzip file (#783) 710e053

  6. 21.1.0

    10 Nov 20253 new · 1 fix
    • new

      Add support for .tar.gz (gunzipped tarball file) (#763) eda03a7

    • new

      Add support for Windows registry (.reg) files 0db61ec 7d2ddcf

    • new

      Add support for Windows registry hive file (.dat) (#767) f8d62be

    • fixed

      Handle partial unzip (#773) 7ad3a90

  7. 21.0.0

    23 May 20252 new · 1 fix
    • new

      Allow options to be directly passed to exported functions (#752) d264029

    • new

      Add mpegOffsetTolerance option (#646) c40840a

    • fixed

      Fix detection of some PAX TAR formats (#762) 574d0d6

  8. 20.5.0

    26 Apr 20251 new
    • new

      Add support Office PowerPoint 2007 (macro-enabled) slide show (#747) f1b4c7a

3 other lines we could not sort, mostly version bumps
  • Improve WebP detection (#733) ef486f1

    20.1.0
  • Replace Buffer usage with Uint8Array (#633) 00e051bceaf0791ffc1b08b36aee196ccdd95606

    19.1.0
  • Please note that fileTypeFromBlob(blob) is streaming the Blob instead of buffering, which require at least Node.js ≥ 20.

    19.1.0

1 internal line (docs, tests, tooling) left out.