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

chore: move assert into its own module #6021

Merged
merged 1 commit into from Jun 15, 2020
Merged

Conversation

jackfranklin
Copy link
Collaborator

A lot of the helpers in helpers.ts are heavily bound to NodeJS and at
the moment we're trying to make the Connection class be able to run in
multiple environments. Its only remaining Node dependency was its
reliance on helpers.ts, which it only needed for assert.

This is a useful change also because helpers.ts is quite large and
full of functions that do different things; I think we can name them
better and move them into modules with a specific purpose rather than a
generic "helpers" dumping ground.

Once this change lands Connection should be usable in the browser.

A lot of the helpers in `helpers.ts` are heavily bound to NodeJS and at
the moment we're trying to make the `Connection` class be able to run in
multiple environments. Its only remaining Node dependency was its
reliance on `helpers.ts`, which it only needed for `assert`.

This is a useful change also because `helpers.ts` is quite large and
full of functions that do different things; I think we can name them
better and move them into modules with a specific purpose rather than a
generic `"helpers"` dumping ground.

Once this change lands `Connection` should be usable in the browser.
@mathiasbynens mathiasbynens changed the base branch from master to main June 15, 2020 14:37
@mathiasbynens mathiasbynens merged commit e4de5f1 into main Jun 15, 2020
@mathiasbynens mathiasbynens deleted the agnostic-connection branch June 15, 2020 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants