JavaScript/TypeScript SDK monorepo for MagicBell - The real-time notification inbox for web & mobile apps
OTHER License
Bot releases are visible (Hide)
Published by MagicBella about 1 year ago
Published by MagicBella about 1 year ago
a6d54b5
Thanks @renovate[bot]! - Updated dependencies:
react-frame-component
to ^5.2.6
.47b6dde
Thanks @renovate[bot]! - Updated dependencies:
error-stack-parser
to ^2.1.4
.Updated dependencies [79d3019
, 0a40f2d
, ffb1b21
, 39ad36e
, 0b63278
, 5088009
]:
Published by MagicBella about 1 year ago
0a40f2d
Thanks @renovate[bot]! - Updated dependencies:
@types/lodash
to ^4.14.198
.ffb1b21
Thanks @renovate[bot]! - Updated dependencies:
sinon
to ^13.0.2
.#183 e1e7518
Thanks @renovate! - Updated dependencies:
miragejs
to ^0.1.47
.f83b52c
Thanks @renovate[bot]! - Updated dependencies:
mitt
to ^3.0.1
.#179 cda7f21
Thanks @renovate! - Updated dependencies:
ably
to ^1.2.44
.0b63278
Thanks @renovate[bot]! - Updated dependencies:
@types/sinon
to ^10.0.16
.5088009
Thanks @renovate[bot]! - Updated dependencies:
dayjs
to ^1.11.9
.Published by MagicBella about 1 year ago
Published by MagicBella about 1 year ago
b29dc74
Thanks @renovate[bot]! - Updated dependencies:
commander
to ^9.5.0
.Updated dependencies [3f7ab5a
]:
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
4b458f8
]:
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] over 1 year ago
1f40263
]:
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
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.Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
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.1f40263
]:
Published by github-actions[bot] over 1 year ago
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.#168 ce6ecc2
Thanks @smeijer! - Mark apiKey
and either userEmail
or userExternalId
as required. Note that this is an update in type definitions only, the implementation is not changed.
#166 b835ff3
Thanks @smeijer! - Removed apiSecret
from ClientSettings
.
#166 b835ff3
Thanks @smeijer! - Removed index signature from QueryParams
, so TypeScript will properly warn about misspelled options.
Updated dependencies [998008a
, 24c00f4
, 998008a
, 998008a
, ce6ecc2
, 666d2bb
]:
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
#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.
#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:
status
is now an enum with the values enqueued | processing | processed
failures
now has the users array items typed as object
with the properties email
and external_id
and errors
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
Published by github-actions[bot] over 1 year ago
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.ce6ecc2
, ce6ecc2
]:
Published by github-actions[bot] over 1 year ago
#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>
.
#170 87d84e8
Thanks @smeijer! - Improve --help
by being more specific about the json type some arguments expect. For example, we used to show --overrides <json>
, but json can also be an array, while we do expect an object. Now, those arguments are shown as <object>
.
Updated dependencies [998008a
, 24c00f4
, 998008a
, 998008a
, ce6ecc2
, 666d2bb
]:
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago