Releases: hal/elemento
Releases · hal/elemento
Elemento 1.6.1
Fixed
- Fix bug in attach/detach observer
Elemento 1.6.0
Added
-
Add
ButtonType
enum andElements.button(ButtonType)
-
Add
@Loader
annotation andloader
attribute for@Route
annotation -
Add options for router annotation processors:
places.package
: The package name of the generated class for the annotated places.places.class
: The class name of the generated class for the annotated places.
Changed
-
Rename loader classes:
Loader<T>
→LoadData<T>
LoadData
→LoadedData
-
Add support for loaders in router annotation processors
-
Change default name of the generated class for the annotated places
GeneratedPlaces
→AnnotatedPlaces
-
Simplify router annotation processors
Elemento 1.5.1
Added
-
Add methods to modify the text node of an element:
Elements.textNode(elemental2.dom.Element, String)
Elements.textNode(IsElement<E>, String)
-
Add overloaded methods to bind events in
HasElement
:HasElement.on(EventType<V,?>, boolean, EventCallbackFn<V>)
HasElement.on(EventType<V,?>, AddEventListenerOptions, EventCallbackFn<V>)
-
Add
Logger.isEnabled(Level)
to check if a level is enabled for a logger. -
Add debug log statements logger to attach/detach implementation
Fixed
- Fix multiple attach/detach handlers for an element.
Elemento 1.5.0
Added
- Add support for routes with parameters:
/contacts/:contactId
- Add asynchronous loaders for places
- Add place(s) builder API and nested places
Changed
- Optimize logging implementation
Elemento 1.4.12
Added
-
Add support for category based log levels
-
Export methods to JavaScript to control log levels (for instance from the browser dev tools)
org.jboss.elemento.logger.Logger.setLevel(String level)
- sets the global log levelorg.jboss.elemento.logger.Logger.setLevel(String category, String level)
- overrides the log level for one categoryorg.jboss.elemento.logger.Logger.resetLevel(String category)
- resets the log level for the category to the global log level
Fixed
- Fix logging of objects using
String.valueOf()
Elemento 1.4.11
Fixed
- Fix logging methods to include variable arguments
- Fix place manager to include the query part of the initial URL
Elemento 1.4.10
Added
- Logger module with a small, opinionated wrapper around
console.log
.
Elemento 1.4.9
Added
- Add router processor using Crysknife CDI
Elemento 1.4.8
Fixed
- Widen
Elements.textNode()
methods to acceptElement
, instead ofHTMLElement
.
Elemento 1.4.7
Added
PlaceManager.href(String)
andPlaceManager.href(Place)
to return the href for a route/placeElements.textNode(HTMLElement)
andElements.textNode(IsElement<E>)
to return the text of the first text node (if any) or the text content of the element.