Skip to content
Myr

Merge tag '4.14.1'

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 ab1c9e9, 0437c51 · Browse files · 15 files+74 added−76 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

15 files+74 added−76 removed

  • tests:+26 added−6 removed
  • other:+48 added−70 removed

15 files+74 added−76 removed

deleted:examples/big-view/index.js-31 removed
deleted:examples/big-view/pets.jade-12 removed
1style.2 body {3 padding: 50px;4 font: 16px "Helvetica Neue", Helvetica;5 }67table8 for pet in pets9 tr10 td= pet.name11 td= pet.age12 td= pet.species
modified:examples/mvc/lib/boot.js+1 added
modified:examples/static-files/index.js+4 added-3 removed
modified:test/app.options.js+1 added-1 removed
70 unmodified lines
71 .expect('Allow', 'GET, HEAD')72 .expect(200, 'GET, HEAD', done);73 })7475 describe('when error occurs in respone handler', function () {75 describe('when error occurs in response handler', function () {76 it('should pass error to callback', function (done) {77 var app = express();78 var router = express.Router();79
36 unmodified lines
modified:test/app.router.js+1 added-1 removed
755 unmodified lines
756 .get('/users/tj/edit')757 .expect('editing tj (old)', cb);758 })759760 it('should work inside literal paranthesis', function(done){760 it('should work inside literal parenthesis', function(done){761 var app = express();762763 app.get('/:user\\(:op\\)', function(req, res){764 res.end(req.params.op + 'ing ' + req.params.user);
270 unmodified lines
modified:test/req.acceptsEncodings.js+2 added-2 removed
modified:test/req.acceptsLanguages.js+2 added-2 removed
2 unmodified lines
3 , request = require('supertest');45describe('req', function(){6 describe('.acceptsLanguages', function(){7 it('should be true if language accpeted', function(done){7 it('should be true if language accepted', function(done){8 var app = express();910 app.use(function(req, res){11 req.acceptsLanguages('en-us').should.be.ok;
6 unmodified lines
18 .set('Accept-Language', 'en;q=.5, en-us')19 .expect(200, done);20 })2122 it('should be false if language not accpeted', function(done){22 it('should be false if language not accepted', function(done){23 var app = express();2425 app.use(function(req, res){26 req.acceptsLanguages('es').should.not.be.ok;
27 unmodified lines
modified:test/res.sendFile.js+20 added
114 unmodified lines
115 var test = request(app).get('/');116 test.expect(200, cb);117 })118119 describe('with "cacheControl" option', function () {120 it('should enable cacheControl by default', function (done) {121 var app = createApp(path.resolve(__dirname, 'fixtures/name.txt'))122123 request(app)124 .get('/')125 .expect('Cache-Control', 'public, max-age=0')126 .expect(200, done)127 })128129 it('should accept cacheControl option', function (done) {130 var app = createApp(path.resolve(__dirname, 'fixtures/name.txt'), { cacheControl: false })131132 request(app)133 .get('/')134 .expect(utils.shouldNotHaveHeader('Cache-Control'))135 .expect(200, done)136 })137 })138139 describe('with "dotfiles" option', function () {140 it('should not serve dotfiles by default', function (done) {141 var app = createApp(path.resolve(__dirname, 'fixtures/.name'));142
184 unmodified lines
modified:.travis.yml+3 added-3 removed
3 unmodified lines
4 - "0.12"5 - "1.8"6 - "2.5"7 - "3.3"8 - "4.4"9 - "5.11"10 - "6.2"8 - "4.7"9 - "5.12"10 - "6.9"11sudo: false12cache:13 directories:14 - node_modules
9 unmodified lines
modified:appveyor.yml+3 added-3 removed
3 unmodified lines
4 - nodejs_version: "0.12"5 - nodejs_version: "1.8"6 - nodejs_version: "2.5"7 - nodejs_version: "3.3"8 - nodejs_version: "4.4"9 - nodejs_version: "5.11"10 - nodejs_version: "6.2"8 - nodejs_version: "4.7"9 - nodejs_version: "5.12"10 - nodejs_version: "6.9"11cache:12 - node_modules13install:14 - ps: Install-Product node $env:nodejs_version
10 unmodified lines
modified:Contributing.md+1 added-1 removed
29 unmodified lines
3031Committers may direct you to another repository, ask for additional clarifications, and32add appropriate metadata before the issue is addressed.3334Please be courteous, respectful, and every participant is expected to follow the 34Please be courteous and respectful. Every participant is expected to follow the35project's Code of Conduct.3637# Contributions38
54 unmodified lines
modified:History.md+21 added-1 removed
15.x2===34This incorporates all changes after 4.13.1 up to 4.14.0.4This incorporates all changes after 4.13.1 up to 4.14.1.56 * remove:7 - `res.json(status, obj)` signature - use `res.status(status).json(obj)`8 - `res.jsonp(status, obj)` signature - use `res.status(status).jsonp(obj)`
35 unmodified lines
44 - `req.query` is now a getter instead of a plain property45 * add:46 - `app.router` is a reference to the base router47484.14.1 / 2017-01-2849===================5051 * deps: content-disposition@0.5.252 * deps: finalhandler@0.5.153 - Fix exception when `err.headers` is not an object54 - deps: statuses@~1.3.155 - perf: hoist regular expressions56 - perf: remove duplicate validation path57 * deps: proxy-addr@~1.1.358 - deps: ipaddr.js@1.2.059 * deps: send@0.14.260 - deps: http-errors@~1.5.161 - deps: ms@0.7.262 - deps: statuses@~1.3.163 * deps: serve-static@~1.11.264 - deps: send@0.14.265 * deps: type-is@~1.6.1466 - deps: mime-types@~2.1.1367684.14.0 / 2016-06-1669===================7071 * Add `acceptRanges` option to `res.sendFile`/`res.sendfile`
3138 unmodified lines
modified:package.json+15 added-15 removed
27 unmodified lines
28 ],29 "dependencies": {30 "accepts": "~1.3.3",31 "array-flatten": "2.0.0",32 "content-disposition": "0.5.1",32 "content-disposition": "0.5.2",33 "content-type": "~1.0.2",34 "cookie": "0.3.1",35 "cookie-signature": "1.0.6",36 "debug": "~2.2.0",37 "depd": "~1.1.0",38 "encodeurl": "~1.0.1",39 "escape-html": "~1.0.3",40 "etag": "~1.7.0",41 "finalhandler": "0.5.0",41 "finalhandler": "0.5.1",42 "fresh": "0.3.0",43 "merge-descriptors": "1.0.1",44 "methods": "~1.1.2",45 "on-finished": "~2.3.0",46 "parseurl": "~1.3.1",47 "path-is-absolute": "1.0.0",48 "path-to-regexp": "0.1.7",49 "proxy-addr": "~1.1.2",49 "proxy-addr": "~1.1.3",50 "qs": "6.2.0",51 "range-parser": "~1.2.0",52 "router": "~1.1.3",53 "send": "0.14.1",54 "serve-static": "~1.11.1",55 "type-is": "~1.6.13",53 "send": "0.14.2",54 "serve-static": "~1.11.2",55 "type-is": "~1.6.14",56 "utils-merge": "1.0.0",57 "vary": "~1.1.0"58 },59 "devDependencies": {60 "after": "0.8.1",61 "body-parser": "~1.15.1",60 "after": "0.8.2",61 "body-parser": "1.16.0",62 "cookie-parser": "~1.4.3",63 "ejs": "2.4.2",64 "istanbul": "0.4.3",65 "marked": "0.3.5",63 "ejs": "2.5.5",64 "express-session": "1.15.0",65 "istanbul": "0.4.5",66 "marked": "0.3.6",67 "method-override": "~2.3.6",67 "mocha": "2.5.3",68 "mocha": "3.2.0",69 "morgan": "~1.7.0",70 "multiparty": "4.1.3",69 "should": "9.0.2",71 "should": "11.2.0",72 "supertest": "1.2.0",73 "connect-redis": "~2.4.1",74 "cookie-session": "~1.2.0",73 "express-session": "~1.13.0",75 "jade": "~1.11.0",75 "multiparty": "~4.1.2",76 "vhost": "~3.0.2"77 },78 "engines": {79 "node": ">= 0.10.0"
15 unmodified lines
modified:Security.md-1 removed
3 unmodified lines
4project.56 * [Reporting a Bug](#reporting-a-bug)7 * [Disclosure Policy](#disclosure-policy)8 * [Receiving Security Updates](#receiving-security-updates)8 * [Comments on this Policy](#comments-on-this-policy)910## Reporting a Bug11
32 unmodified lines