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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update local-web-server to the latest version 馃殌 #2493

Closed
wants to merge 2 commits into from

Conversation

greenkeeper[bot]
Copy link
Contributor

@greenkeeper greenkeeper bot commented Jun 9, 2019

The devDependency local-web-server was updated from 2.6.1 to 3.0.0.

This version is not covered by your current version range.

If you don鈥檛 accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Release Notes for v3.0.0

Breaking changes since v2.6.1

  • Removed support for Node versions less than v8.
  • Removed --websocket option due to lack of use.
  • Removed --server option.
    • Its primary use case was to supply a third-party HTTP2 server. This is no longer required since HTTP2 is now included with node.
  • Removed mock-responses from the default stack, however you can still use the plugin in a custom stack.
    • Since it's easy enough to create mock responses using vanilla middleware functions, the plugin didn't get much use.
  • New programmatic API.
  • New Middleware plugin API.
  • New View plugin API.
  • ws middleware-list command is now ws --default-stack.
  • --rewrite has been upgraded to use the latest version of path-to-regexp, which has changed the syntax for the wildcard asterix.

New features

  • --static.extensions. #120
  • --rewrite now works behind an HTTP proxy. #114
  • configFile is now honoured when using programmatic API. #115
  • Lots of new documentation written with more to come.

Other fixes

  • Middleware stack plugin loading now works correctly with Node v12.
  • Upgraded and optimised dependency tree.

Upgrade notes

Some tips on upgrading from v2 to v3.

  • If you use --rewrite and have an asterix wildcard in your from expression (e.g. /api/*) you'll need to change the asterix to (.*), e.g. /api/(.*).
  • To upgrade your middleware plugin, check the new API docs. The only difference is that the exported plugin is now a plain class, not a decorator function as before.
  • The main difference with the new programmatic API is that you now launch a server with LocalWebServer.create rather than localWebServer.listen as before.
  • If you use lws-mock-responses, you'll need to install the plugin into your project then include it in a custom stack - example below.
    npm i --save-dev lws-mock-responses
    ws --stack mock-responses static index
    

If you have any questions, post an issue - thanks.

Commits

The new version differs by 24 commits.

There are 24 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don鈥檛 help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper bot 馃尨

greenkeeper bot added a commit that referenced this pull request Jun 12, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Jun 12, 2019

Update to this version instead 馃殌

Commits

The new version differs by 3 commits.

See the full diff

@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Jun 17, 2019

Update to this version instead 馃殌

greenkeeper bot added a commit that referenced this pull request Jun 17, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Jun 18, 2019

Update to this version instead 馃殌

greenkeeper bot added a commit that referenced this pull request Jun 18, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Jul 1, 2019

Update to this version instead 馃殌

greenkeeper bot added a commit that referenced this pull request Jul 1, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Jul 22, 2019

Update to this version instead 馃殌

greenkeeper bot added a commit that referenced this pull request Jul 22, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Jul 22, 2019

Update to this version instead 馃殌

greenkeeper bot added a commit that referenced this pull request Jul 22, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Jul 24, 2019

Update to this version instead 馃殌

greenkeeper bot added a commit that referenced this pull request Jul 24, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Feb 9, 2020

Update to this version instead 馃殌

greenkeeper bot added a commit that referenced this pull request Feb 9, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented May 17, 2020


馃毃 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 馃挏 馃殮馃挩 馃挌

Find out how to migrate to Snyk at greenkeeper.io


Update to this version instead 馃殌

greenkeeper bot added a commit that referenced this pull request May 17, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented May 23, 2020


馃毃 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 馃挏 馃殮馃挩 馃挌

Find out how to migrate to Snyk at greenkeeper.io


Update to this version instead 馃殌

greenkeeper bot added a commit that referenced this pull request May 23, 2020
@HackbrettXXX
Copy link
Collaborator

Closing because #2804 updates the dependencies already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant