github pocketbase/pocketbase v0.22.0
v0.22.0 Release

latest releases: v0.22.12, v0.22.11, v0.22.10...
3 months ago

To update the prebuilt executable you can run ./pocketbase update.

  • Added Planning Center OAuth2 provider (#4393; thanks @alxjsn).

  • Admin UI improvements:

    • Autosync collection changes across multiple open browser tabs.
    • Fixed vertical image popup preview scrolling.
    • Added options to export a subset of collections.
    • Added option to import a subset of collections without deleting the others (#3403).
  • Added support for back/indirect relation filter/sort (single and multiple).
    The syntax to reference back relation fields is yourCollection_via_yourRelField.*.
    ⚠️ To avoid excessive joins, the nested relations resolver is now limited to max 6 level depth (the same as expand).
    Note that in the future there will be also more advanced and granular options to specify a subset of the fields that are filterable/sortable.

  • Added support for multiple back/indirect relation expand and updated the keys to use the _via_ reference syntax (yourCollection_via_yourRelField).
    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.

  • ⚠️ Collections and fields are no longer allowed to have _via_ in their name to avoid collisions with the back/indirect relation reference syntax.

  • Added jsvm.Config.OnInit optional config function to allow registering custom Go bindings to the JSVM.

  • Added @request.context rule field that can be used to apply a different set of constraints based on the API rule execution context.
    For example, to disallow user creation by an OAuth2 auth, you could set for the users Create API rule @request.context != "oauth2".
    The currently supported @request.context values are:

    default
    realtime
    protectedFile
    oauth2
    
  • Adjusted the cron.Start() to start the ticker at the 00 second of the cron interval (#4394).
    Note that the cron format has only minute granularity and there is still no guarantee that the scheduled job will be always executed at the 00 second.

  • Fixed auto backups cron not reloading properly after app settings change (#4431).

  • Upgraded to aws-sdk-go-v2 and added special handling for GCS to workaround the previous GCS headers signature issue that we had with v2.
    This should also fix the SVG/JSON zero response when using Cloudflare R2 (#4287, #2068, #2952).
    ⚠️ If you are using S3 for uploaded files or backups, please verify that you have a green check in the Admin UI for your S3 configuration (I've tested the new version with GCS, MinIO, Cloudflare R2 and Wasabi).

  • Added :each modifier support for file and relation type fields (previously it was supported only for select type fields).

  • Other minor improvements (updated the ghupdate plugin to use the configured executable name when printing to the console, fixed the error reporting of admin update/delete commands, etc.).

Don't miss a new pocketbase release

NewReleases is sending notifications on new releases.