0.31.0 RELEASE NOTES · LATEST
Fizlet 0.31.0
By Chris Cooley ↗ · · CHANGELOG.md ↗
The core is generic: bricks any page or game can use. Some pieces moved out of the core in 0.31.0 and are no longer part of it; earlier published versions are unchanged (0.x: a minor release may break, and the pieces below go without a deprecation release). The core grows when users ask for a brick, or when a brick needs a generic base.
Removed
@fzlt/core/presence,@fzlt/core/presence/checkand@fzlt/core/presence/rollback(the multiplayer bricks), and@fzlt/core/match.@fzlt/core/arcade, witharcadeHudandskirmishHud.@fzlt/core/ui(Board UI), with@fzlt/core/ui/board-ui.cssand@fzlt/core/ui/tokens.json. The package ships no stylesheet now:sideEffectsisfalse.@fzlt/core/propsand@fzlt/core/ribbon-tracks(@fzlt/core/ribbonstays, unchanged).- From the roadmap: the planned
@fzlt/core/snapshotand@fzlt/core/agent.@fzlt/core/musicis now no. 48. The numbers and symbols of the bricks that left are retired (RETIREDinscripts/bricks.mjs): no shipped brick's number or symbol moves.
Changed
@fzlt/core/math:hash32(bytes, h)(FNV-1a over a byte view of a sim's state; it was presence's) is exported here, so it stays public. Integer maths: the same hash on every engine. It tree-shakes; math is 1,811 B gz with it (+65 B; budget 1,792 → 1,824).@fzlt/core/steerre-exports math, so its API snapshot gainshash32(an addition, nothing else changes).@fzlt/core/embed:palettesets CSS custom properties by name on the game's host:{ "--accent": "#8573ee" }. Hex colours only, and a name must be--name; anything else is ignored, as before (no CSS injection). It no longer maps role keys (sys,cmd…) onto a kit's variables: write the property names you use. ThePalettetype is this map now. A breaking change, so embed is BETA again (COMPLETE once a released game ships on it). 1,797 B gz (−243 B).@fzlt/core/coach:card()'s look needs no stylesheet. It is inline and reads--coach-bg,--coach-ink,--coach-mutedand--coach-line, each with a neutral fallback (the page's own colours); its End button has no kit classes; its inlinedisplayfollowshidden. Same API. 1,231 B gz (+11 B).@fzlt/core/padcontains its own root (contain: layout style, inline: contract rule 8 no longer leans on a stylesheet). It ships no CSS: the look is the page's, on the pad's classes, which are unchanged.@fzlt/core/board-page,@fzlt/core/hudand@fzlt/core/touch: docs only (no kit named). The browser tests use a page's own touch and pad CSS (tests/fixtures/).- API snapshots: in a release PR (package.json's version moves since the base),
npm run api:check -- --basealso reads the new version's section, so a change and its release can land as one PR. - Sizes: the package packs to 340,606 B (was 404,157 B; unpacked 988,792 B, was 1,197,813 B), 110 files (was 140), before this entry.
- Fix:
@fzlt/core/fxlet in a finite number too large for its 32-bit fields, and stored it as Infinity. The pool's fields are 32-bit floats, and the check for a finite number looked at the 64-bit value:spawn()with a position, velocity, size or life over about 3.4e38 (andblast(),word(),emit()with such a position, power, size or scale) was let in and held ±Infinity, and a life that large never ended, so it held its slot untilclear(). Such a number is now refused and counted indropped, as NaN and ±Infinity already were; the limit is 1e30 either way, far past any page. Found by the fuzz stress test (seed 1, run 33). Sizes unchanged (fx 2,792 B gz, the page build 7,103 B). Test:tests/bricks.test.mjs. - Stress tests, the fuzz's own faults (it reported them as findings): its timeline call picks one of its five methods for any argument (a hostile one picked none and threw a TypeError in the test); a Board search on a cell id that is off a small board must throw its named error, which is no longer a "documented call threw"; and NaN that shows during a documented call, after an earlier call in the run took in a hostile value silently, is graded as that earlier call's (
afternames it), not as a documented one's. The findings on undocumented input stay open, so the default run still exits 1;--fixedpasses.