-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): update module github.com/pocketbase/pocketbase to v0.24.4 #6
base: master
Are you sure you want to change the base?
Conversation
ℹ Artifact update noticeFile name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
69e8b22
to
0c8a6ef
Compare
0c8a6ef
to
a952840
Compare
9c2df63
to
604527d
Compare
604527d
to
1712fc5
Compare
|
1712fc5
to
9765da9
Compare
9765da9
to
792341e
Compare
792341e
to
27eaa1b
Compare
27eaa1b
to
0f9e356
Compare
0f9e356
to
a1c6cf3
Compare
a1c6cf3
to
b07ceda
Compare
b07ceda
to
73cbabf
Compare
73cbabf
to
88a9047
Compare
88a9047
to
a4fb1d9
Compare
a4fb1d9
to
c34d6df
Compare
c34d6df
to
e21b338
Compare
e21b338
to
dc879d5
Compare
dc879d5
to
1cb0784
Compare
This PR contains the following updates:
v0.22.21
->v0.24.4
Release Notes
pocketbase/pocketbase (github.com/pocketbase/pocketbase)
v0.24.4
Compare Source
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
Compare Source
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
Compare Source
relation
fields in a single related collection (#6229).v0.24.1
Compare Source
Added missing time macros in the UI autocomplete.
Fixed JSVM types for structs and functions with multiple generic parameters.
v0.24.0
Compare Source
(you can find more details why this change was introduced and how it could affect your apphttps://github.com/pocketbase/pocketbase/discussions/60736073).
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 totrue
ifexample
collection has no records because it satisfies the condition that all available "example" records mustn't havesomeField
equal 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)).
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 calling
store.New[any](nil)
instances you'll have to specify the store key type, aka.store.New[string, any](nil)
.Added
@yesterday
and@tomorrow
datetime filter macros.Added
:lower
filter modifier (e.g.title:lower = "lorem"
).Added
mailer.Message.InlineAttachments
field for attaching inline files to an email (aka.cid
links).Added cache for the JSVM
arrayOf(m)
,DynamicModel
, etc. dynamicreflect
created 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 the
password
field 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
int64
options (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
Compare Source
Added warning logs in case of mismatched
modernc.org/sqlite
andmodernc.org/libc
versions (#6136).Skipped the default body size limit middleware for the backup upload endpoint (#6152).
v0.23.11
Compare Source
golang.org/x/net
to 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
Compare Source
Renew the superuser file token cache when clicking on the thumb preview or download link (#6137).
Upgraded
modernc.org/sqlite
to 1.34.3 to fix "disk io" error on arm64 systems.If you are extending PocketBase with Go and upgrading with
go get -u
make sure to manually set in your go.mod themodernc.org/libc
indirect dependency to v1.55.3, aka. the exact same version the driver is using.v0.23.9
Compare Source
strconv.Itoa
withstrconv.FormatInt
to avoid the int64->int conversion overflow on 32-bit platforms (#6132).v0.23.8
Compare Source
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
Compare Source
v0.23.6
Compare Source
Fixed
$filesystem.fileFromURL
documentation and generated type (#6058).Fixed
X-Forwarded-For
header typo in the suggested UI "Common trusted proxy" headers (#6063).Updated the
text
field 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
Compare Source
Fixed UI logs search not properly accounting for the "Include requests by superusers" toggle when multiple search expressions are used.
Fixed
text
field 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
Compare Source
Fixed
autodate
fields not refreshing when callingSave
multiple times on the sameRecord
instance (#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
Compare Source
Fixed Gzip middleware not applying when serving static files.
Fixed
Record.Fresh()
/Record.Clone()
methods not properly cloningautodate
fields (#5973).v0.23.2
Compare Source
Fixed
RecordQuery()
custom struct scanning (#5958).Fixed
--dev
log query print formatting.Added support for passing more than one id in the
Hook.Unbind
method 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
Compare Source
Added warning logs in case of mismatched
modernc.org/sqlite
andmodernc.org/libc
versions (#6136).Skipped the default body size limit middleware for the backup upload endpoint (#6152).
v0.23.0
Compare Source
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:
The old documentation could be accessed at pocketbase.io/old.
echo
with a new router built on top of the Go 1.22net/http
mux enhancements.daos
packages incore.App
to simplify the DB operations (themodels
package structs are also migrated incore
).DBConnect
function as part of the app configuration to allow differentdatabase/sql
SQLite drivers (turso/libsql, sqlcipher, etc.) and custom builds.Note that we no longer loads the
mattn/go-sqlite3
driver by default when building withCGO_ENABLED=1
to avoidmultiple definition
linker 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.Record
model improvements (support for get/set modifiers, simplfied file upload by treating the file(s) as regular field value likerecord.Set("document", file)
, etc.).id
,email
,password
, etc.)._superusers
auth records.The provider key is
instagram2
to prevent conflicts with existing linked users.id_token
payload for the cases when the provider doesn't have a dedicated user info endpoint.Presentable
view, slightly different collection options organization, zoom/pan for the logs chart, etc.)Go/JSVM APIs changes
SDKs changes
Web APIs changes
New
POST /api/batch
endpoint.New
GET /api/collections/meta/scaffolds
endpoint.New
DELETE /api/collections/{collection}/truncate
endpoint.New
POST /api/collections/{collection}/request-otp
endpoint.New
POST /api/collections/{collection}/auth-with-otp
endpoint.New
POST /api/collections/{collection}/impersonate/{id}
endpoint./api/*
routes manually remove the trailing slash (there is no longer trailing slash removal middleware registered by default)./api/admins/*
endpoints because admins are converted to_superusers
auth collection records.file
field, 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 multiple
file
field value you can use the+
prefix or suffix:GET /records/{id}/external-auths
andDELETE /records/{id}/external-auths/{provider}
endpoints because this is now handled by sending list and delete requests to the_externalAuths
collection.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.code
key was renamed tostatus
for consistency with the Go APIs.The error field key remains
code
:GET /api/collections/{collection}/auth-methods
response.The old
authProviders
,usernamePassword
,emailPassword
fields are still returned in the response but are considered deprecated and will be removed in the future.meta.avatarUrl
field in favour ofmeta.avatarURL
.v0.22.30
: ReleaseCompare Source
(Backported from v0.24.4) Fixed fields extraction for view queries with nested comments (#6309).
Bumped GitHub action min Go version to 1.23.5 as it comes with some minor security fixes.
v0.22.29
: ReleaseCompare Source
golang.org/x/net
to 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.22.28
: ReleaseCompare Source
(Backported from v0.23.10) Renew the superuser file token cache when clicking on the thumb preview or download link (#6137).
(Backported from v0.23.10) Upgraded
modernc.org/sqlite
to 1.34.3 to fix "disk io" error on arm64 systems.If you are extending PocketBase with Go and upgrading with
go get -u
make sure to manually set in your go.mod themodernc.org/libc
indirect dependency to v1.55.3, aka. the exact same version the driver is using.v0.22.27
Compare Source
delete
event (#5898).v0.22.26
: ReleaseCompare Source
v0.22.25
: ReleaseCompare Source
Refresh the old collections state in the Import UI after successful import submission (#5861).
Added randomized throttle on failed filter list requests as a very rudimentary measure since some security researches raised concern regarding the possibity of eventual side-channel attacks.
This is not really a solution for such attacks but it makes it difficult enough to make it less practical. With v0.23.0 there are several other measures taken but they cannot be backported easily. I'll submit a post a little bit later today clarifying more on it (edit: #5683).
v0.22.24
: ReleaseCompare Source
v0.22.23
: ReleaseCompare Source
Updated the hooks watcher to account for the case when hooksDir is a symlink (#5789).
(Backported from v0.23.0-rc) Registered a default
http.Server.ErrorLog
handler to report general server connection errors as app Debug level logs (e.g. invalid TLS handshakes caused by bots trying to access your server via its IP or other similar errors).Other minor fixes (updated npm dev deps to fix the vulnerabilities warning, added more user friendly realtime topic length error, regenerated JSVM types, etc.)
v0.22.22
: ReleaseCompare Source
Added deprecation log in case Instagram OAuth2 is used (related to #5652).
Added
update
command warning to prevent unnecessary downloading PocketBase v0.23.0 since it will contain breaking changes.Added global JSVM
toString()
helper (successor ofreaderToString()
) to stringify any value (bool, number, multi-byte array, io.Reader, etc.).readerToString
is still available but it is marked as deprecated. You can also usetoString
as replacement for ofString.fromCharCode
to properly stringify multi-byte unicode characters like emojis.Updated
aws-sdk-go-v2
and removed deprecatedWithEndpointResolverWithOptions
.Backported some of the v0.23.0-rc form validators, fixes and tests.
Bumped the GitHub action min Go version and dependencies.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.