Update dependency file-type to v22 #11

Open
renovate wants to merge 1 commits from renovate/file-type-22.x into master
Collaborator

This PR contains the following updates:

Package Type Update Change
file-type dependencies major ^16.5.4^22.0.0

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

v21.3.4

Compare Source


v21.3.3

Compare Source


v21.3.2

Compare Source

  • Fix ZIP bomb in known-size ZIP probing (GHSA-j47w-4g3g-c36v) a155cd7
  • Fix bound recursive BOM and ID3 detection 370ed91

v21.3.1

Compare Source


v21.3.0

Compare Source

  • Add support for Mach-O Universal (aka "Fat") binaries and additional architectures (#​779) d223491

v21.2.0

Compare Source


v21.1.1

Compare Source


v21.1.0

Compare Source


v21.0.0

Compare Source

Breaking
  • Require Node.js 20 24aec1f
  • Drop Adobe Illustrator (.ai) detection support (#​743) af169f3
  • Correct Matroska (video) MIME-type to formal IANA registration (#​753) f53f5ff
  • Correct FLAC MIME-type to formal IANA registration (#​755) b9fda36
  • Correct Apache Parquet MIME-type to formal IANA registration (#​748) 98e3f8e
  • Correct Apache Arrow MIME-type to formal IANA registration (#​754) 7184775
Improvements
Fixes

v20.5.0

Compare Source

  • Add support Office PowerPoint 2007 (macro-enabled) slide show (#​747) f1b4c7a

v20.4.1

Compare Source

  • Add workaround for using bundler as the module-resolution in TypeScript (#​744) 90bfe33

v20.4.0

Compare Source


v20.3.0

Compare Source


v20.2.0

Compare Source


v20.1.0

Compare Source


v20.0.1

Compare Source


v20.0.0

Compare Source

Breaking
  • Drop MIME-type and extension enumeration in types (#​693) 0ff11c6
  • Remove NodeFileTypeParser in favor of using FileTypeParser on all platforms (#​707) ff8eed8
Improvements
Fixes

v19.6.0

Compare Source

v19.5.0

Compare Source

v19.4.1

Compare Source

  • Fix passing options to fileTypeStream in default entry point (#​653) ea314a4

v19.4.0

Compare Source

v19.3.0

Compare Source

v19.2.0

Compare Source

v19.1.1

Compare Source

  • Fix Node.js entry point export fileTypeFromTokenizer (#​639) 20fdba7

v19.1.0

Compare Source

Release notes

  • Please note that fileTypeFromBlob(blob) is streaming the Blob instead of buffering, which require at least Node.js ≥ 20.

v19.0.0

Compare Source

Breaking
  • Require Node.js 18 7f4b30b
  • Use mime type audio/wav instead of audio/vnd.wave for .wav files (#​620) c7c923c

v18.7.0

Compare Source

v18.6.0

Compare Source

v18.5.0

Compare Source

v18.4.0

Compare Source

v18.3.0

Compare Source

v18.2.1

Compare Source

v18.2.0

Compare Source

v18.1.0

Compare Source

Improvements
Fixes

v18.0.0

Compare Source

Breaking

v17.1.6

Compare Source

v17.1.5

Compare Source

  • Fix PDF detection in some cases a0c24eb

v17.1.4

Compare Source

v17.1.3

Compare Source

v17.1.2

Compare Source

v17.1.1

Compare Source

v17.1.0

Compare Source

v17.0.2

Compare Source

  • Prevent "Concurrent read operation" error to be thrown in some cases while reading from a stream (#​510) 565f7f3

v17.0.1

Compare Source

  • Update strtok3 & token-types dependencies for explicit node:buffer imports (#​507) b27fb5f

v17.0.0

Compare Source

Breaking
  • Require Node.js 12.20 (#​472) 826b4ad
  • This package is now pure ESM. Please read this.
  • Remove the /browser sub-export 287e361
    • Browser support is now included by default.
  • Moved from a default export to named exports:
    require('file-type').fromBufferimport {fileTypeFromBuffer} from 'file-type'
    require('file-type').fromFileimport {fileTypeFromFile} from 'file-type'
    require('file-type').fromStreamimport {fileTypeFromStream} from 'file-type'
    require('file-type').fromTokenizerimport {fileTypeFromTokenizer} from 'file-type'
    require('file-type').streamimport {fileTypeStream} from 'file-type'
    require('file-type').extensionsimport {supportedExtensions} from 'file-type'
    require('file-type').mimeTypesimport {supportedMimeTypes} from 'file-type'
Improvements
Fixes

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 has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [file-type](https://github.com/sindresorhus/file-type) | dependencies | major | [`^16.5.4` → `^22.0.0`](https://renovatebot.com/diffs/npm/file-type/16.5.4/22.0.1) | --- ### Release Notes <details> <summary>sindresorhus/file-type (file-type)</summary> ### [`v22.0.1`](https://github.com/sindresorhus/file-type/releases/tag/v22.0.1) [Compare Source](https://github.com/sindresorhus/file-type/compare/v22.0.0...v22.0.1) - Fix: Work around esbuild resolving Node-only imports [`ce4262f`](https://github.com/sindresorhus/file-type/commit/ce4262f) *** ### [`v22.0.0`](https://github.com/sindresorhus/file-type/releases/tag/v22.0.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v21.3.4...v22.0.0) ##### Breaking - Requires Node.js 22 - Dropped Node.js `stream.Readable` support from `fileTypeFromStream()` and `fileTypeStream()` - These now only accept a web `ReadableStream`. Migrate with [`Readable.toWeb()`](https://nodejs.org/api/stream.html#streamreadabletowebstreamreadable-options): ```js // 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 *** ### [`v21.3.4`](https://github.com/sindresorhus/file-type/releases/tag/v21.3.4) [Compare Source](https://github.com/sindresorhus/file-type/compare/v21.3.3...v21.3.4) - Harden parser more [`aec20a0`](https://github.com/sindresorhus/file-type/commit/aec20a0) *** ### [`v21.3.3`](https://github.com/sindresorhus/file-type/releases/tag/v21.3.3) [Compare Source](https://github.com/sindresorhus/file-type/compare/v21.3.2...v21.3.3) - Harden parser [`c48c90b`](https://github.com/sindresorhus/file-type/commit/c48c90b) [`135f91b`](https://github.com/sindresorhus/file-type/commit/135f91b) *** ### [`v21.3.2`](https://github.com/sindresorhus/file-type/releases/tag/v21.3.2) [Compare Source](https://github.com/sindresorhus/file-type/compare/v21.3.1...v21.3.2) - Fix ZIP bomb in known-size ZIP probing (GHSA-j47w-4g3g-c36v) [`a155cd7`](https://github.com/sindresorhus/file-type/commit/a155cd7) - Fix bound recursive BOM and ID3 detection [`370ed91`](https://github.com/sindresorhus/file-type/commit/370ed91) *** ### [`v21.3.1`](https://github.com/sindresorhus/file-type/releases/tag/v21.3.1) [Compare Source](https://github.com/sindresorhus/file-type/compare/v21.3.0...v21.3.1) - Fix infinite loop in ASF parser on malformed input (<https://github.com/sindresorhus/file-type/security/advisories/GHSA-5v7r-6r5c-r473>) [`319abf8`](https://github.com/sindresorhus/file-type/commit/319abf8) *** ### [`v21.3.0`](https://github.com/sindresorhus/file-type/releases/tag/v21.3.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v21.2.0...v21.3.0) - Add support for Mach-O Universal (aka "Fat") binaries and additional architectures ([#&#8203;779](https://github.com/sindresorhus/file-type/issues/779)) [`d223491`](https://github.com/sindresorhus/file-type/commit/d223491) *** ### [`v21.2.0`](https://github.com/sindresorhus/file-type/releases/tag/v21.2.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v21.1.1...v21.2.0) - Add support for SPSS data files ([#&#8203;787](https://github.com/sindresorhus/file-type/issues/787)) [`889f638`](https://github.com/sindresorhus/file-type/commit/889f638) - Add support for JMP ([#&#8203;784](https://github.com/sindresorhus/file-type/issues/784)) [`093dba0`](https://github.com/sindresorhus/file-type/commit/093dba0) *** ### [`v21.1.1`](https://github.com/sindresorhus/file-type/releases/tag/v21.1.1) [Compare Source](https://github.com/sindresorhus/file-type/compare/v21.1.0...v21.1.1) - Fix handling of partial Gunzip file ([#&#8203;783](https://github.com/sindresorhus/file-type/issues/783)) [`710e053`](https://github.com/sindresorhus/file-type/commit/710e053) *** ### [`v21.1.0`](https://github.com/sindresorhus/file-type/releases/tag/v21.1.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v21.0.0...v21.1.0) - Add support for `.tar.gz` (gunzipped tarball file) ([#&#8203;763](https://github.com/sindresorhus/file-type/issues/763)) [`eda03a7`](https://github.com/sindresorhus/file-type/commit/eda03a7) - Add support for Windows registry (.reg) files [`0db61ec`](https://github.com/sindresorhus/file-type/commit/0db61ec) [`7d2ddcf`](https://github.com/sindresorhus/file-type/commit/7d2ddcf) - Add support for Windows registry hive file (`.dat`) ([#&#8203;767](https://github.com/sindresorhus/file-type/issues/767)) [`f8d62be`](https://github.com/sindresorhus/file-type/commit/f8d62be) - Fix: Handle partial unzip ([#&#8203;773](https://github.com/sindresorhus/file-type/issues/773)) [`7ad3a90`](https://github.com/sindresorhus/file-type/commit/7ad3a90) *** ### [`v21.0.0`](https://github.com/sindresorhus/file-type/releases/tag/v21.0.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v20.5.0...v21.0.0) ##### Breaking - Require Node.js 20 [`24aec1f`](https://github.com/sindresorhus/file-type/commit/24aec1f) - Drop Adobe Illustrator (.ai) detection support ([#&#8203;743](https://github.com/sindresorhus/file-type/issues/743)) [`af169f3`](https://github.com/sindresorhus/file-type/commit/af169f3) - Correct Matroska (video) MIME-type to formal IANA registration ([#&#8203;753](https://github.com/sindresorhus/file-type/issues/753)) [`f53f5ff`](https://github.com/sindresorhus/file-type/commit/f53f5ff) - Correct FLAC MIME-type to formal IANA registration ([#&#8203;755](https://github.com/sindresorhus/file-type/issues/755)) [`b9fda36`](https://github.com/sindresorhus/file-type/commit/b9fda36) - Correct Apache Parquet MIME-type to formal IANA registration ([#&#8203;748](https://github.com/sindresorhus/file-type/issues/748)) [`98e3f8e`](https://github.com/sindresorhus/file-type/commit/98e3f8e) - Correct Apache Arrow MIME-type to formal IANA registration ([#&#8203;754](https://github.com/sindresorhus/file-type/issues/754)) [`7184775`](https://github.com/sindresorhus/file-type/commit/7184775) ##### Improvements - Allow options to be directly passed to exported functions ([#&#8203;752](https://github.com/sindresorhus/file-type/issues/752)) [`d264029`](https://github.com/sindresorhus/file-type/commit/d264029) - Add `mpegOffsetTolerance` option ([#&#8203;646](https://github.com/sindresorhus/file-type/issues/646)) [`c40840a`](https://github.com/sindresorhus/file-type/commit/c40840a) ##### Fixes - Fix detection of some PAX TAR formats ([#&#8203;762](https://github.com/sindresorhus/file-type/issues/762)) [`574d0d6`](https://github.com/sindresorhus/file-type/commit/574d0d6) *** ### [`v20.5.0`](https://github.com/sindresorhus/file-type/releases/tag/v20.5.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v20.4.1...v20.5.0) - Add support Office PowerPoint 2007 (macro-enabled) slide show ([#&#8203;747](https://github.com/sindresorhus/file-type/issues/747)) [`f1b4c7a`](https://github.com/sindresorhus/file-type/commit/f1b4c7a) *** ### [`v20.4.1`](https://github.com/sindresorhus/file-type/releases/tag/v20.4.1) [Compare Source](https://github.com/sindresorhus/file-type/compare/v20.4.0...v20.4.1) - Add workaround for using `bundler` as the module-resolution in TypeScript ([#&#8203;744](https://github.com/sindresorhus/file-type/issues/744)) [`90bfe33`](https://github.com/sindresorhus/file-type/commit/90bfe33) *** ### [`v20.4.0`](https://github.com/sindresorhus/file-type/releases/tag/v20.4.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v20.3.0...v20.4.0) - Add support for OpenType Font Collection (TTC) ([#&#8203;737](https://github.com/sindresorhus/file-type/issues/737)) [`3e576a6`](https://github.com/sindresorhus/file-type/commit/3e576a6) *** ### [`v20.3.0`](https://github.com/sindresorhus/file-type/releases/tag/v20.3.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v20.2.0...v20.3.0) - Add `node` subpath export ([#&#8203;741](https://github.com/sindresorhus/file-type/issues/741)) [`8d39f66`](https://github.com/sindresorhus/file-type/commit/8d39f66) - Allow require to load file-type as ES Module ([#&#8203;736](https://github.com/sindresorhus/file-type/issues/736)) [`8d39f66`](https://github.com/sindresorhus/file-type/commit/8d39f66) *** ### [`v20.2.0`](https://github.com/sindresorhus/file-type/releases/tag/v20.2.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v20.1.0...v20.2.0) - Add support for RealMedia ([#&#8203;740](https://github.com/sindresorhus/file-type/issues/740)) [`d05d49d`](https://github.com/sindresorhus/file-type/commit/d05d49d) *** ### [`v20.1.0`](https://github.com/sindresorhus/file-type/releases/tag/v20.1.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v20.0.1...v20.1.0) - Improve WebP detection ([#&#8203;733](https://github.com/sindresorhus/file-type/issues/733)) [`ef486f1`](https://github.com/sindresorhus/file-type/commit/ef486f1) *** ### [`v20.0.1`](https://github.com/sindresorhus/file-type/releases/tag/v20.0.1) [Compare Source](https://github.com/sindresorhus/file-type/compare/v20.0.0...v20.0.1) - Fix detecting small PDF file ([#&#8203;728](https://github.com/sindresorhus/file-type/issues/728)) [`f34e9f7`](https://github.com/sindresorhus/file-type/commit/f34e9f7) *** ### [`v20.0.0`](https://github.com/sindresorhus/file-type/releases/tag/v20.0.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v19.6.0...v20.0.0) ##### Breaking - Drop MIME-type and extension enumeration in types ([#&#8203;693](https://github.com/sindresorhus/file-type/issues/693)) [`0ff11c6`](https://github.com/sindresorhus/file-type/commit/0ff11c6) - Remove `NodeFileTypeParser` in favor of using `FileTypeParser` on all platforms ([#&#8203;707](https://github.com/sindresorhus/file-type/issues/707)) [`ff8eed8`](https://github.com/sindresorhus/file-type/commit/ff8eed8) ##### Improvements - Give API access to `FileTypeParser#detectors` ([#&#8203;704](https://github.com/sindresorhus/file-type/issues/704)) [`7e72bbc`](https://github.com/sindresorhus/file-type/commit/7e72bbc) - Improve Nikon RAW NEF (Tiff) format detection ([#&#8203;670](https://github.com/sindresorhus/file-type/issues/670)) [`cf6fc1e`](https://github.com/sindresorhus/file-type/commit/cf6fc1e) - Add support for Java archive (`.jar`) ([#&#8203;719](https://github.com/sindresorhus/file-type/issues/719)) [`8651809`](https://github.com/sindresorhus/file-type/commit/8651809) - Add support for MSOffice macro-enabled docs and templates ([#&#8203;720](https://github.com/sindresorhus/file-type/issues/720)) [`7fe5667`](https://github.com/sindresorhus/file-type/commit/7fe5667) - Add support for OpenDocument graphics and templates ([#&#8203;718](https://github.com/sindresorhus/file-type/issues/718)) [`4db407d`](https://github.com/sindresorhus/file-type/commit/4db407d) - Add support for Microsoft Excel template with macros (.xltm) ([#&#8203;714](https://github.com/sindresorhus/file-type/issues/714)) [`1fe621a`](https://github.com/sindresorhus/file-type/commit/1fe621a) - Add support for Microsoft Word template (.dotx) ([#&#8203;713](https://github.com/sindresorhus/file-type/issues/713)) [`643ef78`](https://github.com/sindresorhus/file-type/commit/643ef78) - Add support for Microsoft Excel template (`.xltx`) ([#&#8203;712](https://github.com/sindresorhus/file-type/issues/712)) [`0dab3e0`](https://github.com/sindresorhus/file-type/commit/0dab3e0) - Add support for Microsoft PowerPoint template ( `.potx`) ([#&#8203;710](https://github.com/sindresorhus/file-type/issues/710)) [`f978619`](https://github.com/sindresorhus/file-type/commit/f978619) - Add support for ZIP decompression using `@tokenizer/inflate` ([#&#8203;695](https://github.com/sindresorhus/file-type/issues/695)) [`399b0f1`](https://github.com/sindresorhus/file-type/commit/399b0f1) - Add support for `.lz4` file format ([#&#8203;706](https://github.com/sindresorhus/file-type/issues/706)) [`74acf94`](https://github.com/sindresorhus/file-type/commit/74acf94) - Add support for format `.drc`, Google's Draco 3D Data Compression ([#&#8203;702](https://github.com/sindresorhus/file-type/issues/702)) [`e99257d`](https://github.com/sindresorhus/file-type/commit/e99257d) ##### Fixes - Fix code sequence "File Type Box" detection ([#&#8203;705](https://github.com/sindresorhus/file-type/issues/705)) [`7d4dd8d`](https://github.com/sindresorhus/file-type/commit/7d4dd8d) *** ### [`v19.6.0`](https://github.com/sindresorhus/file-type/releases/tag/v19.6.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v19.5.0...v19.6.0) - Add ability to abort async operations ([#&#8203;667](https://github.com/sindresorhus/file-type/issues/667)) [`5ce98f3`](https://github.com/sindresorhus/file-type/commit/5ce98f3) - Add support for APK ([#&#8203;679](https://github.com/sindresorhus/file-type/issues/679)) [`7b10012`](https://github.com/sindresorhus/file-type/commit/7b10012) - Fix Opus MIME-type ([#&#8203;682](https://github.com/sindresorhus/file-type/issues/682)) [`4dcb8c5`](https://github.com/sindresorhus/file-type/commit/4dcb8c5) - Fix: Ensure web-stream is released after detection ([#&#8203;680](https://github.com/sindresorhus/file-type/issues/680)) [`9945877`](https://github.com/sindresorhus/file-type/commit/9945877) ### [`v19.5.0`](https://github.com/sindresorhus/file-type/releases/tag/v19.5.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v19.4.1...v19.5.0) - Add support for WebVTT ([#&#8203;658](https://github.com/sindresorhus/file-type/issues/658)) [`21ed763`](https://github.com/sindresorhus/file-type/commit/21ed763) ### [`v19.4.1`](https://github.com/sindresorhus/file-type/releases/tag/v19.4.1) [Compare Source](https://github.com/sindresorhus/file-type/compare/v19.4.0...v19.4.1) - Fix passing options to `fileTypeStream` in default entry point ([#&#8203;653](https://github.com/sindresorhus/file-type/issues/653)) [`ea314a4`](https://github.com/sindresorhus/file-type/commit/ea314a4) ### [`v19.4.0`](https://github.com/sindresorhus/file-type/releases/tag/v19.4.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v19.3.0...v19.4.0) - Add support for web streams for `fileTypeStream()` ([#&#8203;649](https://github.com/sindresorhus/file-type/issues/649)) [`2000141`](https://github.com/sindresorhus/file-type/commit/2000141) - Fix options in combination with `fileTypeStream()` ([#&#8203;650](https://github.com/sindresorhus/file-type/issues/650)) [`bd3b5a4`](https://github.com/sindresorhus/file-type/commit/bd3b5a4) ### [`v19.3.0`](https://github.com/sindresorhus/file-type/releases/tag/v19.3.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v19.2.0...v19.3.0) - Add support for Microsoft Visio files ([#&#8203;647](https://github.com/sindresorhus/file-type/issues/647)) [`2744be7`](https://github.com/sindresorhus/file-type/commit/2744be7) ### [`v19.2.0`](https://github.com/sindresorhus/file-type/releases/tag/v19.2.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v19.1.1...v19.2.0) - Add `NodeFileTypeParser#fromFile()` ([#&#8203;644](https://github.com/sindresorhus/file-type/issues/644)) [`9d2ee02`](https://github.com/sindresorhus/file-type/commit/9d2ee02) - Update dependencies ([#&#8203;645](https://github.com/sindresorhus/file-type/issues/645)) [`6440b3d`](https://github.com/sindresorhus/file-type/commit/6440b3d) ### [`v19.1.1`](https://github.com/sindresorhus/file-type/releases/tag/v19.1.1) [Compare Source](https://github.com/sindresorhus/file-type/compare/v19.1.0...v19.1.1) - Fix Node.js entry point export `fileTypeFromTokenizer` ([#&#8203;639](https://github.com/sindresorhus/file-type/issues/639)) [`20fdba7`](https://github.com/sindresorhus/file-type/commit/20fdba7) ### [`v19.1.0`](https://github.com/sindresorhus/file-type/releases/tag/v19.1.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v19.0.0...v19.1.0) - Replace Buffer usage with Uint8Array ([#&#8203;633](https://github.com/sindresorhus/file-type/issues/633)) [`00e051b`](https://github.com/sindresorhus/file-type/commit/00e051bceaf0791ffc1b08b36aee196ccdd95606) - Add support for reading from a web stream ([#&#8203;635](https://github.com/sindresorhus/file-type/issues/635)) [`b815b5e`](https://github.com/sindresorhus/file-type/commit/b815b5e) #### Release notes - Please note that [fileTypeFromBlob(blob)](https://github.com/sindresorhus/file-type?tab=readme-ov-file#filetypefromblobblob) is streaming the Blob instead of buffering, which require at least Node.js ≥ 20. ### [`v19.0.0`](https://github.com/sindresorhus/file-type/releases/tag/v19.0.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v18.7.0...v19.0.0) ##### Breaking - Require Node.js 18 [`7f4b30b`](https://github.com/sindresorhus/file-type/commit/7f4b30b) - Use mime type `audio/wav` instead of `audio/vnd.wave` for .wav files ([#&#8203;620](https://github.com/sindresorhus/file-type/issues/620)) [`c7c923c`](https://github.com/sindresorhus/file-type/commit/c7c923c) ### [`v18.7.0`](https://github.com/sindresorhus/file-type/releases/tag/v18.7.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v18.6.0...v18.7.0) - Add support for FBX (Filmbox) ([#&#8203;605](https://github.com/sindresorhus/file-type/issues/605)) [`4b7eb75`](https://github.com/sindresorhus/file-type/commit/4b7eb75) - Support adding custom detectors ([#&#8203;603](https://github.com/sindresorhus/file-type/issues/603)) [`f5b232c`](https://github.com/sindresorhus/file-type/commit/f5b232c) ### [`v18.6.0`](https://github.com/sindresorhus/file-type/releases/tag/v18.6.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v18.5.0...v18.6.0) - Add support for Mach-O ([#&#8203;615](https://github.com/sindresorhus/file-type/issues/615)) [`ec4980b`](https://github.com/sindresorhus/file-type/commit/ec4980b) ### [`v18.5.0`](https://github.com/sindresorhus/file-type/releases/tag/v18.5.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v18.4.0...v18.5.0) - Add support for ICC ([#&#8203;601](https://github.com/sindresorhus/file-type/issues/601)) [`0ccebb1`](https://github.com/sindresorhus/file-type/commit/0ccebb1) ### [`v18.4.0`](https://github.com/sindresorhus/file-type/releases/tag/v18.4.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v18.3.0...v18.4.0) - Add support for Avro ([#&#8203;597](https://github.com/sindresorhus/file-type/issues/597)) [`34ab7d4`](https://github.com/sindresorhus/file-type/commit/34ab7d4) ### [`v18.3.0`](https://github.com/sindresorhus/file-type/releases/tag/v18.3.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v18.2.1...v18.3.0) - Support reading from `Blob` in Node.js ([#&#8203;588](https://github.com/sindresorhus/file-type/issues/588)) [`1c75cfb`](https://github.com/sindresorhus/file-type/commit/1c75cfb) - Add support for J2C ([#&#8203;596](https://github.com/sindresorhus/file-type/issues/596)) [`51bd34c`](https://github.com/sindresorhus/file-type/commit/51bd34c) - Add support for ACE ([#&#8203;592](https://github.com/sindresorhus/file-type/issues/592)) [`1899fc1`](https://github.com/sindresorhus/file-type/commit/1899fc1) - Add support for cpio ([#&#8203;590](https://github.com/sindresorhus/file-type/issues/590)) [`f84e96c`](https://github.com/sindresorhus/file-type/commit/f84e96c) - Add support for ARJ ([#&#8203;589](https://github.com/sindresorhus/file-type/issues/589)) [`935470e`](https://github.com/sindresorhus/file-type/commit/935470e) - Add support for Java class ([#&#8203;591](https://github.com/sindresorhus/file-type/issues/591)) [`a40f828`](https://github.com/sindresorhus/file-type/commit/a40f828) ### [`v18.2.1`](https://github.com/sindresorhus/file-type/releases/tag/v18.2.1) [Compare Source](https://github.com/sindresorhus/file-type/compare/v18.2.0...v18.2.1) - Fix handling of tiny PDFs ([#&#8203;580](https://github.com/sindresorhus/file-type/issues/580)) [`edf59f8`](https://github.com/sindresorhus/file-type/commit/edf59f8) ### [`v18.2.0`](https://github.com/sindresorhus/file-type/releases/tag/v18.2.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v18.1.0...v18.2.0) - Add support for Apache Parquet ([#&#8203;576](https://github.com/sindresorhus/file-type/issues/576)) [`1ec164b`](https://github.com/sindresorhus/file-type/commit/1ec164b) ### [`v18.1.0`](https://github.com/sindresorhus/file-type/releases/tag/v18.1.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v18.0.0...v18.1.0) ##### Improvements - Add support for AutoDesk DWG format ([#&#8203;572](https://github.com/sindresorhus/file-type/issues/572)) [`47aa221`](https://github.com/sindresorhus/file-type/commit/47aa221) - Add support for Personal Storage Table (PST) file (`.pst`) ([#&#8203;573](https://github.com/sindresorhus/file-type/issues/573)) [`ec3ba33`](https://github.com/sindresorhus/file-type/commit/ec3ba33) - Add support for JPEG-LS (`.jls`) ([#&#8203;568](https://github.com/sindresorhus/file-type/issues/568)) [`976ed4b`](https://github.com/sindresorhus/file-type/commit/976ed4b) ##### Fixes - Fix parsing big-endian encoded TIFF file ([#&#8203;571](https://github.com/sindresorhus/file-type/issues/571)) [`e8bc341`](https://github.com/sindresorhus/file-type/commit/e8bc341) ### [`v18.0.0`](https://github.com/sindresorhus/file-type/releases/tag/v18.0.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v17.1.6...v18.0.0) ##### Breaking - Require Node.js 14 [`6d457c5`](https://github.com/sindresorhus/file-type/commit/6d457c5) ### [`v17.1.6`](https://github.com/sindresorhus/file-type/releases/tag/v17.1.6) [Compare Source](https://github.com/sindresorhus/file-type/compare/v17.1.5...v17.1.6) - Fix an import path ([#&#8203;553](https://github.com/sindresorhus/file-type/issues/553)) [`e843d73`](https://github.com/sindresorhus/file-type/commit/e843d73) ### [`v17.1.5`](https://github.com/sindresorhus/file-type/releases/tag/v17.1.5) [Compare Source](https://github.com/sindresorhus/file-type/compare/v17.1.4...v17.1.5) - Fix PDF detection in some cases [`a0c24eb`](https://github.com/sindresorhus/file-type/commit/a0c24eb) ### [`v17.1.4`](https://github.com/sindresorhus/file-type/releases/tag/v17.1.4) [Compare Source](https://github.com/sindresorhus/file-type/compare/v17.1.3...v17.1.4) - Fix a problem with a dependency ([#&#8203;549](https://github.com/sindresorhus/file-type/issues/549)) [`20a90ab`](https://github.com/sindresorhus/file-type/commit/20a90ab) ### [`v17.1.3`](https://github.com/sindresorhus/file-type/releases/tag/v17.1.3) [Compare Source](https://github.com/sindresorhus/file-type/compare/v17.1.2...v17.1.3) - Fix: Malformed MKV could cause an infinite loop [`2c4d120`](https://github.com/sindresorhus/file-type/commit/2c4d120) - [CVE-2022-36313](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-36313) - Also backported to [16.5.4](https://github.com/sindresorhus/file-type/releases/tag/v16.5.4) ### [`v17.1.2`](https://github.com/sindresorhus/file-type/releases/tag/v17.1.2) [Compare Source](https://github.com/sindresorhus/file-type/compare/v17.1.1...v17.1.2) - Improve decoding of mime-type in ZIP file ([#&#8203;546](https://github.com/sindresorhus/file-type/issues/546)) [`1b10a71`](https://github.com/sindresorhus/file-type/commit/1b10a71) ### [`v17.1.1`](https://github.com/sindresorhus/file-type/releases/tag/v17.1.1) [Compare Source](https://github.com/sindresorhus/file-type/compare/v17.1.0...v17.1.1) - Update dependencies ([#&#8203;519](https://github.com/sindresorhus/file-type/issues/519)) [`1a553e7`](https://github.com/sindresorhus/file-type/commit/1a553e7) ### [`v17.1.0`](https://github.com/sindresorhus/file-type/releases/tag/v17.1.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v17.0.2...v17.1.0) - Add support for ELF (Unix Executable and Linkable Format) ([#&#8203;514](https://github.com/sindresorhus/file-type/issues/514)) [`c4983ea`](https://github.com/sindresorhus/file-type/commit/c4983ea) - Add avif-sequence file for animation ([#&#8203;512](https://github.com/sindresorhus/file-type/issues/512)) [`752afb3`](https://github.com/sindresorhus/file-type/commit/752afb3) ### [`v17.0.2`](https://github.com/sindresorhus/file-type/releases/tag/v17.0.2) [Compare Source](https://github.com/sindresorhus/file-type/compare/v17.0.1...v17.0.2) - Prevent "Concurrent read operation" error to be thrown in some cases while reading from a stream ([#&#8203;510](https://github.com/sindresorhus/file-type/issues/510)) [`565f7f3`](https://github.com/sindresorhus/file-type/commit/565f7f3) ### [`v17.0.1`](https://github.com/sindresorhus/file-type/releases/tag/v17.0.1) [Compare Source](https://github.com/sindresorhus/file-type/compare/v17.0.0...v17.0.1) - Update `strtok3` & `token-types` dependencies for explicit `node:buffer` imports ([#&#8203;507](https://github.com/sindresorhus/file-type/issues/507)) [`b27fb5f`](https://github.com/sindresorhus/file-type/commit/b27fb5f) ### [`v17.0.0`](https://github.com/sindresorhus/file-type/releases/tag/v17.0.0) [Compare Source](https://github.com/sindresorhus/file-type/compare/v16.5.4...v17.0.0) ##### Breaking - Require Node.js 12.20 ([#&#8203;472](https://github.com/sindresorhus/file-type/issues/472)) [`826b4ad`](https://github.com/sindresorhus/file-type/commit/826b4ad) - This package is now pure ESM. **Please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).** - Remove the `/browser` sub-export [`287e361`](https://github.com/sindresorhus/file-type/commit/287e361) - Browser support is now included by default. - Moved from a default export to named exports: `require('file-type').fromBuffer` → `import {fileTypeFromBuffer} from 'file-type'` `require('file-type').fromFile` → `import {fileTypeFromFile} from 'file-type'` `require('file-type').fromStream` → `import {fileTypeFromStream} from 'file-type'` `require('file-type').fromTokenizer` → `import {fileTypeFromTokenizer} from 'file-type'` `require('file-type').stream` → `import {fileTypeStream} from 'file-type'` `require('file-type').extensions` → `import {supportedExtensions} from 'file-type'` `require('file-type').mimeTypes` → `import {supportedMimeTypes} from 'file-type'` ##### Improvements - Improve WebM detection ([#&#8203;486](https://github.com/sindresorhus/file-type/issues/486)) [`b23be62`](https://github.com/sindresorhus/file-type/commit/b23be62) - Improve parsing TIFF files ([#&#8203;482](https://github.com/sindresorhus/file-type/issues/482)) [`82c9ccb`](https://github.com/sindresorhus/file-type/commit/82c9ccb) - Detect both raw and BDAV versions of MPEG-2 Transport Streams ([#&#8203;497](https://github.com/sindresorhus/file-type/issues/497)) [`4ce6838`](https://github.com/sindresorhus/file-type/commit/4ce6838) - Detect XML UTF-16-BE & UTF-16-LE via pattern matching ([#&#8203;490](https://github.com/sindresorhus/file-type/issues/490)) [`a2cf2b3`](https://github.com/sindresorhus/file-type/commit/a2cf2b3) - Support XML encoding with UTF-8 including BOM field ([#&#8203;491](https://github.com/sindresorhus/file-type/issues/491)) [`8bca6b4`](https://github.com/sindresorhus/file-type/commit/8bca6b4) ##### Fixes - Prevent End-Of-Stream error in `stream()` ([#&#8203;468](https://github.com/sindresorhus/file-type/issues/468)) [`67c8fcb`](https://github.com/sindresorhus/file-type/commit/67c8fcb) </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMTAuMTQiLCJ1cGRhdGVkSW5WZXIiOiI0My4xMTAuMTQiLCJ0YXJnZXRCcmFuY2giOiJtYXN0ZXIiLCJsYWJlbHMiOltdfQ==-->
renovate added 1 commit 2026-04-15 01:00:29 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/file-type-22.x:renovate/file-type-22.x
git checkout renovate/file-type-22.x
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: StefanMewes/send2ereader#11