Upgrading from 1.0.0 to 1.0.1

Handbook · Operations · Changelog (CHANGELOG.md)

1.0.1 is a small release. It has no database migration and no new .env key, so it needs no maintenance window. It changes:

  • The download is the engine core only. It ships no plugin, game kit, content pack or asset pack, and pulse-base is its one theme. 1.0.0 bundled the free daily-rewards, referrals and advanced-properties plugins, the Cyberpunk Grid, Space Colony and Cookie Raid kits, the paid Mafia Underworld kit (its recipe, theme copy, seeder, the mafia-docklands content pack and its pages in the prebuilt player), four asset packs and the noir-syndicate, cyberpunk-neon, medieval-feudal, slate-minimal and void-odyssey themes. They are all marketplace products now; php artisan kit:list and Admin > Game kits show an empty list that points there, and a fresh install's player home says that no game features are installed yet. php artisan kit:install mafia-underworld --from-marketplace now downloads the kit itself before its plugins.
  • No 3D stage. The stage session endpoints, the stage room server and the player's world stage belong to the separate Pulse 3D project.
  • An existing install keeps what it has. Extracting 1.0.1 over 1.0.0 deletes nothing, so the plugins, themes, packs and kit files already in your installation stay installed and enabled, with their data. To update one later, install it from the marketplace.
  • Clearer licence messages. A kit install that needs a paid plugin this install has no licence for marks it Paid: needs a licence, with the marketplace link, and stops before downloading anything. The message says how to connect the install to your PBBG Vault account (see setup).
  • One application image in Docker. docker compose up -d --build builds the backend image once and runs it for backend, horizon, scheduler and reverb. 1.0.0 built it four times in parallel, and the parallel composer install runs could fail with HTTP 504 from GitHub.
  • Staff chat renders BBCode through an allow-list instead of raw HTML: a crafted link could run script in an admin's browser. Its gang-mention link class is gone with the [gang] tag; core keeps player-mention. Plugin authors, see the last section.
  • System Health fixes from the 1.0.0 line: scheduled exec lines that start with an environment assignment are no longer shown, workers of other server users are not counted without the posix extension, the Redis scheduler heartbeat is read, and a heartbeat in the future is a warning.
  • Handbook fixes. The database dictionary and contract checklist no longer describe open-world tables, controllers and components that moved to the separate pulse-3d product.

The changelog (CHANGELOG.md) lists every change.

Steps

Run commands from the installation's backend directory with the PHP CLI the site uses (in Docker, docker compose exec backend php artisan ... from the project root).

  1. Take a backup, for example with php artisan pulse:backup:database, and keep a copy of the project folder.

  2. Switch the code to 1.0.1. Extracting the release archive over the old installation adds and replaces files but deletes none. That leaves your .env files, storage and uploads where they are, and the plugins, themes and packs 1.0.0 bundled. It also leaves 1.0.0's copy of the Mafia Underworld kit on disk (backend/storage/kits/mafia-underworld, its seeder, content pack and player source), so an installation that runs the kit keeps working after step 4. Leave those files.

  3. Rebuild the configuration cache and restart long-running processes.

    php artisan config:cache
    

    Then restart this site's PHP-FPM, and Horizon or the queue workers.

    Docker. From the project root run docker compose up -d --build. It builds the new <project>-app:local image once and recreates the four application containers from it. The 1.0.0 per-service images (<project>-backend, <project>-horizon, <project>-scheduler, <project>-reverb) are no longer used; docker image ls lists them, and you can remove them with docker image rm.

  4. If your game runs the Mafia Underworld kit, update the kit to 1.4.0. The 1.0.1 prebuilt player in backend/public has no Mafia pages, so after step 2 the site shows the engine's own login and home pages until you do. Kit 1.4.0 carries its pages prebuilt, so updating it needs no rebuild. With the kit's licence connected (Admin > Plugins > Marketplace > Marketplace connection), run:

    php artisan kit:install mafia-underworld --from-marketplace --dry-run
    php artisan kit:install mafia-underworld --from-marketplace --no-seed
    

    Because 1.0.0's copy of the kit (1.3.3) is still in backend/storage/kits, move that folder aside first (for example to backend/storage/kits-1.0.0-backup/), so the command downloads 1.4.0 instead of reusing it. --no-seed leaves your game data as it is. The kit stays applied, with its plugins, settings and theme. If the command stops on a file you edited, it names it; --force replaces it and keeps a backup under storage/app/kits/kit-mafia-underworld/backups. 1.0.1 no longer knows the hashes of the noir-syndicate 1.0.1 theme files that 1.0.0 shipped, so an installation that still has that theme stops on them even when you did not edit them: check the named files, then run the install again with --force.

    Without the licence, you can rebuild the player from the 1.0.0 kit source that is still in frontend/src instead (Node 20.19+ or 22.12+, from the project root: cd frontend && npm ci && npm run type-check && npm run build && cp -r dist/. ../backend/public/).

    Games that do not use the kit need nothing here.

For plugin authors

The staff chat fix removed three text-formatting entry points from core: the TextFormatter service and facade methods format() and parseBBCode(), and the route POST /api/v1/format/preview. parseEmoji() now escapes its input. A plugin that called them must render its text through its own allow-list; Vue code should not render user text with v-html.

Going back

1.0.1 adds no migration, so going back is putting the 1.0.0 files back from the copy in step 1 and repeating step 3 (in Docker, with the 1.0.0 docker-compose.yml).