Update dependency file-type to v19
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| file-type | 7.2.0 -> 19.5.0 |
Release Notes
sindresorhus/file-type (file-type)
v19.5.0
v19.4.1
v19.4.0
- Add support for web streams for
fileTypeStream()(#649)2000141 - Fix options in combination with
fileTypeStream()(#650)bd3b5a4
v19.3.0
v19.2.0
v19.1.1
v19.1.0
- Replace Buffer usage with Uint8Array (#633)
00e051b - Add support for reading from a web stream (#635)
b815b5e
Release notes
- Please note that fileTypeFromBlob(blob) is streaming the Blob instead of buffering, which require at least Node.js ≥ 20.
v19.0.0
Breaking
- Require Node.js 18
7f4b30b - Use mime type
audio/wavinstead ofaudio/vnd.wavefor .wav files (#620)c7c923c
v18.7.0
v18.6.0
v18.5.0
v18.4.0
v18.3.0
- Support reading from
Blobin Node.js (#588)1c75cfb - Add support for J2C (#596)
51bd34c - Add support for ACE (#592)
1899fc1 - Add support for cpio (#590)
f84e96c - Add support for ARJ (#589)
935470e - Add support for Java class (#591)
a40f828
v18.2.1
v18.2.0
v18.1.0
Improvements
- Add support for AutoDesk DWG format (#572)
47aa221 - Add support for Personal Storage Table (PST) file (
.pst) (#573)ec3ba33 - Add support for JPEG-LS (
.jls) (#568)976ed4b
Fixes
v18.0.0
Breaking
- Require Node.js 14
6d457c5
v17.1.6
v17.1.5
- Fix PDF detection in some cases
a0c24eb
v17.1.4
v17.1.3
- Fix: Malformed MKV could cause an infinite loop
2c4d120- CVE-2022-36313
- Also backported to 16.5.4
v17.1.2
v17.1.1
v17.1.0
- Add support for ELF (Unix Executable and Linkable Format) (#514)
c4983ea - Add avif-sequence file for animation (#512)
752afb3
v17.0.2
- Prevent "Concurrent read operation" error to be thrown in some cases while reading from a stream (#510)
565f7f3
v17.0.1
v17.0.0
Breaking
- Require Node.js 12.20 (#472)
826b4ad - This package is now pure ESM. Please read this.
- Remove the
/browsersub-export287e361- 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 (#486)
b23be62 - Improve parsing TIFF files (#482)
82c9ccb - Detect both raw and BDAV versions of MPEG-2 Transport Streams (#497)
4ce6838 - Detect XML UTF-16-BE & UTF-16-LE via pattern matching (#490)
a2cf2b3 - Support XML encoding with UTF-8 including BOM field (#491)
8bca6b4
Fixes
v16.5.4
- Fix: Malformed MKV could cause an infinite loop https://github.com/sindresorhus/file-type/commit/d86835680f4cccbee1a60628783c36700ec9e254
- CVE-2022-36313
- Also fixed in 17.1.3
v16.5.3
- Upgrade dependencies https://github.com/sindresorhus/file-type/commit/3b08ab1e7404dc00dfb3050d6f34821ae300b59c
v16.5.2
- Lock
strtok3dependency
v16.5.1
v16.5.0
- Add support for JPEG XL image format (#455)
57ecf2d - Remove ASAR 240 bytes of JSON payload length limitation (#453)
07101ac - Remove an unnecessary dependency (#458)
3df0ed1
v16.4.0
v16.3.0
v16.2.0
- Improve PDF / AI (Adobe Illustrator) recognition (#396)
9736aa3 - Add support for 3mf (#415)
7f95cd2
v16.1.0
v16.0.1
v16.0.0
Breaking
Improvements
v15.0.1
v15.0.0
Breaking
v14.7.1
v14.7.0
- Fix the
.extensionsTypeScript type (#380)a58081c - Add support for Asar (#378)
f2ebb8d - Add support for InDesign document file type (#373)
84c26b3
v14.6.2
v14.6.1
v14.6.0
v14.5.0
v14.4.0
v14.3.0
v14.2.0
v14.1.4
- Support current-generation Nikon D750 NEF (#337) https://github.com/sindresorhus/file-type/commit/32590a95944477477fafba075c22155899aa3b90
v14.1.3
v14.1.2
v14.1.1
v14.1.0
- Add support for MPEG program stream (#322)
383a831 - Add support for AI files (Adobe Illustrator) (#323)
5eb8458
v14.0.0
Breaking
- Removed
.minimumBytes(#319)c4966b8-
FileType.minimumBytesbecame obsolete since we now read beyond this 4k boundary. Use. fromFile()for efficient detection.
-
- Update
strtok3dependency (#318)4616640- Only breaking if you use
FileType.fromTokenizer(tokenizer), see https://github.com/sindresorhus/file-type/pull/318#issuecomment-578476746.
- Only breaking if you use
Fixes
v13.1.2
- Detect Office 365 documents: docx, pptx, xlsx (#317)
8f70d9c - Fix end-of-stream exception in PNG level 2 parser (#316)
79d9e25
v13.1.1
- Prevent size related exceptions (#307)
936b020 - Ensure
.fromBuffer()always returns a Promise (#310)7eaf0fe
v13.1.0
v13.0.3
- Restore Node.js 8 compatibility
09eec7b
v13.0.2
v13.0.1
v13.0.0
Breaking
- Require Node.js 10
0b97a85 - Rewrite the API and make it async (#286)
8f981c3- Why: To be non-blocking, to be able to accept a stream as input, and improved file type detection.
- Migrate:
-const fileType = require('file-type');
+const FileType = require('file-type');
-console.log(fileType(buffer));
+console.log(await FileType.fromBuffer(buffer));
- Browser supports was moved into a sub-module:
- Migrate:
-const fileType = require('file-type');
+const fileType = require('file-type/browser');
Enhancements
- Add
.fromFile()method to detect the file type of a file (#286)8f981c3 - Add
.fromStream()method to detect the file type of a stream (#286)8f981c3If you have access to the file, this method is recommended over.fromBuffer(), as it can better optimize the detection speed. - Add
.fromBlob()convenience method when used in the browser (#286)8f981c3 - Add support for
CR3(#292)204599a - Stop execution after
FileType.stream()error (#273)3840e6a
v12.4.2
v12.4.1
v12.4.0
v12.3.1
v12.3.0
v12.2.0
- Add
fileType.extensionsandfileType.mimeTypesproperties, so you can check what extension/mime-types this package supports (#229)bca081b - Make
Bufferusage optional again (for improved browser support) (#232)dc611b4 - Reduce
msifalse-positives (#225)702f795
v12.1.0
v12.0.1
v12.0.0
Breaking:
- Require Node.js 8
32fa5cf
Enhancements:
- Add support for APNG (#215)
17e9c5f - Add support for RW2 and RAF (#221)
ee910d9 - Improve detection of ARW, DNG, NEF and TIF (#220)
6c3189f
v11.1.0
Enhancements:
Fixes:
v11.0.0
Breaking:
- Return
undefinedinstead ofnullwhen there's no match1359ccc - TypeScript users only:
- Drop faking ESM default export support
9dcf28b- You need to change
import fileType from 'file-type';toimport fileType = require('file-type');
- You need to change
- Drop faking ESM default export support
Enhancements:
- Rework mpeg4 check and add support for some more mpeg4 and ISO base media formats (#206)
feaa217 - Add support for
ac3andvocformats (#201)7038abc - Add support for
lnkandaliasformats (#200)aacd31a - Add support for pre-POSIX
tar(#204)fc9f973 - Add support for Sony DSF (DSD Stream File) format (#203)
be74d72
Fixes:
v10.11.0
- Allow
ArrayBufferas input (#193)b714ddd - Fix Node.js 11 compatibility (#198)
ee0ee82 - Handle errors from
fileType.streammethod (#195)7bbbacc
v10.10.0
v10.9.0
v10.8.0
v10.7.1
v10.7.0
v10.6.0
v10.5.0
v10.4.0
v10.3.0
v10.2.0
v10.1.0
v10.0.0
This release adds support for wma. It's a major release as it makes the wmv check more strict as a side-effect. https://github.com/sindresorhus/file-type/commit/a1692fc706e13d03aedf61adb6de40dd518f2862
v9.0.0
v8.1.0
v8.0.0
v7.7.1
v7.7.0
v7.6.0
v7.5.0
v7.4.0
v7.3.0
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.