Skip to content

fix(deps): update dependency file-type to v22#16653

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/file-type-22.x
Open

fix(deps): update dependency file-type to v22#16653
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/file-type-22.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Mar 26, 2026

This PR contains the following updates:

Package Change Age Confidence
file-type 21.3.422.0.0 age confidence

Release Notes

sindresorhus/file-type (file-type)

v22.0.0

Compare Source

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


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Mar 26, 2026
@renovate renovate bot force-pushed the renovate/file-type-22.x branch 4 times, most recently from 250163a to 5206e4d Compare March 31, 2026 08:51
@renovate renovate bot force-pushed the renovate/file-type-22.x branch from 5206e4d to f4e1be7 Compare April 1, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants