All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
7.2.3 - 2022-01-27
- Fix
Errorextend in FF, #71.
7.2.2 - 2021-10-12
- Skip invalid chunks in JPEG parser instead of stopping, so some broken images can still be parsed, #68.
- Better error handling when server redirects to utf8-encoded internationalized domain name.
7.2.1 - 2021-06-07
- Fix hanging of HTTP request when server returns JSON or XML, #62.
7.2.0 - 2021-06-03
- SVG embedded in HTML is no longer recognized as SVG image, #60.
- Allow XML namespaces in SVG images, #61.
7.1.1 - 2021-05-27
- Allow byte order mark at the start of SVG, #57.
7.1.0 - 2021-04-15
- Fix options merge, when property value is class (switched from
deepmergetolodash.merge), #53.
7.0.1 - 2021-03-18
- Fix crash in async SVG parser, #52.
7.0.0 - 2021-03-11
- Add AVIF/HEIC/HEIF support.
- Add orientation info.
6.0.0 - 2020-11-04
- Add support for
.icofiles.
- node.js v10+ required.
- Drop callbacks support.
- Drop legacy call support (URL in
options). - Input stream will now be closed by default.
- Use
needleinstead of outdatedrequest(options names are different). - Rewrite tests to async/await.
- Deps bump & cleanup.
5.0.0 - 2019-09-14
- Drop
any-promise, use native, #32.
4.1.1 - 2019-07-11
- Fix streams unpipe (after 4.1.0 changes), #34.
4.1.0 - 2019-07-09
- Deps bump.
- Update Travis-CI node versions to actual.
- Fix content ungzip from misconfigured servers, #31.
4.0.1 - 2019-07-08
- Fix regexp to ignore SVG
stroke-widthattr, #33.
4.0.0 - 2018-03-05
- Roll back
got->request, see #16. - Default timeout 30s -> 60s.
- Fix padding parse in jpeg, #20.
3.2.0 - 2017-11-22
- Roll back
gotto 6.x due serious regressions, see #16. Next attempt will be switching torequestand releasing 4.0.0.
3.1.0 - 2017-06-08
- Maintenance, deps bump.
got6.x -> 7.x.gottimeouts may work a bit different but should affect result.
3.0.0 - 2016-12-02
- Rewrite internals to
Promise. - Separate options from url for http probe (old signature still supported for compatibility).
err.status->err.statusCode- remove
{ rejectUnauthorized: false }from defaults. - User-Agent string update.
- Replaced
requestdependency withgot(read options description in doc). - Retry requests on network fail.
- Switched from
readable-streamto nativestream(node 4+ has normal Stream3). - Proper class for errors.
2.2.0 - 2016-10-26
- Add
.urlwith actual image address (after redirects) for remotes.
2.1.1 - 2016-08-25
- Add default user agent to http requests (if not set by options), #8.
2.1.0 - 2016-07-14
- Internal parsers api cleanup - switch from callbacks to events.
- Fixed "write after end" error under heavy load.
2.0.1 - 2016-07-01
- Fixed bug in streams cleanup condition.
2.0.0 - 2016-06-25
- SVG support
- Return dimention units ('px' everywhere except SVG)
- width/height now can be float (with fractional part)
1.2.1 - 2016-05-30
- Stream: posponed callback to avoid possible races on forced stream close.
1.2.0 - 2016-05-28
- Added
.sync.probe()method. - 100% tests coverage.
- Splited to separate files (simplify browserification).
- Faster return on positive result & faster resource release.
- Fix stream error handling.
1.1.0 - 2016-05-25
- Added promise support.
- Use
readable-streaminstead ofstream. - Reorganised internal files structure & tests.
1.0.6 - 2016-04-13
- Fixed parser crashes on zero length data & offsets.
1.0.5 - 2015-12-15
- Increased http request timeout to 30 seconds.
- Don't check SSL sertificates.
1.0.4 - 2015-09-22
- Fixed crash on empty JPEG markers.
1.0.3 - 2015-09-19
- Fixed catch internal exceptions from
request.
1.0.2 - 2015-09-16
- Added
ECONTENTerror code for parse errors.
1.0.1 - 2015-09-14
- Return image length when possible.
- Support URLs in dev helper script.
1.0.0 - 2015-09-12
- First release.