Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
7.2.0
->20.0.0
Release Notes
sindresorhus/file-type (file-type)
v20.0.0
Compare Source
Breaking
0ff11c6
NodeFileTypeParser
in favor of usingFileTypeParser
on all platforms (#707)ff8eed8
Improvements
FileTypeParser#detectors
(#704)7e72bbc
cf6fc1e
.jar
) (#719)8651809
7fe5667
4db407d
1fe621a
643ef78
.xltx
) (#712)0dab3e0
.potx
) (#710)f978619
@tokenizer/inflate
(#695)399b0f1
.lz4
file format (#706)74acf94
.drc
, Google's Draco 3D Data Compression (#702)e99257d
Fixes
7d4dd8d
v19.6.0
Compare Source
5ce98f3
7b10012
4dcb8c5
9945877
v19.5.0
Compare Source
21ed763
v19.4.1
Compare Source
fileTypeStream
in default entry point (#653)ea314a4
v19.4.0
Compare Source
fileTypeStream()
(#649)2000141
fileTypeStream()
(#650)bd3b5a4
v19.3.0
Compare Source
2744be7
v19.2.0
Compare Source
NodeFileTypeParser#fromFile()
(#644)9d2ee02
6440b3d
v19.1.1
Compare Source
fileTypeFromTokenizer
(#639)20fdba7
v19.1.0
Compare Source
00e051b
b815b5e
Release notes
v19.0.0
Compare Source
Breaking
7f4b30b
audio/wav
instead ofaudio/vnd.wave
for .wav files (#620)c7c923c
v18.7.0
Compare Source
4b7eb75
f5b232c
v18.6.0
Compare Source
ec4980b
v18.5.0
Compare Source
0ccebb1
v18.4.0
Compare Source
34ab7d4
v18.3.0
Compare Source
Blob
in Node.js (#588)1c75cfb
51bd34c
1899fc1
f84e96c
935470e
a40f828
v18.2.1
Compare Source
edf59f8
v18.2.0
Compare Source
1ec164b
v18.1.0
Compare Source
Improvements
47aa221
.pst
) (#573)ec3ba33
.jls
) (#568)976ed4b
Fixes
e8bc341
v18.0.0
Compare Source
Breaking
6d457c5
v17.1.6
Compare Source
e843d73
v17.1.5
Compare Source
a0c24eb
v17.1.4
Compare Source
20a90ab
v17.1.3
Compare Source
2c4d120
v17.1.2
Compare Source
1b10a71
v17.1.1
Compare Source
1a553e7
v17.1.0
Compare Source
c4983ea
752afb3
v17.0.2
Compare Source
565f7f3
v17.0.1
Compare Source
strtok3
&token-types
dependencies for explicitnode:buffer
imports (#507)b27fb5f
v17.0.0
Compare Source
Breaking
826b4ad
/browser
sub-export287e361
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
b23be62
82c9ccb
4ce6838
a2cf2b3
8bca6b4
Fixes
stream()
(#468)67c8fcb
v16.5.4
Compare Source
v16.5.3
Compare Source
v16.5.2
Compare Source
strtok3
dependencyv16.5.1
Compare Source
mimeTypes
TypeScript type (#464)0012c56
v16.5.0
Compare Source
57ecf2d
07101ac
3df0ed1
v16.4.0
Compare Source
29618c8
6ab25f3
v16.3.0
Compare Source
9319167
v16.2.0
Compare Source
9736aa3
7f95cd2
v16.1.0
Compare Source
e43cdc9
v16.0.1
Compare Source
eab48da
v16.0.0
Compare Source
Breaking
fe331be
Improvements
f227ac2
v15.0.1
Compare Source
ec88386
v15.0.0
Compare Source
Breaking
5de41fd
v14.7.1
Compare Source
tar
detection (#385)3effaee
v14.7.0
Compare Source
.extensions
TypeScript type (#380)a58081c
f2ebb8d
84c26b3
v14.6.2
Compare Source
FileType.fromStream()
on small files (#370)50eee35
v14.6.1
Compare Source
402fb0b
v14.6.0
Compare Source
4a851af
v14.5.0
Compare Source
352c05b
v14.4.0
Compare Source
6ec2897
v14.3.0
Compare Source
070c4c1
v14.2.0
Compare Source
30e8354
394a920
v14.1.4
Compare Source
v14.1.3
Compare Source
90a213d
v14.1.2
Compare Source
fromTokenizer
type definition (#331)3432a14
v14.1.1
Compare Source
.stream()
on empty stream (#324)659e379
v14.1.0
Compare Source
383a831
5eb8458
v14.0.0
Compare Source
Breaking
.minimumBytes
(#319)c4966b8
FileType.minimumBytes
became obsolete since we now read beyond this 4k boundary. Use. fromFile()
for efficient detection.strtok3
dependency (#318)4616640
FileType.fromTokenizer(tokenizer)
, see https://github.com/sindresorhus/file-type/pull/318#issuecomment-578476746.Fixes
iTXt
chunk (#321)a59869b
v13.1.2
Compare Source
8f70d9c
79d9e25
v13.1.1
Compare Source
936b020
.fromBuffer()
always returns a Promise (#310)7eaf0fe
v13.1.0
Compare Source
b824802
v13.0.3
Compare Source
09eec7b
v13.0.2
Compare Source
e209647
2c86443
32b2948
v13.0.1
Compare Source
fb15b12
2ed0d92
v13.0.0
Compare Source
Breaking
0b97a85
8f981c3
Enhancements
.fromFile()
method to detect the file type of a file (#286)8f981c3
.fromStream()
method to detect the file type of a stream (#286)8f981c3
If you have access to the file, this method is recommended over
.fromBuffer()
, as it can better optimize the detection speed..fromBlob()
convenience method when used in the browser (#286)8f981c3
CR3
(#292)204599a
FileType.stream()
error (#273)3840e6a
v12.4.2
Compare Source
.m4b
MPEG-4 audio-book detection (#256)d879ef7
v12.4.1
Compare Source
extensions
andmimeTypes
TypeScript types (#270)eff47af
v12.4.0
Compare Source
9767ad1
54beff7
v12.3.1
Compare Source
f379c5b
v12.3.0
Compare Source
b85fe96
v12.2.0
Compare Source
fileType.extensions
andfileType.mimeTypes
properties, so you can check what extension/mime-types this package supports (#229)bca081b
Buffer
usage optional again (for improved browser support) (#232)dc611b4
msi
false-positives (#225)702f795
v12.1.0
Compare Source
43d3cd6
v12.0.1
Compare Source
a1da90b
v12.0.0
Compare Source
Breaking:
32fa5cf
Enhancements:
17e9c5f
ee910d9
6c3189f
v11.1.0
Compare Source
Enhancements:
6c3df3e
Fixes:
e096b4b
v11.0.0
Compare Source
Breaking:
undefined
instead ofnull
when there's no match1359ccc
9dcf28b
import fileType from 'file-type';
toimport fileType = require('file-type');
Enhancements:
feaa217
ac3
andvoc
formats (#201)7038abc
lnk
andalias
formats (#200)aacd31a
tar
(#204)fc9f973
be74d72
Fixes:
mp2
/mp3
checks to not catchmp1
(#205)44b3c34
v10.11.0
Compare Source
ArrayBuffer
as input (#193)b714ddd
ee0ee82
fileType.stream
method (#195)7bbbacc
v10.10.0
Compare Source
d4ee6db
v10.9.0
Compare Source
e5f58a9
.stream()
method (Node.js-only) (#187)4fb22b3
v10.8.0
Compare Source
2c77d78
v10.7.1
Compare Source
aiff
check (#183)49dfa1d
v10.7.0
Compare Source
516084f
v10.6.0
Compare Source
d9186c9
v10.5.0
Compare Source
70bceda
v10.4.0
Compare Source
v10.3.0
Compare Source
v10.2.0
Compare Source
v10.1.0
Compare Source
v10.0.0
Compare Source
This release adds support for
wma
. It's a major release as it makes thewmv
check more strict as a side-effect. sindresorhus/file-type@a1692fcv9.0.0
Compare Source
v8.1.0
Compare Source
v8.0.0
Compare Source
v7.7.1
Compare Source
v7.7.0
Compare Source
v7.6.0
Compare Source
v7.5.0
Compare Source
v7.4.0
Compare Source
v7.3.0
Compare Source
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.
This PR was generated by Mend Renovate. View the repository job log.