Skip to content

Conversation

@aodinok
Copy link
Contributor

@aodinok aodinok commented Jan 24, 2023

See: #55

To avoid problems with export default - switch to named export.
This is going to be a breaking change.

After this is merged MB client will need to be imported differently.

With ES6 import syntax:

   import { initClient } from "messagebird";
   const messagebird = initClient("MB_API_KEY");

With require syntax:

 const messagebird = require("messagebird").initClient("MB_API_KEY");

Package version 4.0.0-alpha will be published soon for tests.

@aodinok aodinok merged commit 161a7ae into master Jan 25, 2023
@aodinok aodinok deleted the fix/55-do-not-use-export-default branch January 25, 2023 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants