All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- [
$component
]: x-for was not working correctly when looping on a property from the parent scope (i.e.x-for="item in $parent.items"
).
- [
$interval
]: timeOut was not cleared correctly when paused. When paused and resumed straightaway, it was leading to duplicate callbacks being invoked.
- [
$get
/$post
]: Added two helpers to simplify working with$fetch
- [
x-unsafe-html
]: Added 'x-unsafe-html' custom directive
- [
$component
]: Added support for accessing magic properties/helper via $component/$parent ($parent.$parent.foo is now a thing!!!)
- [
$component
]: $component and $parent are now deferred for a few ms if the observed component is not ready - [
$component
]: BREAKING$component...
and$parent...
inx-init
are now always resolving to empty strings.
- [
$component
]: When accessing functions which use $refs or other magic properties,this
was not bound correctly.
- [
$undo
/$track
/$history
]: Adds a set of helpers to track component state and revert changes on demand - [
$refresh
]: Adds a helper to refresh components
- [
$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.
- Helpers were registered twice by mistake resulting in unnecessary function calls.
- Added a config object to allow users to customise some helpers
- [
$screen
]: Added the $screen helper to detect the current screen size (@muzafferdede)
- [
$truncate
]: Fixes an issue where the ellipsis would show even if the source length was shorter. (@pomartel)
- [
$range
]: Added the $range helper to iterate over custom ranges - [
$scroll
]: Added the $scroll helper to scroll vertically to a specific position
- Removed CharacterData option from mutation observer to match Alpine core
- Fixed error where null values were throwing an error on proxy
- Switched from using Laravel Mix using rollup.js
- Switched from Using LiveReload to Browsersync
- Added this changelog
- Added Jest and added some tests for each helper
- Added esLint (+ husky and lint-staged to run the linter before each commits) and fixed code standard errors
- Added workflow to automate README update and publish new versions to npm
- [
$parent
/$component
]: Updated an incorrect null check on the proxy get trap
- [
$parent/$component
]: Added support for deep prop updating ($parent.square.color === 'orange'
)