Skip to content

Releases: alpine-collective/alpine-magic-helpers

v1.2.2

Choose a tag to compare

@SimoTod SimoTod released this 04 May 18:16

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

Choose a tag to compare

@SimoTod SimoTod released this 20 Apr 19:16

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

Choose a tag to compare

@SimoTod SimoTod released this 18 Apr 08:20

Added

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

v1.1.0

Choose a tag to compare

@SimoTod SimoTod released this 15 Mar 18:57

Added

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

v1.0.0

Choose a tag to compare

@KevinBatdorf KevinBatdorf released this 13 Feb 15:34

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

Choose a tag to compare

@KevinBatdorf KevinBatdorf released this 05 Feb 15:52

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

Choose a tag to compare

@KevinBatdorf KevinBatdorf released this 30 Nov 16:44
  • [$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

Choose a tag to compare

@SimoTod SimoTod released this 23 Nov 17:29

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

v0.4.1 Pre-release
Pre-release

Choose a tag to compare

@KevinBatdorf KevinBatdorf released this 16 Nov 15:00

Fixed

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

v0.4.0

v0.4.0 Pre-release
Pre-release

Choose a tag to compare

@KevinBatdorf KevinBatdorf released this 15 Nov 08:50

Added

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