Version 0.7.0
Pre-release
Pre-release
What's Changed
- Source code refactored and converted to TypeScript
- Simple Rollup based build step
New Features
- Context controller in core with static
providedContexts
andconsumedContexts
/this.contextMap
- New core method
this.targets()
allowing for target highlighting - Function components:
uiComponent()
withautoEffects()
andhighlightTargets()
- Element references with DOM manipulation methods:
uiRef
- Test components with both
UIElement
anduiComponent
syntax
Breaking Changes since v0.6.2
- Types renamed with common
UI
prefix - Attribute parsing keys
boolean
,integer
andnumber
removed; importasBoolean
,asInteger
orasNumber
fromui-component
instead – or use these functions directly (preferred):boolean
=>v => typeof v === 'string'
integer
=>v => parseInt(v, 10)
number
=>v => parseFloat(v)
- Since
UIElement
now implementsconnectedCallback()
for context controller, you need to callsuper.connectedCallback()
when extendingUIElement
orDebugElement
( not needed inuiComponent()
) UIEffect.targets
is now aMap<Element, UIDOMInstructionSet>
withUIDOMInstructionSet = Set<() => void>
Full Changelog: v0.6.2...v0.7.0