r--w / pocketbase

PocketBase Go SDK
MIT License
83 stars 30 forks source link

Bump github.com/pocketbase/pocketbase from 0.12.3 to 0.13.0 #44

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps github.com/pocketbase/pocketbase from 0.12.3 to 0.13.0.

Release notes

Sourced from github.com/pocketbase/pocketbase's releases.

v0.13.0 Release

  • Added new "View" collection type allowing you to create a read-only collection from a custom SQL SELECT statement. It supports:

    • aggregations (COUNT(), MIN(), MAX(), GROUP BY, etc.)
    • column and table aliases
    • CTEs and subquery expressions
    • auto relation fields association
    • file fields proxying (up to 5 linked relations, eg. view1->view2->...->base)
    • filter, sort and expand
    • List and View API rules
  • Added auto fail/retry (default to 8 attempts) for the SELECT queries to gracefully handle the database is locked errors (#1795). The default max attempts can be accessed or changed via Dao.MaxLockRetries.

  • Added default max query execution timeout (30s). The default timeout can be accessed or changed via Dao.ModelQueryTimeout. For the prebuilt executables it can be also changed via the --queryTimeout=10 flag.

  • Added support for dao.RecordQuery(collection) to scan directly the One() and All() results in *models.Record or []*models.Record without the need of explicit NullStringMap.

  • Added support to overwrite the default file serve headers if an explicit response header is set.

  • Added file thumbs when visualizing relation display file fields.

  • Added "Min select" relation field option.

  • Enabled process.env in JS migrations to allow accessing os.Environ().

  • Added UploadedFiles field to the RecordCreateEvent and RecordUpdateEvent event structs.

  • ! Moved file upload after the record persistent to allow setting custom record id safely from the OnModelBeforeCreate hook.

  • ! Changed System.GetFile() to return directly *blob.Reader instead of the io.ReadCloser interface.

  • ! Changed To, Cc and Bcc of mailer.Message to []mail.Address for consistency and to allow multiple recipients and optional name.

    If you are sending custom emails, you'll have to replace:

    message := &mailer.Message{
      ...
    

    // (old) To: mail.Address{Address: "to@example.com"} To: []mail.Address{{Address: "to@example.com", Name: "Some optional name"}},

    // (old) Cc: []string{"cc@example.com"} Cc: []mail.Address{{Address: "cc@example.com", Name: "Some optional name"}},

    // (old) Bcc: []string{"bcc@example.com"} Bcc: []mail.Address{{Address: "bcc@example.com", Name: "Some optional name"}},

    ...

... (truncated)

Changelog

Sourced from github.com/pocketbase/pocketbase's changelog.

v0.13.0

  • Added new "View" collection type allowing you to create a read-only collection from a custom SQL SELECT statement. It supports:

    • aggregations (COUNT(), MIN(), MAX(), GROUP BY, etc.)
    • column and table aliases
    • CTEs and subquery expressions
    • auto relation fields association
    • file fields proxying (up to 5 linked relations, eg. view1->view2->...->base)
    • filter, sort and expand
    • List and View API rules
  • Added auto fail/retry (default to 8 attempts) for the SELECT queries to gracefully handle the database is locked errors (#1795). The default max attempts can be accessed or changed via Dao.MaxLockRetries.

  • Added default max query execution timeout (30s). The default timeout can be accessed or changed via Dao.ModelQueryTimeout. For the prebuilt executables it can be also changed via the --queryTimeout=10 flag.

  • Added support for dao.RecordQuery(collection) to scan directly the One() and All() results in *models.Record or []*models.Record without the need of explicit NullStringMap.

  • Added support to overwrite the default file serve headers if an explicit response header is set.

  • Added file thumbs when visualizing relation display file fields.

  • Added "Min select" relation field option.

  • Enabled process.env in JS migrations to allow accessing os.Environ().

  • Added UploadedFiles field to the RecordCreateEvent and RecordUpdateEvent event structs.

  • ! Moved file upload after the record persistent to allow setting custom record id safely from the OnModelBeforeCreate hook.

  • ! Changed System.GetFile() to return directly *blob.Reader instead of the io.ReadCloser interface.

  • ! Changed To, Cc and Bcc of mailer.Message to []mail.Address for consistency and to allow multiple recipients and optional name.

    If you are sending custom emails, you'll have to replace:

    message := &mailer.Message{
      ...
    

    // (old) To: mail.Address{Address: "to@example.com"} To: []mail.Address{{Address: "to@example.com", Name: "Some optional name"}},

    // (old) Cc: []string{"cc@example.com"} Cc: []mail.Address{{Address: "cc@example.com", Name: "Some optional name"}},

    // (old) Bcc: []string{"bcc@example.com"} Bcc: []mail.Address{{Address: "bcc@example.com", Name: "Some optional name"}},

... (truncated)

Commits
  • dc96a12 updated ui/dist
  • 0bb58eb minor UI fixes
  • cf6d325 added model query autocancellation test
  • 578e1c9 #223 updated the internal redirects to allow easier subpath deployment when...
  • 4778fc7 added min select relation field option
  • f1a6a82 prevent collectionId relation field change
  • 21b152b fixed formatting and typos
  • aa4e405 replaced authentik with generic oidc provider
  • e529fe7 added --queryTimeout flag
  • 6ab2fa9 updated default query timeout to 1m
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 1 year ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.