Upgrading
This page explains what changed in each version and what you need to fix in your own code.
How to upgrade
-
Commit your own changes with git.
-
Update the packages, build, and clear the compiled views:
composer update "zubazar/*" npm run build php artisan view:clear -
If you published the PRO JS file to
public/vendor/zubazar-ui-pro(ACUN UI:public/vendor/acun-pro), publish it again:php artisan vendor:publish --tag=zubazar-ui-pro-assets --force -
If the release notes (the packages' CHANGELOG.md) list a change that concerns you, apply it.
Tip
If you copied a component's view into your application, compare your copy with the new version in the package. Copies don't receive updates.
Moving from ACUN UI
ACUN UI and ACUN Pro are now Zubazar UI and Zubazar UI Pro; the versions start again at 0.0.1 (it continues ACUN UI 3.1.1). The packages, namespaces, tags and browser names come with the new names. The old names lead to the new ones until 1.0, so your application keeps working after the update. Only the --ac-* variables in your own CSS wait for the migrate command.
| ACUN UI 3.x | Zubazar UI |
|---|---|
acunsoft/acun-ui, acunsoft/acun-pro |
zubazar/ui, zubazar/ui-pro |
@acunsoft/acun-ui, @acunsoft/acun-pro |
@zubazar/ui, @zubazar/ui-pro (file:vendor/zubazar/…) |
Acun\Ui\…, Acun\… |
Zubazar\Ui\…, Zubazar\… |
<acun:button> |
<zb:button> |
@acunUiScripts, @acunFonts |
@zubazarUiScripts, @zubazarFonts |
config/acun-ui.php, config/acun-pro.php |
config/zubazar-ui.php, config/zubazar-ui-pro.php |
acun:install, acun:themes, acun.theme |
zubazar:install, zubazar:themes, zb.theme |
window.AcunUI, data-acun-*, acun:modal:opened |
window.ZubazarUI, data-zb-*, zb:modal:opened |
--ac-*, .ac-container |
--zb-*, .zb-container |
| docs.acunui.com, acunui.com | ui.zubazar.com/docs, ui.zubazar.com |
To move:
-
In
composer.json, requirezubazar/uiandzubazar/ui-pro(0.0.*) instead ofacunsoft/acun-uiandacunsoft/acun-pro, thencomposer update. The migrate command does this too. -
Run the migrate command dry first, then for real:
php artisan zubazar:migrate --dry-run php artisan zubazar:migrateIt rewrites the old names in your application's own files: views, CSS, JS, PHP,
composer.json,package.jsonand the Vite config. It also moves the config files, published views and files such asacun-themes.cssto their new names. The application's own names (App\Acun\…, your own image files) stay. -
composer update,npm install,npm run build,php artisan view:clear.
Appearance choices saved in the browser move to the new key on their own. The 1.x acun-ui-pro and ecommerce view namespaces, the old publish tags and the public/vendor/acun-ui-pro copy are gone; the 1.x class names still lead to the new classes.