Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace the 3rd party assert lib #32

Merged
merged 3 commits into from
Nov 6, 2023

Conversation

nandito
Copy link
Contributor

@nandito nandito commented Nov 6, 2023

We have encountered bundle failures on fresh browser-sdk installations with an error message stating, "Could not find module in path: 'assert/assert.js'."
Since we do not heavily depend on this package, we can resolve the issue by replacing the third-party installation.
We will accomplish this by incorporating the relevant assert functions from https://github.com/browserify/commonjs-assert into our repository.

📦 Published PR as canary version: 1.4.2--canary.32.6769211916.0

✨ Test out this PR locally via:

npm install @whereby/jslib-media@1.4.2--canary.32.6769211916.0
# or 
yarn add @whereby/jslib-media@1.4.2--canary.32.6769211916.0

This is going to replace the 3rd party assert lib.
...and `yarn remove` the `assert` lib.
@nandito nandito self-assigned this Nov 6, 2023
Copy link
Member

@thyal thyal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 🙏

@nandito nandito merged commit abc55b7 into main Nov 6, 2023
3 checks passed
@nandito nandito deleted the nandor/pan-502-remove-the-assert-lib-from-jslib-media branch November 6, 2023 10:22
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