fix(deps): update dependency pocketbase to ^0.26.0#35
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
fix(deps): update dependency pocketbase to ^0.26.0#35renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
b09c51a to
1424e5b
Compare
1424e5b to
0247461
Compare
0247461 to
2cf2748
Compare
2cf2748 to
ddc7121
Compare
ddc7121 to
d57f84a
Compare
d57f84a to
b5c19ee
Compare
b5c19ee to
b247637
Compare
b247637 to
95b94e5
Compare
95b94e5 to
849e385
Compare
849e385 to
dac0858
Compare
dac0858 to
158c123
Compare
158c123 to
edcd4a0
Compare
edcd4a0 to
6c3a5e1
Compare
a6f429b to
8c75c39
Compare
8c75c39 to
aa65f42
Compare
aa65f42 to
0b8a3f0
Compare
0b8a3f0 to
1fff88f
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
^0.14.0→^0.26.0Release Notes
pocketbase/js-sdk (pocketbase)
v0.26.8Compare Source
authWithOAuth2()Promisewhen manually callingpb.cancelRequest(requestKey)(previously the manual cancellation didn't account for the waiting realtime subscription).v0.26.7Compare Source
pb.files.getURL()to serialize the URL query params in the same manner as in the fetch methods (e.g. passingnullorundefinedas query param value will be skipped from the generated URL).v0.26.6Compare Source
Fixed abort request error detection on React Native Android/iOS (#361; thanks @nathanstitt).
Updated the default
getFullList()batch size to 1000 for consistency with the Dart SDK and the v0.23+ API limits.v0.26.5Compare Source
DOMException.SyntaxErroronresponse.json()failure (#pocketbase/pocketbase#7369).v0.26.4Compare Source
response.json()failure (e.g. in case of tcp connection reset) and rethrow it as normalizedClientResponseError.isAbort=trueerror.v0.26.3Compare Source
OAuth2ProviderTS fields (pocketbase/site#110).v0.26.2Compare Source
v0.26.1Compare Source
causeproperty ofClientResponseErrorto the original thrown error/data for easier debugging (#349; thanks @shish).v0.26.0Compare Source
undefinedproperties when submitting an object that hasBlob/Filefields (which is under the hood converted toFormData)for consistency with how
JSON.stringifyworks (see pocketbase#6731).v0.25.2Compare Source
serializeQueryParamsand added automated tests.v0.25.1Compare Source
undefinedvalue (#330).v0.25.0Compare Source
pb.cronsservice to interact with the cron Web APIs.v0.24.0Compare Source
FormDataas body to individual batch requests (pocketbase#6145).v0.23.0Compare Source
pb.realtime.onDisconnecthook function.Note that the realtime client autoreconnect on its own and this hook is useful only for the cases where you want to apply a special behavior on server error or after closing the realtime connection.
v0.22.1Compare Source
pb.authStore.isAdmin/pb.authStore.isAuthRecordand marked them as deprecated in favour ofpb.authStore.isSuperuser(#323).Note that with PocketBase v0.23.0 superusers are converted to a system auth collection so you can always simply check the value of
pb.authStore.record?.collectionName.v0.22.0Compare Source
Added support for sending batch/transactional create/updated/delete/upsert requests with the new batch Web APIs.
Added support for authenticating with OTP (email code):
Note that PocketBase v0.23.0 comes also with Multi-factor authentication (MFA) support.
When enabled from the dashboard, the first auth attempt will result in 401 response and a
mfaIdresponse,that will have to be submitted with the second auth request. For example:
Added new
pb.collection("users").impersonate("RECORD_ID")method for superusers.It authenticates with the specified record id and returns a new client with the impersonated auth state loaded in a memory store.
Added new
pb.collections.getScaffolds()method to retrieve a type indexed map with the collection models (base, auth, view) loaded with their defaults.Added new
pb.collections.truncate(idOrName)to delete all records associated with the specified collection.Added the submitted fetch options as 3rd last argument in the
pb.afterSendhook.Instead of replacing the entire
pb.authStore.record, on auth record update we now only replace the available returned response record data (pocketbase#5638)._superusersauth collection and there is no longerAdminServiceandAdminModeltypes.pb.adminsis soft-deprecated and aliased topb.collection("_superusers").pb.authStore.modelis soft-deprecated and superseded bypb.authStore.record.meta.avatarUrlresponse field in favour ofmeta.avatarURLfor consistency with the Go conventions.AuthMethodsListinerface fields to accomodate the new auth methods andlistAuthMethods()response.*Url()->*URL()methods for consistency with other similar native JS APIs and the accepted Go conventions.The old methods still works but you may get a console warning to replace them because they will be removed in the future.
CollectionModel.schematoCollectionModel.fields.SchemaFieldtoCollectionField.v0.21.5Compare Source
optionsargument for consistency with the other methods (#308).v0.21.4Compare Source
requestKeyhandling inauthWithOAuth2({...})to allow manually cancelling the entire OAuth2 pending request flow usingpb.cancelRequest(requestKey).Due to the
window.closecaveats note that the OAuth2 popup window may still remain open depending on which stage of the OAuth2 flow the cancellation has been invoked.v0.21.3Compare Source
atobpolyfill for ReactNative until Expo 51+ and React Native v0.74+atobfix get released.v0.21.2Compare Source
HealthServicetypes (#289).v0.21.1Compare Source
Manually update the verified state of the current matching
AuthStoremodel on successful "confirm-verification" call.Manually clear the current matching
AuthStoreon "confirm-email-change" call because previous tokens are always invalidated.Updated the
fetchmock tests to check also the sent body params.Formatted the source and tests with prettier.
v0.21.0Compare Source
multipart/form-databody is handled.Properly sent json body with
multipart/form-datarequests.This should fix the edge cases mentioned in the v0.20.3 release.
Gracefully handle OAuth2 redirect error with the
authWithOAuth2()call.v0.20.3Compare Source
Partial and temporary workaround for the auto
application/json->multipart/form-datarequest serialization of ajsonfield when aBlob/Fileis found in the request body (#274).The "fix" is partial because there are still 2 edge cases that are not handled - when a
jsonfield 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
jsonor an arrayableselect,fileorrelation, so it can't serialize it properly on its own asFormDatastring value.If you are having troubles with persisting
jsonvalues as part of amultipart/form-datarequest the easiest fix for now is to manually stringify thejsonfield value:A proper fix for this will be implemented with PocketBase v0.21.0 where we'll have support for a special
@jsonPayloadmultipart body key, which will allow us to submit mixedmultipart/form-datacontent (kindof similar to themultipart/mixedMIME).v0.20.2Compare Source
Throw 404 error for
getOne("")when invoked with empty id (#271).Added
@throw {ClientResponseError}jsdoc annotation to the regular request methods (#262).v0.20.1Compare Source
PB_CONNECTevent to allow listening to the realtime connect/reconnect events.v0.20.0Compare Source
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.presentablefield.Added new
AuthProviderInfo.displayNamestring field.Added new
AuthMethodsList.onlyVerifiedbool field.v0.19.0Compare Source
Added
pb.filter(rawExpr, params?)helper to construct a filter string with placeholder parameters populated from an object.The supported placeholder parameter values are:
string(single quotes will be autoescaped)numberbooleanDateobject (will be stringified into the format expected by PocketBase)nullJSON.stringify()v0.18.3Compare Source
RecordService(#251).This should allow specifying a single TypeScript definition for the client, eg. using type assertion:
v0.18.2Compare Source
PromiseasAsyncAuthStoreinitial value (#249).v0.18.1Compare Source
requestKeyparam.v0.18.0Compare Source
Added
pb.backups.upload(data)action (available with PocketBase v0.18.0).Added experimental
autoRefreshThresholdoption to auto refresh (or reauthenticate) the AuthStore when authenticated as admin.This could be used as an alternative to fixed Admin API keys.
v0.17.3Compare Source
pb.files.getUrl(user, filename)to allow passing thepb.authStore.modelwithout type assertion.v0.17.2Compare Source
v0.17.1Compare Source
v0.17.0Compare Source
To simplify file uploads, we now allow sending the
multipart/form-datarequest body also as plain object if at least one of the object props hasFileorBlobvalue.Added new
pb.authStore.isAdminandpb.authStore.isAuthRecordhelpers to check the type of the current auth state.The default
LocalAuthStorenow listen to the browser storage event,so that we can sync automatically the
pb.authStorestate between multiple tabs.Added new helper
AsyncAuthStoreclass that can be used to integrate with any 3rd party async storage implementation (usually this is needed when working with React Native):pb.files.getUrl()now returns empty string in case an empty filename is passed.structuredClone(response)when using with SSR frameworks.This could be a breaking change if you use the below classes (and respectively their helper methods like
$isNew,$load(), etc.) since they were replaced with plain TS interfaces:Side-note: If you use somewhere in your code the
RecordandAdminclasses to determine the type of yourpb.authStore.model,you can safely replace it with the new
pb.authStore.isAdminandpb.authStore.isAuthRecordgetters.fetchoptions, including also specifying completely customfetchimplementation.In addition to the default
fetchoptions, the following configurable fields are supported:For most users the above will not be a breaking change since there are available function overloads (when possible) to preserve the old behavior, but you can get a warning message in the console to update to the new format.
For example:
Eagerly open the default OAuth2 signin popup in case no custom
urlCallbackis provided as a workaround for Safari.Internal refactoring (updated dev dependencies, refactored the tests to use Vitest instead of Mocha, etc.).
v0.16.0Compare Source
Added
skipTotal=1query parameter by default for thegetFirstListItem()andgetFullList()requests.Note that this have performance boost only with PocketBase v0.17+.
Added optional
download=1query parameter to force file urls withContent-Disposition: attachment(supported with PocketBase v0.17+).v0.15.3Compare Source
Promises in caseunsubscribeis called beforesubscribeis being able to complete (pocketbase#2897).v0.15.2Compare Source
Replaced
new URL(...)with manual url parsing as it is not fully supported in React Native (pocketbase#2484).Fixed nested
ClientResponseError.originalErrorwrapping and addedClientResponseErrorconstructor tests.v0.15.1Compare Source
v0.15.0Compare Source
Added
fieldsto the optional query parameters for limiting the returned API fields (available with PocketBase v0.16.0).Added
pb.backupsservice for the new PocketBase backup and restore APIs (available with PocketBase v0.16.0).Updated
pb.settings.testS3(filesystem)to allow specifying a filesystem to test -storageorbackups(available with PocketBase v0.16.0).v0.14.4Compare Source
BaseModel.isNewgetter since it conflicts with similarly named record fields (pocketbase#2385).This helper is mainly used in the Admin UI, but if you are also using it in your code you can replace it with the
$prefixed version, aka.BaseModel.$isNew.v0.14.3Compare Source
OAuth2AuthConfig.queryprop to send optional query parameters with theauthWithOAuth2(config)call.v0.14.2Compare Source
location.origin + location.pathnameinstead of fulllocation.hrefwhen constructing the browser absolute url to ignore any extra hash or query parameter passed to the base url.This is a small addition to the earlier change from v0.14.1.
v0.14.1Compare Source
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.