Skip to content

Releases: magicbell/magicbell-js

@magicbell/[email protected]

10 Apr 14:07
ec7d1ac
Compare
Choose a tag to compare

Patch Changes

@magicbell/[email protected]

10 Apr 13:11
2f958b5
Compare
Choose a tag to compare

Patch Changes

[email protected]

28 Mar 14:54
6d1f1a8
Compare
Choose a tag to compare

Patch Changes

[email protected]

28 Mar 13:54
4a06810
Compare
Choose a tag to compare

Minor Changes

[email protected]

28 Mar 10:42
a2b097a
Compare
Choose a tag to compare

Minor Changes

  • #482 a826a43 Thanks @smeijer! - We now dedupe identical requests that are made within the same second.

  • #487 e3cd22e Thanks @smeijer! - Network requests are now deduped. You can control this behavior using the
    cacheTTL setting. Set it to 0 to disable. The TTL defaults to one second.
    Meaning any identical request within that second shares the same Promise and
    thus outcome.

    import { UserClient } from 'magicbell/user-client';
    
    const magicbell = new UserClient({
      apiKey: 'your-api-key',
      userEmail: '[email protected]',
      cacheTTL: 1_000,
    });

@magicbell/[email protected]

28 Mar 14:54
6d1f1a8
Compare
Choose a tag to compare

Patch Changes

@magicbell/[email protected]

28 Mar 13:54
4a06810
Compare
Choose a tag to compare

Patch Changes

@magicbell/[email protected]

28 Mar 10:43
a2b097a
Compare
Choose a tag to compare

Minor Changes

  • #487 e3cd22e Thanks @smeijer! - Network requests are now deduped. You can control this behavior using the
    network.cacheTTL setting. Setting it to 0 disables caching entirely. The TTL
    defaults to one second. Meaning any identical request within that second shares
    the same Promise and thus outcome.

    import { MagicBellProvider } from '@magicbell/react-headless';
    
    function Component() {
      return (
        <MagicBellProvider apiKey="your-api-key" userEmail="[email protected]" network={{ cacheTTL: 1_000 }}>
          <App />
        </MagicBellProvider>
      );
    }
  • #487 e3cd22e Thanks @smeijer! - We now expose the property to control the retries of failed network requests.
    network.maxRetries defaults to 3. Setting it to 0 disables retries entirely.

    import { MagicBellProvider } from '@magicbell/react-headless';
    
    function Component() {
      return (
        <MagicBellProvider apiKey="your-api-key" userEmail="[email protected]" network={{ maxRetries: 5 }}>
          <App />
        </MagicBellProvider>
      );
    }

Patch Changes

@magicbell/[email protected]

28 Mar 14:54
6d1f1a8
Compare
Choose a tag to compare

Patch Changes

@magicbell/[email protected]

28 Mar 13:54
4a06810
Compare
Choose a tag to compare

Patch Changes