-
Notifications
You must be signed in to change notification settings - Fork 0
fix(deps): update module github.com/pocketbase/pocketbase to v0.28.3 #96
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
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/github.com-pocketbase-pocketbase-0.x
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ℹ Artifact update noticeFile name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
fffd160
to
0122290
Compare
0122290
to
412584d
Compare
89893ba
to
70c86a1
Compare
c4f8d54
to
33201dc
Compare
3b462b6
to
68e5684
Compare
68e5684
to
ba09025
Compare
f9a3bdb
to
007cd4e
Compare
007cd4e
to
7c8cea3
Compare
a953925
to
0464924
Compare
8b8bba4
to
0e8b823
Compare
0e8b823
to
f55afb1
Compare
e1bc778
to
3e72e98
Compare
955038c
to
879781a
Compare
879781a
to
9d28fe5
Compare
636a619
to
4a20696
Compare
6ac4735
to
689ed6d
Compare
689ed6d
to
d95f374
Compare
d95f374
to
0c5b57f
Compare
1b0b2c3
to
f3a3363
Compare
f3a3363
to
367a850
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.22.27
->v0.28.3
Release Notes
pocketbase/pocketbase (github.com/pocketbase/pocketbase)
v0.28.3
Compare Source
Skip sending empty
Range
header when fetching blobs from S3 (#6914).Updated Go deps and particularly
modernc.org/sqlite
to 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/http
fixes.v0.28.2
Compare Source
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
Compare Source
json_each
/json_array_length
normalizations to properly check for array values (#6835).v0.28.0
Compare Source
Write the default response body of
*Request
hooks 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 using
app.ConcurrentDB()
/app.NonconcurrentDB()
.json
field 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.
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 with
GetReader
.Added new
filesystem.System.GetReuploadableFile(fileKey, preserveName)
method to return an existing blob as a*filesystem.File
value (#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
Compare Source
Added workers pool when cascade deleting record files to minimize "thread exhaustion" errors (#6780).
Updated the
:excerpt
fields modifier to properly account for multibyte characters (#6778).Use
rowid
as count column for non-view collections to minimize the need of having the id field in a covering index (#6739)v0.27.1
Compare Source
Updated example
geoPoint
API 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
Compare Source
OnRecordCreateRequest
hook finalizer, aka. now all CRUD API rules are checked BEFORE triggering their corresponding*Request
hook.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 Go
tests.ApiScenario
that is testing a Create API rule failure and expectOnRecordCreateRequest
to be fired. In that case for example you may have to update your test scenario like:If you are having difficulties adjusting your code, feel free to open a Q&A discussion with the failing/problematic code sample.
Added new
geoPoint
field for storing{"lon":x,"lat":y}
geographic coordinates.In addition, a new
geoDistance(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
select
field UI to accommodate better larger lists and RTL languages (#4674).Updated the mail attachments auto MIME type detection to use
gabriel-vasile/mimetype
for consistency and broader sniffing signatures support.Forced
text/javascript
Content-Type when serving.js
/.mjs
collection uploaded files with the/api/files/...
endpoint (#6597).Added second optional JSVM
DateTime
constructor 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):Soft-deprecated the
$http.send
'sresult.raw
field in favor ofresult.body
that 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/sqlite
to 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
Compare Source
Allow OIDC
email_verified
to be int or boolean string since some OIDC providers like AWS Cognito has non-standard userinfo response (#6657).Updated
modernc.org/sqlite
to 1.36.3.v0.26.5
Compare Source
v0.26.4
Compare Source
Fixed
RecordErrorEvent.Error
andCollectionErrorEvent.Error
sync withModelErrorEvent.Error
(#6639).Fixed logs details copy to clipboard action.
Updated
modernc.org/sqlite
to 1.36.2.v0.26.3
Compare Source
v0.26.2
Compare Source
golang-jwt/jwt
dependency because it comes with a minor security fix.v0.26.1
Compare Source
io.EOF
error when reading files since currentlyio.ReadAll
doesn't check for wrapped errors (#6600).v0.26.0
Compare Source
aws-sdk-go-v2
andgocloud.dev/blob
with 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).
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
async
marked JSVM handlers and resolve when possible the returnedPromise
as fallback (#6476).Allowed calling
cronAdd
,cronRemove
from 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
OnServe
hook'sServeEvent.ReadTimeout/WriteTimeout
fields as shown in #6550.Normalized the
@request.auth.*
and@request.body.*
back relations resolver to always returnnull
when the relation field is pointing to a different collection (#6590).Other minor improvements (fixed query dev log nested parameters output, reintroduced
DynamicModel
object/array props reflect types caching, updated Go and npm deps, etc.)v0.25.9
Compare Source
DynamicModel
object/array props reflect type caching (#6563).v0.25.8
Compare Source
id_token
timestamp claims check to account for clock-skew (#6529).It can be further customized if needed with the
PB_ID_TOKEN_LEEWAY
env variable (the value must be in seconds, e.g. "PB_ID_TOKEN_LEEWAY=60" for 1 minute).v0.25.7
Compare Source
@request.body.jsonObjOrArr.*
values extraction (#6493).v0.25.6
Compare Source
Restore the missing
meta.isNew
field of the OAuth2 success response (#6490).Updated npm dependencies.
v0.25.5
Compare Source
Set the current working directory as a default goja script path when executing inline JS strings to allow
require(m)
traversing parentnode_modules
directories.Updated
modernc.org/sqlite
andmodernc.org/libc
dependencies.v0.25.4
Compare Source
Downgraded
aws-sdk-go-v2
to 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_required
by 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-v2
dependencies in yourgo.mod
are the same as in the repo:The 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-v2
dependency (I'll consider prioritizing it for the v0.26 or v0.27 release).v0.25.3
Compare Source
aws-sdk-go-v2
checksum headers (#6440).v0.25.2
Compare Source
RecordProxy
-ies and added basic realtime record resolve automated tests (#6433).v0.25.1
Compare Source
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
Compare Source
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/userinfo
auth response changes:meta.rawUser.id => meta.rawUser.sub
meta.rawUser.verified_email => meta.rawUser.email_verified
/v2/auth
query parameters changes:If you are specifying custom
approval_prompt=force
query parameter for the OAuth2 auth URL, you'll have to replace it withprompt=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_required
for 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 variables
AWS_REQUEST_CHECKSUM_CALCULATION
andAWS_RESPONSE_CHECKSUM_VALIDATION
towhen_supported
if your S3 vendor supports the new default integrity protections.Soft-deprecated
Record.GetUploadedFiles
in favor ofRecord.GetUnsavedFiles
to minimize the ambiguities what the method do (#6269).Replaced archived
github.com/AlecAivazis/survey
dependency with a simplerosutils.YesNoPrompt(message, fallback)
helper.Upgraded to
golang-jwt/jwt/v5
.Added JSVM
new Timezone(name)
binding for constructingtime.Location
value (#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
bool
exists db scans withint
for broader drivers compatibility, updated API Preview sample error responses, updated UI dependencies, etc.)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.34
: ReleaseCompare Source
email_verified
to be int or boolean string since some OIDC providers like AWS Cognito has non-standard userinfo response (#6657).v0.22.33
: ReleaseCompare Source
v0.22.32
: ReleaseCompare Source
golang-jwt/jwt
dependency because it comes with a minor security fix.v0.22.31
: ReleaseCompare Source
require(m)
traversing parentnode_modules
directories.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.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 is behind base branch, 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.