Skip to content

Releases: sindresorhus/file-type

v16.5.4

27 Jul 16:56
Compare
Choose a tag to compare

v17.1.4

25 Jul 22:27
Compare
Choose a tag to compare

v17.1.3...v17.1.4

v17.1.3

21 Jul 14:41
Compare
Choose a tag to compare

v17.1.2...v17.1.3

v17.1.2

01 Jun 09:15
Compare
Choose a tag to compare
  • Improve decoding of mime-type in ZIP file (#546) 1b10a71

v17.1.1...v17.1.2

v17.1.1

28 Dec 17:38
Compare
Choose a tag to compare

v17.1.0...v17.1.1

v17.1.0

27 Dec 16:58
Compare
Choose a tag to compare
  • Add support for ELF (Unix Executable and Linkable Format) (#514) c4983ea
  • Add avif-sequence file for animation (#512) 752afb3

v17.0.2...v17.1.0

v17.0.2

16 Dec 23:37
Compare
Choose a tag to compare
  • Prevent "Concurrent read operation" error to be thrown in some cases while reading from a stream (#510) 565f7f3

v17.0.1...v17.0.2

v17.0.1

14 Dec 23:45
Compare
Choose a tag to compare
  • Update strtok3 & token-types dependencies for explicit node:buffer imports (#507) b27fb5f

v17.0.0...v17.0.1

v17.0.0

24 Nov 17:25
Compare
Choose a tag to compare

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').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

  • Prevent End-Of-Stream error in stream() (#468) 67c8fcb

v16.5.1...v17.0.0

v16.5.3

03 Aug 13:52
Compare
Choose a tag to compare