Releases: alpinejs/alpine
Releases · alpinejs/alpine
v2.8.0
v2.7.3
v2.7.2
v2.7.1
Added
.$watch
now supports watching magic properties #767
Fixed
- Checkboxes using
x-model
were checking for strict equality which causes bugs with arrays containing a mix of strings and integers. Now using loose-equality check #815 x-spread
didn't support "leave" transition directives #802- magic properties now support IE11 #771
- Checkboxes with non-boolean
:value
bindings were being treated as booleans (for example the integer "0") #770 x-for="i in 10"
currently works (looping a range 1-10), howeverx-for="i in count"
(ifcount
were10
) didn't - fixed now #761
v2.7.0
v2.6.0
v2.5.0
Added
- Added
.camel
modifier to allow binding to events and properties using kebab-case but converting them to camelCase before binding. For example:x-on.some-event.camel
will listen for an event called "someEvent". #597 - Added
.passive
event listener modifier to increase scroll performance. (forces browsers to not block scrolling for event handlers) #619
Fixed
v2.4.1
v2.4.0
Added
x-spread
directive (Allows you to bind an element to an object of Alpine directives and they will be "applied" (similar to x-bind="{}" in Vue)) #515- Now if one Alpine component on a page breaks, the others still work #447
- You can now access
$el
from anx-data
expression #479 - Add support for animations in
x-transition
directives #498 x-model.number
is now supported for checkbox arrays (all items will be cast to a numeric value) #558
Fixed
$nextTick
now waits until a transition is completely started (an extra tick) until being called #555- Because attributes are ALWAYS set in Alpine, some elements like "" were being interupted. Now only if the attribute has CHANGED will it be set #550
- If transitions are toggled too fast, there would be race conditions. Now overlapping transitions is supported (the previous transition is finished first before the next one is applied) #543
- Allow nested components to be moved around the DOM and not be re-initialized #449
- Checkboxes were being checked by default if a value binding was present #462
- Expressions that use a "result" variable were running into a conflict with Alpine's built-in result variable. "result" is freed up now #505