ssbc / multiserver

A single interface that can work with multiple protocols, and multiple transforms of those protocols (eg, security layer)
MIT License
104 stars 28 forks source link

Tidy the codebase #72

Closed staltz closed 2 years ago

staltz commented 2 years ago

This is a PR that refactors the codebase to modernize it (use ES6 features) and to add some debugging niceties (avoid anonymous function by naming all of them makes it a ton easier to read stacktraces from bug reports). This PR may look big but most changes are simple and conservative.

The easiest way to review this is commit-by-commit. The first commit "introduce prettier" is the one that most "trashes" the diff, so if you skip it, the rest of the PR should be easy to review.

The most important ones are: