Packages

file-type

22.3.0 · 29 Oct 2026MIT83.2M / weekRepositoryHomepagenpmAtom feed

Upgrading file-type From 21.3.4 to 22.3.0

7 releases in betweenevery note read

Before you upgrade

Tick each one off as you go
  • Breaking22.0.0
  • Breaking22.0.0
  • Breaking22.0.0
  • Breaking22.0.0
  • Breaking22.0.0

Release by release

  1. 22.3.0nothing new or fixed in the note

  2. 22.2.0

    14 Oct 20262 new
    • New

      Add support for Core Audio Format (CAF) (#805) bde605a

    • New

      Add support for DSDIFF (#804) e49d5b7

  3. 22.1.1

    17 Sep 20261 fix
    • Fixed

      Fix streamed OOXML files being detected as zip (#801) 1347414

  4. 22.1.0

    11 Sep 20261 new
    • New

      Add support for ISO 9660 (.iso) (#796) a675457

  5. 22.0.2

    15 Aug 20262 fixes
    • Fixed

      Fix ZIP detection on Node.js 24 for entries with a data descriptor f24af84

    • Fixed

      Fix UTF-16 LE text being detected as MPEG audio c891929

  6. 22.0.1

    9 Apr 20261 fix
    • Fixed

      Work around esbuild resolving Node-only imports ce4262f

  7. 22.0.0

    Migration needed26 Mar 20261 new · 1 fix
    • Breaking

      Requires Node.js 22

    • Breaking

      Dropped Node.js stream.Readable support from fileTypeFromStream() and fileTypeStream()

    • Breaking

      Sub-exports (e.g. file-type/core) have been removed. Import everything from file-type directly.

    • Breaking

      The ReadableStreamWithFileType type has been removed. Use AnyWebReadableByteStreamWithFileType instead.

    • Breaking

      Several MIME types have been corrected or normalized:

    • New

      Added detection for Apple iWork files: .key (Keynote), .pages (Pages), .numbers (Numbers)

    • Fixed

      Fixed LibreOffice OOXML files being incorrectly detected as ZIP when reading from streams

3 other lines we could not sort, mostly version bumps
  • Harden EBML header traversal with a bounded tokenizer view (#813) 08bef8e

    22.3.0
  • Refactor ZIP detection to use upstream traversal limits (#812) 0c14b6f

    22.3.0
  • Suppress Vite and webpack warnings for the intentional runtime import 2da7522

    22.1.0

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

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.