Skip to content

Releases: pocketbase/js-sdk

v0.7.3 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 13 Oct 12:25
  • Fixed the wrong authStore.isValid in React Native by registering a fallback node Buffer loader [#42]

v0.7.2 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 13 Oct 08:32
  • Downgraded rollup-plugin-ts due to a regression in the latest version that results in wrongly generated soucemap files.

v0.7.1 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 18 Sep 12:01
  • Disable autocancellation for the internal realtime.submitSubscriptions() call [#35]

v0.7.0 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 02 Sep 07:36
  • Added client.users.listExternalAuths() to list all linked external auth providers for a single user.
  • Added client.users.unlinkExternalAuth() to delete a single user external auth provider relation.

v0.6.2 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 28 Aug 16:32
  • Added Blob check fallback to support Node < 18 when client.authStore.exportToCookie() is used [#15]

v0.6.1 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 26 Aug 12:26

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

v0.6.0 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 24 Aug 17:42

Changes

  • (minor breaking) Changed the TypeScript AuthStore model definition from User|Admin|{} to User|Admin|null

  • Added 2 new helper methods to the BaseAuthStore for easier cookie management in case of SSR [#15]:

    // update the store with the parsed data from the cookie string
    client.authStore.loadFromCookie('pb_auth=...');
    
    // exports the store data as cookie, with option to extend the default SameSite, Secure, HttpOnly, Path and Expires attributes
    // output: 'pb_auth=...'
    client.authStore.exportToCookie({ httpOnly: false });
  • Updated the README and added some notes and examples (SvelteKit, Nuxt, Next.js) for SSR integration [#15]

v0.5.0 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 21 Aug 12:25

Changes

This release maps the additions in the PocketBase v0.5.0 logs and settings endpoints

  • Replaced ip with userIp and the remoteIp in the LogRequest DTO
  • Added client.settings.testS3() to perform a S3 storage connection test.
  • Added client.settings.testEmail() to send test user emails.

v0.4.1 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 17 Aug 07:51

Changes

  • Use the ES module as main entrypoint in package.json in order to fix the Vite error when loading non-default exports (pocketbase/pocketbase#320)
  • Fixed some typos in the README and doc comments

v0.4.0 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 11 Aug 08:42

Changes

  • Added new client.collections.import(...) handler.
  • Added totalPages to the ListResult<M> model.