# Migration Context: PocketBase v0.39 -> v0.40 # Generated by Changelogs.us: 2026-11-30T03:04:34.968689+00:00 # Target Version: v0.40.6 # Upgrade Command: N/A # Breaking Changes: 3 # Security Fixes: 0 ## Executive Summary Upgrading PocketBase from 0.39 to 0.40 involves 12 releases with risk rating High. ## Breaking Changes List: - [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)_.: ## Instructions for AI Assistant: When migrating user code from PocketBase 0.39 to 0.40, scan for the deprecated APIs and breaking changes above and refactor code to use modern vv0.40.6 idioms.