v0.3.0 Release
Changes
- Added
client.beforeSend
andclient.afterSend
hooks allowing more advanced request and response customizations (for more details check Send hooks) [#19]. - Added
onChange
listener to the AuthStore:client.authStore.onChange((token, model) => { console.log("Store changed":, token, model); })
- Since several users complained about this and for consistency with other js code, the UpperCamelCase API services access is now soft-deprecated. The old format will still continue to work as alias, but for new projects it is recommended to use the lowerCamelCase version:
client.AuthStore.* => client.authStore.*
client.Admins.* => client.admins.*
client.Users.* => client.users.*
client.Records.* => client.records.*
client.Collections.* => client.collections.*
client.Logs.* => client.logs.*
client.Settings.* => client.settings.*
client.Realtime.* => client.realtime.*