Skip to releases
Next.js Releases
All releases
Stablev4.0 line

4.0.0

Next.js 4.0 Stable

Published ·

View on GitHub

Next.js 4 brings faster SSR performance and better support for dynamic styles.

Major Changes

  • React 16 support: #2996 (faster SSR and React Fiber) Due to changes in React 16, React 15 support was dropped.
  • Styled JSX 2.0 support (dynamic styles, production optimizations and many improvements)

Minor Changes

  • Treat navigation to empty hash as hash navigate: #2971
  • Pass conf to export function: #2962
  • Keep some buffered pages, that won't be disposed. Fix #1939: #2592
  • Add webpack-bundle-size-analyzer example: #3013
  • Add doc to onDemandEntries configuration: #3030
  • Update with-firebase-hosting.: #3032
  • Allow use of filenames in exportPathMap: #2973
  • Configurable opts for babel-preset-env + babel-plugin-transform-runtime: #2991

Patches

  • Fix typo in README: #3038
  • Update the hash-statics example to support sub-dirs: #3015
  • Example: Improve ReasonML example: #3021
  • Added Fastify example: #3034
  • More elegant application of antd: #2840
  • Upgrade dependencies: #2998
  • Corrected dependencies for preact and inferno: #2583
  • Fix coding style of snippets: #2806
  • Tie page visibility api to on demand pinger: #2818
  • Only use strict dependencies: #2929
  • Fix error messages in server/export.js: #2933
  • Expose buildId to custom webpack configs: #3001
  • Added PropType: #3003
  • Add "asPath" information to url objects: #2988

Credits

Huge thanks to @giuseppeg, @timneutkens, @kjs3, @kpdecker, @starriv, @Tom910, @sergiodxa, @brikou, @davidnguyen179, @micwehrle, @marciovsena, @Shalzz, @srigi, @estrada9166, @christianalfoni, @mineiro, @marbemac, @slaskis, @gwn, @ryanponce, @toolmantim, @nrako, @idkjs, @vorillaz, @craig-mulligan, @AugustinLF, @jthegedus, @jesseditson and @tmcw