# Migration Context: PocketBase v0.21 -> v0.22 # Generated by Changelogs.us: 2026-11-30T03:04:34.536615+00:00 # Target Version: v0.22.57 # Upgrade Command: N/A # Breaking Changes: 10 # Security Fixes: 2 ## Executive Summary Upgrading PocketBase from 0.21 to 0.22 involves 155 releases with risk rating High. ## Breaking Changes List: - [vv0.22.0] _To minimize the breaking changes, the old parenthesis reference syntax (`yourCollection(yourRelField)`) will still continue to work but it is soft-deprecated and there will be a console log reminding you to change it to the new one._: - [vv0.22.15] If you are extending PocketBase with Go and updating with the `go get -u` command, you may get `modernc.org/libc` build error. This is because `modernc.org/libc` seems to have introduced breaking change(s) as minor release.: - [vv0.22.22] - Added `update` command warning to prevent unnecessary downloading PocketBase v0.23.0 since it will contain breaking changes.: - [vv0.23.0] This release introduces many Go/JSVM and Web APIs breaking changes!: - [vv0.27.0] It could be a minor breaking change if you are relying on the old behavior and have a Go `tests.ApiScenario` that is testing a Create API rule failure and expect `OnRecordCreateRequest` to be fired. In that case for example you may have to update your test scenario like:: - [vv0.32.0] Similar to the previous release, probably for most users with already configured API rules this change won't be breaking, but if you have an _intermediate/junction collection_ that is "locked" (superusers-only) we no longer will allow the client-side relation filter to pass through it and you'll have to set its List/Search API rule to enable the current user to search in it.: - [vv0.39.0] - allowed word breaking in labels - text contrast improvements - registered missing `oidc2` and `oidc3` option fields: - [vv0.40.0] _⚠️ Note that this could be a slight breaking change in case you are chaining PocketBase commands and relied on the previous `0` exit status for `Command.RunE` returned errors._: - [vv0.40.0] - `filesystem.OnNewWriter()` hook to allow listening for new/to-be-created files _(it is not exposed in `core.App` instance for now to avoid introducing breaking changes)_.: - [vv0.40.0] - `filesystem.OnDelete()` hook to allow listening for deleted files _(it is not exposed in `core.App` instance for now to avoid introducing breaking changes)_.: ## Patched Vulnerabilities (CVEs): - [CVE-2024-45338] (Severity: UNRATED) in vv0.23.11: Security advisory CVE-2024-45338 patched in pocketbase v0.23.11 - [CVE-2026-33809] (Severity: UNRATED) in vv0.36.8: Security advisory CVE-2026-33809 patched in pocketbase v0.36.8 ## Instructions for AI Assistant: When migrating user code from PocketBase 0.21 to 0.22, scan for the deprecated APIs and breaking changes above and refactor code to use modern vv0.22.57 idioms.