We are pleased to present the 0.9 release of hyperscript.
continue
command can now be used in the repeat
to skip to the nextsend
and trigger
commands were unified and are effectively the sameincludes
comparison operator for testing if a string or array contains
another value (unified with the contains
and is in
comparisons)matches
comparison operator for testing if a string matches a regular
expression stringis less than
fetch
syntax to have a with
clause: fetch /url with method:'POST'
--
, which enables double dashes in class literals like so:
add .foo--bar
show
command now supports a when
clause that allows you to apply if(expr) show else hide
logic directly inlineglobal
variables now:
) will be treated as element scoped unless otherwise specified$
) will be treated as global scoped unless otherwise specifiedcall
statement: call prompt('Enter your name')
put `Hello ${the result}` into #response
-- becomes
prompt('Enter your name')
put `Hello ${the result}` into #response
Enjoy!