Files
pocketbase/CHANGELOG.md
T
2026-08-18 22:56:09 +03:00

1.6 KiB

v0.40.0 (WIP)

  • Propagate console command errors and recovered panics to app.Start() so that the program can exit with non-zero code while still ensuring that app.OnTerminate hook (responsible for the app graceful shutdown handling) was triggered. ⚠️ 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. Or in other words, if you have ./pocketbase invalid && someothercommand and previously relied that someothercommand will be always executed then this is no longer the case and you'll have to adjust it or replace && with ;.

  • Added quotes around the default Content-Disposition serving filename in case custom name with special characters is provided.

  • Added filesystem.NewWriter(key, opts) low-level helper to allow direct file create from an io.Reader value.

  • Added Cross-Origin-Opener-Policy:same-origin to the default security response headers. This is just an extra precaution to prevent tab-nabbing in case custom UI plugins use target="_blank" without rel="noopener".

  • Added new log settings option to limit the max Log.Data size (default to ~16KB). This is an extra precaution for the cases when logging user supplied data without validating it beforehand. If the resulting Log.Data json is above the limit, it is truncated to the last valid decoded character and an extra "__pb_truncated__":true log data entry will be added.`

  • (@todo) Bumped the min Go version to 1.27.0 and migrated to the new encoding/json/v2 package.