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

Updates #139

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Updates #139

wants to merge 4 commits into from

Conversation

brettz9
Copy link

@brettz9 brettz9 commented Jul 8, 2020

Builds on #137 and #138 . (I can rebase this as needed.)

These are changes related to updating all of package.json deps. and devDeps. to the latest versions (leaving peerDeps though adding testing in Travis for both 4 and 5 alpha Express versions).

  • Breaking change: Update engines to Node 10+
  • Linting: As per latest eslint config
  • Linting: Add --report-unused-disable-directives flag
  • Linting: Switch to .eslintrc.js so can add comments
  • CI: Add travis.yml
  • Testing: Make nyc separate script and add it and lint to test script
  • Maintenance: Add .ncurc.js config to allow npm-check-updates to avoid auto-updating peerDeps.
  • npm: Update deps. (esm, ws) and devDeps.

If you haven't, I'd recommend first enabling Travis for PRs and I also recommend enabling LGTM.

- Linting: Lint `/examples` files also (using `overrides` to allow `console` therein)
- Refactoring: Switch to ES6 in examples and docs
- npm: Update airbnb to version advertised as compatible with exiting eslint version
…xample (also renaming variable to reflect lack of specificity to route of web socket server)

- Fix: Allow middleware error handler (arity 4) to be triggered
- Refactoring: Remove `upgradeReq` check (dropped back in ws 3)
- Testing: Add mocha/chai/nyc

Re: middleware error handler, `Layer.prototype.handle_error` of `router` (used by `express.Router`) only handles arity 4
- Linting: As per latest eslint config
- Linting: Add `--report-unused-disable-directives` flag
- Linting: Switch to `.eslintrc.js` so can add comments
- CI: Add `travis.yml`
- Testing: Make `nyc` separate script and add it and `lint` to `test` script
- Maintenance: Add `.ncurc.js` config to allow `npm-check-updates` to avoid auto-updating peerDeps.
- npm: Update deps. (esm, ws) and devDeps.
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.

1 participant