Packages

file-type

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

Upgrading file-type from 15.0.0 to 21.3.1

54 releases in betweenevery note read

Other targets from 15.0.0Newest 15.x15.0.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

1 advisory still affects 21.3.1

Upgrading to 21.3.2 clears it.

Release by release

  1. 21.3.1nothing new or fixed in the note

  2. 21.3.0

    4 Jan 20261 new
    • new

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

  3. 21.2.0

    25 Dec 20252 new
    • new

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

    • new

      Add support for JMP (#784) 093dba0

  4. 21.1.1

    19 Nov 20251 fix
    • fixed

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

  5. 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

  6. 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

  7. 20.5.0

    26 Apr 20251 new
    • new

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

  8. 20.4.1

    13 Mar 20251 new
    • new

      Add workaround for using bundler as the module-resolution in TypeScript (#744) 90bfe33

10 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
  • Improve decoding of mime-type in ZIP file (#546) 1b10a71

    17.1.2
  • Update strtok3 & token-types dependencies for explicit node:buffer imports (#507) b27fb5f

    17.0.1
  • Upgrade dependencies 3b08ab1

    16.5.3
  • Lock strtok3 dependency

    16.5.2
  • Remove ASAR 240 bytes of JSON payload length limitation (#453) 07101ac

    16.5.0
  • Remove an unnecessary dependency (#458) 3df0ed1

    16.5.0
  • Improve PDF / AI (Adobe Illustrator) recognition (#396) 9736aa3

    16.2.0

2 internal lines (docs, tests, tooling) left out.