Releases: pocketbase/js-sdk
Release list
v0.13.0 Release
-
Aliased all
BaseModelhelpers with$equivalent to avoid conflicts with the dynamic record props (#169).isNew -> $isNew load(data) -> $load(data) clone() -> $clone() export() -> $export() // ...
For backward compatibility, the old helpers will still continue to work if the record doesn't have a conflicting field name.
-
Updated
pb.beforeSendandpb.afterSendsignatures to allow returning and awaiting an optionalPromise(#166; thanks @Bobby-McBobface). -
Added
Collection.indexesfield for the new collection indexes support in the upcoming PocketBase v0.14.0. -
Added
pb.settings.generateAppleClientSecret()for sending a request to generate Apple OAuth2 client secret in the upcoming PocketBase v0.14.0.
v0.12.1 Release
- Fixed request
multipart/form-databody check to allow the React Native Android and iOS customFormDataimplementation as validfetchbody (#2002).
v0.12.0 Release
- Changed the return type of
pb.beforeSendhook to allow modifying the request url (#1930).The old return format is soft-deprecated and will still work, but you'll get a// old pb.beforeSend = function (url, options) { ... return options; } // new pb.beforeSend = function (url, options) { ... return { url, options }; }
console.warnmessage to replace it.
v0.11.1 Release
- Exported the services class definitions to allow being used as argument types (#153).
CrudService AdminService CollectionService LogService RealtimeService RecordService SettingsService
v0.11.0 Release
-
Aliased/soft-deprecated
ClientResponseError.datain favor ofClientResponseError.responseto avoid the stuttering when accessing the inner error responsedatakey (aka.err.data.datanow iserr.response.data).
TheClientResponseError.datawill still work but it is recommend for new code to use theresponsekey. -
Added
getFullList(queryParams = {})overload since the default batch size in most cases doesn't need to change (it can be defined as query parameter).
The old formgetFullList(batch = 200, queryParams = {})will still work, but it is recommend for new code to use the shorter form.
v0.10.2 Release
- Updated
getFileUrl()to accept custom types as record argument (#150).
v0.10.1 Release
- Added check for the collection name before auto updating the
pb.authStorestate on auth record update/delete.
v0.10.0 Release
-
Added more helpful message for the
ECONNREFUSED ::1localhost error (related to #21). -
Preserved the "original" function and class names in the minified output for those who rely on
*.prototype.name. -
Allowed sending the existing valid auth token with the
authWithPassword()calls. -
Updated the Nuxt3 SSR examples to use the built-in
useCookie()helper.
v0.9.1 Release
- Normalized
Record.expanditems toRecord|Array<Record>instances.
v0.9.0 Release
- Added
pb.health.check()that checks the health status of the API service (available in PocketBase v0.10.0)