Skip to content
Myr

Merge tag '4.15.5'

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 71395f5, ea3d605 · Browse files · 6 files+44 added−21 removed
This commit

State

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

Diff stats

6 files+44 added−21 removed

  • tests:+11 added−10 removed
  • other:+33 added−11 removed

6 files+44 added−21 removed

modified:test/support/tmpl.js+1 added
modified:test/app.render.js+4 added-6 removed
95 unmodified lines
96 var app = createApp();9798 app.set('views', path.join(__dirname, 'fixtures'))99100 app.render('user.tmpl', function (err, str) {101 // nextTick to prevent cyclic102 process.nextTick(function(){103 err.message.should.match(/Cannot read property '[^']+' of undefined/);104 done();105 });100 app.render('user.tmpl', function (err) {101 assert.ok(err)102 assert.equal(err.name, 'RenderError')103 done()104 })105 })106 })107
266 unmodified lines
modified:test/res.render.js+6 added-4 removed
103 unmodified lines
104 res.render('user.tmpl');105 });106107 app.use(function(err, req, res, next){108 res.end(err.message);108 res.status(500).send('got error: ' + err.name)109 });110111 request(app)112 .get('/')113 .expect(/Cannot read property '[^']+' of undefined/, done);113 .expect(500, 'got error: RenderError', done)114 })115 })116117 describe('when "view engine" is given', function(){
210 unmodified lines
328 app.set('views', path.join(__dirname, 'fixtures'))329330 app.use(function(req, res){331 res.render('user.tmpl', function (err) {332 res.end(err.message);332 if (err) {333 res.status(500).send('got error: ' + err.name)334 }335 });336 });337338 request(app)339 .get('/')338 .expect(/Cannot read property '[^']+' of undefined/, done);340 .expect(500, 'got error: RenderError', done)341 })342 })343 })344})
8 unmodified lines
modified:.travis.yml+1 added-1 removed
modified:History.md+23 added-1 removed
15.x2===34This incorporates all changes after 4.15.2 up to 4.15.4.4This incorporates all changes after 4.15.2 up to 4.15.5.56 * remove:7 - `res.redirect(url, status)` signature - use `res.redirect(status, url)`8 - `res.send(status, body)` signature - use `res.status(status).send(body)`
77 unmodified lines
86 - `req.query` is now a getter instead of a plain property87 * add:88 - `app.router` is a reference to the base router89904.15.5 / 2017-09-2491===================9293 * deps: debug@2.6.994 * deps: finalhandler@~1.0.695 - deps: debug@2.6.996 - deps: parseurl@~1.3.297 * deps: fresh@0.5.298 - Fix handling of modified headers with invalid dates99 - perf: improve ETag match loop100 - perf: improve `If-None-Match` token parsing101 * deps: send@0.15.6102 - Fix handling of modified headers with invalid dates103 - deps: debug@2.6.9104 - deps: etag@~1.8.1105 - deps: fresh@0.5.2106 - perf: improve `If-Match` token parsing107 * deps: serve-static@1.12.6108 - deps: parseurl@~1.3.2109 - deps: send@0.15.6110 - perf: improve slash collapsing1111124.15.4 / 2017-08-06113===================114115 * deps: debug@2.6.8
3285 unmodified lines
modified:package.json+9 added-9 removed