-
Notifications
You must be signed in to change notification settings - Fork 3
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
Remove the assert
lib
#117
Remove the assert
lib
#117
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. But we also use assert
directly in this repo - maybe we can replace the usage in this PR as well?
Yeah I just realized this now. Actually we use it way more here than in jslib-media. 🙈 |
I reckon a lot of it is redundant with the move to typescript in this repo, so my vote would be we remove calls to it where possible as well. I.e. all the |
I agree! I have removed some now, but there are still quite a few remaining. I'm not sure if I want to increase the scope, as the original task was to remove the 3rd party |
This new version: * Adds media device and constraints helpers * Replaces the 3rd party `assert` lib The `assert` lib replacement should fix the "Could not find module in path: 'assert/assert.js'" error in CodeSandbox.
TypeScript already checks the types, so no need to explicitly re-check them with `assert.ok` or `assertString`.
9b1a273
to
7f4b4eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍰 Works nicely.
assert
libassert
from jslib-media and remove the assert lib from browser-sdk's dependencies.The
assert
lib replacement should fix the "Could not find module in path: 'assert/assert.js'" error in CodeSandbox.Test plan
assert
.Related PR
whereby/jslib-media#32