Upgrading
NativeBlade ships as SDK versions (SDK 37, SDK 38, and so on). Each SDK is a
release line, and an SDK bump is where breaking changes can land. Moving to a new
SDK is a few steps.
Steps
Bump the package to the new SDK line:
composer require nativeblade/nativeblade:^38Sync your project with the installed version:
php artisan nativeblade:updateThis updates
package.json,vite.wasm.config.js, and the Cargo config,
regenerates your native config (Cargo.toml, capabilities,package.json
features), and runsnpm install. If you had editedvite.wasm.config.js,
the previous file is kept asvite.wasm.config.js.bakso you can diff your
changes back.Rebuild:
npm run build php artisan nativeblade:devThe first run after an SDK bump recompiles the Rust binary, which takes a few
minutes. Later runs are fast.
For mobile, rebuild per platform:
php artisan nativeblade:dev --platform=android --build
php artisan nativeblade:dev --platform=ios --build
Before you upgrade
- Check Compatibility for the Laravel, Livewire, and
PHP versions the new SDK requires, and bump those in your project if needed. - Read the release notes for the SDK you are moving to, for any breaking changes.
Pinning a version
composer require nativeblade/nativeblade:^37 keeps you on the SDK 37 line and
still receives its patches and features, but not the next SDK. Bump the major
yourself when you are ready to move.