v0.13.0
版本发布时间: 2023-02-26 17:28:09
pocketbase/pocketbase最新发布版本:v0.22.21(2024-09-18 11:56:49)
-
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
andexpand
- List and View API rules
- aggregations (
-
Added auto fail/retry (default to 8 attempts) for the
SELECT
queries to gracefully handle thedatabase is locked
errors (#1795). The default max attempts can be accessed or changed viaDao.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 theOne()
andAll()
results in*models.Record
or[]*models.Record
without the need of explicitNullStringMap
. -
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 accessingos.Environ()
. -
Added
UploadedFiles
field to theRecordCreateEvent
andRecordUpdateEvent
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 theio.ReadCloser
interface. -
! Changed
To
,Cc
andBcc
ofmailer.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"}}, ... }
-
! Refactored the Authentik integration as a more generic "OpenID Connect" provider (
oidc
) to support any OIDC provider (Okta, Keycloak, etc.). If you've previously used Authentik, make sure to rename the provider key in your code tooidc
. To enable more than one OIDC provider you can use the additionaloidc2
andoidc3
provider keys. -
! Removed the previously deprecated
Dao.Block()
andDao.Continue()
helpers in favor ofDao.NonconcurrentDB()
. -
Updated the internal redirects to allow easier subpath deployment when behind a reverse proxy.
-
Other minor Admin UI improvements.
1、 checksums.txt 706B
2、 pocketbase_0.13.0_darwin_amd64.zip 15.29MB
3、 pocketbase_0.13.0_darwin_arm64.zip 14.92MB
4、 pocketbase_0.13.0_linux_amd64.zip 14.76MB
5、 pocketbase_0.13.0_linux_arm64.zip 13.78MB
6、 pocketbase_0.13.0_linux_armv7.zip 14.14MB
7、 pocketbase_0.13.0_windows_amd64.zip 14.87MB
8、 pocketbase_0.13.0_windows_arm64.zip 13.89MB