You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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’t 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.
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.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The devDependency local-web-server was updated from
2.6.1
to3.0.0
.This version is not covered by your current version range.
If you don’t 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
--websocket
option due to lack of use.--server
option.ws middleware-list
command is nowws --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. #114configFile
is now honoured when using programmatic API. #115Other fixes
Upgrade notes
Some tips on upgrading from v2 to v3.
--rewrite
and have an asterix wildcard in yourfrom
expression (e.g./api/*
) you'll need to change the asterix to(.*)
, e.g./api/(.*)
.LocalWebServer.create
rather thanlocalWebServer.listen
as before.If you have any questions, post an issue - thanks.
Commits
The new version differs by 24 commits.
5ac6cd1
3.0.0
1f86cb7
readme
9277ad6
docs
0dc511a
deps, docs
f209496
3.0.0-4
d55ca0f
description
329040e
readme
1998b90
readme
c9a6101
readme
cc71999
readme
3139339
docs
5f7f450
fix test
69c2def
deps, readme, remove API docs
f1c50e1
3.0.0-3
7588a97
upgrade lws
There are 24 commits in total.
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot 🌴