Skip to content

Latest commit

 

History

History
100 lines (62 loc) · 2.42 KB

CHANGELOG.md

File metadata and controls

100 lines (62 loc) · 2.42 KB

Changelog

v1.0.0-rc4

[fixes]

  • convert test_extended.webp to and actual extended file
  • Changes to error handling for timeouts {:error, {:closed, :timeout}} and closed streams

v1.0.0-rc3

[features]

  • support for webp images

[changes]

  • Reducing some code repitition in the tests
  • Add some test images for webp
  • Benchmarks updated for webp inclusion

Thanks to [@sneako, https://github.com/sneako] for your contribution.

v1.0.0-rc2

[changes]

  • remove og dep, forgot to remove it.

v1.0.0-rc1

[breaking changes]

  • type/1 and type!/1 functions now return the image types as atoms instead of String.t(). image_types = :bmp | :gif | :jpeg | :png
  • size/1 returns {:ok, Fastimage.Dimensions.t()} whereas before it returned map(). To achieve the same behaviour as before, now size!/1 is now available.
  • type/1 returns {:ok, result} whereas before it returned result. To achieve the same behaviour as before, now type!/1 is now available.
  • add options to type/2, size/2 and info/2 as a second argument to allow manual overrides on the otherwise hard-coded values for stream_timeout, max_redirect_retries and max_error_retries

[changes]

  • Separate the parser functions into their own module.
  • Separate Stream into into own module and create a %Stream.Acc{} to bring structured format to the stream processing entity.
  • Simplify points of implementation of Utils.close_stream/1

[bug fixes]

  • close_stream bug fixed where :hackney streams were not properly closed.

[enhancements]

  • Introduce Fastimage.info/1 function that gets the type and size in a single streaming pass and return a Fastimage struct with various infos.
  • Added ability to get size and type for binaries
  • Added Fastimage.Error exception structs for improved error handling
  • Improved readme

v0.0.7

[bug fixes]

[changes]

  • remove dependency on Og

v0.0.6

  • Remove compile warnings.

v0.0.5

  • Allow up to 5 retry attempts to stream the url in the event of a timeout (enhancement/bug fix)

v0.0.4

  • Follow up to three redirects for image files
  • Increase timeout for test "Get the size of multiple image files asynchronously" from 5000 -> 10000

v0.0.3

  • Remove warning messages

v0.0.2

  • Change client from :gun to :hackney.
  • Add more extensive tests.

v0.0.1

  • Initial release.