Merge tag '4.16.4'
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parents 659fcc1, dc538f6 · Browse files · 32 files·+286 added−129 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
32 files+286 added−129 removed
- tests:+104 added−54 removed
- other:+182 added−75 removed
Provenance
- Commit
302a615- Tree
cffe4c8- Author
Douglas Christopher Wilson <doug@somethingdoug.com>- Committer
Douglas Christopher Wilson <doug@somethingdoug.com>- Parent 1
659fcc1- Parent 2
dc538f6
32 files changed+286 added−129 removed
modified:examples/auth/index.js+1 added-1 removed
63 unmodified lines6465666768686970717258 unmodified lines63 unmodified lines // the hash against the pass / salt, if there is a match we // found the user hash({ password: pass, salt: user.salt }, function (err, pass, salt, hash) { if (err) return fn(err); if (hash == user.hash) return fn(null, user); if (hash === user.hash) return fn(null, user) fn(new Error('invalid password')); });}
58 unmodified linesmodified:examples/cookies/index.js+1 added-1 removed
6 unmodified lines7891011111213141532 unmodified lines6 unmodified linesvar logger = require('morgan');var cookieParser = require('cookie-parser');
// custom log formatif ('test' != process.env.NODE_ENV) app.use(logger(':method :url'));if (process.env.NODE_ENV !== 'test') app.use(logger(':method :url'))
// parses request cookies, populating// req.cookies and req.signedCookies// when the secret is passed, used32 unmodified linesmodified:examples/error/index.js+1 added-1 removed
3 unmodified lines4 5 var express = require('../../');6 var logger = require('morgan');7 var app = module.exports = express();8-var test = app.get('env') == 'test';8+var test = app.get('env') === 'test'9 10 if (!test) app.use(logger('dev'));11 12 // error handling middleware have an arity of 439 unmodified linesmodified:examples/error-pages/index.js+2 added-2 removed
4 unmodified lines5 var express = require('../../');6 var path = require('path');7 var app = module.exports = express();8 var logger = require('morgan');9-var silent = 'test' == process.env.NODE_ENV;9+var silent = process.env.NODE_ENV === 'test'10 11 // general config12 app.set('views', path.join(__dirname, 'views'));13 app.set('view engine', 'ejs');4 unmodified lines18 app.enable('verbose errors');19 20 // disable them in production21 // use $ NODE_ENV=production node examples/error-pages22-if ('production' == app.settings.env) app.disable('verbose errors');22+if (app.settings.env === 'production') app.disable('verbose errors')23 24 silent || app.use(logger('dev'));25 26 // Routes75 unmodified linesmodified:examples/multi-router/index.js+1 added-1 removed
4 unmodified lines567899101112133 unmodified lines4 unmodified linesapp.use('/api/v1', require('./controllers/api_v1'));app.use('/api/v2', require('./controllers/api_v2'));
app.get('/', function(req, res) { res.send('Hello form root route.'); res.send('Hello from root route.')});
/* istanbul ignore next */if (!module.parent) {3 unmodified linesmodified:examples/route-map/index.js+1 added-1 removed
2 unmodified lines3 */4 5 var express = require('../../lib/express');6 7-var verbose = process.env.NODE_ENV != 'test';7+var verbose = process.env.NODE_ENV !== 'test'8 9 var app = module.exports = express();10 11 app.map = function(a, route){61 unmodified linesmodified:examples/route-middleware/index.js+2 added-2 removed
32 unmodified lines33 34 function andRestrictToSelf(req, res, next) {35 // If our authenticated user is the user we are viewing36 // then everything is fine :)37- if (req.authenticatedUser.id == req.user.id) {37+ if (req.authenticatedUser.id === req.user.id) {38 next();39 } else {40 // You may want to implement specific exceptions41 // such as UnauthorizedError or similar so that you4 unmodified lines46 }47 48 function andRestrictTo(role) {49 return function(req, res, next) {50- if (req.authenticatedUser.role == role) {50+ if (req.authenticatedUser.role === role) {51 next();52 } else {53 next(new Error('Unauthorized'));54 }34 unmodified linesmodified:examples/search/public/client.js+1 added-1 removed
3 unmodified lines4 search.addEventListener('keyup', function(){5 var xhr = new XMLHttpRequest;6 xhr.open('GET', '/search/' + search.value, true);7 xhr.onreadystatechange = function(){8- if (4 == xhr.readyState) {8+ if (xhr.readyState === 4) {9 code.textContent = xhr.responseText;10 }11 };12 xhr.send();1 unmodified linemodified:examples/view-locals/index.js+1 added-1 removed
11 unmodified lines12 13 // filter ferrets only14 15 function ferrets(user) {16- return user.species == 'ferret';16+ return user.species === 'ferret'17 }18 19 // naive nesting approach,20 // delegating errors to next(err)133 unmodified linesmodified:examples/web-service/index.js+6 added-3 removed
47 unmodified lines48 49 // these two objects will serve as our faux database50 51 var repos = [52- { name: 'express', url: 'http://github.com/expressjs/express' }53- , { name: 'stylus', url: 'http://github.com/learnboost/stylus' }54- , { name: 'cluster', url: 'http://github.com/learnboost/cluster' }52+ { name: 'express', url: 'https://github.com/expressjs/express' },53+ { name: 'stylus', url: 'https://github.com/learnboost/stylus' },54+ { name: 'cluster', url: 'https://github.com/learnboost/cluster' }55 ];56 57 var users = [58 { name: 'tobi' }9 unmodified lines68 69 // we now can assume the api key is valid,70 // and simply expose the data71 72+// example: http://localhost:3000/api/users/?api-key=foo73 app.get('/api/users', function(req, res, next){74 res.send(users);75 });76 77+// example: http://localhost:3000/api/repos/?api-key=foo78 app.get('/api/repos', function(req, res, next){79 res.send(repos);80 });81 82+// example: http://localhost:3000/api/user/tobi/repos/?api-key=foo83 app.get('/api/user/:name/repos', function(req, res, next){84 var name = req.params.name;85 var user = userRepos[name];86 29 unmodified linesmodified:test/acceptance/error-pages.js+1 added-4 removed
50 unmodified lines51 it('should respond with 404', function(done){52 request(app)53 .get('/404')54 .set('Accept','application/json')55- .end(function(err, res){56- res.body.should.eql({ error: 'Not found' });57- done()58- })55+ .expect(404, { error: 'Not found' }, done)56 })57 })58 59 describe('GET /500', function(){40 unmodified linesmodified:test/acceptance/multi-router.js+1 added-1 removed
4 unmodified lines5 describe('GET /',function(){6 it('should respond with root handler', function(done){7 request(app)8 .get('/')9- .expect(200, 'Hello form root route.', done)9+ .expect(200, 'Hello from root route.', done)10 })11 })12 13 describe('GET /api/v1/',function(){31 unmodified linesmodified:test/acceptance/web-service.js+2 added-2 removed
51 unmodified lines52 request(app)53 .get('/api/repos?api-key=foo')54 .expect('Content-Type', 'application/json; charset=utf-8')55 .expect(/"name":"express"/)56- .expect(/"url":"http:\/\/github.com\/expressjs\/express"/)56+ .expect(/"url":"https:\/\/github.com\/expressjs\/express"/)57 .expect(200, done)58 })59 })60 })20 unmodified lines81 request(app)82 .get('/api/user/loki/repos?api-key=foo')83 .expect('Content-Type', 'application/json; charset=utf-8')84 .expect(/"name":"stylus"/)85- .expect(/"url":"http:\/\/github.com\/learnboost\/stylus"/)85+ .expect(/"url":"https:\/\/github.com\/learnboost\/stylus"/)86 .expect(200, done)87 })88 89 it('should 404 with unknown user', function(done){16 unmodified linesmodified:test/app.router.js+2 added-6 removed
39 unmodified lines40 it('should include ' + method.toUpperCase(), function(done){41 var app = express();42 43 app[method]('/foo', function(req, res){44- if ('head' == method) {45- res.end();46- } else {47- res.end(method);48- }44+ res.send(method)45 });46 47 request(app)48 [method]('/foo')53- .expect('head' == method ? '' : method, done);49+ .expect(200, done)50 })51 52 it('should reject numbers for app.' + method, function(){53 var app = express();1031 unmodified linesmodified:test/mocha.opts-1 removed
1 --require should2 --slow 203---growlmodified:test/req.signedCookies.js+1 added-1 removed
9 unmodified lines10 11 app.use(cookieParser('secret'));12 13 app.use(function(req, res){14- if ('/set' == req.path) {14+ if (req.path === '/set') {15 res.cookie('obj', { foo: 'bar' }, { signed: true });16 res.end();17 } else {18 res.send(req.signedCookies);18 unmodified linesmodified:test/req.xhr.js+4 added-16 removed
13 unmodified lines14 15 request(app)16 .get('/')17 .set('X-Requested-With', 'xmlhttprequest')18- .expect(200)19- .end(function(err, res){20- done(err);21- })18+ .expect(200, done)19 })20 21 it('should case-insensitive', function(done){22 var app = express();5 unmodified lines28 29 request(app)30 .get('/')31 .set('X-Requested-With', 'XMLHttpRequest')35- .expect(200)36- .end(function(err, res){37- done(err);38- })32+ .expect(200, done)33 })34 35 it('should return false otherwise', function(done){36 var app = express();5 unmodified lines42 43 request(app)44 .get('/')45 .set('X-Requested-With', 'blahblah')52- .expect(200)53- .end(function(err, res){54- done(err);55- })46+ .expect(200, done)47 })48 49 it('should return false when not present', function(done){50 var app = express();4 unmodified lines55 });56 57 request(app)58 .get('/')68- .expect(200)69- .end(function(err, res){70- done(err);71- })59+ .expect(200, done)60 })61 })62 })modified:test/res.download.js+12 added-1 removed
1 2 var after = require('after');3 var assert = require('assert');4+var Buffer = require('safe-buffer').Buffer5 var express = require('..');6 var request = require('supertest');7 8 describe('res', function(){95 unmodified lines104 .get('/')105 .expect(200)106 .expect('Content-Disposition', 'attachment; filename="document"')107 .expect('Cache-Control', 'public, max-age=14400')107- .expect('tobi')108+ .expect(shouldHaveBody(Buffer.from('tobi')))109 .end(done)110 })111 112 describe('when options.headers contains Content-Disposition', function () {72 unmodified lines185 })186 })187 })188 189+function shouldHaveBody (buf) {190+ return function (res) {191+ var body = !Buffer.isBuffer(res.body)192+ ? Buffer.from(res.text)193+ : res.body194+ assert.ok(body, 'response has body')195+ assert.strictEqual(body.toString('hex'), buf.toString('hex'))196+ }197+}198+199 function shouldNotHaveHeader(header) {200 return function (res) {201 assert.ok(!(header.toLowerCase() in res.headers), 'should not have header ' + header);202 };1 unmodified linemodified:test/res.format.js+3 added-3 removed
15 unmodified lines16 res.send('<p>hey</p>');17 },18 19 'application/json': function(a, b, c){20- assert(req == a);21- assert(res == b);22- assert(next == c);20+ assert(req === a)21+ assert(res === b)22+ assert(next === c)23 res.send({ message: 'hey' });24 }25 });26 });194 unmodified linesmodified:test/res.json.js+1 added-1 removed
127 unmodified lines128 it('should be passed to JSON.stringify()', function(done){129 var app = express();130 131 app.set('json replacer', function(key, val){132- return '_' == key[0]132+ return key[0] === '_'133 ? undefined134 : val;135 });136 34 unmodified linesmodified:test/res.jsonp.js+1 added-1 removed
267 unmodified lines268 it('should be passed to JSON.stringify()', function(done){269 var app = express();270 271 app.set('json replacer', function(key, val){272- return '_' == key[0]272+ return key[0] === '_'273 ? undefined274 : val;275 });276 48 unmodified linesmodified:test/res.redirect.js+13 added-2 removed
1 2+var assert = require('assert')3 var express = require('..');4 var request = require('supertest');5 var utils = require('./support/utils');6 63 unmodified lines70 });71 72 request(app)73 .head('/')74+ .expect(302)75 .expect('Location', 'http://google.com')74- .expect(302, '', done)76+ .expect(shouldNotHaveBody())77+ .end(done)78 })79 })80 81 describe('when accepting html', function(){102 unmodified lines184 185 request(app)186 .get('/')187 .set('Accept', 'application/octet-stream')188+ .expect(302)189 .expect('location', 'http://google.com')190 .expect('content-length', '0')191 .expect(utils.shouldNotHaveHeader('Content-Type'))188- .expect(302, '', done)192+ .expect(shouldNotHaveBody())193+ .end(done)194 })195 })196 })197+198+function shouldNotHaveBody () {199+ return function (res) {200+ assert.ok(res.text === '' || res.text === undefined)201+ }202+}modified:test/res.send.js+35 added-2 removed
1 2+var assert = require('assert')3 var Buffer = require('safe-buffer').Buffer4 var express = require('..');5 var methods = require('methods');6 var request = require('supertest');135 unmodified lines142 });143 144 request(app)145 .get('/')146+ .expect(200)147 .expect('Content-Type', 'application/octet-stream')146- .expect(200, 'hello', done);148+ .expect(shouldHaveBody(Buffer.from('hello')))149+ .end(done)150 })151 152 it('should set ETag', function (done) {153 var app = express();59 unmodified lines213 });214 215 request(app)216 .head('/')214- .expect('', done);217+ .expect(200)218+ .expect(shouldNotHaveBody())219+ .end(done)220 })221 })222 223 describe('when .statusCode is 204', function(){89 unmodified lines313 .get('/?callback=foo')314 .expect('{"foo":"bar"}', done);315 })316 317+ it('should be chainable', function (done) {318+ var app = express()319+320+ app.use(function (req, res) {321+ assert.equal(res.send('hey'), res)322+ })323+324+ request(app)325+ .get('/')326+ .expect(200, 'hey', done)327+ })328+329 describe('"etag" setting', function () {330 describe('when enabled', function () {331 it('should send ETag', function (done) {332 var app = express();198 unmodified lines531 })532 })533 })534 })535+536+function shouldHaveBody (buf) {537+ return function (res) {538+ var body = !Buffer.isBuffer(res.body)539+ ? Buffer.from(res.text)540+ : res.body541+ assert.ok(body, 'response has body')542+ assert.strictEqual(body.toString('hex'), buf.toString('hex'))543+ }544+}545+546+function shouldNotHaveBody () {547+ return function (res) {548+ assert.ok(res.text === '' || res.text === undefined)549+ }550+}modified:test/res.sendFile.js+24 added-6 removed
1 2 var after = require('after');3+var assert = require('assert')4+var Buffer = require('safe-buffer').Buffer5 var express = require('../')6 , request = require('supertest')7 var onFinished = require('on-finished');8 var path = require('path');87 unmodified lines96 .end(done);97 })98 99 it('should not error if the client aborts', function (done) {98- var cb = after(1, done);100 var app = express();101+ var cb = after(2, done)102+ var error = null103 104 app.use(function (req, res) {105 setImmediate(function () {106 res.sendFile(path.resolve(fixtures, 'name.txt'));107 server.close(cb)108+ setTimeout(function () {109+ cb(error)110+ }, 10)105- });111+ })112 test.abort();113 });114 115 app.use(function (err, req, res, next) {110- err.code.should.be.empty()111- cb();116+ error = err117+ next(err)118 });119 120 var server = app.listen()121 var test = request(server).get('/')116- test.expect(200, cb);122+ test.end()123 })124 125 describe('with "cacheControl" option', function () {126 it('should enable cacheControl by default', function (done) {28 unmodified lines155 var app = createApp(path.resolve(__dirname, 'fixtures/.name'), { dotfiles: 'allow' });156 157 request(app)158 .get('/')153- .expect(200, 'tobi', done);159+ .expect(200)160+ .expect(shouldHaveBody(Buffer.from('tobi')))161+ .end(done)162 });163 });164 165 describe('with "headers" option', function () {205 unmodified lines371 });372 373 return app;374 }375+376+function shouldHaveBody (buf) {377+ return function (res) {378+ var body = !Buffer.isBuffer(res.body)379+ ? Buffer.from(res.text)380+ : res.body381+ assert.ok(body, 'response has body')382+ assert.strictEqual(body.toString('hex'), buf.toString('hex'))383+ }384+}modified:test/Router.js+4 added-7 removed
5 unmodified lines6 , assert = require('assert');7 8 describe('Router', function(){9 it('should return a function with router methods', function() {10- var router = Router();11- assert(typeof router == 'function');12-10 var router = new Router();14- assert(typeof router == 'function');11+ assert(typeof router === 'function')12 16- assert(typeof router.get == 'function');17- assert(typeof router.handle == 'function');18- assert(typeof router.use == 'function');13+ assert(typeof router.get === 'function')14+ assert(typeof router.handle === 'function')15+ assert(typeof router.use === 'function')16 });17 18 it('should support .use of other routers', function(done){19 var router = new Router();551 unmodified linesdeleted:.eslintrc-8 removed
1-{2- "rules": {3- "eol-last": "error",4- "indent": ["error", 2, { "SwitchCase": 1 }],5- "no-trailing-spaces": "error",6- "no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": true }]7- }8-}added:.eslintrc.yml+8 added
1+root: true2+3+rules:4+ eol-last: error5+ eqeqeq: [error, allow-null]6+ indent: [error, 2, { SwitchCase: 1 }]7+ no-trailing-spaces: error8+ no-unused-vars: [error, { vars: all, args: none, ignoreRestSiblings: true }]modified:.travis.yml+40 added-15 removed
3 unmodified lines4 - "0.12"5 - "1.8"6 - "2.5"7 - "3.3"8- - "4.8"8+ - "4.9"9 - "5.12"10- - "6.11"10+ - "6.14"11 - "7.10"12- - "8.4"12+ - "8.12"13 matrix:14 include:15- - node_js: "8"16- env: "NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly"15 - node_js: "9"16 env: "NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly"17+ - node_js: "10"18+ env: "NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly"19 allow_failures:20 # Allow the nightly installs to fail21 - env: "NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly"22 sudo: false23 cache:24 directories:25 - node_modules26 before_install:27- # Skip updating shrinkwrap / lock28- - "npm config set shrinkwrap false"29-27+ # Configure npm28+ - |29+ # Skip updating shrinkwrap / lock30+ npm config set shrinkwrap false31 # Remove all non-test dependencies31- - "npm rm --save-dev connect-redis"32-32+ - |33+ # Remove example dependencies34+ npm rm --silent --save-dev connect-redis35+ # Setup Node.js version-specific dependencies36+ - |37+ # mocha for testing38+ # - use 3.x for Node.js < 639+ if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then40+ npm install --silent --save-dev mocha@3.5.341+ fi42+ - |43+ # supertest for http calls44+ # - use 2.0.0 for Node.js < 445+ if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 4 ]]; then46+ npm install --silent --save-dev supertest@2.0.047+ fi48 # Update Node.js modules34- - "test ! -d node_modules || npm prune"35- - "test ! -d node_modules || npm rebuild"49+ - |50+ # Prune and rebuild node_modules51+ if [[ -d node_modules ]]; then52+ npm prune53+ npm rebuild54+ fi55 script:37- - "npm run test-ci"38- - "npm run lint"39-after_script: "npm install coveralls@2.10.0 && cat ./coverage/lcov.info | coveralls"56+ # Run test script57+ - npm run test-ci58+ # Run linting59+ - npm run lint60+after_script:61+ - |62+ # Upload coverage to coveralls63+ npm install --save-dev coveralls@2.10.064+ coveralls < ./coverage/lcov.infomodified:appveyor.yml+42 added-10 removed
3 unmodified lines4 - nodejs_version: "0.12"5 - nodejs_version: "1.8"6 - nodejs_version: "2.5"7 - nodejs_version: "3.3"8- - nodejs_version: "4.8"8+ - nodejs_version: "4.9"9 - nodejs_version: "5.12"10- - nodejs_version: "6.11"10+ - nodejs_version: "6.14"11 - nodejs_version: "7.10"12- - nodejs_version: "8.4"12+ - nodejs_version: "8.12"13 cache:14 - node_modules15 install:16- - ps: Install-Product node $env:nodejs_version17- - npm config set shrinkwrap false18- - npm rm --save-dev connect-redis19- - if exist node_modules npm prune20- - if exist node_modules npm rebuild16+ # Install Node.js17+ - ps: >-18+ try { Install-Product node $env:nodejs_version -ErrorAction Stop }19+ catch { Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) }20+ # Configure npm21+ - ps: |22+ # Skip updating shrinkwrap / lock23+ npm config set shrinkwrap false24+ # Remove all non-test dependencies25+ - ps: |26+ # Remove example dependencies27+ npm rm --silent --save-dev connect-redis28+ # Setup Node.js version-specific dependencies29+ - ps: |30+ # mocha for testing31+ # - use 3.x for Node.js < 632+ if ($env:nodejs_version.split(".")[0] -lt 6) {33+ npm install --silent --save-dev mocha@3.5.334+ }35+ - ps: |36+ # supertest for http calls37+ # - use 2.0.0 for Node.js < 438+ if ($env:nodejs_version.split(".")[0] -lt 4) {39+ npm install --silent --save-dev supertest@2.0.040+ }41+ # Update Node.js modules42+ - ps: |43+ # Prune & rebuild node_modules44+ if (Test-Path -Path node_modules) {45+ npm prune46+ npm rebuild47+ }48+ # Install Node.js modules49 - npm install50 build: off51 test_script:52+ # Output version data53+ - ps: |24- - node --version25- - npm --version54+ node --version55+ npm --version56+ # Run test script57 - npm run test-ci58+ # Run linting59 - npm run lint60 version: "{build}"modified:History.md+48 added-1 removed
1 5.x2 ===3 4-This incorporates all changes after 4.15.5 up to 4.16.2.4+This incorporates all changes after 4.15.5 up to 4.16.4.5 6 * remove:7 - `path-to-regexp` dependency8 * deps: debug@3.1.097 unmodified lines106 - `req.query` is now a getter instead of a plain property107 * add:108 - `app.router` is a reference to the base router109 110+4.16.4 / 2018-10-10111+===================112+113+ * Fix issue where `"Request aborted"` may be logged in `res.sendfile`114+ * Fix JSDoc for `Router` constructor115+ * deps: body-parser@1.18.3116+ - Fix deprecation warnings on Node.js 10+117+ - Fix stack trace for strict json parse error118+ - deps: depd@~1.1.2119+ - deps: http-errors@~1.6.3120+ - deps: iconv-lite@0.4.23121+ - deps: qs@6.5.2122+ - deps: raw-body@2.3.3123+ - deps: type-is@~1.6.16124+ * deps: proxy-addr@~2.0.4125+ - deps: ipaddr.js@1.8.0126+ * deps: qs@6.5.2127+ * deps: safe-buffer@5.1.2128+129+4.16.3 / 2018-03-12130+===================131+132+ * deps: accepts@~1.3.5133+ - deps: mime-types@~2.1.18134+ * deps: depd@~1.1.2135+ - perf: remove argument reassignment136+ * deps: encodeurl@~1.0.2137+ - Fix encoding `%` as last character138+ * deps: finalhandler@1.1.1139+ - Fix 404 output for bad / missing pathnames140+ - deps: encodeurl@~1.0.2141+ - deps: statuses@~1.4.0142+ * deps: proxy-addr@~2.0.3143+ - deps: ipaddr.js@1.6.0144+ * deps: send@0.16.2145+ - Fix incorrect end tag in default error & redirects146+ - deps: depd@~1.1.2147+ - deps: encodeurl@~1.0.2148+ - deps: statuses@~1.4.0149+ * deps: serve-static@1.13.2150+ - Fix incorrect end tag in redirects151+ - deps: encodeurl@~1.0.2152+ - deps: send@0.16.2153+ * deps: statuses@~1.4.0154+ * deps: type-is@~1.6.16155+ - deps: mime-types@~2.1.18156+157 4.16.2 / 2017-10-09158 ===================159 160 * Fix `TypeError` in `res.send` when given `Buffer` and `ETag` header set3370 unmodified linesmodified:package.json+25 added-25 removed
25 unmodified lines26 "app",27 "api"28 ],29 "dependencies": {30- "accepts": "~1.3.4",30+ "accepts": "~1.3.5",31 "array-flatten": "2.1.1",32- "body-parser": "1.18.2",32+ "body-parser": "1.18.3",33 "content-disposition": "0.5.2",34 "content-type": "~1.0.4",35 "cookie": "0.3.1",36 "cookie-signature": "1.0.6",37 "debug": "3.1.0",38- "depd": "~1.1.1",39- "encodeurl": "~1.0.1",38+ "depd": "~1.1.2",39+ "encodeurl": "~1.0.2",40 "escape-html": "~1.0.3",41 "etag": "~1.8.1",42- "finalhandler": "1.1.0",42+ "finalhandler": "1.1.1",43 "fresh": "0.5.2",44 "merge-descriptors": "1.0.1",45 "methods": "~1.1.2",46 "on-finished": "~2.3.0",47 "parseurl": "~1.3.2",48 "path-is-absolute": "1.0.1",49- "proxy-addr": "~2.0.2",50- "qs": "6.5.1",49+ "proxy-addr": "~2.0.4",50+ "qs": "6.5.2",51 "range-parser": "~1.2.0",52 "router": "~1.3.2",53- "safe-buffer": "5.1.1",54- "send": "0.16.1",55- "serve-static": "1.13.1",53+ "safe-buffer": "5.1.2",54+ "send": "0.16.2",55+ "serve-static": "1.13.2",56 "setprototypeof": "1.1.0",57- "statuses": "~1.3.1",58- "type-is": "~1.6.15",57+ "statuses": "~1.4.0",58+ "type-is": "~1.6.16",59 "utils-merge": "1.0.1",60 "vary": "~1.1.2"61 },62 "devDependencies": {63 "after": "0.8.2",64+ "connect-redis": "3.4.0",65 "cookie-parser": "~1.4.3",66 "cookie-session": "1.3.2",66- "ejs": "2.5.7",67+ "ejs": "2.6.1",68 "eslint": "2.13.1",69 "express-session": "1.15.6",70 "hbs": "4.0.1",71 "istanbul": "0.4.5",71- "marked": "0.3.6",72- "method-override": "2.3.10",73- "mocha": "3.5.3",74- "morgan": "1.9.0",75- "multiparty": "4.1.3",72+ "marked": "0.5.1",73+ "method-override": "3.0.0",74+ "mocha": "5.2.0",75+ "morgan": "1.9.1",76+ "multiparty": "4.2.1",77 "pbkdf2-password": "1.2.1",77- "should": "13.1.0",78- "supertest": "1.2.0",79- "connect-redis": "~2.4.1",78+ "should": "13.2.3",79+ "supertest": "3.3.0",80 "vhost": "~3.0.2"81 },82 "engines": {83 "node": ">= 0.10.0"6 unmodified lines90 "lib/"91 ],92 "scripts": {93 "lint": "eslint .",94- "test": "mocha --require test/support/env --reporter spec --bail --check-leaks --no-exit test/ test/acceptance/",95- "test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --require test/support/env --reporter spec --check-leaks --no-exit test/ test/acceptance/",96- "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --require test/support/env --reporter dot --check-leaks --no-exit test/ test/acceptance/",97- "test-tap": "mocha --require test/support/env --reporter tap --check-leaks --no-exit test/ test/acceptance/"94+ "test": "mocha --require test/support/env --reporter spec --bail --check-leaks test/ test/acceptance/",95+ "test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --require test/support/env --reporter spec --check-leaks test/ test/acceptance/",96+ "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --require test/support/env --reporter dot --check-leaks test/ test/acceptance/",97+ "test-tap": "mocha --require test/support/env --reporter tap --check-leaks test/ test/acceptance/"98 }99 }modified:Readme.md+2 added-2 removed
125 unmodified lines126 ```127 128 ## People129 130-The original author of Express is [TJ Holowaychuk](https://github.com/tj) [![TJ's Gratipay][gratipay-image-visionmedia]][gratipay-url-visionmedia]130+The original author of Express is [TJ Holowaychuk](https://github.com/tj)131 132-The current lead maintainer is [Douglas Christopher Wilson](https://github.com/dougwilson) [![Doug's Gratipay][gratipay-image-dougwilson]][gratipay-url-dougwilson]132+The current lead maintainer is [Douglas Christopher Wilson](https://github.com/dougwilson)133 134 [List of all contributors](https://github.com/expressjs/express/graphs/contributors)135 136 ## License17 unmodified lines