fix(deps): update dependency file-type to v22 by renovate[bot] · Pull Request #16653 · nestjs/nest · GitHub
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.1 age confidence

Release Notes

sindresorhus/file-type (file-type)

v22.0.1

Compare Source

  • Fix: Work around esbuild resolving Node-only imports ce4262f

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: (UTC)

  • 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 6 times, most recently from f4e1be7 to c4efd46 Compare April 3, 2026 07:33
@renovate renovate Bot force-pushed the renovate/file-type-22.x branch 14 times, most recently from d48a101 to 41fc855 Compare April 10, 2026 09:16
@renovate renovate Bot force-pushed the renovate/file-type-22.x branch 2 times, most recently from f6e57eb to 5ec3e55 Compare April 13, 2026 07:28
@renovate renovate Bot force-pushed the renovate/file-type-22.x branch from 5ec3e55 to 932c615 Compare April 13, 2026 07:31
@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Apr 13, 2026

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