@benev/slate
Advanced tools
Changelog
v0.2.9
generate_id
to hexId
(old name deprecated)escapeRegex
hash
hat
randomFullName
MemeNames
repeater
Changelog
v0.2.8
GoldElement
to ShadowElement
SilverElement
to LightElement
mixin.reactor
to mixin.reactive
apply.reactor
to apply.reactive
Changelog
v0.2.7
defaultNexus
to nexus
apply.context
to apply.setup
use.styles
now accepts any number of stylesheet args
// you can now pass multiple stylesheets this way
use.styles(cssA, cssB, cssC)
use.css
alias for use.styles
mixin.setup
(to match apply.setup
)lightView
(alias for nexus.lightView
)lightComponent
(alias for nexus.lightComponent
)shadowView
(alias for nexus.shadowView
)shadowComponent
(alias for nexus.shadowComponent
)shadowComponentify
(alias for nexus.shadowComponentify
)component
(alias for nexus.component
)components
(alias for nexus.components
)Changelog
v0.2.6
Pool
explode_promise
(prefer deferPromise
)concurrent
deferPromise
deadline
pubsub
once
methodChangelog
v0.2.5
es2023
, seems all evergreen browsers support itmaptool
in favor of Map2
requestAnimationFrameLoop
Map2
facility will replace maptoolChangelog
v0.2.2
use.deferOnce
is.void(x)
, renamed to is.unavailable(x)
is.defined(x)
, renamed to is.available(x)
Changelog
v0.2.17
Content
type, which may be preferable to RenderResult
opSignal.load
with deconfliction: now only the latest run will update the signalOpSignal.load
static helper, to create and start an operationChangelog
v0.2.0
light_view
is now lightView
light_component
is now lightComponent
shadow_view
is now shadowView
shadow_component
is now shadowComponent
use.defer
Signal
prep_op_effect
replaced by makeLoadingEffect
or makeAnimatedLoadingEffect
loading
effects like loading.binary(op, onReady)
and loading.braille(op, onReady)
@benev/slate/x/pure.js
pure.js
was an alternative entrypoint for node to import the parts of slate that didn't touch any DOM apisimport "@benev/slate/x/node.js"
global.HTMLElement = class {}
because extending HTMLElement is the only contact that slate has with the dom at import timenode.js
is a little shim that lets you import all of slate in node (maybe for unit testing or to use some tools)interval
tool: changed arguments
interval.hz
accepts hertz, replacing what used to be called interval
interval(1, fn)
with interval.hz(1, fn)
signal.subscribe
in favor of signal.on
Trashcan
(in favor of Trashbin
)pub
(in favor of pubsub
)use.load
helper for creating an op and immediately initiating a load operationwherefor
ref
and Ref