php-wasm/node: Update express to newest version, and move it to devDependencies #1218
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.
What is this PR doing?
This is the first part of solving WordPress/playground-tools#224 (wp-now: Resolve npm audit warnings).
express
to newest4.19.2
devDependencies
express-fileupload
andfollow-redirects
What problem is it solving?
It updates
express
to the newest version with security vulnerabilities fixed.How is the problem addressed?
In addition to updating it, it's moved to
devDependencies
becauseexpress
is only used in tests.This consequently removes
express
from being installed when installing@php-wasm/node
.The PR also removes unnecessary dependencies,
express-fileupload
andfollow-redirects
, which are only used forwp-now
in the Playground Tools project.Testing Instructions
npm run test