9.3 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	v0.23.3
- 
Fixed Gzip middleware not applying when serving static files. 
- 
Fixed Record.Fresh()/Record.Clone()methods not properly cloningautodatefields (#5973).
v0.23.2
- 
Fixed RecordQuery()custom struct scanning (#5958).
- 
Fixed --devlog query print formatting.
- 
Added support for passing more than one id in the Hook.Unbindmethod for consistency with the router.
- 
Added collection rules change list in the confirmation popup (to avoid getting anoying during development, the rules confirmation currently is enabled only when using https). 
v0.23.1
- 
Added RequestEvent.Blob(status, contentType, bytes)response write helper (#5940).
- 
Added more descriptive error messages. 
v0.23.0
Note
You don't have to upgrade to PocketBase v0.23.0 if you are not planning further developing your existing app and/or are satisfied with the v0.22.x features set. There are no identified critical issues with PocketBase v0.22.x yet and in the case of critical bugs and security vulnerabilities, the fixes will be backported for at least until Q1 of 2025 (if not longer).
If you don't plan upgrading make sure to pin the SDKs version to their latest PocketBase v0.22.x compatible:
- JS SDK:
<0.22.0- Dart SDK:
<0.19.0
Caution
This release introduces many Go/JSVM and Web APIs breaking changes!
Existing
pb_datawill be automatically upgraded with the start of the new executable, but custom Go or JSVM (pb_hooks,pb_migrations) and JS/Dart SDK code will have to be migrated manually. Please refer to the below upgrade guides:If you had already switched to some of the earlier
<v0.23.0-rc14versions and have generated a full collections snapshot migration (aka../pocketbase migrate collections), then you may have to regenerate the migration file to ensure that it includes the latest changes.
PocketBase v0.23.0 is a major refactor of the internals with the overall goal of making PocketBase an easier to use Go framework. There are a lot of changes but to highlight some of the most notable ones:
- New and more detailed documentation. The old documentation could be accessed at pocketbase.io/old.
- Replaced echowith a new router built on top of the Go 1.22net/httpmux enhancements.
- Merged daospackages incore.Appto simplify the DB operations (themodelspackage structs are also migrated incore).
- Option to specify custom DBConnectfunction as part of the app configuration to allow differentdatabase/sqlSQLite drivers (turso/libsql, sqlcipher, etc.) and custom builds. Note that we no longer loads themattn/go-sqlite3driver by default when building withCGO_ENABLED=1to avoidmultiple definitionlinker errors in case different CGO SQLite drivers or builds are used. You can find an example how to enable it back if you want to in the new documentation.
- New hooks allowing better control over the execution chain and error handling (including wrapping an entire hook chain in a single DB transaction).
- Various Recordmodel improvements (support for get/set modifiers, simplfied file upload by treating the file(s) as regular field value likerecord.Set("document", file), etc.).
- Dedicated fields structs with safer defaults to make it easier creating/updating collections programmatically.
- Option to mark field as "Hidden", disallowing regular users to read or modify it (there is also a dedicated Record hook to hide/unhide Record fields programmatically from a single place).
- Option to customize the default system collection fields (id,email,password, etc.).
- Admins are now system _superusersauth records.
- Builtin rate limiter (supports tags, wildcards and exact routes matching).
- Batch/transactional Web API endpoint.
- Impersonate Web API endpoint (it could be also used for generating fixed/non-refreshable superuser tokens, aka. "API keys").
- Support for custom user request activity log attributes.
- One-Time Password (OTP) auth method (via email code).
- Multi-Factor Authentication (MFA) support (currently requires any 2 different auth methods to be used).
- Support for Record "proxy/projection" in preparation for the planned autogeneration of typed Go record models.
- Linear OAuth2 provider (#5909; thanks @chnfyi).
- WakaTime OAuth2 provider (#5829; thanks @tigawanna).
- Notion OAuth2 provider (#4999; thanks @s-li1).
- monday.com OAuth2 provider (#5346; thanks @Jaytpa01).
- New Instagram provider compatible with the new Instagram Login APIs (#5588; thanks @pnmcosta).
The provider key is instagram2to prevent conflicts with existing linked users.
- Option to retrieve the OIDC OAuth2 user info from the id_tokenpayload for the cases when the provider doesn't have a dedicated user info endpoint.
- Various minor UI improvements (recursive Presentableview, slightly different collection options organization, zoom/pan for the logs chart, etc.)
- and many more...
Go/JSVM APIs changes
SDKs changes
Web APIs changes
- 
New POST /api/batchendpoint.
- 
New GET /api/collections/meta/scaffoldsendpoint.
- 
New DELETE /api/collections/{collection}/truncateendpoint.
- 
New POST /api/collections/{collection}/request-otpendpoint.
- 
New POST /api/collections/{collection}/auth-with-otpendpoint.
- 
New POST /api/collections/{collection}/impersonate/{id}endpoint.
- 
⚠️ If you are constructing requests to /api/*routes manually remove the trailing slash (there is no longer trailing slash removal middleware registered by default).
- 
⚠️ Removed /api/admins/*endpoints because admins are converted to_superusersauth collection records.
- 
⚠️ Previously when uploading new files to a multiple filefield, new files were automatically appended to the existing field values. This behaviour has changed with v0.23+ and for consistency with the other multi-valued fields when uploading new files they will replace the old ones. If you want to prepend or append new files to an existing multiplefilefield value you can use the+prefix or suffix:"documents": [file1, file2] // => [file1_name, file2_name] "+documents": [file1, file2] // => [file1_name, file2_name, old1_name, old2_name] "documents+": [file1, file2] // => [old1_name, old2_name, file1_name, file2_name]
- 
⚠️ Removed GET /records/{id}/external-authsandDELETE /records/{id}/external-auths/{provider}endpoints because this is now handled by sending list and delete requests to the_externalAuthscollection.
- 
⚠️ Changes to the app settings model fields and response (+new options such as trustedProxy,rateLimits,batch, etc.). The app settings Web APIs are mostly used by the Dashboard UI and rarely by the end users, but if you want to check all settings changes please refer to the Settings Go struct.
- 
⚠️ New flatten Collection model and fields structure. The Collection model Web APIs are mostly used by the Dashboard UI and rarely by the end users, but if you want to check all changes please refer to the Collection Go struct. 
- 
⚠️ The top level error response codekey was renamed tostatusfor consistency with the Go APIs. The error field key remainscode:{ "status": 400, // <-- old: "code" "message": "Failed to create record.", "data": { "title": { "code": "validation_required", "message": "Missing required value." } } }
- 
⚠️ New fields in the GET /api/collections/{collection}/auth-methodsresponse. The oldauthProviders,usernamePassword,emailPasswordfields are still returned in the response but are considered deprecated and will be removed in the future.{ "mfa": { "duration": 100, "enabled": true }, "otp": { "duration": 0, "enabled": false }, "password": { "enabled": true, "identityFields": ["email", "username"] }, "oauth2": { "enabled": true, "providers": [{"name": "gitlab", ...}, {"name": "google", ...}] }, // old fields... }
- 
⚠️ Soft-deprecated the OAuth2 auth success meta.avatarUrlfield in favour ofmeta.avatarURL.