Skip to content
Myr

remove deprecated express.createServer() method

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

This has been warning about deprecation for a long time. Use `express()` to instantiate an express app.

authored by Roman Shtylman · committed by Roman Shtylman · parent b77ffe0 · Browse files · 2 files+1 added−15 removed
This commit

State

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

Diff stats

2 files+1 added−15 removed

  • other:+1 added−15 removed

2 files+1 added−15 removed

modified:lib/express.js-15 removed
modified:History.md+1 added
3 unmodified lines
4 * remove:5 - express(1) - moved to [express-generator](https://github.com/expressjs/generator)6 - `req.accepted*` - use `req.accepts*()` instead7 - `app.configure` - use logic in your own app code8 - `express.createServer()` - it has been deprecated for a long time. Use `express()`9 * change:10 - `req.accepts*` -> `req.accepts*s` - i.e. `req.acceptsEncoding` -> `req.acceptsEncodings`11 - `req.params` is now an object instead of an array12 - `json spaces` no longer enabled by default in development
1256 unmodified lines