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
- 5
- changes to make
- 0
- advisories fixed
- 4
- new
- 5
- fixes
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
22.3.0nothing new or fixed in the note
- New
Add support for Core Audio Format (CAF) (#805) bde605a
- New
Add support for DSDIFF (#804) e49d5b7
- New
- Fixed
Fix streamed OOXML files being detected as zip (#801) 1347414
- Fixed
- New
Add support for ISO 9660 (.iso) (#796) a675457
- New
- 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
- Fixed
- Fixed
Work around esbuild resolving Node-only imports ce4262f
- Fixed
- Breaking
Requires Node.js 22
- Breaking
Dropped Node.js
stream.Readablesupport fromfileTypeFromStream()andfileTypeStream() - Breaking
Sub-exports (e.g.
file-type/core) have been removed. Import everything fromfile-typedirectly. - Breaking
The
ReadableStreamWithFileTypetype has been removed. UseAnyWebReadableByteStreamWithFileTypeinstead. - 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
- Breaking
3 other lines we could not sort, mostly version bumps
- 22.3.0
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.1.0
Suppress Vite and webpack warnings for the intentional runtime import 2da7522
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.