BGS lets the only human of a game against bots take back their last saved
move (protocol 0.10.0). Both viewers show an "Undo my move" control with the
turn tools (an icon in the mobile action tray's title bar) while BGS reports
it available on that player's live board: never to spectators, nor in
replays, planning, BGS analysis or tutorials, nor while a queued plan awaits
the server. It asks BGS to undo; when the earlier state arrives, selections
made on the later board are dropped with the turn being composed. Back still
steps through the turn being composed, locally.
- @boardgamers/protocol 0.8.1 -> 0.10.0 (added to minimumReleaseAgeExclude)
- "Undo my move" in all 16 locales
- unit tests, a browser smoke test of both bundles, and BGS-like undo in the
local premove preview
- viewer 5.20.58, old-ui 1.0.21
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Improve premoves and fix random auctions and Ivits exploration
* Fix blocked legacy random-faction sealed auctions
* Allow premoves for initial building and booster choices
* Compact setup actions and show ship explorers
* Restore auto-charge controls in Gaia game UI
* Use published player-settings protocol 0.3.4
* Allow verified protocol 0.3.4 during release-age quarantine
* Keep planning and auto-charge in the action bar outside your turn
* Bump viewer to 5.20.6 for action bar release
* Use shared BGS viewer and chat protocol
* Use shared chat panel with faction portraits and mobile viewport
* Update shared chat visibility and show date separators
* Keep typing after completing a chat mention
The vue-cli/webpack 4 toolchain was the root cause of three shipped
production crashes this week (iterator-spread __spreadArrays RangeError,
stale cache-loader emitting raw vue_1.default for the vue external, and
the TDZ circular-import). Replace it:
- vite.config.ts: lib build of src/wrapper.ts -> dist/package/
viewer.umd.js (IIFE, esnext, minified) + viewer.css + map. vue and
bootstrap-vue stay external (window.Vue / window.BootstrapVue) via
plain global reads - no .default interop possible. process.env is
baked to ({}) via define, matching vue-cli's old defaults.
- vitest.config.ts: jsdom env, single fork, chai-compatible specs run
unchanged. 879 tests pass (was 809 - the json-driven chart/resource
suites now register their dynamic tests properly under vitest).
- import type correctness across the codebase: rolldown rejects
value-imports of type-only exports, so type-only imports are now
written as import type (and mixed imports split). Also fixes
self-contained-state.ts's reassignment of a destructured const.
- Commands.spec.ts: split a two-render test into two its - two
@testing-library renders of Commands in one test interfere under
vitest.
- scripts: package/build -> vite build, test -> vitest run.
- devDeps: +vite +@vitejs/plugin-vue2 +vitest +jsdom +esbuild +events
(browser polyfill for the engine's node 'events' import).
Verified in Chromium against the built bundle: loads with CDN Vue 2 +
BootstrapVue, Rotate sectors completes with and without rotations, zero
pageerrors; the bundle contains no __spreadArrays helpers.
- Replace all iterator spreads ([...map.values()] etc) with Array.from() across
engine and viewer: under the TS->babel downlevel chain they compiled to
__spreadArrays, which reads .length on an iterator and produced
'RangeError: invalid array length' on 'Sector rotations finished' (the
reported boardgamers.space crash), plus several latent same-class sites.
- Break the research-tracks.ts -> ../index barrel import cycle (imports
Event/Expansion from leaf modules now): the cycle left Engine in TDZ and
the whole bundle failed with 'Cannot access engine_Engine before
initialization' at module eval under the rebuilt module order.
- Fix stale cache-loader output producing raw vue_1.default accesses for the
vue webpack external (window.Vue has no .default): 'Cannot read properties
of undefined (reading extend)' at load. Clean rebuild emits babel interop
wrappers correctly. vue-global-shim.js added as belt-and-braces doc for the
external's shape.
- Add autoprefixer as an explicit viewer devDependency (pnpm 11 no longer
hoists it; the lib build failed on postCSS plugin load).
- Update stale spec type signatures surfaced by the import change (tile
position as EventSource, loadFaction arity, ChargeRequest literal cast,
AvailableCommand data narrowing, FederationInfo new fields).
Verified: engine 750 passing / 4 pending; viewer 809 passing; lint + prettier
clean; rebuilt UMD has zero iterator-spread call sites and loads + completes
sector rotation (with and without rotations) in Chromium against the real
bundle with CDN-provided Vue 2.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Kim <kim.pham.nguyen2@gmail.com>
Co-authored-by: kimphamnguyen <82032729+kimphamnguyen@users.noreply.github.com>