[Snyk] Upgrade pocketbase from 0.10.0 to 0.21.4 #3
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.
Snyk has created this PR to upgrade pocketbase from 0.10.0 to 0.21.4.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 50 versions ahead of your current version.
The recommended version was released on a month ago.
Release notes
Package name: pocketbase
requestKey
handling inauthWithOAuth2({...})
to allow manually cancelling the entire OAuth2 pending request flow usingpb.cancelRequest(requestKey)
.Due to the
window.close
caveats note that the OAuth2 popup window may still remain open depending on which stage of the OAuth2 flow the cancellation has been invoked.atob
polyfill for ReactNative until Expo 51+ and React Native v0.74+atob
fix get released.This should fix the recently reported issues with
pb.authStore.isValid
always returningfalse
on Android and iOS.HealthService
types (#289).Manually update the verified state of the current matching
AuthStore
model on successful "confirm-verification" call.Manually clear the current matching
AuthStore
on "confirm-email-change" call because previous tokens are always invalidated.Fixed the
fetch
mock tests to check also the sent body param values.Formatted the source code with prettier.
multipart/form-data
body is handled.Properly sent json body with
multipart/form-data
requests.This should fix the edge cases mentioned in the v0.20.3 release.
Gracefully handle OAuth2 redirect error with the
authWithOAuth2()
call.Partial and temporary workaround for the auto
application/json
->multipart/form-data
request serialization of ajson
field when aBlob
/File
is found in the request body (#274).The "fix" is partial because there are still 2 edge cases that are not handled - when a
json
field value is empty array (eg.[]
) or array of strings (eg.["a","b"]
).The reason for this is because the SDK doesn't have information about the field types and doesn't know which field is a
json
or an arrayableselect
,file
orrelation
, so it can't serialize it properly on its own asFormData
string value.If you are having troubles with persisting
json
values as part of amultipart/form-data
request the easiest fix for now is to manually stringify thejson
field value:A proper fix for this will be implemented with PocketBase v0.21.0 where we'll have support for a special
@ jsonPayload
multipart body key, which will allow us to submit mixedmultipart/form-data
content (kindof similar to themultipart/mixed
MIME).Throw 404 error for
getOne("")
when invoked with empty id (#271).Added
@ throw {ClientResponseError}
jsdoc annotation to the regular request methods (#262).PB_CONNECT
EventSource message to allow listening to the realtime connect/reconnect events.Added
expand
,filter
,fields
, custom query and headers parameters support for the realtime subscriptions.This works only with PocketBase v0.20.0+.
Changes to the logs service methods in relation to the logs generalization in PocketBase v0.20.0+:
Added missing
SchemaField.presentable
field.Added new
AuthProviderInfo.displayName
string field.Added new
AuthMethodsList.onlyVerified
bool field.expand
,filter
,fields
, custom query and headers parameters support for the realtime subscriptions.Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: