Skip to content

Update dependency file-type to v22#1659

Merged
PaulAdamDavis merged 1 commit intomainfrom
renovate/file-type-22.x
Mar 30, 2026
Merged

Update dependency file-type to v22#1659
PaulAdamDavis merged 1 commit intomainfrom
renovate/file-type-22.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Mar 29, 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: Never, 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.

@PaulAdamDavis PaulAdamDavis merged commit 9328217 into main Mar 30, 2026
2 checks passed
@PaulAdamDavis PaulAdamDavis deleted the renovate/file-type-22.x branch March 30, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant