Skip to content

Tests + client player-stat fields; npm publish; v1.5.0 - #1

Merged
KoSHeroff merged 1 commit into
mainfrom
tests-client-fields-1.5.0
Jul 23, 2026
Merged

Tests + client player-stat fields; npm publish; v1.5.0#1
KoSHeroff merged 1 commit into
mainfrom
tests-client-fields-1.5.0

Conversation

@KoSHeroff

@KoSHeroff KoSHeroff commented Jul 23, 2026

Copy link
Copy Markdown
Member

What

  • New client fields on WebGUIClient to match what the mod pushes on window.webgui.client: look {yaw,pitch}, health, maxHealth, food, xpLevel, gamemode?.
  • Test suite (Vitest + jsdom + Testing Library): 30 tests covering utils, client/entity stores, all hooks, and the new fields. Runs in CI (npm test) and before publish.
  • npm publish wiring: reference the publish environment / repo secret so NPM_TOKEN is available, and fix repository.urlmc-webgui/react-bridge so npm publish --provenance succeeds.
  • Version → 1.5.0 to match the mod.

Release

On merge to main, release.yml publishes @webgui/react@1.5.0 to npm (provenance) and creates tag v1.5.0 + GitHub Release.

… 1.5.0

- types: add look, health, maxHealth, food, xpLevel, gamemode to WebGUIClient
  to match the fields the mod pushes on window.webgui.client
- tests: add Vitest suite (30 tests) for utils, stores, hooks, and new fields;
  run it in CI and before publish
- release: reference the 'publish' environment so NPM_TOKEN is available, and
  fix package.json repository URL (mc-webgui/react-bridge) so --provenance works
- bump version to 1.5.0 to match the mod

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@KoSHeroff
KoSHeroff merged commit 6c795a0 into main Jul 23, 2026
2 checks passed
@KoSHeroff
KoSHeroff deleted the tests-client-fields-1.5.0 branch July 23, 2026 23:56
KoSHeroff added a commit that referenced this pull request Jul 24, 2026
… 1.5.0 (#1)

- types: add look, health, maxHealth, food, xpLevel, gamemode to WebGUIClient
- tests: add Vitest suite (30 tests) for utils, stores, hooks, and new fields
- release: wire NPM_TOKEN, fix package.json repository URL for --provenance
- bump version to 1.5.0 to match the mod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant