github pocketbase/js-sdk v0.3.0
v0.3.0 Release

latest releases: v0.25.1, v0.25.0, v0.24.0...
2 years ago

Changes

  • Added client.beforeSend and client.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.*

Don't miss a new js-sdk release

NewReleases is sending notifications on new releases.