Repository navigation
sercon v0.4.1
Example coverage for everything that landed in 0.3.x – 0.4.0. Pure
docs/examples patch; no behaviour change.
Added
examples/scripts/hash.ts— everyapi.hash.*algorithm + a known
SHA-256 vector check.examples/scripts/strings.ts—api.str.*tour (trim with mask,
pad, reverse, stripHtml, base64, url, html-entity, sprintf,
normalizeNewlines).examples/scripts/path-and-time.ts—api.path.*and
api.time.formatwith both an IANA zone and a local-zone variant.examples/scripts/default-export.ts(+helpers/answer.ts) — proves
the entry rewriter's__esModule ? .default : moduleunwrap.examples/scripts/tsx-demo.ts(+helpers/el.tsx) — TSX module
loading with an@jsx hpragma so JSX rewrites to a local factory.make demoMakefile target — runs every success-path example as a
single command. Excludeshang.ts(intentional timeout demo).
DEMO_SCRIPTSvariable enumerates the list so future additions only
need a one-line update.
Changed
examples/README.mdgains a table of bundled scripts and what each
demonstrates.MANUAL.md§ Quickstart points atmake demoand lists the demo
inventory.CLAUDE.md"Keeping docs in lockstep" gains a sixth artifact:
examples/scripts/. Any change to a user-visible binding, flag, or
script-facing behaviour now must add or update the relevant example
there and passmake demo. The rule explicitly carves out
library-only changes (WithScriptRoot,Engine.Reset()) which
don't need example growth.