Releases: GrimoireGL/GrimoireJS
v0.15.3
v0.15.2
v0.15.1
v0.15.0
v0.14.8
v0.14.7
v0.14.6
v0.14.5
v0.14.4
Update v0.12.0
Release note
Breaking changes
- Component interface is removed
We removed component interface since it can make bug easily. Sometimes queried items can be empty, different component from the component developer want to fetch.
Use GomlNode#getComponent
alternatively.
const component = gr("#main")("mesh")("MeshRenderer")// <- removed
const component = gr("#main")("mesh").first().getComponent("MeshRenderer");
Component#getAttribute
andComponent#getValue
was renamed.
We've used getAttribute
as different meaning in GomlNode
and Component
. These name should represent same meaning in every situation.
Therefore, we renamed Component#getAttribute
to Component#getAttributeRaw and
Component#getValueto
Component#getAttribute`.
Attribute#addObserver
was renamed toAttribute#watch
We've made NodeInterface#watch
for handling changing attribute value from front-end engineer.
To unite them, the methods that have same feature on Attribute
class was renamed,
And make sure the first argument of watch is converted value not Attribute
.
defaultValue
of attribute declaration was renamed todefault
- converter does not accept
undefined
as default value
Non-breaking changes
NodeInterface#watch
was added.
now users can observe attribute changing event event if the user not created components.