From 3c021b67cd94cdd017568a2020585d5243b67f32 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 17 Nov 2026 05:43:44 +0000 Subject: [PATCH] Version Packages --- .changeset/devtools-keyboard-walk.md | 5 ---- .changeset/open-modal-owns-keys.md | 28 ------------------ .changeset/ui-playbook-dom-controls.md | 5 ---- .changeset/ui-playbook-keyboard-check.md | 5 ---- packages/browser/CHANGELOG.md | 35 +++++++++++++++++++++++ packages/browser/package.json | 2 +- packages/core/CHANGELOG.md | 7 +++++ packages/core/package.json | 2 +- packages/devtools/CHANGELOG.md | 13 +++++++++ packages/devtools/package.json | 2 +- packages/devtools/src/internal/version.ts | 2 +- packages/math/CHANGELOG.md | 8 ++++++ packages/math/package.json | 2 +- packages/netcode/CHANGELOG.md | 8 ++++++ packages/netcode/package.json | 2 +- packages/oxlint-plugin/CHANGELOG.md | 4 +++ packages/oxlint-plugin/package.json | 2 +- packages/pixi/CHANGELOG.md | 6 ++++ packages/pixi/package.json | 2 +- packages/render/CHANGELOG.md | 8 ++++++ packages/render/package.json | 2 +- packages/tools/CHANGELOG.md | 4 +++ packages/tools/package.json | 2 +- packages/tools/src/internal/version.ts | 2 +- 24 files changed, 104 insertions(+), 54 deletions(-) delete mode 100644 .changeset/devtools-keyboard-walk.md delete mode 100644 .changeset/open-modal-owns-keys.md delete mode 100644 .changeset/ui-playbook-dom-controls.md delete mode 100644 .changeset/ui-playbook-keyboard-check.md diff --git a/.changeset/devtools-keyboard-walk.md b/.changeset/devtools-keyboard-walk.md deleted file mode 100644 index 9888253e..00000000 --- a/.changeset/devtools-keyboard-walk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@typeonce/ritmo-devtools": minor ---- - -`ritmo-devtools keyboard [--url ] [--route ] [--json]` plays the game's page by keyboard in Chromium and fails on what breaks keyboard play: a menu open with focus outside it, Tab leaving an open menu, a control with no accessible name, Enter or Space not pressing the focused control, a press that drops focus to ``, and a visible control the keyboard cannot reach. Each failure names the check, the screen, the control (role, name, selector), what was seen, and the fix; a check it cannot decide is printed as not checked, never as passed, and a screen on which nothing could be checked fails. Without `--url` it serves the working directory with the game's own Vite config. A route file lists the screens to visit and how to reach them (key presses, clicks, `waitFor` a named control, fixed waits); without one, the start page is the only screen. A loaded screen is walked as soon as it stops changing, and the real presses run on up to four pages at once, with any press that did not keep focus run again alone before it is reported. It presses controls for real to check focus, so a route marks what must not be pressed. It uses the optional `playwright` and `vite` peers `verify` already uses, at the same versions. diff --git a/.changeset/open-modal-owns-keys.md b/.changeset/open-modal-owns-keys.md deleted file mode 100644 index e4e6c3e3..00000000 --- a/.changeset/open-modal-owns-keys.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -"@typeonce/ritmo-browser": minor ---- - -**Breaking (a fix to 0.24's modal rule): `Keyboard.actions` leaves every key to the page while a modal dialog is open, wherever focus is.** In 0.24 a key was the page's only when its target was inside the modal. When a redraw deleted the focused button inside an open ``, focus fell to `` and the game took the keys again: Z and Space pressed game actions behind the menu, and Escape pressed the game's action and was `preventDefault`-ed, so the dialog did not close. - -A modal is now open when the key's document holds a `` opened with `showModal()`, or an `aria-modal="true"` element that is shown (`checkVisibility({ visibilityProperty: true, opacityProperty: true })`). An `aria-modal` element still in the page but closed (`hidden`, `display: none`, `visibility: hidden`, a closed popover, inside a closed ``) leaves the keys with the game, and so does one fading out at `opacity: 0`. `Keyboard.presses` is unchanged. - -What a game may need to change: - -- An `aria-modal="true"` element left shown during play now takes every key. Hide it when its menu closes, or remove the attribute: - - ```ts - menu.hidden = true // or menu.hidePopover(), or menu.removeAttribute("aria-modal") - ``` - -- A script that hides an `aria-modal` menu on Escape runs before a `window` host hears the key, so the game still gets that Escape. Prevent the key it handled: - - ```ts - document.addEventListener("keydown", (event) => { - if (event.key === "Escape" && menu.matches(":popover-open")) { - event.preventDefault() - menu.hidePopover() - } - }) - ``` - -- A game that merged a dialog's Escape with the game's Escape action (both arrived in one frame with focus on ``) now gets only the dialog's. diff --git a/.changeset/ui-playbook-dom-controls.md b/.changeset/ui-playbook-dom-controls.md deleted file mode 100644 index 1d79f53b..00000000 --- a/.changeset/ui-playbook-dom-controls.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@typeonce/ritmo": patch ---- - -The `ritmo` skill's UI playbook (`ui-and-render.md`) gains two steps for DOM controls and menus: build each control once and update it in place, never rewriting a region that holds one, and give it a name a test can find; a menu that stops play is a modal (`showModal()` on a ``, or an `aria-modal` element that moves focus in, keeps it there, and makes the page behind inert itself), whose `cancel` and `close` are intents, with a `popover="manual"` for a splash or wipe over it and a modal dialog of its own for a layer the player presses. diff --git a/.changeset/ui-playbook-keyboard-check.md b/.changeset/ui-playbook-keyboard-check.md deleted file mode 100644 index 201773d6..00000000 --- a/.changeset/ui-playbook-keyboard-check.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@typeonce/ritmo": patch ---- - -The `ritmo` skill's UI playbook (`ui-and-render.md`) checks a page with DOM controls with `ritmo-devtools keyboard`, on a route through every screen that shows them. diff --git a/packages/browser/CHANGELOG.md b/packages/browser/CHANGELOG.md index fe1f44d1..6b01193f 100644 --- a/packages/browser/CHANGELOG.md +++ b/packages/browser/CHANGELOG.md @@ -1,5 +1,40 @@ # @typeonce/ritmo-browser +## 0.25.0 + +### Minor Changes + +- cd6bb2e: **Breaking (a fix to 0.24's modal rule): `Keyboard.actions` leaves every key to the page while a modal dialog is open, wherever focus is.** In 0.24 a key was the page's only when its target was inside the modal. When a redraw deleted the focused button inside an open ``, focus fell to `` and the game took the keys again: Z and Space pressed game actions behind the menu, and Escape pressed the game's action and was `preventDefault`-ed, so the dialog did not close. + + A modal is now open when the key's document holds a `` opened with `showModal()`, or an `aria-modal="true"` element that is shown (`checkVisibility({ visibilityProperty: true, opacityProperty: true })`). An `aria-modal` element still in the page but closed (`hidden`, `display: none`, `visibility: hidden`, a closed popover, inside a closed ``) leaves the keys with the game, and so does one fading out at `opacity: 0`. `Keyboard.presses` is unchanged. + + What a game may need to change: + + - An `aria-modal="true"` element left shown during play now takes every key. Hide it when its menu closes, or remove the attribute: + + ```ts + menu.hidden = true // or menu.hidePopover(), or menu.removeAttribute("aria-modal") + ``` + + - A script that hides an `aria-modal` menu on Escape runs before a `window` host hears the key, so the game still gets that Escape. Prevent the key it handled: + + ```ts + document.addEventListener("keydown", (event) => { + if (event.key === "Escape" && menu.matches(":popover-open")) { + event.preventDefault() + menu.hidePopover() + } + }) + ``` + + - A game that merged a dialog's Escape with the game's Escape action (both arrived in one frame with focus on ``) now gets only the dialog's. + +### Patch Changes + +- Updated dependencies [cd6bb2e] +- Updated dependencies [989049f] + - @typeonce/ritmo@0.25.0 + ## 0.24.0 ### Minor Changes diff --git a/packages/browser/package.json b/packages/browser/package.json index 4e2c26d7..3267e4e8 100644 --- a/packages/browser/package.json +++ b/packages/browser/package.json @@ -1,6 +1,6 @@ { "name": "@typeonce/ritmo-browser", - "version": "0.24.0", + "version": "0.25.0", "description": "Browser fixed-step loop, keyboard, gamepad, pointer, and touch actions, merged input, local multiplayer, and input capture for Ritmo", "author": "Sandro Maglione", "license": "MIT", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 95d48c04..567ed84c 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,12 @@ # @typeonce/ritmo +## 0.25.0 + +### Patch Changes + +- cd6bb2e: The `ritmo` skill's UI playbook (`ui-and-render.md`) gains two steps for DOM controls and menus: build each control once and update it in place, never rewriting a region that holds one, and give it a name a test can find; a menu that stops play is a modal (`showModal()` on a ``, or an `aria-modal` element that moves focus in, keeps it there, and makes the page behind inert itself), whose `cancel` and `close` are intents, with a `popover="manual"` for a splash or wipe over it and a modal dialog of its own for a layer the player presses. +- 989049f: The `ritmo` skill's UI playbook (`ui-and-render.md`) checks a page with DOM controls with `ritmo-devtools keyboard`, on a route through every screen that shows them. + ## 0.24.0 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index d48d304f..ee8dcc69 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@typeonce/ritmo", - "version": "0.24.0", + "version": "0.25.0", "description": "The agent-first, type-safe ECS runtime for TypeScript", "author": "Sandro Maglione", "license": "MIT", diff --git a/packages/devtools/CHANGELOG.md b/packages/devtools/CHANGELOG.md index 9d0ff678..a47756fd 100644 --- a/packages/devtools/CHANGELOG.md +++ b/packages/devtools/CHANGELOG.md @@ -1,5 +1,18 @@ # @typeonce/ritmo-devtools +## 0.25.0 + +### Minor Changes + +- 989049f: `ritmo-devtools keyboard [--url ] [--route ] [--json]` plays the game's page by keyboard in Chromium and fails on what breaks keyboard play: a menu open with focus outside it, Tab leaving an open menu, a control with no accessible name, Enter or Space not pressing the focused control, a press that drops focus to ``, and a visible control the keyboard cannot reach. Each failure names the check, the screen, the control (role, name, selector), what was seen, and the fix; a check it cannot decide is printed as not checked, never as passed, and a screen on which nothing could be checked fails. Without `--url` it serves the working directory with the game's own Vite config. A route file lists the screens to visit and how to reach them (key presses, clicks, `waitFor` a named control, fixed waits); without one, the start page is the only screen. A loaded screen is walked as soon as it stops changing, and the real presses run on up to four pages at once, with any press that did not keep focus run again alone before it is reported. It presses controls for real to check focus, so a route marks what must not be pressed. It uses the optional `playwright` and `vite` peers `verify` already uses, at the same versions. + +### Patch Changes + +- Updated dependencies [cd6bb2e] +- Updated dependencies [989049f] + - @typeonce/ritmo@0.25.0 + - @typeonce/ritmo-netcode@0.25.0 + ## 0.24.0 ### Patch Changes diff --git a/packages/devtools/package.json b/packages/devtools/package.json index 4af17886..60663dd0 100644 --- a/packages/devtools/package.json +++ b/packages/devtools/package.json @@ -1,6 +1,6 @@ { "name": "@typeonce/ritmo-devtools", - "version": "0.24.0", + "version": "0.25.0", "description": "Headless debug sessions, trace history, text reports, replays, and fuzzing for Ritmo runtimes", "author": "Sandro Maglione", "license": "MIT", diff --git a/packages/devtools/src/internal/version.ts b/packages/devtools/src/internal/version.ts index 0baec02e..fb4a8fac 100644 --- a/packages/devtools/src/internal/version.ts +++ b/packages/devtools/src/internal/version.ts @@ -3,4 +3,4 @@ * `package.json` by `scripts/sync-version.ts` (run by \`pnpm version-packages\`) * and checked by a test. */ -export const libraryVersion = "0.24.0" +export const libraryVersion = "0.25.0" diff --git a/packages/math/CHANGELOG.md b/packages/math/CHANGELOG.md index 4867883e..2aad6873 100644 --- a/packages/math/CHANGELOG.md +++ b/packages/math/CHANGELOG.md @@ -1,5 +1,13 @@ # @typeonce/ritmo-math +## 0.25.0 + +### Patch Changes + +- Updated dependencies [cd6bb2e] +- Updated dependencies [989049f] + - @typeonce/ritmo@0.25.0 + ## 0.24.0 ### Patch Changes diff --git a/packages/math/package.json b/packages/math/package.json index a3f8da7e..8df1123f 100644 --- a/packages/math/package.json +++ b/packages/math/package.json @@ -1,6 +1,6 @@ { "name": "@typeonce/ritmo-math", - "version": "0.24.0", + "version": "0.25.0", "description": "The 2D helpers most Ritmo games would otherwise rewrite (vectors, angles, swept collision, flow field), plain data in and out, built on Ops so they replay the same on every engine", "author": "Sandro Maglione", "license": "MIT", diff --git a/packages/netcode/CHANGELOG.md b/packages/netcode/CHANGELOG.md index 6611cdd6..adc655e5 100644 --- a/packages/netcode/CHANGELOG.md +++ b/packages/netcode/CHANGELOG.md @@ -1,5 +1,13 @@ # @typeonce/ritmo-netcode +## 0.25.0 + +### Patch Changes + +- Updated dependencies [cd6bb2e] +- Updated dependencies [989049f] + - @typeonce/ritmo@0.25.0 + ## 0.24.0 ### Patch Changes diff --git a/packages/netcode/package.json b/packages/netcode/package.json index 60d767d5..de881143 100644 --- a/packages/netcode/package.json +++ b/packages/netcode/package.json @@ -1,6 +1,6 @@ { "name": "@typeonce/ritmo-netcode", - "version": "0.24.0", + "version": "0.25.0", "description": "Rollback and lockstep sessions over any transport for Ritmo: input timelines, checkpoint history, pacing, resync, and desync checks", "author": "Sandro Maglione", "license": "MIT", diff --git a/packages/oxlint-plugin/CHANGELOG.md b/packages/oxlint-plugin/CHANGELOG.md index ddca56c5..c5ced9fa 100644 --- a/packages/oxlint-plugin/CHANGELOG.md +++ b/packages/oxlint-plugin/CHANGELOG.md @@ -1,5 +1,9 @@ # @typeonce/oxlint-plugin-ritmo +## 0.25.0 + +No changes in this release. + ## 0.24.0 ### Minor Changes diff --git a/packages/oxlint-plugin/package.json b/packages/oxlint-plugin/package.json index 6874a9dd..2ec2ea4f 100644 --- a/packages/oxlint-plugin/package.json +++ b/packages/oxlint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@typeonce/oxlint-plugin-ritmo", - "version": "0.24.0", + "version": "0.25.0", "description": "Oxlint rules for Ritmo games: deterministic, headless simulation code and checked runtime results", "author": "Sandro Maglione", "license": "MIT", diff --git a/packages/pixi/CHANGELOG.md b/packages/pixi/CHANGELOG.md index f5b35b09..34710240 100644 --- a/packages/pixi/CHANGELOG.md +++ b/packages/pixi/CHANGELOG.md @@ -1,5 +1,11 @@ # @typeonce/ritmo-pixi +## 0.25.0 + +### Patch Changes + +- @typeonce/ritmo-render@0.25.0 + ## 0.24.0 ### Patch Changes diff --git a/packages/pixi/package.json b/packages/pixi/package.json index d5df6d80..75856adf 100644 --- a/packages/pixi/package.json +++ b/packages/pixi/package.json @@ -1,6 +1,6 @@ { "name": "@typeonce/ritmo-pixi", - "version": "0.24.0", + "version": "0.25.0", "description": "Pixi container adapter for Ritmo render-node registries", "author": "Sandro Maglione", "license": "MIT", diff --git a/packages/render/CHANGELOG.md b/packages/render/CHANGELOG.md index 7c1690b9..b7181810 100644 --- a/packages/render/CHANGELOG.md +++ b/packages/render/CHANGELOG.md @@ -1,5 +1,13 @@ # @typeonce/ritmo-render +## 0.25.0 + +### Patch Changes + +- Updated dependencies [cd6bb2e] +- Updated dependencies [989049f] + - @typeonce/ritmo@0.25.0 + ## 0.24.0 ### Patch Changes diff --git a/packages/render/package.json b/packages/render/package.json index 74c28923..bc4dbb07 100644 --- a/packages/render/package.json +++ b/packages/render/package.json @@ -1,6 +1,6 @@ { "name": "@typeonce/ritmo-render", - "version": "0.24.0", + "version": "0.25.0", "description": "Renderer-agnostic entity-to-node mirroring for Ritmo", "author": "Sandro Maglione", "license": "MIT", diff --git a/packages/tools/CHANGELOG.md b/packages/tools/CHANGELOG.md index 91af6191..eb032372 100644 --- a/packages/tools/CHANGELOG.md +++ b/packages/tools/CHANGELOG.md @@ -1,5 +1,9 @@ # @typeonce/ritmo-tools +## 0.25.0 + +No changes in this release. + ## 0.24.0 ### Minor Changes diff --git a/packages/tools/package.json b/packages/tools/package.json index 31078c87..874ec64a 100644 --- a/packages/tools/package.json +++ b/packages/tools/package.json @@ -1,6 +1,6 @@ { "name": "@typeonce/ritmo-tools", - "version": "0.24.0", + "version": "0.25.0", "description": "Asset tools for games made with Ritmo, for agents: fixes AI-made pixel art and animation sheets onto a true pixel grid and a palette, makes normal maps for art a game lights, keeps game sounds as JSON recipes, writes game music as JSON songs built around a hum, and draws pixel art effects as code, each with a review page for a person, pixel art included", "author": "Sandro Maglione", "license": "MIT", diff --git a/packages/tools/src/internal/version.ts b/packages/tools/src/internal/version.ts index 5e0b3ddf..cbab6010 100644 --- a/packages/tools/src/internal/version.ts +++ b/packages/tools/src/internal/version.ts @@ -3,4 +3,4 @@ * `package.json` by `scripts/sync-version.ts` (run by `pnpm version-packages`) * and checked by a test. */ -export const toolsVersion = "0.24.0" +export const toolsVersion = "0.25.0"