Skip to content

Releases: pocketbase/js-sdk

v0.13.0 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 24 Mar 20:03
  • Aliased all BaseModel helpers with $ equivalent to avoid conflicts with the dynamic record props (#169).

    isNew      -> $isNew
    load(data) -> $load(data)
    clone()    -> $clone()
    export()   -> $export()
    // ...

    For backward compatibility, the old helpers will still continue to work if the record doesn't have a conflicting field name.

  • Updated pb.beforeSend and pb.afterSend signatures to allow returning and awaiting an optional Promise (#166; thanks @Bobby-McBobface).

  • Added Collection.indexes field for the new collection indexes support in the upcoming PocketBase v0.14.0.

  • Added pb.settings.generateAppleClientSecret() for sending a request to generate Apple OAuth2 client secret in the upcoming PocketBase v0.14.0.

v0.12.1 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 09 Mar 12:00
  • Fixed request multipart/form-data body check to allow the React Native Android and iOS custom FormData implementation as valid fetch body (#2002).

v0.12.0 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 27 Feb 12:12
  • Changed the return type of pb.beforeSend hook to allow modifying the request url (#1930).
    // old
    pb.beforeSend = function (url, options) {
      ...
      return options;
    }
    
    // new
    pb.beforeSend = function (url, options) {
      ...
      return { url, options };
    }
    The old return format is soft-deprecated and will still work, but you'll get a console.warn message to replace it.

v0.11.1 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 23 Feb 09:47
  • Exported the services class definitions to allow being used as argument types (#153).
    CrudService
    AdminService
    CollectionService
    LogService
    RealtimeService
    RecordService
    SettingsService
    

v0.11.0 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 19 Feb 14:52
  • Aliased/soft-deprecated ClientResponseError.data in favor of ClientResponseError.response to avoid the stuttering when accessing the inner error response data key (aka. err.data.data now is err.response.data).
    The ClientResponseError.data will still work but it is recommend for new code to use the response key.

  • Added getFullList(queryParams = {}) overload since the default batch size in most cases doesn't need to change (it can be defined as query parameter).
    The old form getFullList(batch = 200, queryParams = {}) will still work, but it is recommend for new code to use the shorter form.

v0.10.2 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 16 Feb 13:57
  • Updated getFileUrl() to accept custom types as record argument (#150).

v0.10.1 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 21 Jan 10:13
  • Added check for the collection name before auto updating the pb.authStore state on auth record update/delete.

v0.10.0 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 10 Jan 12:45
  • Added more helpful message for the ECONNREFUSED ::1 localhost error (related to #21).

  • Preserved the "original" function and class names in the minified output for those who rely on *.prototype.name.

  • Allowed sending the existing valid auth token with the authWithPassword() calls.

  • Updated the Nuxt3 SSR examples to use the built-in useCookie() helper.

v0.9.1 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 24 Dec 19:56
  • Normalized Record.expand items to Record|Array<Record> instances.

v0.9.0 Release

Choose a tag to compare

@ganigeorgiev ganigeorgiev released this 16 Dec 15:36
  • Added pb.health.check() that checks the health status of the API service (available in PocketBase v0.10.0)