Skip to content

3.0.0

Compare
Choose a tag to compare
@schamberg97 schamberg97 released this 01 Mar 16:42
· 77 commits to master since this release
c97ffdf

Breaking changes from 2.x to 3.x

  • For general performance reasons, special modes have been removed from this major version (except route-wide no etag option)
  • Fyrejet no longer implements any req properties from Express. The properties are now reimplemented as methods. So, for instance, to get protocol, you should use req.protocol() instead of req.protocol. While this breaks compatibility, this helps to raise performance.
    • req.method and req.url are not affected since they are native to node.js's http module
  • res.send ability to set HTTP status code is removed for performance reasons (deprecated functionality from Express).
  • req.host() is removed, since req.hostname() is available.
  • req.acceptsEncoding, req.acceptsCharset and req.acceptsLanguage are removed in favour of req.acceptsEncodings, req.acceptsCharsets and req.acceptsLanguages.