APPENDIX B

image

Migrating Express.js 3.x to 4.x: Middleware, Route, and Other Changes

Express.js 4 (http://expressjs.com) is the latest (as of May 2014), major version of the most popular, mature, and robust Node.js framework for web apps, services, and APIs. There are some breaking changes in the transition from 3.x to 4.x, so this appendix serves as a brief migration guide, with coverage of the following:

  • Introducing unbundled middleware in Express.js 4
  • Removing deprecated methods from Express.js 4 apps
  • Other Express.js 4 changes
  • Exploring the new Express.js 4 route instance and how to chain it
  • Further Express.js 4 migration reading links

Even ...

Get Pro Express.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.