-
-
Notifications
You must be signed in to change notification settings - Fork 16.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4.19.0
- Loading branch information
Showing
53 changed files
with
2,818 additions
and
769 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,13 @@ jobs: | |
- Node.js 12.x | ||
- Node.js 13.x | ||
- Node.js 14.x | ||
- Node.js 15.x | ||
- Node.js 16.x | ||
- Node.js 17.x | ||
- Node.js 18.x | ||
- Node.js 19.x | ||
- Node.js 20.x | ||
- Node.js 21.x | ||
|
||
include: | ||
- name: Node.js 4.0 | ||
|
@@ -39,19 +46,19 @@ jobs: | |
|
||
- name: Node.js 6.x | ||
node-version: "6.17" | ||
npm-i: [email protected] [email protected] supertest@6.1.6 | ||
npm-i: [email protected] [email protected] supertest@3.4.2 | ||
|
||
- name: Node.js 7.x | ||
node-version: "7.10" | ||
npm-i: [email protected] [email protected] [email protected] | ||
|
||
- name: Node.js 8.x | ||
node-version: "8.17" | ||
npm-i: [email protected] | ||
npm-i: [email protected] [email protected] | ||
|
||
- name: Node.js 9.x | ||
node-version: "9.11" | ||
npm-i: [email protected] | ||
npm-i: [email protected] [email protected] | ||
|
||
- name: Node.js 10.x | ||
node-version: "10.24" | ||
|
@@ -63,15 +70,38 @@ jobs: | |
|
||
- name: Node.js 12.x | ||
node-version: "12.22" | ||
npm-i: [email protected] | ||
|
||
- name: Node.js 13.x | ||
node-version: "13.14" | ||
npm-i: [email protected] | ||
|
||
- name: Node.js 14.x | ||
node-version: "14.19" | ||
node-version: "14.20" | ||
|
||
- name: Node.js 15.x | ||
node-version: "15.14" | ||
|
||
- name: Node.js 16.x | ||
node-version: "16.20" | ||
|
||
- name: Node.js 17.x | ||
node-version: "17.9" | ||
|
||
- name: Node.js 18.x | ||
node-version: "18.19" | ||
|
||
- name: Node.js 19.x | ||
node-version: "19.9" | ||
|
||
- name: Node.js 20.x | ||
node-version: "20.11" | ||
|
||
- name: Node.js 21.x | ||
node-version: "21.6" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Node.js ${{ matrix.node-version }} | ||
shell: bash -eo pipefail -l {0} | ||
|
@@ -82,7 +112,11 @@ jobs: | |
- name: Configure npm | ||
run: | | ||
npm config set loglevel error | ||
npm config set shrinkwrap false | ||
if [[ "$(npm config get package-lock)" == "true" ]]; then | ||
npm config set package-lock false | ||
else | ||
npm config set shrinkwrap false | ||
fi | ||
- name: Install npm module(s) ${{ matrix.npm-i }} | ||
run: npm install --save-dev ${{ matrix.npm-i }} | ||
|
@@ -95,8 +129,8 @@ jobs: | |
shell: bash | ||
run: | | ||
# eslint for linting | ||
# - remove on Node.js < 10 | ||
if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 10 ]]; then | ||
# - remove on Node.js < 12 | ||
if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 12 ]]; then | ||
node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \ | ||
grep -E '^eslint(-|$)' | \ | ||
sort -r | \ | ||
|
@@ -113,29 +147,52 @@ jobs: | |
echo "node@$(node -v)" | ||
echo "npm@$(npm -v)" | ||
npm -s ls ||: | ||
(npm -s ls --depth=0 ||:) | awk -F'[ @]' 'NR>1 && $2 { print "::set-output name=" $2 "::" $3 }' | ||
(npm -s ls --depth=0 ||:) | awk -F'[ @]' 'NR>1 && $2 { print $2 "=" $3 }' >> "$GITHUB_OUTPUT" | ||
- name: Run tests | ||
shell: bash | ||
run: npm run test-ci | ||
run: | | ||
npm run test-ci | ||
cp coverage/lcov.info "coverage/${{ matrix.name }}.lcov" | ||
- name: Lint code | ||
if: steps.list_env.outputs.eslint != '' | ||
run: npm run lint | ||
|
||
- name: Collect code coverage | ||
uses: coverallsapp/github-action@master | ||
run: | | ||
mv ./coverage "./${{ matrix.name }}" | ||
mkdir ./coverage | ||
mv "./${{ matrix.name }}" "./coverage/${{ matrix.name }}" | ||
- name: Upload code coverage | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
flag-name: run-${{ matrix.test_number }} | ||
parallel: true | ||
name: coverage | ||
path: ./coverage | ||
retention-days: 1 | ||
|
||
coverage: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Upload code coverage | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install lcov | ||
shell: bash | ||
run: sudo apt-get -y install lcov | ||
|
||
- name: Collect coverage reports | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: coverage | ||
path: ./coverage | ||
|
||
- name: Merge coverage reports | ||
shell: bash | ||
run: find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./coverage/lcov.info | ||
|
||
- name: Upload coverage report | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.github_token }} | ||
parallel-finished: true | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,6 +162,86 @@ This is the first Express 5.0 alpha release, based off 4.10.1. | |
* add: | ||
- `app.router` is a reference to the base router | ||
|
||
4.18.3 / 2024-03-20 | ||
========== | ||
|
||
* Prevent open redirect allow list bypass due to encodeurl | ||
* deps: [email protected] | ||
|
||
4.18.3 / 2024-02-29 | ||
========== | ||
|
||
* Fix routing requests without method | ||
* deps: [email protected] | ||
- Fix strict json error message on Node.js 19+ | ||
- deps: content-type@~1.0.5 | ||
- deps: [email protected] | ||
* deps: [email protected] | ||
- Add `partitioned` option | ||
|
||
4.18.2 / 2022-10-08 | ||
=================== | ||
|
||
* Fix regression routing a large stack in a single route | ||
* deps: [email protected] | ||
- deps: [email protected] | ||
- perf: remove unnecessary object clone | ||
* deps: [email protected] | ||
|
||
4.18.1 / 2022-04-29 | ||
=================== | ||
|
||
* Fix hanging on large stack of sync routes | ||
|
||
4.18.0 / 2022-04-25 | ||
=================== | ||
|
||
* Add "root" option to `res.download` | ||
* Allow `options` without `filename` in `res.download` | ||
* Deprecate string and non-integer arguments to `res.status` | ||
* Fix behavior of `null`/`undefined` as `maxAge` in `res.cookie` | ||
* Fix handling very large stacks of sync middleware | ||
* Ignore `Object.prototype` values in settings through `app.set`/`app.get` | ||
* Invoke `default` with same arguments as types in `res.format` | ||
* Support proper 205 responses using `res.send` | ||
* Use `http-errors` for `res.format` error | ||
* deps: [email protected] | ||
- Fix error message for json parse whitespace in `strict` | ||
- Fix internal error when inflated body exceeds limit | ||
- Prevent loss of async hooks context | ||
- Prevent hanging when request already read | ||
- deps: [email protected] | ||
- deps: [email protected] | ||
- deps: [email protected] | ||
- deps: [email protected] | ||
- deps: [email protected] | ||
* deps: [email protected] | ||
- Add `priority` option | ||
- Fix `expires` option to reject invalid dates | ||
* deps: [email protected] | ||
- Replace internal `eval` usage with `Function` constructor | ||
- Use instance methods on `process` to check for listeners | ||
* deps: [email protected] | ||
- Remove set content headers that break response | ||
- deps: [email protected] | ||
- deps: [email protected] | ||
* deps: [email protected] | ||
- Prevent loss of async hooks context | ||
* deps: [email protected] | ||
* deps: [email protected] | ||
- Fix emitted 416 error missing headers property | ||
- Limit the headers removed for 304 response | ||
- deps: [email protected] | ||
- deps: [email protected] | ||
- deps: [email protected] | ||
- deps: [email protected] | ||
- deps: [email protected] | ||
* deps: [email protected] | ||
- deps: [email protected] | ||
* deps: [email protected] | ||
- Remove code 306 | ||
- Rename `425 Unordered Collection` to standard `425 Too Early` | ||
|
||
4.17.3 / 2022-02-16 | ||
=================== | ||
|
||
|
@@ -2212,7 +2292,7 @@ This is the first Express 5.0 alpha release, based off 4.10.1. | |
* deps: [email protected] | ||
- deprecate `connect(middleware)` -- use `app.use(middleware)` instead | ||
- deprecate `connect.createServer()` -- use `connect()` instead | ||
- fix `res.setHeader()` patch to work with with get -> append -> set pattern | ||
- fix `res.setHeader()` patch to work with get -> append -> set pattern | ||
- deps: compression@~1.0.8 | ||
- deps: errorhandler@~1.1.1 | ||
- deps: express-session@~1.5.0 | ||
|
@@ -3423,8 +3503,8 @@ Shaw] | |
* Added node v0.1.97 compatibility | ||
* Added support for deleting cookies via Request#cookie('key', null) | ||
* Updated haml submodule | ||
* Fixed not-found page, now using using charset utf-8 | ||
* Fixed show-exceptions page, now using using charset utf-8 | ||
* Fixed not-found page, now using charset utf-8 | ||
* Fixed show-exceptions page, now using charset utf-8 | ||
* Fixed view support due to fs.readFile Buffers | ||
* Changed; mime.type() no longer accepts ".type" due to node extname() changes | ||
|
||
|
@@ -3459,7 +3539,7 @@ Shaw] | |
================== | ||
|
||
* Added charset support via Request#charset (automatically assigned to 'UTF-8' when respond()'s | ||
encoding is set to 'utf8' or 'utf-8'. | ||
encoding is set to 'utf8' or 'utf-8'). | ||
* Added "encoding" option to Request#render(). Closes #299 | ||
* Added "dump exceptions" setting, which is enabled by default. | ||
* Added simple ejs template engine support | ||
|
@@ -3498,7 +3578,7 @@ Shaw] | |
* Added [haml.js](http://github.com/visionmedia/haml.js) submodule; removed haml-js | ||
* Added callback function support to Request#halt() as 3rd/4th arg | ||
* Added preprocessing of route param wildcards using param(). Closes #251 | ||
* Added view partial support (with collections etc) | ||
* Added view partial support (with collections etc.) | ||
* Fixed bug preventing falsey params (such as ?page=0). Closes #286 | ||
* Fixed setting of multiple cookies. Closes #199 | ||
* Changed; view naming convention is now NAME.TYPE.ENGINE (for example page.html.haml) | ||
|
Oops, something went wrong.