NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Go modules, #19 by repository stars
Latest stable
v0.40.6
Last release 23 days ago
26 Oct 2026
Ships on a steady schedule
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
567 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Updated the used GitHub release go version to 1.19.3 since it comes with some security fixes to the os/exec and syscall packages
Fixed "database is locked" error due to high concurrent load [#875]
Added Microsft Azure AD OAuth2 provider [#873] (thanks @WouterVandeWiele)
Added Spotify OAuth2 provider [#887] (thanks @ollema)
Fixed error wrapping on record create failure
Updated the used GitHub release go version to 1.19.3 since it comes with some security fixes to the os/exec and syscall packages
There are no breaking changes from the last v0.8.0-rc1 release. For a v0.7.x -> v0.8.0-rc migration guide please refer to the changelog in https://github.com/pocketbase/pocketbase/releases/tag/v0.8.0-rc1.
Nothing published for this version
⚠️ This is a dev pre-release, contains breaking changes and requires some manual migration steps!
⚠️ This is a dev pre-release, contains breaking changes and requires some manual migration steps!
You could expect final v0.8.0 release with finalized public docs within the next ~1-2 weeks. In the meantime, feel free to test it and share your feedback.
The biggest change is the merge of the User models and the profiles collection per #376.
There is no longer user type field and the users are just an "auth" collection (we now support collection types, currently only "base" and "auth").
This should simplify the users management and at the same time to allow us to have unlimited different "auth" collections each with their own custom fields and authentication options (eg. staff, client, etc.).
In addition to the Users and profiles merge, this release comes with several other improvements:
Added indirect expand support #312.
The json field type now supports filtering and sorting #423.
The relation field now allows unlimitted maxSelect (aka. without upper limit).
Added support for combined email/username + password authentication (see below authWithPassword()).
Added support for full "manager-subordinate" users management, including a special API rule to allow directly changing system fields like email, password, etc. without requiring oldPassword or other user verification.
Enabled OAuth2 account linking on authorized request from the same auth collection (this is useful for example if the OAuth2 provider doesn't return an email and you want to associate it with the current logged in user).
Added option to toggle the record columns visibility from the table listing.
Added support for collection schema fields reordering.
More detailed API preview docs.
Improved memory usage on large file uploads #835.
Other minor performance improvements (mostly related to the search apis).
The merge of users and profiles comes with several required db changes.
The easiest way to apply them is to use the new temporary upgrade command:
# make sure to have a copy of your pb_data in case something fails
cp -r ./pb_data ./pb_data_backup
# run the upgrade command
./pocketbase08 upgrade
# start the application as usual
./pocketbase08 serve
The upgrade command:
users collection with merged fields from the _users table and the profiles collection.
The new user records will have the ids from the profiles collection.user type fields to relation and update the references to point to the new user ids.@collection.profiles.*, @request.user.* and @request.user.profile.* filters to @collection.users.* and @request.auth.*.2 to all schema field names and api filter rules that conflicts with the new system reserved ones:collectionId => collectionId2
collectionName => collectionName2
expand => expand2
// only for the "profiles" collection fields:
username => username2
email => email2
emailVisibility => emailVisibility2
verified => verified2
tokenKey => tokenKey2
passwordHash => passwordHash2
lastResetSentAt => lastResetSentAt2
lastVerificationSentAt => lastVerificationSentAt2
Please check the individual SDK package changelog and apply the necessary changes in your code:
npm install pocketbase@next --save
dart pub add pocketbase:^0.5.0-rc1
# or with Flutter:
flutter pub add pocketbase:^0.5.0-rc1
You don't have to read this if you are using an official SDK.
The authorization schema is no longer necessary. Now it is auto detected from the JWT token payload: <table class="d-table" width="100%"> <tr> <th>Old</th> <th>New</th> </tr> <tr valign="top"> <td>Authorization: Admin TOKEN</td> <td>Authorization: TOKEN</td> </tr> <tr valign="top"> <td>Authorization: User TOKEN</td> <td>Authorization: TOKEN</td> </tr> </table>
All datetime stings are now returned in ISO8601 format - with Z suffix and space as separator between the date and time part: <table class="d-table" width="100%"> <tr> <th>Old</th> <th>New</th> </tr> <tr valign="top"> <td>2022-01-02 03:04:05.678</td> <td>2022-01-02 03:04:05.678<strong>Z</strong></td> </tr> </table>
Removed the @ prefix from the system record fields for easier json parsing:
<table class="d-table" width="100%">
<tr>
<th>Old</th>
<th>New</th>
</tr>
<tr valign="top">
<td><strong>@</strong>collectionId</td>
<td>collectionId</td>
</tr>
<tr valign="top">
<td><strong>@</strong>collectionName</td>
<td>collectionName</td>
</tr>
<tr valign="top">
<td><strong>@</strong>expand</td>
<td>expand</td>
</tr>
</table>
All users api handlers are moved under /api/collections/:collection/:
<table class="d-table" width="100%">
<tr>
<th>Old</th>
<th>New</th>
</tr>
<tr valign="top">
<td>
<em>GET /api/<strong>users</strong>/auth-methods</em>
</td>
<td>
<em>GET /api/<strong>collections/:collection</strong>/auth-methods</em>
</td>
</tr>
<tr valign="top">
<td>
<em>POST /api/<strong>users/refresh</strong></em>
</td>
<td>
<em>POST /api/<strong>collections/:collection/auth-refresh</strong></em>
</td>
</tr>
<tr valign="top">
<td><em>POST /api/<strong>users/auth-via-oauth2</strong></em></td>
<td>
<em>POST /api/<strong>collections/:collection/auth-with-oauth2</strong></em>
<br/>
<em>You can now also pass optional <code>createData</code> object on OAuth2 sign-up.</em>
<br/>
<em>Also please note that now required user/profile fields are properly validated when creating new auth model on OAuth2 sign-up.</em>
</td>
</tr>
<tr valign="top">
<td><em>POST /api/<strong>users/auth-via-email</strong></em></td>
<td>
<em>POST /api/<strong>collections/:collection/auth-with-password</strong></em>
<br/>
<em>Handles username/email + password authentication.</em>
<br/>
<code>{"identity": "usernameOrEmail", "password": "123456"}</code>
</td>
</tr>
<tr valign="top">
<td><em>POST /api/<strong>users</strong>/request-password-reset</em></td>
<td><em>POST /api/<strong>collections/:collection</strong>/request-password-reset</em></td>
</tr>
<tr valign="top">
<td><em>POST /api/<strong>users</strong>/confirm-password-reset</em></td>
<td><em>POST /api/<strong>collections/:collection</strong>/confirm-password-reset</em></td>
</tr>
<tr valign="top">
<td><em>POST /api/<strong>users</strong>/request-verification</em></td>
<td><em>POST /api/<strong>collections/:collection</strong>/request-verification</em></td>
</tr>
<tr valign="top">
<td><em>POST /api/<strong>users</strong>/confirm-verification</em></td>
<td><em>POST /api/<strong>collections/:collection</strong>/confirm-verification</em></td>
</tr>
<tr valign="top">
<td><em>POST /api/<strong>users</strong>/request-email-change</em></td>
<td><em>POST /api/<strong>collections/:collection</strong>/request-email-change</em></td>
</tr>
<tr valign="top">
<td><em>POST /api/<strong>users</strong>/confirm-email-change</em></td>
<td><em>POST /api/<strong>collections/:collection</strong>/confirm-email-change</em></td>
</tr>
<tr valign="top">
<td><em>GET /api/<strong>users</strong></em></td>
<td><em>GET /api/<strong>collections/:collection/records</strong></em></td>
</tr>
<tr valign="top">
<td><em>GET /api/<strong>users</strong>/:id</em></td>
<td><em>GET /api/<strong>collections/:collection/records</strong>/:id</em></td>
</tr>
<tr valign="top">
<td><em>POST /api/<strong>users</strong></em></td>
<td><em>POST /api/<strong>collections/:collection/records</strong></em></td>
</tr>
<tr valign="top">
<td><em>PATCH /api/<strong>users</strong>/:id</em></td>
<td><em>PATCH /api/<strong>collections/:collection/records</strong>/:id</em></td>
</tr>
<tr valign="top">
<td><em>DELETE /api/<strong>users</strong>/:id</em></td>
<td><em>DELETE /api/<strong>collections/:collection/records</strong>/:id</em></td>
</tr>
<tr valign="top">
<td><em>GET /api/<strong>users</strong>/:id/external-auths</em></td>
<td><em>GET /api/<strong>collections/:collection/records</strong>/:id/external-auths</em></td>
</tr>
<tr valign="top">
<td><em>DELETE /api/<strong>users</strong>/:id/external-auths/:provider</em></td>
<td><em>DELETE /api/<strong>collections/:collection/records</strong>/:id/external-auths/:provider</em></td>
</tr>
</table>
In relation to the above changes, the user property in the auth response is renamed to record.
The admins api was also updated for consistency with the users api changes: <table class="d-table" width="100%"> <tr> <th>Old</th> <th>New</th> </tr> <tr valign="top"> <td> <em>POST /api/admins/<strong>refresh</strong></em> </td> <td> <em>POST /api/admins/<strong>auth-refresh</strong></em> </td> </tr> <tr valign="top"> <td><em>POST /api/admins/<strong>auth-via-email</strong></em></td> <td> <em>POST /api/admins/<strong>auth-with-password</strong></em> <br /> <code>{"identity": "test@example.com", "password": "123456"}</code> <br /> (notice that the <code>email</code> body field was renamed to <code>identity</code>) </td> </tr> </table>
Renamed the "user" related settings fields returned by GET /api/settings:
<table class="d-table" width="100%">
<tr>
<th>Old</th>
<th>New</th>
</tr>
<tr valign="top">
<td><strong>user</strong>AuthToken</td>
<td><strong>record</strong>AuthToken</td>
</tr>
<tr valign="top">
<td><strong>user</strong>PasswordResetToken</td>
<td><strong>record</strong>PasswordResetToken</td>
</tr>
<tr valign="top">
<td><strong>user</strong>EmailChangeToken</td>
<td><strong>record</strong>EmailChangeToken</td>
</tr>
<tr valign="top">
<td><strong>user</strong>VerificationToken</td>
<td><strong>record</strong>VerificationToken</td>
</tr>
</table>
You don't have to read this if you are not using PocketBase as framework.
Removed forms.New*WithConfig() factories to minimize ambiguities.
If you need to pass a transaction Dao you can use the new SetDao(dao) method available to the form instances.
forms.RecordUpsert.LoadData(data map[string]any) now can bulk load external data from a map.
To load data from a request instance, you could use forms.RecordUpsert.LoadRequest(r, optKeysPrefix = "").
schema.RelationOptions.MaxSelect has new type *int (you can use the new types.Pointer(123) helper to assign pointer values).
Renamed the constant apis.ContextUserKey ("user") to apis.ContextAuthRecordKey ("authRecord").
Replaced user related middlewares with their auth record alternative: <table class="d-table" width="100%"> <tr> <th>Old</th> <th>New</th> </tr> <tr valign="top"> <td>apis.Require<strong>User</strong>Auth()</td> <td>apis.Require<strong>Record</strong>Auth(<strong>optCollectionNames ...string</strong>)</td> </tr> <tr valign="top"> <td>apis.RequireAdminOr<strong>User</strong>Auth()</td> <td>apis.RequireAdminOr<strong>Record</strong>Auth(<strong>optCollectionNames ...string</strong>)</td> </tr> <tr valign="top"> <td>N/A</td> <td> <strong>RequireSameContextRecordAuth()</strong> <br/> <em>(requires the auth record to be from the same context collection)</em> </td> </tr> </table>
The following record Dao helpers now uses the collection id or name instead of *models.Collection instance to reduce the verbosity when fetching records:
<table class="d-table" width="100%">
<tr>
<th>Old</th>
<th>New</th>
</tr>
<tr valign="top">
<td>dao.FindRecordById(<strong>collection</strong>, ...)</td>
<td>dao.FindRecordById(<strong>collectionNameOrId</strong>, ...)</td>
</tr>
<tr valign="top">
<td>dao.FindRecordsByIds(<strong>collection</strong>, ...)</td>
<td>dao.FindRecordsByIds(<strong>collectionNameOrId</strong>, ...)</td>
</tr>
<tr valign="top">
<td>dao.FindRecordsByExpr(<strong>collection</strong>, ...)</td>
<td>dao.FindRecordsByExpr(<strong>collectionNameOrId</strong>, ...)</td>
</tr>
<tr valign="top">
<td>dao.FindFirstRecordByData(<strong>collection</strong>, ...)</td>
<td>dao.FindFirstRecordByData(<strong>collectionNameOrId</strong>, ...)</td>
</tr>
<tr valign="top">
<td>dao.IsRecordValueUnique(<strong>collection</strong>, ...)</td>
<td>dao.IsRecordValueUnique(<strong>collectionNameOrId</strong>, ...)</td>
</tr>
</table>
Replaced all User related Dao helpers with Record equivalents: <table class="d-table" width="100%"> <tr> <th>Old</th> <th>New</th> </tr> <tr valign="top"> <td>dao.UserQuery()</td> <td>dao.RecordQuery(collection)</td> </tr> <tr valign="top"> <td>dao.FindUserById(id)</td> <td>dao.FindRecordById(collectionNameOrId, id)</td> </tr> <tr valign="top"> <td>dao.FindUserByToken(token, baseKey)</td> <td>dao.FindAuthRecordByToken(token, baseKey)</td> </tr> <tr valign="top"> <td>dao.FindUserByEmail(email)</td> <td>dao.FindAuthRecordByEmail(collectionNameOrId, email)</td> </tr> <tr valign="top"> <td>N/A</td> <td>dao.FindAuthRecordByUsername(collectionNameOrId, username)</td> </tr> </table>
Moved the formatted ApiError struct and factories to the github.com/pocketbase/pocketbase/apis subpackage:
<table class="d-table" width="100%">
<tr>
<th>Old</th>
<th>New</th>
</tr>
<tr valign="top">
<td colspan="2"><em>Import path</em></td>
</tr>
<tr valign="top">
<td>github.com/pocketbase/pocketbase/<strong>tools/rest</strong></td>
<td>github.com/pocketbase/pocketbase/<strong>apis</strong></td>
</tr>
<tr valign="top">
<td colspan="2"><em>Fields</em></td>
</tr>
<tr valign="top">
<td><strong>rest</strong>.ApiError{}</td>
<td><strong>apis</strong>.ApiError{}</td>
</tr>
<tr valign="top">
<td><strong>rest</strong>.NewNotFoundError()</td>
<td><strong>apis</strong>.NewNotFoundError()</td>
</tr>
<tr valign="top">
<td><strong>rest</strong>.NewBadRequestError()</td>
<td><strong>apis</strong>.NewBadRequestError()</td>
</tr>
<tr valign="top">
<td><strong>rest</strong>.NewForbiddenError()</td>
<td><strong>apis</strong>.NewForbiddenError()</td>
</tr>
<tr valign="top">
<td><strong>rest</strong>.NewUnauthorizedError()</td>
<td><strong>apis</strong>.NewUnauthorizedError()</td>
</tr>
<tr valign="top">
<td><strong>rest</strong>.NewApiError()</td>
<td><strong>apis</strong>.NewApiError()</td>
</tr>
</table>
Renamed models.Record helper getters:
<table class="d-table" width="100%">
<tr>
<th>Old</th>
<th>New</th>
</tr>
<tr valign="top">
<td>Set<strong>DataValue</strong></td>
<td>Set</td>
</tr>
<tr valign="top">
<td>Get<strong>DataValue</strong></td>
<td>Get</td>
</tr>
<tr valign="top">
<td>GetBool<strong>DataValue</strong></td>
<td>GetBool</td>
</tr>
<tr valign="top">
<td>GetString<strong>DataValue</strong></td>
<td>GetString</td>
</tr>
<tr valign="top">
<td>GetInt<strong>DataValue</strong></td>
<td>GetInt</td>
</tr>
<tr valign="top">
<td>GetFloat<strong>DataValue</strong></td>
<td>GetFloat</td>
</tr>
<tr valign="top">
<td>GetTime<strong>DataValue</strong></td>
<td>GetTime</td>
</tr>
<tr valign="top">
<td>GetDateTime<strong>DataValue</strong></td>
<td>GetDateTime</td>
</tr>
<tr valign="top">
<td>GetStringSlice<strong>DataValue</strong></td>
<td>GetStringSlice</td>
</tr>
</table>
Added new auth collection models.Record helpers:
func (m *Record) Username() string
func (m *Record) SetUsername(username string) error
func (m *Record) Email() string
func (m *Record) SetEmail(email string) error
func (m *Record) EmailVisibility() bool
func (m *Record) SetEmailVisibility(visible bool) error
func (m *Record) IgnoreEmailVisibility(state bool)
func (m *Record) Verified() bool
func (m *Record) SetVerified(verified bool) error
func (m *Record) TokenKey() string
func (m *Record) SetTokenKey(key string) error
func (m *Record) RefreshTokenKey() error
func (m *Record) LastResetSentAt() types.DateTime
func (m *Record) SetLastResetSentAt(dateTime types.DateTime) error
func (m *Record) LastVerificationSentAt() types.DateTime
func (m *Record) SetLastVerificationSentAt(dateTime types.DateTime) error
func (m *Record) ValidatePassword(password string) bool
func (m *Record) SetPassword(password string) error
Added option to return serialized custom models.Record fields data:
func (m *Record) UnknownData() map[string]any
func (m *Record) WithUnkownData(state bool)
Deleted model.User. Now the user data is stored as an auth models.Record.
<table class="d-table" width="100%">
<tr>
<th>Old</th>
<th>New</th>
</tr>
<tr valign="top">
<td>User.Email</td>
<td>Record.Email()</td>
</tr>
<tr valign="top">
<td>User.TokenKey</td>
<td>Record.TokenKey()</td>
</tr>
<tr valign="top">
<td>User.Verified</td>
<td>Record.Verified()</td>
</tr>
<tr valign="top">
<td>User.SetPassword()</td>
<td>Record.SetPassword()</td>
</tr>
<tr valign="top">
<td>User.RefreshTokenKey()</td>
<td>Record.RefreshTokenKey()</td>
</tr>
<tr valign="top">
<td colspan="2"><em>etc.</em></td>
</tr>
</table>
Replaced User related event hooks with their Record alternative:
<table class="d-table" width="100%">
<tr>
<th>Old</th>
<th>New</th>
</tr>
<tr valign="top">
<td>OnMailerBefore<strong>User</strong>ResetPasswordSend() *hook.Hook[*Mailer<strong>User</strong>Event]</td>
<td>OnMailerBefore<strong>Record</strong>ResetPasswordSend() *hook.Hook[*Mailer<strong>Record</strong>Event]</td>
</tr>
<tr valign="top">
<td>OnMailerAfter<strong>User</strong>ResetPasswordSend() *hook.Hook[*Mailer<strong>User</strong>Event]</td>
<td>OnMailerAfter<strong>Record</strong>ResetPasswordSend() *hook.Hook[*Mailer<strong>Record</strong>Event]</td>
</tr>
<tr valign="top">
<td>OnMailerBefore<strong>User</strong>VerificationSend() *hook.Hook[*Mailer<strong>User</strong>Event]</td>
<td>OnMailerBefore<strong>Record</strong>VerificationSend() *hook.Hook[*Mailer<strong>Record</strong>Event]</td>
</tr>
<tr valign="top">
<td>OnMailerAfter<strong>User</strong>VerificationSend() *hook.Hook[*Mailer<strong>User</strong>Event]</td>
<td>OnMailerAfter<strong>Record</strong>VerificationSend() *hook.Hook[*Mailer<strong>Record</strong>Event]</td>
</tr>
<tr valign="top">
<td>OnMailerBefore<strong>User</strong>ChangeEmailSend() *hook.Hook[*Mailer<strong>User</strong>Event]</td>
<td>OnMailerBefore<strong>Record</strong>ChangeEmailSend() *hook.Hook[*Mailer<strong>Record</strong>Event]</td>
</tr>
<tr valign="top">
<td>OnMailerAfter<strong>User</strong>ChangeEmailSend() *hook.Hook[*Mailer<strong>User</strong>Event]</td>
<td>OnMailerAfter<strong>Record</strong>ChangeEmailSend() *hook.Hook[*Mailer<strong>Record</strong>Event]</td>
</tr>
<tr valign="top">
<td>On<strong>Users</strong>ListRequest() hook.Hook[<strong>User</strong>ListEvent]</td>
<td>On<strong>Records</strong>ListRequest() hook.Hook[<strong>Records</strong>ListEvent]</td>
</tr>
<tr valign="top">
<td>On<strong>User</strong>ViewRequest() hook.Hook[<strong>User</strong>ViewEvent]</td>
<td>On<strong>Record</strong>ViewRequest() hook.Hook[<strong>Record</strong>ViewEvent]</td>
</tr>
<tr valign="top">
<td>On<strong>User</strong>BeforeCreateRequest() hook.Hook[<strong>User</strong>CreateEvent]</td>
<td>On<strong>Record</strong>BeforeCreateRequest() hook.Hook[<strong>Record</strong>CreateEvent]</td>
</tr>
<tr valign="top">
<td>On<strong>User</strong>AfterCreateRequest() hook.Hook[<strong>User</strong>CreateEvent]</td>
<td>On<strong>Record</strong>AfterCreateRequest() hook.Hook[<strong>Record</strong>CreateEvent]</td>
</tr>
<tr valign="top">
<td>On<strong>User</strong>BeforeUpdateRequest() hook.Hook[<strong>User</strong>UpdateEvent]</td>
<td>On<strong>Record</strong>BeforeUpdateRequest() hook.Hook[<strong>Record</strong>UpdateEvent]</td>
</tr>
<tr valign="top">
<td>On<strong>User</strong>AfterUpdateRequest() hook.Hook[<strong>User</strong>UpdateEvent]</td>
<td>On<strong>Record</strong>AfterUpdateRequest() hook.Hook[<strong>Record</strong>UpdateEvent]</td>
</tr>
<tr valign="top">
<td>On<strong>User</strong>BeforeDeleteRequest() hook.Hook[<strong>User</strong>DeleteEvent]</td>
<td>On<strong>Record</strong>BeforeDeleteRequest() hook.Hook[<strong>Record</strong>DeleteEvent]</td>
</tr>
<tr valign="top">
<td>On<strong>User</strong>AfterDeleteRequest() hook.Hook[<strong>User</strong>DeleteEvent]</td>
<td>On<strong>Record</strong>AfterDeleteRequest() hook.Hook[<strong>Record</strong>DeleteEvent]</td>
</tr>
<tr valign="top">
<td>On<strong>User</strong>AuthRequest() hook.Hook[<strong>User</strong>AuthEvent]</td>
<td>On<strong>Record</strong>AuthRequest() hook.Hook[<strong>Record</strong>AuthEvent]</td>
</tr>
<tr valign="top">
<td>On<strong>User</strong>ListExternalAuths() hook.Hook[<strong>User</strong>ListExternalAuthsEvent]</td>
<td>On<strong>Record</strong>ListExternalAuths() hook.Hook[<strong>Record</strong>ListExternalAuthsEvent]</td>
</tr>
<tr valign="top">
<td>On<strong>User</strong>BeforeUnlinkExternalAuthRequest() hook.Hook[<strong>User</strong>UnlinkExternalAuthEvent]</td>
<td>On<strong>Record</strong>BeforeUnlinkExternalAuthRequest() hook.Hook[<strong>Record</strong>UnlinkExternalAuthEvent]</td>
</tr>
<tr valign="top">
<td>On<strong>User</strong>AfterUnlinkExternalAuthRequest() hook.Hook[<strong>User</strong>UnlinkExternalAuthEvent]</td>
<td>On<strong>Record</strong>AfterUnlinkExternalAuthRequest() hook.Hook[<strong>Record</strong>UnlinkExternalAuthEvent]</td>
</tr>
</table>
Replaced forms.UserEmailLogin{} with forms.RecordPasswordLogin{} (for both username and email depending on which is enabled for the collection).
Renamed user related core.Settings fields:
<table class="d-table" width="100%">
<tr>
<th>Old</th>
<th>New</th>
</tr>
<tr valign="top">
<td>core.Settings.<strong>User</strong>AuthToken{}</td>
<td>core.Settings.<strong>Record</strong>AuthToken{}</td>
</tr>
<tr valign="top">
<td>core.Settings.<strong>User</strong>PasswordResetToken{}</td>
<td>core.Settings.<strong>Record</strong>PasswordResetToken{}</td>
</tr>
<tr valign="top">
<td>core.Settings.<strong>User</strong>EmailChangeToken{}</td>
<td>core.Settings.<strong>Record</strong>EmailChangeToken{}</td>
</tr>
<tr valign="top">
<td>core.Settings.<strong>User</strong>VerificationToken{}</td>
<td>core.Settings.<strong>Record</strong>VerificationToken{}</td>
</tr>
</table>
Marked as "Deprecated" and will be removed in v0.9:
core.Settings.EmailAuth{}
core.EmailAuthConfig{}
schema.FieldTypeUser
schema.UserOptions{}
The second argument of apis.StaticDirectoryHandler(fileSystem, enableIndexFallback) now is used to enable/disable index.html forwarding on missing file (eg. in case of SPA).
This is a restore of PocketBase v0.7.10 that was deleted by accident because of a incorrectly triggered goreleaser run when I switched to the v0.7_mai
This is a restore of PocketBase v0.7.10 that was deleted by accident because of a incorrectly triggered goreleaser run when I switched to the v0.7_maintenance branch (which resulted in deleting and recreating the previous v0.7.10 release since it was the last v0.7 tag).
I apologize for any inconvenience this may have caused.
In any case, if you haven't already you can ignore this and check the latest v0.8.0 release.
Nothing published for this version
Nothing published for this version
This release fixes a small regression in the Admin UI introduced with the records listing reactivity changes in v0.7.7.
This release fixes a small regression in the Admin UI introduced with the records listing reactivity changes in v0.7.7.
In addition to the fix, now we preserve the pagination of the records listing when editing or deleting item(s).
Unset the default X-Frame-Options when serving static files to allow files embedding [#677].
Unset the default X-Frame-Options when serving static files to allow files embedding [#677].
Added media-src in the default files api CSP to allow loading uploaded media sources in <audio> and <video> tags [#693].
Fixed formatted date reactivity in the Admin UI.
Serve uploaded CSS files with Content-Type text/css (thanks @rhnvrm) [#661].
Serve uploaded CSS files with Content-Type text/css (thanks @rhnvrm) [#661].
Added fallback handling to the contains operator when both operands are identifiers/fields [#662].
Minor performance improvements to the records list rendering in the Admin UI.
Respect the EXIF orientation tag when generating thumbs (thanks @a10d) [#585].
Respect the EXIF orientation tag when generating thumbs (thanks @a10d) [#585].
Fixed multiple nested relation expansion with shared base path [#586].
Added Hooks.PreAdd to improve the realtime latency by ensuring that the realtime api events for create and update are always fired first [#590].
Removed the system logs db event hooks reducing the overall number of triggered events.
Further minor optimizations to the pagination queries.
Nothing published for this version
Resolved inconsistency and allow using the "contains/like" (~, !~) operators with non-relational multiple choices fields when part of @request.user.pr
~, !~) operators with non-relational multiple choices fields when part of @request.user.profile.* filter (eg. @request.user.profile.multipleRoles ~ "staff") [#567].Huge performance improvements (~15s to ~0.02s) when querying relation fields in large data sets [#519].
Nothing published for this version
Fixed typo in the Realtime API Preview panel docs (thanks @nrthbound).
Fixed typo in the Realtime API Preview panel docs (thanks @nrthbound).
Preserve the original file format when generating thumbs (previously we were always generating PNG) [#440].
For the prebuilt binary, the pb_public directory (if exist) is no longer dependent on the current working directory [#470].
There is also a new --publicDir flag that you can use to specify a custom directory for serving static files.
Added X-Accel-Buffering:no response header to the SSE connect endpoint to disable stream buffering when PocketBase is behind NGINX [#480].
Nothing published for this version
Skip creating the default pb_data directory when not an actual cli command is executed (eg. on --version or --help calls) [#404].
Skip creating the default pb_data directory when not an actual cli command is executed (eg. on --version or --help calls) [#404].
Load custom PocketBase init configurations before console flags parsing [#409].
This adds a new factory method pocketbase.NewWithConfig(pocketbase.Config{}) where config replaces the setters DefaultDebug(), DefaultDataDir(), DefaultEncryptionEnv(), ShowStartBanner() (this way it'll allow us to add new config options more easily in the future).
Fixed the input height in the Admin UI for Safari and GNOME Web.
Fixed the mapping of the Google OAuth2 provider response data [#405]. _This was working before the introduction of ExternalAuth from v0.6.0 because we
email field.Note: The embedded Admin UI will show v0.7.0 because there are no client-side code changes. With the next major release the client-side and server-side versioning will be synced to avoid eventual confusion which PocketBase version is currently running.
This is mostly a maintenance release in preparations for v0.8.0, which will include some breaking changes to the users and records services in an atte…
This is mostly a maintenance release in preparations for v0.8.0, which will include some breaking changes to the users and records services in an attempt to simplify the users management per https://github.com/pocketbase/pocketbase/issues/376.
Fixed Windows console color output [#375].
Unified the uploaded and served file mimetype checks [#390].
Added additional checks when linking OAuth2 providers in case the provider's user api response changes and no longer return the required fields.
Added the OAuth2 fetched username in the returned auth meta data [#385].
Updated the tests helpers to support binding custom app routes and mounting test pb_data directory [#393], [#396].
This introduces some changes to the test helpers (minor breaking):
tests.NewTempDataDir() to tests.TempDirClone()tests.ApiScenario.BeforeFunc() to tests.ApiScenario.BeforeTestFunc()tests.ApiScenario.AfterFunc() to tests.ApiScenario.AfterTestFunc()tests.ApiScenario.TestAppFactory()tests.NewTestApp(optTestDataDir)Nothing published for this version
Nothing published for this version
Added automatic plaintext mail generation.
Added automatic plaintext mail generation.
Added better mimetype sniffing support [#351].
Removed OnUserBeforeOauth2Register and OnUserAfterOauth2Register event hooks.
This is preparations for other changes planned in the future to simplify the authentication api.
If you need to listen for OAuth2 sign ups you can use the OnModelBeforeCreate and OnModelAfterCreate hooks with the new ExternalAuth model.
Added 3 new user hook events:
OnUserListExternalAuthsOnUserBeforeUnlinkExternalAuthRequestOnUserAfterUnlinkExternalAuthRequestAdded 2 new endpoints to list and unlink the external user auths:
GET /api/users/:id/external-authsDELETE /api/users/:id/external-auths/:providerThe SDKs are updated accordingly with
client.users.listExternalAuths()andclient.users.unlinkExternalAuth()methods.
Implented external auth linking based on the OAuth2 account ID [#276]. This now allow us to integrate with OAuth2 providers that doesn't return an email address.
You can also unlink the user external auth relation from the Admin UI:
Added Discord OAuth2 provider [#335] (thanks @karashiiro).
Added Twitter OAuth2 provider [#118] (thanks @thomasdseao).
Replaced the MX email domain check with plain email format validator to allow usage in restricted network environments [#298], [#152] (depending on the users feedback, we can reintroduce the MX email domain validator as a global option in a future release).
Other minor improvements and optimizations.
Fixed multiple files deletion when only the field name is used and added support to delete individual files using their filenames [#367]
Reverted the to email address format changes when sending emails as plain address string (aka. without brackets) [#347, #346].
Reverted the to email address format changes when sending emails as plain address string (aka. without brackets) [#347, #346].
It was previously introduced as a workaround for the spamassasin "TO_NO_BRKTS_HTML_ONLY" rule, but it causes issues with some clients when there is no name part in the sender address. Automatic generated text version of the HTML email will be added in v0.6.0, which should also help passing the above spam rule and reduce the overall emails spam score.
Nothing published for this version
Nothing published for this version
Added @now datetime filter constant [#197]
Added @now datetime filter constant [#197]
Added support for additional thumb resizers [#87]:
- WxH (eg. 100x50) - crop to WxH viewbox (from center)
- WxHt (eg. 100x50t) - crop to WxH viewbox (from top)
- WxHb (eg. 100x50b) - crop to WxH viewbox (from bottom)
- WxHf (eg. 100x50f) - fit inside a WxH viewbox (without cropping)
- 0xH (eg. 0x50) - resize to H height preserving the aspect ratio
- Wx0 (eg. 100x0) - resize to W width preserving the aspect ratio
Simplified the "Mail settings" UI and added support to customize the defaullt user email templates [#275]:
⚠️ If you are using custom email urls, please make sure to update your settings with the new placeholders format!
Added option to send test user emails [#75]
Added option to test the S3 storage connection for errors and other incompatibilities [#75]
Added "Hide collection create and edit controls" toggle setting to prevent making accidental schema changes on prod environments.
Fixed admin reset password email link [#302]
Updated the uploaded file naming strategy to include also the original filename [#210]
Updated the user and admin login email validator to check only the string format in order to avoid slow logins caused by slow MX record lookups [#298]
Added the "real"(proxy) user IP to the logs alongside the trusted remote address
Nothing published for this version
Nothing published for this version
Nothing published for this version
Added application/pdf to the inline serving mime types exceptions list [#294]
application/pdf to the inline serving mime types exceptions list [#294]Minor fix in the import UI preview when replacing missing old schema field IDs
Added support for import/export of collections configuration.
Added support for import/export of collections configuration.
:warning: This feature is still experimental, so use it cautiously and always have a backup of your
pb_databefore applying the import!
Added new API endpoint to bulk import collections.
Updated the JavaScript and Dart SDKs accordingly with the new endpoint client.collections.import(...).
Added new Import/Export section in the Admin UI > Settings. When importing you'll be able to "Review" your changes with a side-by-side diff before sending them to the server. Validations on the imported collections, eg. missing required fields, are done only server side after submitting the import form. The import is executed within a transaction and it is applied only after all imported collections changes are applied successfully.
Added migration command to export the local collections configuration into a migration file
go run main.go migrate collections
NB! This will works only for new project - more info on the caveats you could find in the DB Migrations guide.
All resource endpoints (records, collections, admins, users, etc.) now support specifying an optional custom insertion id during create (it must be a fixed 15 chars string) to allow handling offline first data structures [#246].
The realtime create and update hooks are now fired when updating a record manually with the Dao
All examples are updated to use 127.0.0.1 instead of localhost because the localhost hostname may not be available on some Windows installations and on some platforms could resolve differently (Node17+ for example has higher priority for the ipv6 version [::1], which could lead to connection failure - pocketbase/js-sdk#21).
Added totalPages field in the api response (the SDKs were also updated to reflect the change in the result object dto).
Added the build version number in the Admin UI footer (#280).
Updated the Thumbs file option tooltip to include info about the default/system 100x100 thumb (thanks @ollema).
Internals:
Added OnCollectionsBeforeImportRequest and OnCollectionsAfterImportRequest hooks.
Updated the base.Model interface with additional MarkAsNew and UnmarkAsNew for finer control over the upsert operations on existing models.
Added form.*WithConfig(...) factory to all forms models to allow nesting and running multiple forms within a single DB transaction
The OnModelAfter* hooks for transactions are now fired only after a successful transaction commit (in the order they were initially called during the transaction).
Other minor code and tests improvements.
Fixed query string parsing [#204]
Nothing published for this version
Changed GitHub OAuth2 provider scopes to read-only [#207] (thanks @satotake)
/) to a relative one (../) in order to support sub-path deployment [#223]target=_blank to the email links [#228]Fixed incorrect totalItems count on records list when @collection.* filters are used
totalItems count on records list when @collection.* filters are used@request.user.profile.* filter [#165]Content-Type to image/svg+xml so that it can be rendered inside <img src="...">Added optional "Force path-style addressing" checkbox in the S3 config [#156] (thanks @Matt-Bessette)
expand query parameter in the create and update Record requests [#160]migrate down command to not revert all migrations [#163] (thanks @kennethklee)Nothing published for this version
> :warning: This release introduce a small breaking change related to null handling (read below for more info).
:warning: This release introduce a small breaking change related to
nullhandling (read below for more info). It is recommended to backup yourpb_datadirectory before upgrading/replacing the binary.
All field values are now normalized and will return only a non-null value (only exception is the JSON field) [#122].
This is a minor breaking change if you previously relied on the null value. Here is a full list with all the supported field values:
| Field | Supported value |
|---|---|
| Text | "", "test" |
| Number | 0, -1, 1, 1.5 |
| Bool | false, true |
"", "test@example.com" |
|
| Url | "", "https://example.com" |
| Date | "", "2022-01-01 00:00:00.000" |
| Select (single) | "", "optionA" |
| Select (multiple) | [], ["optionA", "optionB"] |
| File (single) | "", "12i...ZjL.png" |
| File (multiple) | [], ["12i...ZjL.png", "34i...ZjL.txt"] |
| Relation (single) | "", "74kmig0HEyR7uuD" |
| Relation (multiple) | [], ["74kmig0HEyR7uuD", "FtHAW9feB5rze7D"] |
| User (single) | "", "74kmig0HEyR7uuD" |
| User (multiple) | [], ["74kmig0HEyR7uuD", "FtHAW9feB5rze7D"] |
| * JSON | any json value |
Sending null in the request data is OK, since it will be casted to the respective zero-value before processing.
Improved collection schema updates - now is allowed to rename/switch existing field names in the same request.
Delete the storage files of cascade deleted Records [#151].
Admin UI improvements:
Fix the Records and Users dropdown lists [#100]
Fixed realtime delete events not being sent when user access filters apply [#109]
Bumped the min JavaScript-SDK to 0.2.1, fixing the incorrectly reported empty body as error on 204 responses.
Fix AutoExpandTextArea scroll hang [#99]
Also, the Admin UI now uses the new Javasciprt-SDK v0.2.0 including the following improvements (minor SDK breaking):
fetch() for better and easier cross environment support (browser, rollup2+, webpack 4 & 5+, node, deno, react native, etc.)ClientResponseError object
The documentation of the SDK was also updated with a "Caveats section". You could find out more here - https://github.com/pocketbase/js-sdkUpdated the S3 endpoint validator to be compatible with the underlying aws lib in order to support fully qualified URIs
cobra.Command.Version (#82)inflector.Usernamify method--debug is usedNothing published for this version
automatically set the prebuilt binary app version to the release tag (thanks @ValleyZw and @clysto)
@expand query parameter in the API Preview List and View examplesFixed files download error due to failing time.LoadLocation on Windows
time.LoadLocation on Windows (#45)Fixed migrations registration when in framework mode (thanks @egor-romanov)
Replaced the initial interactive admin-create cli with a new "Installer" web page
All changes should be backward compatible.
fixed typos in the admin UI and code comments
Nothing published for this version
Test the GitHub action with go1.19.0-beta.1 to try fixing the windows mime type issue
In short, PocketBase is a Go backend, consisting of:
In short, PocketBase is a Go backend, consisting of:
In the Assets section below you could find the prebuilt base PocketBase executables (built on examples/base).
To start the application, download end extract the archive for your platform and run ./pocketbase serve within the extracted directory.
Documentation and usage examples could be found at https://pocketbase.io/docs.
:warning: PocketBase is still under active development and therefore full backward compatibility is not guaranteed before reaching v1.0.0.
Nothing published for this version
One column per quarter.