Releases: nx-js/framework
Releases · nx-js/framework
v1.0.0-alpha.2.3.0
New
- The
repeat
attribute now accepts any iterable (map, set, array, custom), not just arrays. - The
key
limiter became a lot smarter regarding special key names. It now works with the common aliases and ignores upper/lower case. For exampleesc
andEscape
are both working.
Fixed
- Fixed an issue with the router double routing sometimes.
- Inline event handlers (defined with the
#event="handler()"
syntax) are now correctly triggered when a child element dispatches the required event.
Performance
- The list rendering performance of the
repeat
attribute is dramatically improved.
v1.0.0-alpha.2.2.0
New
- It is now possible to define real relative routes in
iref
attributes and the$route
method by../
and./
. - Routers fire a route event before routing.
Fixed
- Fixed an issue with the params middleware always pushing a new history state if it reaches the first state.
- Fixed an issue with the key limiter displaying a deprecated warning.
v1.0.0-alpha.2.1.0
New
- It is now possible to list multiple events after the
#
prefix in inline event handlers to trigger the handler on nay of them. - The data binding
on
option now accepts any native or custom event name or a list of comma separated events. Looks like this:bind="two-way change,click,my-event string"
. - Added a new rate limiter, called
key
. In case of a keyboard event it triggers the handler only for the passed keys. - You can access the current event inside custom rate limiters. It is exposed on
context.$event
.
Fixed
- Fixed custom elements, which extend a native type being processed to early sometimes.
- Fixed an issue with data bound inputs, which caused the text cursor to jump to the end of the text while typing.
- Fixed an issue with some event handlers not triggering in case of multiple different event handlers for the same event on a single element.
- The
unit
filter will only interpret the number 1 as singular from now on.
v1.0.0-alpha.2.0.0
Breaking changes
- Existing special attributes renamed from
nx-attr
to simplyattr
- Bind syntax changed from
nx-sync
,nx-cync-on
,nx-sync-mode
andnx-sync-type
to a singlebind="mode on type"
. - Inline event handling syntax changed from
nx-eventName
to#eventName
. - Renamed
nx-ref
,nx-ref-params
andnx-ref-options
toiref
,iref-params
andiref-options
. iref
,iref-params
andiref-options
will only work on anchor elements from now on.
New
- Improved data binding. Simpler syntax, more flexibility, dynamic binding options and custom bindable elements.
- Improved attributes. Now any attribute can be prefixed by
@
or$
similarly to interpolation. - Attribute shorthand syntax:
@class="class"
is equal to@class
. - Improved inline event handlers. Now works with any events.
- Added rate limiters, which can be used with event handlers.
- Added the capitalize, lowercase, uppercase, json, slice, unit, date, datetime and time filters.
- Added the debounce, delay, if, throttle rate limiters.
- Anchor elements with an
iref
attribute gets a fakehref
attribute from NX, which helps web crawlers. class
andstyle
attributes now accept an object as value- Added the
show
attribute, which toggles element visibility.
Fixed
- Fixed an error hiding issue. Errors thrown inside developer code won't be hidden by NX.
v1.0.0-alpha.1.1.0
New
- Events middleware for inline event handling code.
v1.0.0-alpha.1.0.0
alpha 1.0.0