Skip to content
Myr

Remove app.del

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 · parent 509ebb1 · Browse files · 6 files+5 added−26 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+5 added−26 removed

  • tests:+4 added−21 removed
  • other:+1 added−5 removed

6 files+5 added−26 removed

modified:lib/application.js-5 removed
10 unmodified lines
11var http = require('http');12var compileETag = require('./utils').compileETag;13var compileQueryParser = require('./utils').compileQueryParser;14var compileTrust = require('./utils').compileTrust;15var deprecate = require('depd')('express');15var merge = require('utils-merge');16var resolve = require('path').resolve;17var slice = Array.prototype.slice;18
423 unmodified lines
442443 return this;444};445447// del -> delete alias448449app.del = deprecate.function(app.delete, 'app.del: Use app.delete instead');450446/**447 * Render the given view `name` name with `options`448 * and a callback accepting an error and the449 * rendered template string.
108 unmodified lines
deleted:test/app.del.js-17 removed
modified:test/app.listen.js+2 added-2 removed
modified:test/app.options.js+1 added-1 removed
modified:test/app.router.js+1 added-1 removed
32 unmodified lines
33 .expect(200, '1', done);34 })3536 describe('methods', function(){37 methods.concat('del').forEach(function(method){37 methods.forEach(function(method){38 if (method === 'connect') return;3940 it('should include ' + method.toUpperCase(), function(done){41 var app = express();
904 unmodified lines
modified:History.md+1 added
15.x2===34 * remove:5 - `app.del` - use `app.delete`6 - `res.json(obj, status)` signature - use `res.json(status, obj)`7 - `res.jsonp(obj, status)` signature - use `res.jsonp(status, obj)`8 - `res.send(body, status)` signature - use `res.send(status, body)`9 - `express.query` middleware
2456 unmodified lines