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 visible (Hide)

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 - @magicbell/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • #175 4b458f8 Thanks @moxley01! - Fixes an issue where webpush 'isSubscribed' method throws an error in some mobile browsers.
magicbell-js - @magicbell/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

magicbell-js - @magicbell/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

magicbell-js - @magicbell/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

magicbell-js - @magicbell/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

magicbell-js - [email protected]

Published by github-actions[bot] about 1 year ago

Minor Changes

  • #173 1f40263 Thanks @smeijer! - Remove EventSource polyfill to avoid bundling it in the browser SDKs. If you're using the listen methods in an environment that does not support eventsource, you'll need to include the polyfill yourself.
magicbell-js - @magicbell/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

magicbell-js - @magicbell/[email protected]

Published by github-actions[bot] about 1 year ago

Minor Changes

  • #173 1f40263 Thanks @smeijer! - Add EventSource polyfill for the listen methods. This polyfill is removed from the magicbell package, to avoid bundling it in the browser SDKs.

Patch Changes

magicbell-js - @magicbell/[email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • #168 ce6ecc2 Thanks @smeijer! - Use magicbell client for api requests. This change includes the addition of automatic retry of failed requests. Requests are retried up to 3 times with exponential backoff.

Patch Changes

magicbell-js - @magicbell/[email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • #168 ce6ecc2 Thanks @smeijer! - Use magicbell client for api requests. This change includes the addition of automatic retry of failed requests. Requests are retried up to 3 times with exponential backoff.

Patch Changes

magicbell-js - [email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • #171 666d2bb Thanks @smeijer! - We've added a method to the UserClient to list the registered push notifications for the authenticated user.

    const magicbell = new UserClient({ ... });
    await magicbell.pushSubscriptions.list();
    

    This method returns the same data as users.pushSubscriptions.list on the Projectclient, but using user credentials instead of the secret key. Thereby, it's safe to use this method on the frontend to offer a way to the user to manage their push subscriptions.

Patch Changes

  • #165 998008a Thanks @smeijer! - Optional client options can now be undefined or null, rather than enforced to be absent. This eases initialization where options come from other configuration sources.

    const client = new UserClient({
      apiKey: '...',
      userEmail: '[email protected]',
      userExternalId: undefined, // no longer throws
    });
    
  • #172 24c00f4 Thanks @smeijer! - Fixed a few misconfigured types:

    • import status is now an enum with the values enqueued | processing | processed
    • import failures now has the users array items typed as object with the properties email and external_id and errors
    • the total and total_pages props are removed from the users.pushSubscriptions.list response.
  • #165 998008a Thanks @smeijer! - The EventSource polyfill is now only applied when the EventSource is not supported in your environment.

  • #165 998008a Thanks @smeijer! - A bug where the eventsource was closed before opened is now fixed. This race condition occurred when closing the stream while the token request was still pending.

  • #168 ce6ecc2 Thanks @smeijer! - don't throw on empty response

magicbell-js - @magicbell/[email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • #168 ce6ecc2 Thanks @smeijer! - Use magicbell client for api requests. This change includes the addition of automatic retry of failed requests. Requests are retried up to 3 times with exponential backoff.

Patch Changes

magicbell-js - @magicbell/[email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • #171 666d2bb Thanks @smeijer! - We've added a method to list the registered push subscriptions for a given user using user credentials.

    magicbell user push-subscriptions list \
      --user-email [email protected]
    

    Note that this method returns the same data as the project scoped magicbell users push-subscriptions <user-id>.

Patch Changes

magicbell-js - @magicbell/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

magicbell-js - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

Package Rankings
Top 4.27% on Npmjs.org
Related Projects