Skip to content

Releases: alpinejs/alpine

v1.9.7

28 Jan 15:14
Compare
Choose a tag to compare

Fixed

  • Issue with nested arrays causing exponentially slower performance because of nested proxies #141

v1.9.6

28 Jan 14:35
Compare
Choose a tag to compare

Added

  • x-model now responds to $dispatch('input', 'value') from a child #128

Fixed

  • Add "edge" support to babel config #123
  • Add "selected" as boolean attribute #129
  • Fixed weird "calling .closest on null" error that lots of people were getting #126
  • x-init can now $dispatch() an event #128
  • Proxy was throwing error in strict mode #139

v1.9.5

22 Jan 19:46
Compare
Choose a tag to compare

Fixed

  • Nested components were being registered twice on initialization.

v1.9.4

21 Jan 04:04
Compare
Choose a tag to compare

Added

  • $dispatch magic function for dispatching new CustomEvents easily:
<div x-data="{ foo: 'bar' }" x-on:custom-event="foo = $event.detail.newValue">
    <span x-text="foo"></span>

    <button x-on:click="$dispatch('custom-event', {newValue: 'baz'})">Turn 'bar' to 'baz'</button>
</div>

Fixed

  • Fix some bug that was happening with chrome extensions (#91)
  • Set value of undefined nested object keys (#93)
  • Fix empty for loop bug (#104)

v1.9.3

17 Jan 23:17
Compare
Choose a tag to compare

Fixed

  • Classed specified on an element's class= attribute AND an x-transition directive, were being permanently removed after the transition finished. (#108)

v1.9.2

16 Jan 19:36
Compare
Choose a tag to compare

Fixed

  • x-on:keydown.enter.prevent was "preventDefault"ing for every key pressed, not just for the enter key. Fixed now.

v1.9.1

16 Jan 18:28
Compare
Choose a tag to compare

Fixed

  • x-on: listeners inside loop were not lazily evaluating the value of an iteration alias inside a loop. Fixed now.

v1.9.0

16 Jan 17:15
Compare
Choose a tag to compare

Added

  • x-for directive with :key binding on <template> tag. This uses a similar strategy as x-if (appending real dom nodes after the template tag, and re-evaluating them when data updates)
<template x-for="item in items" :key="item">
    <div x-text="item"></div>
</template>

Fixed

  • Non-root x-data elements are now being initialized by the root mutation observer.

v1.8.2

14 Jan 22:09
Compare
Choose a tag to compare

Added

  • System modifier key-combos:
    <input type="text" x-data @keydown.cmd.k="doSomething">
    (only fires when both cmd AND k are pressed)

v1.8.1

14 Jan 14:12
Compare
Choose a tag to compare

Fixed

  • x-if without transitions applied was behaving badly. (#82)