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

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

Changes

  • Updated the client.authStore declaration from AuthStore | BaseAuthStore to just BaseAuthStore to normalize the access to the cookies and onChange helper methods [#27] (thanks @ollema)

⚠️ This is a small breaking change for TypeScript users with legacy stores that doesn't implement/extend BaseAuthStore.

From now custom auth stores should always implements/extends BaseAuthStore (or any of its derivative classes, eg. LocalAuthStore).
Or in other words, if you have previously used:

class CustomStore { ... }
// or
class CustomStore implements AuthStore { ... } 

now it should be converted to:

import PocketBase, { BaseAuthStore } from "pocketbase";

class CustomStore extends BaseAuthStore { ... }

Don't miss a new js-sdk release

NewReleases is sending notifications on new releases.