New features
<Switch>
New features:
Observable<T>
as common base interface for emitters and cells- New emitter class hierarchy,
Emitter<T>
renamed toMutEmitter<T>
emitter.map(f)
emitter.filter(f)
Emitter.from(observable)
Cell.from(observable, initialValue)
registerTranslationProvider(provider)
$(() => $(a) + $(b))
for computed cells
New components:
<Observe from={observable} then={observer}/>
<WindowListener on='event' then={listener}/>
<DocumentListener on='event' then={listener}/>
This is the initial release of Cytoplasmic. "Properties" have been renamed to "cells".
cell(initialValue)
replacesbind()
<Show>
now also works with static values<For>
now also works with static arrayscellArray(items)
andcellMap(entries)
replacebindList()
Fixed issues:
- null values not handled in Deref or Unwrap
New features:
property.toPromise()
New features:
property.updateDefined()
New features:
property.update()
New features:
<Lazy>
New features:
createValue()
createRouter()
New features:
x.bimap(encode, decode)
on properties
New features:
ref={x}
on HTML elementsref<T>()
<Deref>
x.eq(y: T|Property<T>)
on propertiesclass={{classA: propA, classB: propB}}
on HTML elementsx.props.propName
on propertiesx.mapDefined(f)
on propertiesx.orElse(alternative)
on propertiesx.await(onrejected)
on properties<Unwrap>
Fixed issues:
- Missing exports