PocketBase 0.40.6 + JS SDK 0.28.2; explicit JSON limits; setup steps for the new dashboard #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "session/pocketbase-0.40"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Upgrades PocketBase from 0.23.12 to 0.40.6 and the JS SDK from 0.26.9 to 0.28.2, fixes JSON field limits that were never applied, and rewrites the fresh-install steps for the new PocketBase dashboard.
⚠️ Deploy
pb_datafirst. On its first start, 0.40 upgrades the database in place. To roll back, restore that backup; don't start 0.23 on upgraded data.Changes
docker-compose.yml:elestio/pocketbase:v0.40.6, pinned by digest.pocketbaseSDK^0.28.2in both apps andpackages/shared. 0.27 and 0.28 only add handlers and fixpb.filter().1793400000_json_field_limits.js+pb_schema.json): six JSON fields had their limits underoptions.maxSize, which PocketBase ignores, so they used PocketBase's default. In 0.29 that default fell to 1MB, so on 0.40 a 1.5MB page that 0.23 saved is refused. The migration sets the intended limits explicitly (page and email blocks 2MB, site design 1MB, …). The largest real page is ~17KB, so this guards against a future surprise rather than fixing a current break.users(tested), leaving only superusers able to sign in to the admin.options.Tested
Each test ran on main (0.23.12 + SDK 0.26) and on this branch, on copies of real data, and the results were compared:
usersaccount) + public pagesbackups/, every page renders, all 29 images load, re-export matchespb_schema.jsonimport → shop run + all admin pagessvelte-check, both appsAlready the case on 0.23.12 and left alone: on a fresh install's first start the privacy cron logs
retention at startup failed … no rows in result set, because the collections don't exist yet. It's harmless (now noted in the README).Not tested: a real card payment through
stripe-mock, SMTP emails, and clicking through the new dashboard in a browser. The import steps were checked against the dashboard's code and the API it calls.🤖 Generated with Claude Code
https://claude.ai/code/session_01HA82gX7xH4zwYTr5vE7mf8