Repository navigation
v0.1.4
Nothing that was exported has changed. npm shows the README from the tarball, so a README that is fuller is a release.
Added
- The README follows the family's README standard (johnmorrisdotca/.github,
README-STANDARD.md): a hero picture under the title,### What's in itwith a picture of each game, an install section, an Examples section whose code is run by a test, a table of the five games, an Accessibility section, and the entry points and the calls to learn first under API. - Twenty pictures in
docs/images, in light and dark, taken from the built demo bypnpm screenshots:readme(scripts/readme-pictures.mjs) and shown by absolute address so that GitHub and npm both show them. They are WebP, each under its size budget, and are never in the tarball:pnpm test:packagefails if one is. pnpm test:readmetype-checks and runs every TypeScript and JavaScript example in the README against the built package, and thereadmejob in CI runs it.src/readme.test.jsholds the README to the standard: its sections in order, a language on every code block, a picture's file, its alt text, its caption and its dark twin, the size budget, table widths and plain words.
Changed
- The README's pictures moved from
docs/desktop.jpganddocs/phone.jpgtodocs/images/, andscripts/check-presentation.mjsreads the new names. - Repository only: the package and everything it exports are unchanged.
CONTRIBUTING.mdis the family's one text with a section of its own for Gunjin, held to the master in johnmorrisdotca/.github bysrc/family.test.js;ci.ymlandpages.ymlare the family's one text (pnpm check, the demo, and the package on Linux, macOS and Windows), and any jobs of the package's own after them. - The demo's page titles read
Gunjin · pitch, like the rest of the family's.
Fixed
docs/API.mdand the README said the/trustedentry exports the generic match calls (createMatch,acknowledgePass,offerDraw,resignMatchand the rest). It exportsencodeTrustedMatchanddecodeTrustedMatch; the generic calls are in/stratego-liteand/gunjin-shogi, and the draw and resign calls are not exported from any entry. The documents now say so. Nothing the package exports has changed.- The API reference page wraps a long entry path instead of running about 2 px wider than a 360 px screen. Nothing the package exports has changed.