magicbell-js

JavaScript/TypeScript SDK monorepo for MagicBell - The real-time notification inbox for web & mobile apps

OTHER License

Downloads
139.2K
Stars
28
Committers
19

Bot releases are hidden (Show)

magicbell-js - [email protected]

Published by MagicBella about 1 year ago

Minor Changes

  • #182 3f7ab5a Thanks @smeijer! - move uuidv4 helper function to different file for better tree shaking
magicbell-js - @magicbell/[email protected]

Published by MagicBella about 1 year ago

Patch Changes

magicbell-js - @magicbell/[email protected]

Published by MagicBella about 1 year ago

Patch Changes

magicbell-js - @magicbell/[email protected]

Published by MagicBella about 1 year ago

Patch Changes

  • #181 4bae82e Thanks @renovate! - Updated dependencies:

    • updated @types/json-schema-merge-allof to ^0.6.2.
magicbell-js - @magicbell/[email protected]

Published by MagicBella about 1 year ago

Patch Changes

magicbell-js - [email protected]

Published by smeijer almost 2 years ago

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.

Package Rankings
Top 4.27% on Npmjs.org
Related Projects