変更履歴
この変更履歴はまだ日本語に訳されていないため、英語で表示しています。
All notable changes to this package are written here, newest first, in the form of Keep a Changelog.
Unreleased
- The README opens with the package's thumbnail, and the demo carries it as its link preview (og:image) and publishes the card, a dark card and an icon on Pages at
thumbnail.png,thumbnail-dark.pngandicon.png.
[0.2.1] - 2026-10-31
Changed
- Biome replaces ESLint as the formatter and linter, with the family's shared settings in
scripts/biome-family.json;pnpm lintchecks formatting too, andpnpm formatapplies it. The code is formatted once to 120 columns. Nothing a user of the package sees has changed. - TypeScript targets ES2022 and refuses switch fallthrough and unmarked overrides.
pnpm checkalso holds every source file to at most 500 lines of code (scripts/check-size.mjs; blank lines, comments, tests and data files are not counted). The player's keyboard wiring lives insrc/keyboard.ts, so the mount stays within that.
Fixed
- The issue chooser's security link shows again: an unquoted colon had made
.github/ISSUE_TEMPLATE/config.ymlinvalid YAML.
0.2.0 - 2026-10-14
The games are custom elements with the family's standard embed attributes and a shared builder, play works from the keyboard, and the package has an English and Japanese documentation site with a checked example for every export. The rules, the physics, the levels and the 0.1 imports are unchanged.
Added
- Add the bilingual documentation site, checked public examples, paired guides, local search and machine-readable pages.
- Add focused keyboard-cursor play using the native pointer controllers, with visible focus/cursor, precision movement, cancellation and spoken coordinates. Preserve touch/mouse and native physics.
- Add reflected embed settings, full host options and custom-tag definition; presentation changes retain controllers. Add the shared builder, validated iframe and composed JSON-safe native events.
- Share a package-independent embed builder for option controls, preview adapters, code tabs and shareable links.
Changed
- The API link in the header reads "API" in English, so that the header takes the same number of rows in English and in Japanese on a phone, as the demo's test of a language change asks.
- Synchronize documentation tooling for repository layouts, generated type references, Node entry points and repository-specific README links.
- Keep complete resource catalogues on the documentation entry index and the active resource beside core navigation; render valid default imports in HTML and Markdown.
- Group the package family by kind, alphabetize each group, and include the geography packages and REST in Pieces in the shared footer and README.
- Update the shared family description for addresses in all seven supported countries, including France and Germany.
[0.1.2] - 2026-10-06
Nothing that was exported has changed. The README is the family's one layout, in full.
Added
- The README has a picture of the demo on a desk and on a phone, in light and dark, taken from the demo by
pnpm screenshots:readme(the pictures are indocs/images/and are not in the package), a picture of each of the eight games, an Examples section of nine examples that run (solving Tube Sort and Grid Escape by search, trying every order of the pins of Pin Rescue, playing a level by pointer with no page, the physics core's repeatability, and more), examples for React, Vue, Svelte and Angular, tables of the entry points and the calls to learn first, and an Accessibility section. pnpm test:readmetype-checks and runs every TypeScript and JavaScript example in the README against the built package, as a job of its own in CI;src/readme.test.jsholds the README to the family's standard (sections in order, languages on code fences, pictures with alt text and a caption, no marketing words, version pins) inpnpm check;pnpm test:packagefails if a picture or anything underdocs/is in the packed package.
Changed
pnpm picturesispnpm screenshots:readme, and takes WebP pictures in light and dark underdocs/images/;docs/desktop.jpganddocs/phone.jpgare gone.- Repository only: the package and everything it exports are unchanged.
CONTRIBUTING.mdis the family's one text with a section of its own for Karakuri, 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. - Source files are named in kebab-case, and a lint rule keeps them so.
Fixed
- 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.
0.1.1 - 2026-10-05
Nothing that was exported has changed.
Added
- A test holds every
@johnmorrisdotca/karakuri@Nversion pin in the README to this package's major version.
Changed
- The family's list, in the README and in the demo's footer, names all twenty-four packages, Karakuri and Houseki included.
- The npm description is one sentence of 250 characters or fewer, so npm and its search show it whole; it is also the repository's About text.
homepageis the demo site andauthoris"John Morris", the same in every package. - The GitHub Actions workflows use the current versions of the actions (checkout 7, setup-node 7, pnpm/action-setup 6; configure-pages 6, upload-pages-artifact 5 and deploy-pages 5 for Pages), which clears GitHub's Node 20 deprecation warning.
[0.1.0] - 2026-10-05
Added
- The package and its family: a small deterministic 2D physics core (rigid bodies made of circles and capsules, rope chains, a particle fluid), shared pointer input, a canvas player with a restart and a level step (
roomsays how much height the board may take, for a page with more round it than the default allows, andredraw()fits it again when that changes; its status events carry the result and the level's line as words in the player's language,textandinfo, for a page that draws its own), the words in English and Japanese, and a demo site. - Grid Escape: a 6 by 6 sliding-block puzzle, five levels from 7 to 36 fewest moves, each proved by an exhaustive search that the package exports (
solveGrid). Drag a block along its lane; the key goes out of the exit; the moves run out and the level is lost. - Tube Sort: tap a tube, then another, to pour the top colour across; five levels from 3 colours in 4 tubes to 7 colours in 8, each proved winnable and loseable by a search the package exports (
solveTubes,findDeadEnd). A level is won when every filled tube is one colour and lost when no pour that does anything is left. - Nuts and Bolts: tap a free screw to move it to a holding slot; a plate with no screw left falls, taking its screws out of the slots; won when every plate has fallen and lost when the slots are full with a plate left. Five levels from 3 plates to 7, with the slots set to the fewest that win (worked out by an exhaustive search the package exports,
solveNuts). - Pin Rescue: tap the pins in the right order. The hero, the gold, lava and water are all on the package's physics core; lava that meets water sets to stone the hero can stand on. Five levels, from lava over the hero to a ramp and a pit, won by the recorded order and lost by the wrong pin; a timing test shows the result does not depend on how long you wait once things have settled.
- Rope Cut: swipe across a rope to cut it; the lantern falls, swings and rolls on the package's physics (ropes are chains of points, the lantern a heavy disc). Five levels from one rope over a basket to three ropes, a wall and a button on a high ledge, each with recorded winning cuts (the step, the rope, the link) that the tests play and shake by a few steps either way, and a loss.
- Stretch Grabber: take hold of the arm's tip and lead it round pegs and walls to the star; it stretches only so far, draws back in when led back along itself, and any part of it touching a red blob or a laser loses at once. Five levels, planned by a search for the shortest route, with less arm to spare at each level (a tenth over the shortest route in the last).
- Save the Character: draw one line to shelter the character, let go, and the line falls on the package's physics while bees fly at him and rocks fall; keep him safe for three seconds. Five levels (bees along the ground, rocks, a narrow ledge, a pit, a small ledge with no floor), each with a recorded winning line chosen so that its neighbours also win, and a recorded loss.
- Choice Story: four small stories of three stages each (a rainy walk, a night in a cave, a snow day, treasure island), two tools to choose from at each stage, one of which helps. The right tool plays a little animation and moves on; the wrong one plays a harmless slapstick failure, says why in plain words, and the stage is tried again. Every word and every tool name is in English and Japanese, and a test refuses a failure that harms anyone.
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。