40 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	v0.31.0
- 
Visualize presentable multiple relationfields (#7260).
- 
Support Ed25519 in the optional OIDC id_tokensignature validation (#7252; thanks @shynome).
- 
Added ApiScenario.DisableTestAppCleanupoptional field to skip the auto test app cleanup and leave it up to the developers to do the cleanup manually (#7267).
- 
Added FileDownloadRequestEvent.ThumbErrorfield that is populated in case of a thumb generation failure (e.g. unsupported format, timing out, etc.), allowing developers to reject the thumb fallback and/or supply their own custom thumb generation (#7268).
- 
⚠️ Disallow client-side filtering and sorting of relations where the collection of the last targeted relation field has superusers-only List/Search API rule to further minimize the risk of eventual side-channel attack. This should be a non-breaking change for most users, but if you want the old behavior, please open a new Q&A discussion with details about your use case to evaluate making it configurable. Note also that as mentioned in the "Security and performance" section of #4417 and #5863, the easiest and recommended solution to protect security sensitive fields (tokens, codes, passwords, etc.) is to mark them as "Hidden" (aka. make them non-API filterable). 
- 
Regenerated JSVM types and updated npm and Go deps. 
v0.30.4
- Fixed jsonfield CSS regression introduced with the overflow workaround in v0.30.3 (#7259).
v0.30.3
- 
Fixed legacy identitity field priority check when a username is a valid email address (#7256). 
- 
Workaround autocomplete overflow issue with Firefox 144 (#7223). 
- 
Updated modernc.org/sqliteto 1.39.1 (SQLite 3.50.4).
v0.30.2
- Bumped min Go GitHub action version to 1.24.8 since it comes with some minor security fixes.
v0.30.1
- 
⚠️ Excluded the lost+founddirectory from the backups (#7208; thanks @lbndev). If for some reason you want to keep it, you can restore it by editing thee.Excludelist of theOnBackupCreateandOnBackupRestorehooks.
- 
Minor tests improvements (disabled initial superuser creation for the test app to avoid cluttering the std output, added more tests for the s3.Uploader.MaxConcurrency, etc.).
- 
Updated modernc.org/sqliteand other Go dependencies.
v0.30.0
- 
Eagerly escape the S3 request path following the same rules as in the S3 signing header (#7153). 
- 
Added Lark OAuth2 provider (#7130; thanks @mashizora). 
- 
Increased test tokens expclaim to minimize eventual issues with reproducible builds (#7123).
- 
Added os.Rootbindings to the JSVM ($os.openRoot,$os.openInRoot).
- 
Added osutils.IsProbablyGoRun()helper to loosely check if the program was started usinggo run.
- 
Various minor UI improvements (updated collections indexes UI, enabled seconds in the datepicker, updated helper texts, etc.). 
- 
⚠️ Updated the minimum package Go version to 1.24.0 and bumped Go dependencies. 
v0.29.3
- 
Try to forward Apple OAuth2 POST redirect user's name so that it can be returned (and eventually assigned) with the success response of the all-in-one auth call (#7090). 
- 
Fixed RateLimitRule.Audiencecode comment (#7098; thanks @iustin05).
- 
Mocked syscall.Execwhen building for WASM (#7116; thanks @joas8211). Note that WASM is not officially supported PocketBase build target and many things may not work as expected.
- 
Registered missing $filesystem,$mails,$templateand__hooksbindings in the JSVM migrations (#7125).
- 
Regenerated JSVM types to include methods from structs with single generic parameter. 
- 
Updated Go dependencies. 
v0.29.2
- Bumped min Go GitHub action version to 1.23.12 since it comes with some minor fixes for the runtime and database/sqlpackage.
v0.29.1
- 
Updated the X/Twitter provider to return the confirmed_emailfield and to use thex.comdomain (#7035).
- 
Added Box.com OAuth2 provider (#7056; thanks @blakepatteson). 
- 
Updated modernc.org/sqliteto 1.38.2 (SQLite 3.50.3).
- 
Fixed example List API response (#7049; thanks @williamtguerra). 
v0.29.0
- 
Enabled calling the /auth-refreshendpoint with nonrenewable tokens. When used with nonrenewable tokens (e.g. impersonate) the endpoint will simply return the same token with the up-to-date user data associated with it.
- 
Added the triggered rate rimit rule in the error log details.
- 
Added optional ServeEvent.Listenerfield to initialize a custom network listener (e.g.unix) instead of the defaulttcp(#3233).
- 
Fixed request data unmarshalization for the DynamicModelarray/object fields (#7022).
- 
Fixed Dashboard page title -escaping (#6982).
- 
Other minor improvements (updated first superuser console text when running with go run, clarified trusted IP proxy header label, wrapped the backup restore in a transaction as an extra precaution, updated deps, etc.).
v0.28.4
- 
Added global JSVM toBytes()helper to return the bytes slice representation of a value such as io.Reader or string, other types are first serialized to Go string (#6935).
- 
Fixed security.RandomStringByRegexrandom distribution (#6947; thanks @yerTools).
- 
Minor docs and typos fixes. 
v0.28.3
- 
Skip sending empty Rangeheader when fetching blobs from S3 (#6914).
- 
Updated Go deps and particularly modernc.org/sqliteto 1.38.0 (SQLite 3.50.1).
- 
Bumped GitHub action min Go version to 1.23.10 as it comes with some minor security net/httpfixes.
v0.28.2
- 
Loaded latin-ext charset for the default text fonts (#6869). 
- 
Updated view query CAST regex to properly recognize multiline expressions (#6860; thanks @azat-ismagilov). 
- 
Updated Go and npm dependencies. 
v0.28.1
- Fixed json_each/json_array_lengthnormalizations to properly check for array values (#6835).
v0.28.0
- 
Write the default response body of *Requesthooks that are wrapped in a transaction after the related transaction completes to allow propagating the transaction error (#6462).
- 
Updated app.DB()to automatically routes raw write SQL statements to the nonconcurrent db pool (#6689). For the rare cases when it is needed users still have the option to explicitly target the specific pool they want usingapp.ConcurrentDB()/app.NonconcurrentDB().
- 
⚠️ Changed the default jsonfield max size to 1MB. Users still have the option to adjust the default limit from the collection field options but keep in mind that storing large strings/blobs in the database is known to cause performance issues and should be avoided when possible.
- 
⚠️ Soft-deprecated and replaced filesystem.System.GetFile(fileKey)withfilesystem.System.GetReader(fileKey)to avoid the confusion withfilesystem.File. The old method will still continue to work for at least until v0.29.0 but you'll get a console warning to replace it withGetReader.
- 
Added new filesystem.System.GetReuploadableFile(fileKey, preserveName)method to return an existing blob as a*filesystem.Filevalue (#6792). This method could be useful in case you want to clone an existing Record file and assign it to a new Record (e.g. in a Record duplicate action).
- 
Other minor improvements (updated the GitHub release min Go version to 1.23.9, updated npm and Go deps, etc.) 
v0.27.2
- 
Added workers pool when cascade deleting record files to minimize "thread exhaustion" errors (#6780). 
- 
Updated the :excerptfields modifier to properly account for multibyte characters (#6778).
- 
Use rowidas count column for non-view collections to minimize the need of having the id field in a covering index (#6739)
v0.27.1
- 
Updated example geoPointAPI preview body data.
- 
Added JSVM new GeoPointField({ ... })constructor.
- 
Added partial WebP thumbs generation (the thumbs will be stored as PNG; #6744). 
- 
Updated npm dev dependencies. 
v0.27.0
- 
⚠️ Moved the Create and Manage API rule checks out of the OnRecordCreateRequesthook finalizer, aka. now all CRUD API rules are checked BEFORE triggering their corresponding*Requesthook. This was done to minimize the confusion regarding the firing order of the request operations, making it more predictable and consistent with the other record List/View/Update/Delete request actions. It could be a minor breaking change if you are relying on the old behavior and have a Gotests.ApiScenariothat is testing a Create API rule failure and expectOnRecordCreateRequestto be fired. In that case for example you may have to update your test scenario like:tests.ApiScenario{ Name: "Example test that checks a Create API rule failure" Method: http.MethodPost, URL: "/api/collections/example/records", ... // old: ExpectedEvents: map[string]int{ "*": 0, "OnRecordCreateRequest": 1, }, // new: ExpectedEvents: map[string]int{"*": 0}, }If you are having difficulties adjusting your code, feel free to open a Q&A discussion with the failing/problematic code sample. 
- 
Added new geoPointfield for storing{"lon":x,"lat":y}geographic coordinates. In addition, a newgeoDistance(lonA, lotA, lonB, lotB)function was also implemented that could be used to apply an API rule or filter constraint based on the distance (in km) between 2 geo points.
- 
Updated the selectfield UI to accommodate better larger lists and RTL languages (#4674).
- 
Updated the mail attachments auto MIME type detection to use gabriel-vasile/mimetypefor consistency and broader sniffing signatures support.
- 
Forced text/javascriptContent-Type when serving.js/.mjscollection uploaded files with the/api/files/...endpoint (#6597).
- 
Added second optional JSVM DateTimeconstructor argument for specifying a default timezone as TZ identifier when parsing the date string as alternative to a fixed offset in order to better handle daylight saving time nuances (#6688):// the same as with CET offset: new DateTime("2025-10-26 03:00:00 +01:00") new DateTime("2025-10-26 03:00:00", "Europe/Amsterdam") // 2025-10-26 02:00:00.000Z // the same as with CEST offset: new DateTime("2025-10-26 01:00:00 +02:00") new DateTime("2025-10-26 01:00:00", "Europe/Amsterdam") // 2025-10-25 23:00:00.000Z
- 
Soft-deprecated the $http.send'sresult.rawfield in favor ofresult.bodythat contains the response body as plain bytes slice to avoid the discrepancies between Go and the JSVM when casting binary data to string.
- 
Updated modernc.org/sqliteto 1.37.0.
- 
Other minor improvements (removed the superuser fields from the auth record create/update body examples, allowed programmatically updating the auth record password from the create/update hooks, fixed collections import error response, etc.). 
v0.26.6
- 
Allow OIDC email_verifiedto be int or boolean string since some OIDC providers like AWS Cognito has non-standard userinfo response (#6657).
- 
Updated modernc.org/sqliteto 1.36.3.
v0.26.5
- Fixed canonical URI parts escaping when generating the S3 request signature (#6654).
v0.26.4
- 
Fixed RecordErrorEvent.ErrorandCollectionErrorEvent.Errorsync withModelErrorEvent.Error(#6639).
- 
Fixed logs details copy to clipboard action. 
- 
Updated modernc.org/sqliteto 1.36.2.
v0.26.3
- Fixed and normalized logs error serialization across common types for more consistent logs error output (#6631).
v0.26.2
- Updated golang-jwt/jwtdependency because it comes with a minor security fix.
v0.26.1
- Removed the wrapping of io.EOFerror when reading files since currentlyio.ReadAlldoesn't check for wrapped errors (#6600).
v0.26.0
- 
⚠️ Replaced aws-sdk-go-v2andgocloud.dev/blobwith custom lighter implementation (#6562). As a side-effect of the dependency removal, the binary size has been reduced with ~10MB and builds ~30% faster. Although the change is expected to be backward-compatible, I'd recommend to test first locally the new version with your S3 provider (if you use S3 for files storage and backups).
- 
⚠️ Prioritized the user submitted non-empty createData.email(it will be unverified) when creating the PocketBase user during the first OAuth2 auth.
- 
Load the request info context during password/OAuth2/OTP authentication (#6402). This could be useful in case you want to target the auth method as part of the MFA and Auth API rules. For example, to disable MFA for the OAuth2 auth could be expressed as @request.context != "oauth2"MFA rule.
- 
Added store.Store.SetFunc(key, func(old T) new T)to set/update a store value with the return result of the callback in a concurrent safe manner.
- 
Added subscription.Message.WriteSSE(w, id)for writing an SSE formatted message into the provided writer interface (used mostly to assist with the unit testing).
- 
Added $os.stat(file)JSVM helper (#6407).
- 
Added log warning for asyncmarked JSVM handlers and resolve when possible the returnedPromiseas fallback (#6476).
- 
Allowed calling cronAdd,cronRemovefrom inside other JSVM handlers (#6481).
- 
Bumped the default request read and write timeouts to 5mins (old 3mins) to accommodate slower internet connections and larger file uploads/downloads. If you want to change them you can modify the OnServehook'sServeEvent.ReadTimeout/WriteTimeoutfields as shown in #6550.
- 
Normalized the @request.auth.*and@request.body.*back relations resolver to always returnnullwhen the relation field is pointing to a different collection (#6590).
- 
Other minor improvements (fixed query dev log nested parameters output, reintroduced DynamicModelobject/array props reflect types caching, updated Go and npm deps, etc.)
v0.25.9
- Fixed DynamicModelobject/array props reflect type caching (#6563).
v0.25.8
- Added a default leeway of 5 minutes for the Apple/OIDC id_tokentimestamp claims check to account for clock-skew (#6529). It can be further customized if needed with thePB_ID_TOKEN_LEEWAYenv variable (the value must be in seconds, e.g. "PB_ID_TOKEN_LEEWAY=60" for 1 minute).
v0.25.7
- Fixed @request.body.jsonObjOrArr.*values extraction (#6493).
v0.25.6
- 
Restore the missing meta.isNewfield of the OAuth2 success response (#6490).
- 
Updated npm dependencies. 
v0.25.5
- 
Set the current working directory as a default goja script path when executing inline JS strings to allow require(m)traversing parentnode_modulesdirectories.
- 
Updated modernc.org/sqliteandmodernc.org/libcdependencies.
v0.25.4
- 
Downgraded aws-sdk-go-v2to the version before the default data integrity checks because there have been reports for non-AWS S3 providers in addition to Backblaze (IDrive, R2) that no longer or partially work with the latest AWS SDK changes.While we try to enforce when_requiredby default, it is not enough to disable the new AWS SDK integrity checks entirely and some providers will require additional manual adjustments to make them compatible with the latest AWS SDK (e.g. removing thex-aws-checksum-*headers, unsetting the checksums calculation or reinstantiating the old MD5 checksums for some of the required operations, etc.) which as a result leads to a configuration mess that I'm not sure it would be a good idea to introduce.This unfornuatelly is not a PocketBase or Go specific issue and the official AWS SDKs for other languages are in the same situation (even the latest aws-cli). For those of you that extend PocketBase with Go: if your S3 vendor doesn't support the AWS Data integrity checks and you are updating with go get -u, then make sure that theaws-sdk-go-v2dependencies in yourgo.modare the same as in the repo:// go.mod github.com/aws/aws-sdk-go-v2 v1.36.1 github.com/aws/aws-sdk-go-v2/config v1.28.10 github.com/aws/aws-sdk-go-v2/credentials v1.17.51 github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.48 github.com/aws/aws-sdk-go-v2/service/s3 v1.72.2 // after that run go clean -modcache && go mod tidyThe versions pinning is temporary until the non-AWS S3 vendors patch their implementation or until I manage to find time to remove/replace the aws-sdk-go-v2dependency (I'll consider prioritizing it for the v0.26 or v0.27 release).
v0.25.3
- Added a temporary exception for Backblaze S3 endpoints to exclude the new aws-sdk-go-v2checksum headers (#6440).
v0.25.2
- Fixed realtime delete event not being fired for RecordProxy-ies and added basic realtime record resolve automated tests (#6433).
v0.25.1
- 
Fixed the batch API Preview success sample response. 
- 
Bumped GitHub action min Go version to 1.23.6 as it comes with a minor security fix for the ppc64le build. 
v0.25.0
- 
⚠️ Upgraded Google OAuth2 auth, token and userinfo endpoints to their latest versions. For users that don't do anything custom with the Google OAuth2 data or the OAuth2 auth URL, this should be a non-breaking change. The exceptions that I could find are: - /v3/userinfoauth response changes:- meta.rawUser.id => meta.rawUser.sub meta.rawUser.verified_email => meta.rawUser.email_verified
- /v2/authquery parameters changes: If you are specifying custom- approval_prompt=forcequery parameter for the OAuth2 auth URL, you'll have to replace it with- prompt=consent.
 
- 
Added Trakt OAuth2 provider (#6338; thanks @aidan-) 
- 
Added support for case-insensitive password auth based on the related UNIQUE index field collation (#6337). 
- 
Enforced when_requiredfor the new AWS SDK request and response checksum validations to allow other non-AWS vendors to catch up with new AWS SDK changes (see #6313 and aws/aws-sdk-go-v2#2960). You can set the environment variablesAWS_REQUEST_CHECKSUM_CALCULATIONandAWS_RESPONSE_CHECKSUM_VALIDATIONtowhen_supportedif your S3 vendor supports the new default integrity protections.
- 
Soft-deprecated Record.GetUploadedFilesin favor ofRecord.GetUnsavedFilesto minimize the ambiguities what the method do (#6269).
- 
Replaced archived github.com/AlecAivazis/surveydependency with a simplerosutils.YesNoPrompt(message, fallback)helper.
- 
Upgraded to golang-jwt/jwt/v5.
- 
Added JSVM new Timezone(name)binding for constructingtime.Locationvalue (#6219).
- 
Added inflector.Camelize(str)andinflector.Singularize(str)helper methods.
- 
Use the non-transactional app instance during the realtime records delete access checks to ensure that cascade deleted records with API rules relying on the parent will be resolved. 
- 
Other minor improvements (replaced all boolexists db scans withintfor broader drivers compatibility, updated API Preview sample error responses, updated UI dependencies, etc.)
v0.24.4
- 
Fixed fields extraction for view query with nested comments (#6309). 
- 
Bumped GitHub action min Go version to 1.23.5 as it comes with some minor security fixes. 
v0.24.3
- 
Fixed incorrectly reported unique validator error for fields starting with name of another field (#6281; thanks @svobol13). 
- 
Reload the created/edited records data in the RecordsPicker UI. 
- 
Updated Go dependencies. 
v0.24.2
- Fixed display fields extraction when there are multiple "Presentable" relationfields in a single related collection (#6229).
v0.24.1
- 
Added missing time macros in the UI autocomplete. 
- 
Fixed JSVM types for structs and functions with multiple generic parameters. 
v0.24.0
- 
⚠️ Removed the "dry submit" when executing the collections Create API rule (you can find more details why this change was introduced and how it could affect your app in https://github.com/pocketbase/pocketbase/discussions/6073). For most users it should be non-breaking change, BUT if you have Create API rules that uses self-references or view counters you may have to adjust them manually. With this change the "multi-match" operators are also normalized in case the targeted collection doesn't have any records (or in other words, @collection.example.someField != "test"will result totrueifexamplecollection has no records because it satisfies the condition that all available "example" records mustn't havesomeFieldequal to "test"). As a side-effect of all of the above minor changes, the record create API performance has been also improved ~4x times in high concurrent scenarios (500 concurrent clients inserting total of 50k records - old (58.409064001s) vs new (13.580098262s)).
- 
⚠️ Changed the type definition of store.Store[T any]tostore.Store[K comparable, T any]to allow support for custom store key types. For most users it should be non-breaking change, BUT if you are callingstore.New[any](nil)instances you'll have to specify the store key type, aka.store.New[string, any](nil).
- 
Added @yesterdayand@tomorrowdatetime filter macros.
- 
Added :lowerfilter modifier (e.g.title:lower = "lorem").
- 
Added mailer.Message.InlineAttachmentsfield for attaching inline files to an email (aka.cidlinks).
- 
Added cache for the JSVM arrayOf(m),DynamicModel, etc. dynamicreflectcreated types.
- 
Added auth collection select for the settings "Send test email" popup (#6166). 
- 
Added record.SetRandomPassword()to simplify random password generation usually used in the OAuth2 or OTP record creation flows. The generated ~30 chars random password is assigned directly as bcrypt hash and ignores thepasswordfield plain value validators like min/max length or regex pattern.
- 
Added option to list and trigger the registered app level cron jobs via the Web API and UI. 
- 
Added extra validators for the collection field int64options (e.g.FileField.MaxSize) restricting them to the max safe JSON number (2^53-1).
- 
Added option to unset/overwrite the default PocketBase superuser installer using ServeEvent.InstallerFunc.
- 
Added app.FindCachedCollectionReferences(collection, excludeIds)to speedup records cascade delete almost twice for projects with many collections.
- 
Added tests.NewTestAppWithConfig(config)helper if you need more control over the test configurations likeIsDev, the number of allowed connections, etc.
- 
Invalidate all record tokens when the auth record email is changed programmatically or by a superuser (#5964). 
- 
Eagerly interrupt waiting for the email alert send in case it takes longer than 15s. 
- 
Normalized the hidden fields filter checks and allow targetting hidden fields in the List API rule. 
- 
Fixed "Unique identify fields" input not refreshing on unique indexes change (#6184). 
v0.23.12
- 
Added warning logs in case of mismatched modernc.org/sqliteandmodernc.org/libcversions (#6136).
- 
Skipped the default body size limit middleware for the backup upload endpoint (#6152). 
v0.23.11
- Upgraded golang.org/x/netto 0.33.0 to fix CVE-2024-45338. PocketBase uses the vulnerable functions primarily for the auto html->text mail generation, but most applications shouldn't be affected unless you are manually embedding unrestricted user provided value in your mail templates.
v0.23.10
- 
Renew the superuser file token cache when clicking on the thumb preview or download link (#6137). 
- 
Upgraded modernc.org/sqliteto 1.34.3 to fix "disk io" error on arm64 systems. If you are extending PocketBase with Go and upgrading withgo get -umake sure to manually set in your go.mod themodernc.org/libcindirect dependency to v1.55.3, aka. the exact same version the driver is using.
v0.23.9
- Replaced strconv.Itoawithstrconv.FormatIntto avoid the int64->int conversion overflow on 32-bit platforms (#6132).
v0.23.8
- 
Fixed Model->Record and Model->Collection hook events sync for nested and/or inner-hook transactions (#6122). 
- 
Other minor improvements (updated Go and npm deps, added extra escaping for the default mail record params in case the emails are stored as html files, fixed code comment typos, etc.). 
v0.23.7
- Fixed JSVM exception -> Go error unwrapping when throwing errors from non-request hooks (#6102).
v0.23.6
- 
Fixed $filesystem.fileFromURLdocumentation and generated type (#6058).
- 
Fixed X-Forwarded-Forheader typo in the suggested UI "Common trusted proxy" headers (#6063).
- 
Updated the textfield max length validator error message to make it more clear (#6066).
- 
Other minor fixes (updated Go deps, skipped unnecessary validator check when the default primary key pattern is used, updated JSVM types, etc.). 
v0.23.5
- 
Fixed UI logs search not properly accounting for the "Include requests by superusers" toggle when multiple search expressions are used. 
- 
Fixed textfield max validation error message (#6053).
- 
Other minor fixes (comment typos, JSVM types update). 
- 
Updated Go deps and the min Go release GitHub action version to 1.23.4. 
v0.23.4
- 
Fixed autodatefields not refreshing when callingSavemultiple times on the sameRecordinstance (#6000).
- 
Added more descriptive test OTP id and failure log message (#5982). 
- 
Moved the default UI CSP from meta tag to response header (#5995). 
- 
Updated Go and npm dependencies. 
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/nonrenewable 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.