Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pocketbase 0.16.0 #131527

Merged
merged 2 commits into from
May 21, 2023
Merged

pocketbase 0.16.0 #131527

merged 2 commits into from
May 21, 2023

Conversation

Porkepix
Copy link
Contributor

Created by brew bump


Created with brew bump-formula-pr.

release notes
- Added automated backups (_+ cron rotation_) APIs and UI for the `pb_data` directory.
  The backups can be also initialized programmatically using `app.CreateBackup("backup.zip")`.
  There is also experimental restore method - `app.RestoreBackup("backup.zip")` (_currently works only on UNIX systems as it relies on execve_).
  The backups can be stored locally or in external S3 storage (_it has its own configuration, separate from the file uploads storage filesystem_).
  • Added option to limit the returned API fields using the ?fields query parameter.
    The "fields picker" is applied for SearchResult.Items and every other JSON response. For example:

    // original: {"id": "RECORD_ID", "name": "abc", "description": "...something very big...", "items": ["id1", "id2"], "expand": {"items": [{"id": "id1", "name": "test1"}, {"id": "id2", "name": "test2"}]}}
    // output:   {"name": "abc", "expand": {"items": [{"name": "test1"}, {"name": "test2"}]}}
    const result = await pb.collection("example").getOne("RECORD_ID", {
      expand: "items",
      fields: "name,expand.items.name",
    })
  • Added new ./pocketbase update command to selfupdate the prebuilt executable (with option to generate a backup of your pb_data).

  • Added new ./pocketbase admin console command:

    // creates new admin account
    ./pocketbase admin create [email protected] 123456890
    
    // changes the password of an existing admin account
    ./pocketbase admin update [email protected] 0987654321
    
    // deletes single admin account (if exists)
    ./pocketbase admin delete [email protected]
  • Added apis.Serve(app, options) helper to allow starting the API server programmatically.

  • Updated the schema fields Admin UI for "tidier" fields visualization.

  • Updated the logs "real" user IP to check for Fly-Client-IP header and changed the X-Forward-For header to use the first non-empty leftmost-ish IP as it the closest to the "real IP".

  • Added new tools/archive helper subpackage for managing archives (currently works only with zip).

  • Added new tools/cron helper subpackage for scheduling task using cron-like syntax (this eventually may get exported in the future in a separate repo).

  • Added new Filesystem.List(prefix) helper to retrieve a flat list with all files under the provided prefix.

  • Added new App.NewBackupsFilesystem() helper to create a dedicated filesystem abstraction for managing app data backups.

  • Added new App.OnTerminate() hook (executed right before app termination, eg. on SIGTERM signal).

  • Added meta.isNew to the OAuth2 auth JSON response to indicate a newly OAuth2 created PocketBase user.

  • Added accept file field attribute with the field MIME types (#2466; thanks @Nikhil1920).

  • Added support for multiple files sort in the Admin UI (#2445).

  • Added support for multiple relations sort in the Admin UI.

@github-actions github-actions bot added go Go use is a significant feature of the PR or issue bump-formula-pr PR was created using `brew bump-formula-pr` labels May 21, 2023
@github-actions
Copy link
Contributor

🤖 An automated task has requested bottles to be published to this PR.

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label May 21, 2023
@BrewTestBot BrewTestBot enabled auto-merge May 21, 2023 17:31
@BrewTestBot BrewTestBot added this pull request to the merge queue May 21, 2023
Merged via the queue into Homebrew:master with commit 954aed9 May 21, 2023
@Porkepix Porkepix deleted the bump-pocketbase-0.16.0 branch May 21, 2023 17:53
@github-actions github-actions bot added the outdated PR was locked due to age label Jun 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bump-formula-pr PR was created using `brew bump-formula-pr` CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. go Go use is a significant feature of the PR or issue outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants