An open index of dependabot pull requests across open source projects.

Bump file-type from 21.3.2 to 22.0.0

Closed
Number: #43618
Type: Pull Request
State: Closed
Author: dependabot[bot] dependabot[bot]
Association: Unknown
Comments: 2
Created: March 31, 2026 at 06:03 AM UTC
(3 months ago)
Updated: March 31, 2026 at 06:03 AM UTC
(3 months ago)
Closed: March 31, 2026 at 06:03 AM UTC
(3 months ago)
Time to Close: less than a minute
Labels:
triage dependencies javascript
Description:

Bumps file-type from 21.3.2 to 22.0.0.

Release notes

Sourced from file-type's releases.

v22.0.0

Breaking

  • Requires Node.js 22

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

    // Before
    import fs from 'node:fs';
    fileTypeFromStream(fs.createReadStream('file.mp4'));
    

    // After
    import fs from 'node:fs';
    import {Readable} from 'node:stream';
    fileTypeFromStream(Readable.toWeb(fs.createReadStream('file.mp4')));

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

  • The ReadableStreamWithFileType type has been removed. Use AnyWebReadableByteStreamWithFileType instead.

  • Several MIME types have been corrected or normalized:

    Type Old MIME New MIME
    lz application/x-lzip application/lzip
    lnk application/x.ms.shortcut application/x-ms-shortcut
    Apple Alias application/x.apple.alias application/x-ft-apple.alias
    fbx application/x.autodesk.fbx application/x-ft-fbx
    Draco application/vnd.google.draco application/x-ft-draco

    MIME subtypes prefixed with x-ft- are custom types defined by this package (not IANA-registered).

Improvements

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

Fixes

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

https://github.com/sindresorhus/file-type/compare/v21.3.4...v22.0.0

v21.3.4

  • Harden parser more aec20a0

https://github.com/sindresorhus/file-type/compare/v21.3.3...v21.3.4

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
This pull request is locked.
Package Dependencies
Package:
file-type
Ecosystem:
npm
Version Change:
21.3.2 → 22.0.0
Update Type:
Major
Technical Details
ID: 14926921
UUID: 4176113948
Node ID: PR_kwDOC01lZ87O1rAI
Host: GitHub
Repository: github/docs