From dfa7b80642d3c30d911feeca9a460d1802d34a72 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Sun, 4 Aug 2019 22:03:22 -0400 Subject: [PATCH 001/194] build: Node.js@10.16 --- .travis.yml | 2 +- appveyor.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c3ebc583d6..6e144c2463 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ node_js: - "7.10" - "8.16" - "9.11" - - "10.15" + - "10.16" - "11.15" - "12.3" matrix: diff --git a/appveyor.yml b/appveyor.yml index 24434cd14a..3d775eb211 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -11,7 +11,7 @@ environment: - nodejs_version: "7.10" - nodejs_version: "8.16" - nodejs_version: "9.11" - - nodejs_version: "10.15" + - nodejs_version: "10.16" - nodejs_version: "11.15" - nodejs_version: "12.3" cache: From 6506fb578ce06081f82c13fafafe35dfca7d9c86 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Sun, 4 Aug 2019 22:09:45 -0400 Subject: [PATCH 002/194] build: Node.js@12.7 --- .travis.yml | 2 +- appveyor.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6e144c2463..75907eed53 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ node_js: - "9.11" - "10.16" - "11.15" - - "12.3" + - "12.7" matrix: include: - node_js: "13" diff --git a/appveyor.yml b/appveyor.yml index 3d775eb211..1675129d50 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,7 +13,7 @@ environment: - nodejs_version: "9.11" - nodejs_version: "10.16" - nodejs_version: "11.15" - - nodejs_version: "12.3" + - nodejs_version: "12.7" cache: - node_modules install: From 4efb49866df68a209808ac896ecbd6e53ae66ec7 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Sun, 4 Aug 2019 22:23:09 -0400 Subject: [PATCH 003/194] build: mocha@6.2.0 --- .travis.yml | 7 +++++-- appveyor.yml | 7 +++++-- package.json | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 75907eed53..6827cf0c3e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,9 +37,12 @@ before_install: # Setup Node.js version-specific dependencies - | # mocha for testing - # - use 3.x for Node.js < 6 - if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then + # - use 3.x for Node.js < 4 + # - use 5.x for Node.js < 6 + if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 4 ]]; then npm install --silent --save-dev mocha@3.5.3 + elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then + npm install --silent --save-dev mocha@5.2.0 fi - | # supertest for http calls diff --git a/appveyor.yml b/appveyor.yml index 1675129d50..16e9a084bb 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -32,9 +32,12 @@ install: # Setup Node.js version-specific dependencies - ps: | # mocha for testing - # - use 3.x for Node.js < 6 - if ($env:nodejs_version.split(".")[0] -lt 6) { + # - use 3.x for Node.js < 4 + # - use 5.x for Node.js < 6 + if ($env:nodejs_version.split(".")[0] -lt 4) { npm install --silent --save-dev mocha@3.5.3 + } elseif ($env:nodejs_version.split(".")[0] -lt 6) { + npm install --silent --save-dev mocha@5.2.0 } - ps: | # supertest for http calls diff --git a/package.json b/package.json index 2979d57a22..3b26c45471 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "istanbul": "0.4.5", "marked": "0.6.2", "method-override": "3.0.0", - "mocha": "5.2.0", + "mocha": "6.2.0", "morgan": "1.9.1", "multiparty": "4.2.1", "pbkdf2-password": "1.2.1", From 741e3f81af6264e4d67a59528a64b40f96ca5911 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Sun, 10 Nov 2019 22:04:12 -0500 Subject: [PATCH 004/194] build: Node.js@10.17 --- .travis.yml | 2 +- appveyor.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6827cf0c3e..878ee8377f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ node_js: - "7.10" - "8.16" - "9.11" - - "10.16" + - "10.17" - "11.15" - "12.7" matrix: diff --git a/appveyor.yml b/appveyor.yml index 16e9a084bb..a89d339f7a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -11,7 +11,7 @@ environment: - nodejs_version: "7.10" - nodejs_version: "8.16" - nodejs_version: "9.11" - - nodejs_version: "10.16" + - nodejs_version: "10.17" - nodejs_version: "11.15" - nodejs_version: "12.7" cache: From 866ffd67d785f88616b7444871c05995a21cff0e Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Sun, 10 Nov 2019 22:09:43 -0500 Subject: [PATCH 005/194] build: Node.js@12.13 --- .travis.yml | 2 +- appveyor.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 878ee8377f..fbbfbcdb7d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ node_js: - "9.11" - "10.17" - "11.15" - - "12.7" + - "12.13" matrix: include: - node_js: "13" diff --git a/appveyor.yml b/appveyor.yml index a89d339f7a..01e3bdd568 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,7 +13,7 @@ environment: - nodejs_version: "9.11" - nodejs_version: "10.17" - nodejs_version: "11.15" - - nodejs_version: "12.7" + - nodejs_version: "12.13" cache: - node_modules install: From 668d029a14acfb031652c54bf32f705d2dde64ee Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Sun, 10 Nov 2019 22:15:49 -0500 Subject: [PATCH 006/194] build: mocha@6.2.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3b26c45471..ac9152b67d 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "istanbul": "0.4.5", "marked": "0.6.2", "method-override": "3.0.0", - "mocha": "6.2.0", + "mocha": "6.2.2", "morgan": "1.9.1", "multiparty": "4.2.1", "pbkdf2-password": "1.2.1", From 95735a6fccd165fb6113daae9259ca26efc52171 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Sun, 10 Nov 2019 22:21:57 -0500 Subject: [PATCH 007/194] build: supertest@3.4.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ac9152b67d..65ab7da19e 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "multiparty": "4.2.1", "pbkdf2-password": "1.2.1", "should": "13.2.3", - "supertest": "3.3.0", + "supertest": "3.4.2", "vhost": "~3.0.2" }, "engines": { From e757fa003938dddc19f1ed3c447fffe1062f1508 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Thu, 9 Jan 2020 18:30:57 -0500 Subject: [PATCH 008/194] build: Node.js@8.17 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index fbbfbcdb7d..8c4529fe06 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ node_js: - "5.12" - "6.17" - "7.10" - - "8.16" + - "8.17" - "9.11" - "10.17" - "11.15" From 55831bbd08736b8424d26a8ee22039e06a8816aa Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Thu, 9 Jan 2020 18:37:52 -0500 Subject: [PATCH 009/194] build: Node.js@10.18 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8c4529fe06..9ab31558d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ node_js: - "7.10" - "8.17" - "9.11" - - "10.17" + - "10.18" - "11.15" - "12.13" matrix: From f1e8a877f4f70dbf0a12e2471671be68e35e31d8 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Thu, 9 Jan 2020 18:40:28 -0500 Subject: [PATCH 010/194] build: Node.js@12.14 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9ab31558d8..8d7cf6c22d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ node_js: - "9.11" - "10.18" - "11.15" - - "12.13" + - "12.14" matrix: include: - node_js: "13" From f0cbdeadf695d4e5dc1332666e864ce82845a555 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Thu, 9 Jan 2020 18:58:52 -0500 Subject: [PATCH 011/194] build: mocha@7.0.0 --- .travis.yml | 3 +++ appveyor.yml | 3 +++ package.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8d7cf6c22d..8bda1d8d9f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,10 +39,13 @@ before_install: # mocha for testing # - use 3.x for Node.js < 4 # - use 5.x for Node.js < 6 + # - use 6.x for Node.js < 8 if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 4 ]]; then npm install --silent --save-dev mocha@3.5.3 elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then npm install --silent --save-dev mocha@5.2.0 + elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 8 ]]; then + npm install --silent --save-dev mocha@6.2.2 fi - | # supertest for http calls diff --git a/appveyor.yml b/appveyor.yml index 01e3bdd568..b95b8e2d5a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -34,10 +34,13 @@ install: # mocha for testing # - use 3.x for Node.js < 4 # - use 5.x for Node.js < 6 + # - use 6.x for Node.js < 8 if ($env:nodejs_version.split(".")[0] -lt 4) { npm install --silent --save-dev mocha@3.5.3 } elseif ($env:nodejs_version.split(".")[0] -lt 6) { npm install --silent --save-dev mocha@5.2.0 + } elseif ($env:nodejs_version.split(".")[0] -lt 8) { + npm install --silent --save-dev mocha@6.2.2 } - ps: | # supertest for http calls diff --git a/package.json b/package.json index 65ab7da19e..a988bb5fc0 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "istanbul": "0.4.5", "marked": "0.6.2", "method-override": "3.0.0", - "mocha": "6.2.2", + "mocha": "7.0.0", "morgan": "1.9.1", "multiparty": "4.2.1", "pbkdf2-password": "1.2.1", From 87bc4ef7638c38abf6c2bca10a07a0b1e4fd4a60 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Tue, 11 Feb 2020 23:10:15 -0500 Subject: [PATCH 012/194] build: update example dependencies --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index a988bb5fc0..725e3ff053 100644 --- a/package.json +++ b/package.json @@ -60,15 +60,15 @@ }, "devDependencies": { "after": "0.8.2", - "connect-redis": "3.4.1", + "connect-redis": "3.4.2", "cookie-parser": "~1.4.4", "cookie-session": "1.3.3", - "ejs": "2.6.1", + "ejs": "2.7.2", "eslint": "2.13.1", - "express-session": "1.16.1", - "hbs": "4.0.4", + "express-session": "1.17.0", + "hbs": "4.1.0", "istanbul": "0.4.5", - "marked": "0.6.2", + "marked": "0.7.0", "method-override": "3.0.0", "mocha": "7.0.0", "morgan": "1.9.1", From 872aa4741c95c2ba15e0dd40cd54ed6eb6c83e3e Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Wed, 19 Feb 2020 00:27:51 -0500 Subject: [PATCH 013/194] build: Node.js@10.19 --- .travis.yml | 2 +- appveyor.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8bda1d8d9f..78cdba1938 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ node_js: - "7.10" - "8.17" - "9.11" - - "10.18" + - "10.19" - "11.15" - "12.14" matrix: diff --git a/appveyor.yml b/appveyor.yml index b95b8e2d5a..1b579dd829 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -11,7 +11,7 @@ environment: - nodejs_version: "7.10" - nodejs_version: "8.16" - nodejs_version: "9.11" - - nodejs_version: "10.17" + - nodejs_version: "10.19" - nodejs_version: "11.15" - nodejs_version: "12.13" cache: From 22d5b7ed108e2e67f694c126278a87bd28f89fe7 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Wed, 19 Feb 2020 00:32:14 -0500 Subject: [PATCH 014/194] build: Node.js@12.16 --- .travis.yml | 2 +- appveyor.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 78cdba1938..7178dd4bf2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ node_js: - "9.11" - "10.19" - "11.15" - - "12.14" + - "12.16" matrix: include: - node_js: "13" diff --git a/appveyor.yml b/appveyor.yml index 1b579dd829..9d3b80fafa 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,7 +13,7 @@ environment: - nodejs_version: "9.11" - nodejs_version: "10.19" - nodejs_version: "11.15" - - nodejs_version: "12.13" + - nodejs_version: "12.16" cache: - node_modules install: From d967675852b06384c8ebfc065430a8e215fc08f5 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Wed, 19 Feb 2020 00:49:36 -0500 Subject: [PATCH 015/194] build: mocha@7.0.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 725e3ff053..2110419476 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "istanbul": "0.4.5", "marked": "0.7.0", "method-override": "3.0.0", - "mocha": "7.0.0", + "mocha": "7.0.1", "morgan": "1.9.1", "multiparty": "4.2.1", "pbkdf2-password": "1.2.1", From 2d519077ea6c7c52a16098c7cf6d8d667a863c7b Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Tue, 17 Mar 2020 20:31:10 -0400 Subject: [PATCH 016/194] build: supertest@4.0.2 --- .travis.yml | 3 +++ appveyor.yml | 3 +++ package.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7178dd4bf2..6cae565f99 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,8 +50,11 @@ before_install: - | # supertest for http calls # - use 2.0.0 for Node.js < 4 + # - use 3.4.2 for Node.js < 6 if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 4 ]]; then npm install --silent --save-dev supertest@2.0.0 + elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then + npm install --silent --save-dev supertest@3.4.2 fi # Update Node.js modules - | diff --git a/appveyor.yml b/appveyor.yml index 9d3b80fafa..94d25b3d53 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -45,8 +45,11 @@ install: - ps: | # supertest for http calls # - use 2.0.0 for Node.js < 4 + # - use 3.4.2 for Node.js < 6 if ($env:nodejs_version.split(".")[0] -lt 4) { npm install --silent --save-dev supertest@2.0.0 + } elseif ($env:nodejs_version.split(".")[0] -lt 6) { + npm install --silent --save-dev supertest@3.4.2 } # Update Node.js modules - ps: | diff --git a/package.json b/package.json index 2110419476..6296ac68a3 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "multiparty": "4.2.1", "pbkdf2-password": "1.2.1", "should": "13.2.3", - "supertest": "3.4.2", + "supertest": "4.0.2", "vhost": "~3.0.2" }, "engines": { From 65aff94ec62b9f550aa7fb82cd8a1dd7b7da0bfc Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Tue, 17 Mar 2020 20:37:16 -0400 Subject: [PATCH 017/194] build: remove deprecated Travis CI directive --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6cae565f99..3773559581 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,6 @@ matrix: allow_failures: # Allow the nightly installs to fail - env: "NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly" -sudo: false cache: directories: - node_modules From 47c1d2a8168a4e6b060f32c1d15ba8ed2f52a99b Mon Sep 17 00:00:00 2001 From: Chang Wang Date: Thu, 1 Mar 2018 19:37:45 -0500 Subject: [PATCH 018/194] docs: point npm downloads badge to npm charts of express closes #3579 --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 1f91297312..dae3ddb9ce 100644 --- a/Readme.md +++ b/Readme.md @@ -146,7 +146,7 @@ The current lead maintainer is [Douglas Christopher Wilson](https://github.com/d [npm-image]: https://img.shields.io/npm/v/express.svg [npm-url]: https://npmjs.org/package/express [downloads-image]: https://img.shields.io/npm/dm/express.svg -[downloads-url]: https://npmjs.org/package/express +[downloads-url]: https://npmcharts.com/compare/express?minimal=true [travis-image]: https://img.shields.io/travis/expressjs/express/master.svg?label=linux [travis-url]: https://travis-ci.org/expressjs/express [appveyor-image]: https://img.shields.io/appveyor/ci/dougwilson/express/master.svg?label=windows From 4b4fa26298c3ee9eb7385cc04a1f33f670fd82bb Mon Sep 17 00:00:00 2001 From: yanokenken Date: Sun, 26 May 2019 00:24:55 -0400 Subject: [PATCH 019/194] docs: add npm init hint to install section --- Readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Readme.md b/Readme.md index dae3ddb9ce..9b15b440d7 100644 --- a/Readme.md +++ b/Readme.md @@ -27,6 +27,9 @@ This is a [Node.js](https://nodejs.org/en/) module available through the Before installing, [download and install Node.js](https://nodejs.org/en/download/). Node.js 0.10 or higher is required. +If this is a brand new project, make sure to create a `package.json` first with +the [`npm init` command](https://docs.npmjs.com/creating-a-package-json-file). + Installation is done using the [`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): From 3f1dcb96e0ad0145b47a4b1e37bfbbfa6abaf602 Mon Sep 17 00:00:00 2001 From: Aditya Srivastava Date: Tue, 22 Jan 2019 17:44:37 +0530 Subject: [PATCH 020/194] examples: add viewport and charset where missing closes #3860 --- examples/auth/views/head.ejs | 2 ++ examples/ejs/views/header.html | 1 + examples/error-pages/views/error_header.ejs | 2 ++ examples/error-pages/views/index.ejs | 2 ++ examples/mvc/controllers/pet/views/edit.ejs | 2 ++ examples/mvc/controllers/pet/views/show.ejs | 2 ++ examples/mvc/controllers/user/views/edit.hbs | 2 ++ examples/mvc/controllers/user/views/list.hbs | 2 ++ examples/mvc/controllers/user/views/show.hbs | 2 ++ examples/mvc/views/404.ejs | 1 + examples/mvc/views/5xx.ejs | 1 + examples/route-separation/views/header.ejs | 1 + examples/search/public/index.html | 1 + examples/view-locals/views/index.ejs | 1 + 14 files changed, 22 insertions(+) diff --git a/examples/auth/views/head.ejs b/examples/auth/views/head.ejs index 0a919f4929..65386267d0 100644 --- a/examples/auth/views/head.ejs +++ b/examples/auth/views/head.ejs @@ -1,6 +1,8 @@ + + <%= title %>