Skip to content

Releases: vivekmunde/ember-m-image

v1.0.0

27 Aug 08:45
Compare
Choose a tag to compare

Release Notes

Dependency Inversion

The m-image component now accepts a loader param which accepts a loader function, which is used to download the image from the source, e.g. through ajax / fetch call. This param can be supplied with any custom loader as well.

In previous version, the component m-image was tightly coupled with image loaders. This was stopping the component to scale to accept any external custom loader.

Fetch Approach

Fetch API approach to download the image from source.

Parameters Update

  • Parameter imageSrc has been replaced by src
  • Parameter errorImageSrc has been replaced by fallbackImageSrc
  • Parameters useAjax, encodeToBase64 & ajaxOptions have been removed
  • New parameter loader has been introduced

v0.1.5

20 Jul 07:17
Compare
Choose a tag to compare

Release Notes

  • Documentation update

v0.1.4

15 Jun 07:50
Compare
Choose a tag to compare

Release Notes

  • DOM Approach: Replaced the creation of actual temporary DOM <img> tag inside body, using jQuery, by the standard javascript constructor Image() and the standard DOM element methods EventTarget.addEventListener and EventTarget.removeEventListener. Now it creates in memory temporary DOM Image and destroys after its use. There are no changes on the control level API front with this update.
  • AJAX Approach: Introduced a new control level API parameter ajaxOptions which can be used to supply the jQuery AJAX options

v0.1.3

13 Jun 12:59
Compare
Choose a tag to compare

Release Notes

  • DOM Approach: Along with the AJAX Approach (released in v0.1.2), this release includes a new DOM Approach to download the image
  • Documentation update

Forward Compatibility

  • AJAX Approach: v0.1.3 uses the DOM Approach by default. So when migrating from v0.1.2 to v0.1.3, if you want to use AJAX Approach then set the useAjax flag to true for the component {{m-image}}.

v0.1.2

13 Jun 12:18
Compare
Choose a tag to compare
v0.1.2 Pre-release
Pre-release

Release Notes

  • AJAX Approach: This release introduces the jQuery AJAX approach to download the image from the source