Skip to content

Releases: magicbell/magicbell-js

magicbell@0.3.0

25 Nov 10:49
b67f7b3
Compare
Choose a tag to compare

Minor Changes

  • #22 366adc6 Thanks @smeijer! - Add the magicbell.imports resource to import users in bulk, and query the status of import jobs. Methods that have been made available are magicbell.imports.create and magicbell.imports.get.

    See #imports for more information.

  • #24 6cf938c Thanks @smeijer! - Released the .listen method. With this method you can listen to server sent events in realtime. For example, to do something when new notifications come in, or to trigger an event when a user marks a notification as read.

    The following events are currently emitted. Please note that all events are bound to a specific user. See #realtime for more information.

    event.name description
    notifications/new a new notification has been created
    notifications/read a notification has been read
    notifications/unread a notification has been marked as unread
    notifications/delete a notification has been deleted
    notifications/read/all all notifications have been marked as read
    notifications/seen/all all notifications have been marked as seen
  • #16 615b2fa Thanks @smeijer! - Loads the axios http adapter when XMLHttpRequest is unsupported. This allows magicbell to be used in for example vscode extensions.

    • Don't persist config if os.homedir is unavailable, which is for example the case in vscode extensions.
    • Add support for authentication using x-magicbell-user-external-id header.
    • Allow specifying the userKey. This allows users to use magicbell, without the need to provide the apiSecret key to generate the HMAC on runtime.
  • #25 13ee1d2 Thanks @smeijer! - Add type coverage to all resource methods.

    • Payload and Response types are driven by json schemas, which are stored under /schemas.
    • Requests now use the accept-version: v2 header, so we use the latest version of our preferences api.
    • Failed requests now log a curl command when debug: true is provided to the client.
    • Requests no longer include empty headers.
    • Requests no longer include empty wrapping entities in the body.
  • #23 bb857a7 Thanks @smeijer! - Add the magicbell.pushSubscriptions resource to manage mobile devices / push subscriptions. Methods that have been made available are magicbell.pushSubscriptions.create and magicbell.pushSubscriptions.delete. Note that these methods are currently in beta, and need to be enabled via feature flags.

    See #pushSubscriptions for more information.

@magicbell/magicbell-react@10.3.3

09 Nov 09:17
a51afe4
Compare
Choose a tag to compare

Patch Changes

  • #13 1cb984c Thanks @3v0k4! - Fix embeddable web notifications: since embeddable aliases axios (redaxios) and redaxios does not implement .getUri, the code was failing for the embeddable package (that uses redaxios) but not for the react package (that uses axios).

@magicbell/embeddable@3.2.4

09 Nov 09:17
a51afe4
Compare
Choose a tag to compare

Patch Changes

  • #15 7767b69 Thanks @smeijer! - ensure that the minified esm bundle is imported when importing from unpkg.

  • Updated dependencies [1cb984c]:

    • @magicbell/magicbell-react@10.3.3

@magicbell/react-headless@4.2.2

13 Oct 10:03
f502269
Compare
Choose a tag to compare

Patch Changes

  • #7 7712e28 Thanks @smeijer! - ensure that stores are updated to include or remove notification after an mark-all-read action.

  • #8 6a812ca Thanks @smeijer! - ensure that stores are updated to include or remove notification after an mark-all-seen action.

@magicbell/magicbell-react@10.3.2

13 Oct 10:43
b80e3d1
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [08f4abb]
    • @magicbell/react-headless@4.2.2

@magicbell/embeddable@3.2.3

13 Oct 10:43
b80e3d1
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [08f4abb]:
    • @magicbell/magicbell-react@10.3.2

@magicbell/react-headless@4.2.1

30 Sep 09:01
2c7b486
Compare
Choose a tag to compare

Patch Changes

  • 36d7ef7 Thanks @smeijer! - ensure that the badge count doesn't drop below zero when clicking unread notifications.

@magicbell/magicbell-react@10.3.1

30 Sep 09:01
2c7b486
Compare
Choose a tag to compare

Patch Changes

  • 36d7ef7 Thanks @smeijer! - ensure that the notification click handler does not get invoked when clicking buttons and links inside the notification content.

  • Updated dependencies [36d7ef7]:

    • @magicbell/react-headless@4.2.1

@magicbell/embeddable@3.2.2

30 Sep 18:23
214812f
Compare
Choose a tag to compare

Patch Changes

  • bae93af Thanks @smeijer! - treeshake process.env.NODE_ENV checks from minified builds.

@magicbell/embeddable@3.2.1

30 Sep 09:01
2c7b486
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [36d7ef7]:
    • @magicbell/magicbell-react@10.3.1