Closed renovate[bot] closed 4 years ago
Merging #1388 into develop will decrease coverage by
0.04%
. The diff coverage isn/a
.
@@ Coverage Diff @@
## develop #1388 +/- ##
===========================================
- Coverage 49.51% 49.46% -0.05%
===========================================
Files 249 249
Lines 2157 2157
===========================================
- Hits 1068 1067 -1
- Misses 1089 1090 +1
This PR contains the following updates:
12.4.2
->15.0.1
Release Notes
sindresorhus/file-type
### [`v15.0.1`](https://togithub.com/sindresorhus/file-type/releases/v15.0.1) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v15.0.0...v15.0.1) - Prevent detecting corrupt PNG file ([#392](https://togithub.com/sindresorhus/file-type/issues/392)) [`ec88386`](https://togithub.com/sindresorhus/file-type/commit/ec88386) ### [`v15.0.0`](https://togithub.com/sindresorhus/file-type/releases/v15.0.0) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v14.7.1...v15.0.0) ##### Breaking - Replace MSI detection with Microsoft CFB ([#388](https://togithub.com/sindresorhus/file-type/issues/388)) [`5de41fd`](https://togithub.com/sindresorhus/file-type/commit/5de41fd) ### [`v14.7.1`](https://togithub.com/sindresorhus/file-type/releases/v14.7.1) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v14.7.0...v14.7.1) - Fix `tar` detection ([#385](https://togithub.com/sindresorhus/file-type/issues/385)) [`3effaee`](https://togithub.com/sindresorhus/file-type/commit/3effaee) ### [`v14.7.0`](https://togithub.com/sindresorhus/file-type/releases/v14.7.0) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v14.6.2...v14.7.0) - Fix the `.extensions` TypeScript type ([#380](https://togithub.com/sindresorhus/file-type/issues/380)) [`a58081c`](https://togithub.com/sindresorhus/file-type/commit/a58081c) - Add support for Asar ([#378](https://togithub.com/sindresorhus/file-type/issues/378)) [`f2ebb8d`](https://togithub.com/sindresorhus/file-type/commit/f2ebb8d) - Add support for InDesign document file type ([#373](https://togithub.com/sindresorhus/file-type/issues/373)) [`84c26b3`](https://togithub.com/sindresorhus/file-type/commit/84c26b3) ### [`v14.6.2`](https://togithub.com/sindresorhus/file-type/releases/v14.6.2) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v14.6.1...v14.6.2) - Fix error when using `FileType.fromStream()` on small files ([#370](https://togithub.com/sindresorhus/file-type/issues/370)) [`50eee35`](https://togithub.com/sindresorhus/file-type/commit/50eee35) ### [`v14.6.1`](https://togithub.com/sindresorhus/file-type/releases/v14.6.1) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v14.6.0...v14.6.1) - Fix ZIP header detection for MS Office files ([#369](https://togithub.com/sindresorhus/file-type/issues/369)) [`402fb0b`](https://togithub.com/sindresorhus/file-type/commit/402fb0b) ### [`v14.6.0`](https://togithub.com/sindresorhus/file-type/releases/v14.6.0) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v14.5.0...v14.6.0) - Add support for PGP ([#367](https://togithub.com/sindresorhus/file-type/issues/367)) [`4a851af`](https://togithub.com/sindresorhus/file-type/commit/4a851af) ### [`v14.5.0`](https://togithub.com/sindresorhus/file-type/releases/v14.5.0) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v14.4.0...v14.5.0) - Add support for LZH ([#361](https://togithub.com/sindresorhus/file-type/issues/361)) [`352c05b`](https://togithub.com/sindresorhus/file-type/commit/352c05b) ### [`v14.4.0`](https://togithub.com/sindresorhus/file-type/releases/v14.4.0) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v14.3.0...v14.4.0) - Add support for ICNS ([#356](https://togithub.com/sindresorhus/file-type/issues/356)) [`6ec2897`](https://togithub.com/sindresorhus/file-type/commit/6ec2897) ### [`v14.3.0`](https://togithub.com/sindresorhus/file-type/releases/v14.3.0) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v14.2.0...v14.3.0) - Add support for Encapsulated PostScript (EPS) ([#353](https://togithub.com/sindresorhus/file-type/issues/353)) [`070c4c1`](https://togithub.com/sindresorhus/file-type/commit/070c4c1) ### [`v14.2.0`](https://togithub.com/sindresorhus/file-type/releases/v14.2.0) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v14.1.4...v14.2.0) - Add support for SKP ([#351](https://togithub.com/sindresorhus/file-type/issues/351)) [`30e8354`](https://togithub.com/sindresorhus/file-type/commit/30e8354) - Add support for AVIF ([#344](https://togithub.com/sindresorhus/file-type/issues/344)) [`394a920`](https://togithub.com/sindresorhus/file-type/commit/394a920) ### [`v14.1.4`](https://togithub.com/sindresorhus/file-type/releases/v14.1.4) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v14.1.3...v14.1.4) - Support current-generation Nikon D750 NEF ([#337](https://togithub.com/sindresorhus/file-type/issues/337)) [`32590a9`](https://togithub.com/sindresorhus/file-type/commit/32590a95944477477fafba075c22155899aa3b90) ### [`v14.1.3`](https://togithub.com/sindresorhus/file-type/releases/v14.1.3) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v14.1.2...v14.1.3) - Fix bug for short streams where stream ends on first read ([#334](https://togithub.com/sindresorhus/file-type/issues/334)) [`90a213d`](https://togithub.com/sindresorhus/file-type/commit/90a213d) ### [`v14.1.2`](https://togithub.com/sindresorhus/file-type/releases/v14.1.2) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v14.1.1...v14.1.2) - Fix missing `fromTokenizer` type definition ([#331](https://togithub.com/sindresorhus/file-type/issues/331)) [`3432a14`](https://togithub.com/sindresorhus/file-type/commit/3432a14) ### [`v14.1.1`](https://togithub.com/sindresorhus/file-type/releases/v14.1.1) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v14.1.0...v14.1.1) - Prevent throwing error in `.stream()` on empty stream ([#324](https://togithub.com/sindresorhus/file-type/issues/324)) [`659e379`](https://togithub.com/sindresorhus/file-type/commit/659e379) ### [`v14.1.0`](https://togithub.com/sindresorhus/file-type/releases/v14.1.0) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v14.0.0...v14.1.0) - Add support for MPEG program stream ([#322](https://togithub.com/sindresorhus/file-type/issues/322)) [`383a831`](https://togithub.com/sindresorhus/file-type/commit/383a831) - Add support for AI files (Adobe Illustrator) ([#323](https://togithub.com/sindresorhus/file-type/issues/323)) [`5eb8458`](https://togithub.com/sindresorhus/file-type/commit/5eb8458) ### [`v14.0.0`](https://togithub.com/sindresorhus/file-type/releases/v14.0.0) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v13.1.2...v14.0.0) ##### Breaking - Removed `.minimumBytes` ([#319](https://togithub.com/sindresorhus/file-type/issues/319)) [`c4966b8`](https://togithub.com/sindresorhus/file-type/commit/c4966b8) \- `FileType.minimumBytes` became obsolete since we now read beyond this 4k boundary. Use `. fromFile()` for efficient detection. - Update `strtok3` dependency ([#318](https://togithub.com/sindresorhus/file-type/issues/318)) [`4616640`](https://togithub.com/sindresorhus/file-type/commit/4616640) \- Only breaking if you use `FileType.fromTokenizer(tokenizer)`, see [#318 (comment)](https://togithub.com/sindresorhus/file-type/pull/318#issuecomment-578476746). ##### Fixes - Fix detecting PNG with long `iTXt` chunk ([#321](https://togithub.com/sindresorhus/file-type/issues/321)) [`a59869b`](https://togithub.com/sindresorhus/file-type/commit/a59869b) ### [`v13.1.2`](https://togithub.com/sindresorhus/file-type/releases/v13.1.2) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v13.1.1...v13.1.2) - Detect Office 365 documents: docx, pptx, xlsx ([#317](https://togithub.com/sindresorhus/file-type/issues/317)) [`8f70d9c`](https://togithub.com/sindresorhus/file-type/commit/8f70d9c) - Fix end-of-stream exception in PNG level 2 parser ([#316](https://togithub.com/sindresorhus/file-type/issues/316)) [`79d9e25`](https://togithub.com/sindresorhus/file-type/commit/79d9e25) ### [`v13.1.1`](https://togithub.com/sindresorhus/file-type/releases/v13.1.1) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v13.1.0...v13.1.1) - Prevent size related exceptions ([#307](https://togithub.com/sindresorhus/file-type/issues/307)) [`936b020`](https://togithub.com/sindresorhus/file-type/commit/936b020) - Ensure `.fromBuffer()` always returns a Promise ([#310](https://togithub.com/sindresorhus/file-type/issues/310)) [`7eaf0fe`](https://togithub.com/sindresorhus/file-type/commit/7eaf0fe) ### [`v13.1.0`](https://togithub.com/sindresorhus/file-type/releases/v13.1.0) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v13.0.3...v13.1.0) - Add audio module detections: .it, .s3m & .xm ([#305](https://togithub.com/sindresorhus/file-type/issues/305)) [`b824802`](https://togithub.com/sindresorhus/file-type/commit/b824802) ### [`v13.0.3`](https://togithub.com/sindresorhus/file-type/releases/v13.0.3) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v13.0.2...v13.0.3) - Restore Node.js 8 compatibility [`09eec7b`](https://togithub.com/sindresorhus/file-type/commit/09eec7b) ### [`v13.0.2`](https://togithub.com/sindresorhus/file-type/releases/v13.0.2) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v13.0.1...v13.0.2) - TypeScript type fixes [`e209647`](https://togithub.com/sindresorhus/file-type/commit/e209647) [`2c86443`](https://togithub.com/sindresorhus/file-type/commit/2c86443) [`32b2948`](https://togithub.com/sindresorhus/file-type/commit/32b2948) ### [`v13.0.1`](https://togithub.com/sindresorhus/file-type/releases/v13.0.1) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v13.0.0...v13.0.1) - Fix TypeScript types for the browser sub-module [`fb15b12`](https://togithub.com/sindresorhus/file-type/commit/fb15b12) [`2ed0d92`](https://togithub.com/sindresorhus/file-type/commit/2ed0d92) ### [`v13.0.0`](https://togithub.com/sindresorhus/file-type/releases/v13.0.0) [Compare Source](https://togithub.com/sindresorhus/file-type/compare/v12.4.2...v13.0.0) ##### Breaking - Require Node.js 10 [`0b97a85`](https://togithub.com/sindresorhus/file-type/commit/0b97a85) - Rewrite the API and make it async ([#286](https://togithub.com/sindresorhus/file-type/issues/286)) [`8f981c3`](https://togithub.com/sindresorhus/file-type/commit/8f981c3) \- Why: To be non-blocking, to be able to accept a stream as input, and improved file type detection. \- Migrate: ```diff -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: ```diff -const fileType = require('file-type'); +const fileType = require('file-type/browser'); ``` ##### Enhancements - Add [`.fromFile()`](https://togithub.com/sindresorhus/file-type#filetypefromfilefilepath) method to detect the file type of a file ([#286](https://togithub.com/sindresorhus/file-type/issues/286)) [`8f981c3`](https://togithub.com/sindresorhus/file-type/commit/8f981c3) - Add [`.fromStream()`](https://togithub.com/sindresorhus/file-type#filetypefromstreamstream) method to detect the file type of a stream ([#286](https://togithub.com/sindresorhus/file-type/issues/286)) [`8f981c3`](https://togithub.com/sindresorhus/file-type/commit/8f981c3) If you have access to the file, this method is recommended over `.fromBuffer()`, as it can better optimize the detection speed. - Add [`.fromBlob()`](https://togithub.com/sindresorhus/file-type#browser) convenience method when used in the browser ([#286](https://togithub.com/sindresorhus/file-type/issues/286)) [`8f981c3`](https://togithub.com/sindresorhus/file-type/commit/8f981c3) - Add support for `CR3` ([#292](https://togithub.com/sindresorhus/file-type/issues/292)) [`204599a`](https://togithub.com/sindresorhus/file-type/commit/204599a) - Stop execution after `FileType.stream()` error ([#273](https://togithub.com/sindresorhus/file-type/issues/273)) [`3840e6a`](https://togithub.com/sindresorhus/file-type/commit/3840e6a)Renovate configuration
:date: Schedule: "on monday" (UTC).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.