This repository was archived by the owner on Apr 25, 2025. It is now read-only.
Repository navigation
Releases: ihasq/hstd
Releases · ihasq/hstd
Release list
0.1.0
hstd - Introducing HyperStandard
import { $, h as html, on } from "hstd"
function Component() {
const count = $(0);
return html`
<h1>Count is ${count}</h1>
<button ${{ [on.click]: () => count.$++ }}>
Add more!
</button>
`;
}
document.body.append(...Component());HyperStandard is a new standard toolkit for building fast, interactive, extensible web interface.
0.0.82
0.0.72
Added:
- Full Primitive Support: Every method installed as a pointer
const number = $(0);
const base = $(16)
// then
const hex = number.into($ => $.toString(base.$))
// now
const hex = number.toString(base)
hex.watch($ => console.log($))
number.$ += 14 // console: "e"0.0.43
0.0.41
0.0.36
Added:
- Post-processing: get raw element ref with id properties and callbacks.
function Canvas() {
const colorSwitch = $(true);
return html`
<canvas ${{ id: "color", [on.click]: () => colorSwitch.switch() }}></canvas>
`.then(({ color }) => {
const ctx = color.getContext("2d");
colorSwitch.into($ => $ ? "red" : "blue").watch($ => {
ctx.fillStyle = $;
ctx.fillRect(0, 0, 100, 100);
});
})
}