Skip to content

Releases: alpine-collective/alpine-magic-helpers

v1.2.2

04 May 18:16
Compare
Choose a tag to compare

Fixed

  • [$component]: x-for was not working correctly when looping on a property from the parent scope (i.e. x-for="item in $parent.items").

v1.2.1

20 Apr 19:16
Compare
Choose a tag to compare

Fixed

  • [$interval]: timeOut was not cleared correctly when paused. When paused and resumed straight away, it was leading to duplicate callbacks being invoked.

v1.2.0

18 Apr 08:20
Compare
Choose a tag to compare

Added

  • [$get/$post]: Added two helpers to simplify working with $fetch

v1.1.0

15 Mar 18:57
Compare
Choose a tag to compare

Added

  • [x-unsafe-html]: Added 'x-unsafe-html' custom directive

v1.0.0

13 Feb 15:34
Compare
Choose a tag to compare

Now that $component has 1 to 1 functionality with that of a native Alpine component, and the helper has been used on production sites for months now, we are making a 1.0 release!

Added
[$component]: Added support for accessing magic properties/helper via $component/$parent ($parent.$parent.foo is now a thing!!!)
Changed
[$component]: $component and $parent are now deferred for a few ms if the observed component is not ready

v0.6.0

05 Feb 15:52
Compare
Choose a tag to compare

Fixed

  • [$component]: When accessing functions which use $refs or other magic properties, this was not bound correctly.

Added

  • [$undo/$track/$history]: Adds a set of helpers to track component state and revert changes on demand
  • [$refresh]: Adds a helper to refresh components

v0.5.1

30 Nov 16:44
Compare
Choose a tag to compare
  • [$scroll]: When using css selectors or Alpine reference, element position to scroll to was some times a decimal number (e.g. rem values could resolve to a decimal number) and $scroll was triggering an error.

v0.5.0

23 Nov 17:29
Compare
Choose a tag to compare

Fixed

  • Helpers were registered twice by mistake resulting in unnecessary function calls.

Added

  • Added a config object to allow users to customise some helpers
  • [$screen]: Added the $screen helper to detect the current screen size (@muzafferdede)

v0.4.1

16 Nov 15:00
Compare
Choose a tag to compare
v0.4.1 Pre-release
Pre-release

Fixed

  • [$truncate]: Fixes an issue where the ellipsis would show even if the source length was shorter.

v0.4.0

15 Nov 08:50
Compare
Choose a tag to compare
v0.4.0 Pre-release
Pre-release

Added

  • [$range]: Added the $range helper to iterate over custom ranges
  • [$scroll]: Added the $scroll helper scroll vertically to a specific position