pocketbase
Advanced tools
Changelog
0.13.0
Aliased all BaseModel
helpers 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.beforeSend
and pb.afterSend
signatures to allow returning and awaiting an optional Promise
(#166; thanks @Bobby-McBobface).
Added Collection.indexes
field 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.
Changelog
0.12.0
pb.beforeSend
hook to allow modifying the request url (#1930).
// old
pb.beforeSend = function (url, options) {
...
return options;
}
// new
pb.beforeSend = function (url, options) {
...
return { url, options };
}
The old return format is soft-deprecated and will still work, but you'll get a console.warn
message to replace it.