Upgrading
How to move an existing project to a newer version of the Board Web SDK. The SDK is the @board.fun/web-sdk package, and the packaging tool is web-pack; both update through your package manager.
Steps
-
Review the Changelog. Read the entries between your current version and the latest. Pay attention to Changed and Removed, those are where code-level migration is needed.
-
Update the package. Bump
@board.fun/web-sdkto the latest version:npm install @board.fun/web-sdk@latestIf you use the packaging tool, update it too:
npm install --save-dev @board/web-pack@latest -
Rebuild and repack. Build your app and repack it. Your
board.config.jsonalready holds the app’sappId, so the repacked app keeps the same identity and existing saves stay associated.vite build web-pack dist --package-id fun.board.mygame --name "My Game" -
Reinstall. Push the new package to the device with
board-connect:board-connect install <appId>.webapp.zip --launch
See Build & Deploy for the full deploy loop.
Keep board.config.json under version control
The appId in board.config.json is what ties your app to its saved games on the device. Committing the file means upgrades and rebuilds reuse the same appId, so saves survive across versions. If the file is lost, the device treats the rebuilt app as new and the old saves are no longer associated with it.
Capabilities, not versions
When a newer SDK exposes a feature that depends on newer OS behavior, do not gate it on Board.sdkVersion. There is intentionally no bridge or OS version exposed to games; new OS capabilities degrade gracefully through in-bridge capability checks. Where you need a runtime gate, use Board.session.areServicesReady(). See the API Reference.
Next steps
- Installation: a clean install from scratch.
- Build & Deploy: the full build, pack, and deploy loop.