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

Release 5.0 #2237

Merged
merged 122 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
085a296
Change req.host to return host
dougwilson Jul 10, 2014
e66625b
Remove res.send(body, status) signature
dougwilson Jul 10, 2014
164638b
Remove res.json(obj, status) signature
dougwilson Jul 10, 2014
8810306
Remove res.jsonp(obj, status) signature
dougwilson Jul 10, 2014
8c6f9c4
Remove app.router error message
dougwilson Jul 10, 2014
dcc4eaa
Change req.query to a getter
dougwilson Jul 14, 2014
78e5054
Refactor away init middleware
dougwilson Jul 14, 2014
509ebb1
Add app.router reference back
dougwilson Jul 14, 2014
f31dcff
Remove app.del
dougwilson Nov 7, 2014
be35e49
Remove utils.contentDisposition
dougwilson Nov 7, 2014
7f25328
Remove req.acceptsCharset
dougwilson Nov 7, 2014
59f2b40
Remove acceptsEncoding
dougwilson Nov 7, 2014
ccdbe4e
Remove req.acceptsLanguage
dougwilson Nov 7, 2014
0fc4f07
Remove res.sendfile
dougwilson Nov 7, 2014
97ccc52
Remove res.send(status) signature
dougwilson Nov 7, 2014
4052c15
5.0.0-alpha.1
dougwilson Nov 7, 2014
8a5ecd3
Merge tag '4.11.1'
dougwilson Jan 21, 2015
f56e2a2
docs: simplify 5.x history
dougwilson Jan 21, 2015
a9ef9e1
Merge tag '4.11.2'
dougwilson Feb 1, 2015
f6ec710
Merge tag '4.12.0'
dougwilson Feb 23, 2015
f90e045
Merge tag '4.12.4'
dougwilson May 18, 2015
b309b87
Merge tag '4.13.1'
dougwilson Jul 6, 2015
3a1f27f
Remove ":" stripping from app.param()
dougwilson Jul 6, 2015
1e2951a
Remove app.param(fn) signature
dougwilson Jul 6, 2015
6c75119
Remove utils.flatten
dougwilson Jul 7, 2015
a7d15f3
Remove un-used depd import in router
dougwilson Jul 7, 2015
21d52da
Remove req.param()
dougwilson Jul 7, 2015
cec5780
Use router module for routing
dougwilson Jul 7, 2015
694869d
Use path-is-absolute module for absolute path detection
Fishrock123 Apr 17, 2015
6343288
Make res.render callback is always async, even for sync view engines
dougwilson Jul 7, 2015
2c668f8
5.0.0-alpha.2
dougwilson Jul 7, 2015
7cafdb5
Merge tag '4.13.4'
dougwilson Jan 22, 2016
943f28f
deps: router@~1.1.3
dougwilson Jan 22, 2016
8a387d3
deps: [email protected]
dougwilson Jan 22, 2016
1dbfee6
Merge tag '4.14.0'
dougwilson Jun 20, 2016
a856456
Remove res.vary() (no arguments) signature
tunniclm Mar 14, 2016
25fdefa
Remove res.json(status, obj) signature
tunniclm Mar 14, 2016
ab1c9e9
Remove res.jsonp(status, obj) signature
tunniclm Mar 14, 2016
bcbb9d5
Merge tag '4.14.1'
dougwilson Jan 29, 2017
07077c4
deps: router@~1.1.5
dougwilson Jan 29, 2017
ad4d52d
deps: [email protected]
dougwilson Jan 29, 2017
4b39a01
deps: [email protected]
dougwilson Jan 29, 2017
c8d9223
5.0.0-alpha.3
dougwilson Jan 29, 2017
501e24e
Merge tag '4.15.0'
dougwilson Mar 1, 2017
06f423d
Remove Express 3.x middleware error stubs
wesleytodd Feb 21, 2017
a3a9166
5.0.0-alpha.4
dougwilson Mar 1, 2017
e5dbb0c
Merge tag '4.15.2'
dougwilson Mar 6, 2017
21f725e
5.0.0-alpha.5
dougwilson Mar 6, 2017
c319fe2
Merge tag '4.15.4'
dougwilson Aug 7, 2017
e3bd14d
Remove res.send(status, body) signature
tunniclm Mar 14, 2016
71395f5
Remove res.redirect(url, status) signature
tunniclm Mar 14, 2016
19c8d64
Merge tag '4.15.5'
dougwilson Sep 25, 2017
f4120a6
5.0.0-alpha.6
dougwilson Sep 25, 2017
8fabed8
Remove path-to-regexp dependency
dougwilson Oct 14, 2017
62e12fe
Merge tag '4.16.2'
dougwilson Oct 14, 2017
a163e2c
deps: [email protected]
dougwilson Oct 14, 2017
659fcc1
deps: router@~1.3.2
dougwilson Oct 14, 2017
302a615
Merge tag '4.16.4'
dougwilson Oct 24, 2018
fa22245
deps: [email protected]
dougwilson Oct 24, 2018
c82fa19
tests: add router promise tests
dougwilson Oct 27, 2018
5f0c829
5.0.0-alpha.7
dougwilson Oct 27, 2018
121fe99
Merge tag '4.17.1'
dougwilson Jun 8, 2019
bd04d8a
5.0.0-alpha.8
dougwilson Mar 26, 2020
8aabeca
docs: fix typo in history
belovsandr Jun 26, 2020
c7d528c
Merge tag '4.17.2'
dougwilson Dec 17, 2021
1574925
deps: [email protected]
dougwilson Dec 16, 2021
af341b0
deps: [email protected]
dougwilson Dec 18, 2021
450c468
Change query parser setting default to 'simple'
czaarek99 Apr 15, 2018
3d05e85
deps: [email protected]
dougwilson Feb 2, 2022
a0276c6
Use mime-types for file to content type mapping
dougwilson Feb 6, 2022
f6db4ee
Drop support for Node.js below 4
dougwilson Feb 8, 2022
620df0e
deps: [email protected]
dougwilson Feb 8, 2022
669c805
deps: [email protected]
dougwilson Feb 8, 2022
5213bd9
docs: fix entry in history
dougwilson Feb 8, 2022
6faf26d
5.0.0-beta.1
dougwilson Feb 15, 2022
318fd4b
Merge tag '4.17.3'
dougwilson Feb 17, 2022
e9f9aae
Merge tag '4.19.0' into 5.x
wesleytodd Mar 21, 2024
60fb1d2
Merge tag '4.19.1' into 5.x
wesleytodd Mar 21, 2024
416ba02
build: disable test for 4.x which is failing in v5
wesleytodd Mar 21, 2024
7091ec1
5.0.0-beta.2
wesleytodd Mar 21, 2024
da4d763
Improved fix for open redirect allow list bypass
wesleytodd Mar 21, 2024
04bc627
4.19.2
wesleytodd Mar 25, 2024
6415f70
Merge tag '4.19.2' into 5.0
wesleytodd Mar 25, 2024
5e2345e
Merge branch '5.0' into 5.x
wesleytodd Mar 25, 2024
cd7d79f
v5.0.0-beta.3
wesleytodd Mar 25, 2024
e9bcdd3
ci: adopt Node@18 as the minimum supported version
UlisesGascon Apr 11, 2024
4b3b8cc
feat: adopt Node@18 as the minimum supported version
UlisesGascon Apr 11, 2024
1443973
Use object with null prototype for various app properties
EvanHahn Mar 17, 2022
26801a0
Use object with null prototype for settings closes #4835
EvanHahn Feb 21, 2022
ee40a88
call callback once on listen error
wesleytodd Feb 20, 2017
088856c
💚 add legacy CI, clean up
ctcpip Jul 25, 2024
c96c690
Merge branch 'master' into 5.0
ctcpip Jul 25, 2024
723b545
Throw on invalid status codes (#4212)
jonchurch Jul 30, 2024
d106bf5
Use Array.flat instead of array-flatten (#5677)
almic Aug 1, 2024
160b91c
feat: adopt Node@18 as the minimum supported version (#5803)
UlisesGascon Aug 2, 2024
9c756b0
💚 remove node <11, all failing permanently now
ctcpip Aug 2, 2024
82fc12a
Ignore `expires` and `maxAge` in `res.clearCookie()` (#5792)
jonchurch Aug 2, 2024
dde1f7d
Merge branch '5.0' into 5-merge
ctcpip Aug 2, 2024
ea49706
Merge branch 'master' into 5-merge
ctcpip Aug 2, 2024
63992bb
Merge branch 'ci/v5-node-lts' into 5-merge
ctcpip Aug 2, 2024
ecf762f
fix(deps)!: send@^1.0.0 (#5786)
wesleytodd Aug 9, 2024
41c054c
chore: upgrade `debug` dep from 3.10 to 4.3.6 (#5829)
carpasse Aug 17, 2024
0983158
refactor: replace 'path-is-absolute' dep with node:path isAbsolute me…
carpasse Aug 17, 2024
0b243b1
5.x: Upgrading `merge-descriptors` with allowing minors (#5782)
RobinTail Aug 23, 2024
65b6206
fix(deps) [email protected] (#5790)
wesleytodd Aug 23, 2024
13e6894
chore: [email protected] (#5847)
carpasse Aug 23, 2024
91a58b5
cookie-signature@^1.2.1 (#5833)
IamLizu Aug 23, 2024
7748475
fix(deps): accepts@^2.0.0 (#5881)
wesleytodd Aug 31, 2024
4e61d01
fix(deps)!: mime-types@^3.0.0 (#5882)
wesleytodd Aug 31, 2024
402e7f6
fix(deps): type-is@^2.0.0 (#5883)
wesleytodd Aug 31, 2024
05f40f4
fix(deps)!: content-disposition@^1.0.0 (#5884)
wesleytodd Aug 31, 2024
accafc6
fix(deps): finalhandler@^2.0.0 (#5899)
wesleytodd Sep 2, 2024
4d713d2
update to [email protected] (#5916)
jonchurch Sep 9, 2024
0264908
feat(deps)!: router@^2.0.0 (#5885)
wesleytodd Sep 9, 2024
e5feb9f
Merge tag '4.20.0' into 5.0
wesleytodd Sep 10, 2024
f9256ef
Merge branch '5.0' into 5-merge
wesleytodd Sep 10, 2024
6c98f80
🔧 update CI, remove unsupported versions, clean up
ctcpip Sep 10, 2024
bdd81f8
Delete `back` as a magic string (#5933)
blakeembrey Sep 10, 2024
fed8c2a
fix(deps): body-parser@^2.0.1
wesleytodd Sep 10, 2024
b3906cb
fix(deps): serve-static@^2.1.0
wesleytodd Sep 10, 2024
0c49926
fix(deps): send@^1.1.0
wesleytodd Sep 10, 2024
344b022
5.0.0
wesleytodd Sep 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
root: true

env:
es2022: true
node: true
rules:
eol-last: error
eqeqeq: [error, allow-null]
Expand Down
83 changes: 5 additions & 78 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- develop
- '4.x'
- '5.x'
- '5.0'
paths-ignore:
- '*.md'
pull_request:
Expand Down Expand Up @@ -38,77 +39,14 @@ jobs:
run: npm run lint

test:
name: Run tests
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
node-version:
- "0.10"
- "0.12"
- "4"
- "5"
- "6"
- "7"
- "8"
- "9"
- "10"
- "11"
- "12"
- "13"
- "14"
- "15"
- "16"
- "17"
- "18"
- "19"
- "20"
- "21"
- "22"
# Use supported versions of our testing tools under older versions of Node
# Install npm in some specific cases where we need to
include:
- node-version: "0.10"
npm-i: "[email protected] [email protected] [email protected]"
# Npm isn't being installed on windows w/ setup-node for
# 0.10 and 0.12, which will end up choking when npm uses es6
npm-version: "[email protected]"

- node-version: "0.12"
npm-i: "[email protected] [email protected] [email protected]"
npm-version: "[email protected]"

- node-version: "4"
npm-i: "[email protected] [email protected] [email protected]"

- node-version: "5"
npm-i: "[email protected] [email protected] [email protected]"
# fixes https://github.com/npm/cli/issues/681
npm-version: "[email protected]"

- node-version: "6"
npm-i: "[email protected] [email protected] [email protected]"

- node-version: "7"
npm-i: "[email protected] [email protected] [email protected]"

- node-version: "8"
npm-i: "[email protected] [email protected]"

- node-version: "9"
npm-i: "[email protected] [email protected]"

- node-version: "10"
npm-i: "[email protected]"

- node-version: "11"
npm-i: "[email protected]"

- node-version: "12"
npm-i: "[email protected]"

- node-version: "13"
npm-i: "[email protected]"
node-version: [18, 19, 20, 21, 22]
# Node.js release schedule: https://nodejs.org/en/about/releases/

name: Node.js ${{ matrix.node-version }} - ${{matrix.os}}

runs-on: ${{ matrix.os }}
steps:
Expand All @@ -121,10 +59,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Npm version fixes
if: ${{matrix.npm-version != ''}}
run: npm install -g ${{ matrix.npm-version }}

- name: Configure npm loglevel
run: |
npm config set loglevel error
Expand All @@ -133,13 +67,6 @@ jobs:
- name: Install dependencies
run: npm install

- name: Install Node version specific dev deps
if: ${{ matrix.npm-i != '' }}
run: npm install --save-dev ${{ matrix.npm-i }}

- name: Remove non-test dependencies
run: npm rm --silent --save-dev connect-redis

- name: Output Node and NPM versions
run: |
echo "Node.js version: $(node -v)"
Expand Down
69 changes: 0 additions & 69 deletions .github/workflows/iojs.yml

This file was deleted.

100 changes: 100 additions & 0 deletions .github/workflows/legacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: legacy

on:
push:
branches:
- master
- develop
- '4.x'
- '5.x'
- '5.0'
paths-ignore:
- '*.md'
pull_request:
paths-ignore:
- '*.md'

# Cancel in progress workflows
# in the scenario where we already had a run going for that PR/branch/tag but then triggered a new run
concurrency:
group: "${{ github.workflow }} ✨ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true

jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [16, 17]
# Node.js release schedule: https://nodejs.org/en/about/releases/

name: Node.js ${{ matrix.node-version }} - ${{matrix.os}}

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Configure npm loglevel
run: |
npm config set loglevel error
shell: bash

- name: Install dependencies
run: npm install

- name: Output Node and NPM versions
run: |
echo "Node.js version: $(node -v)"
echo "NPM version: $(npm -v)"

- name: Run tests
shell: bash
run: |
npm run test-ci
cp coverage/lcov.info "coverage/${{ matrix.node-version }}.lcov"

- name: Collect code coverage
run: |
mv ./coverage "./${{ matrix.node-version }}"
mkdir ./coverage
mv "./${{ matrix.node-version }}" "./coverage/${{ matrix.node-version }}"

- name: Upload code coverage
uses: actions/upload-artifact@v3
with:
name: coverage
path: ./coverage
retention-days: 1

coverage:
needs: test
runs-on: ubuntu-latest
steps:
- 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 }}
Loading
Loading