Skip to content

v0.6.1 Release

Compare
Choose a tag to compare
@ganigeorgiev ganigeorgiev released this 26 Aug 12:26
· 178 commits to master since this release

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 { ... }