Skip to releases
Next.js Releases
All releases
Canaryv4.2 line

4.2.0-canary.1

Published ·

View on GitHub

Minor Changes

  • Combine source maps: #3178
  • Expose mechanism to monitor render events: #2655
  • Support de-deduping head tags by setting key: #3170
  • Use fs.realpath to get actual project directory: #3243
  • Allow overriding Content-Type: #3242
  • Make pages glob pattern overridable: #3195
  • Use uglify-es for minification: #3150
  • Make sure NODE_ENV is production for react-dom to optimize: 152c2c2

Patches

  • Add note about NODE_ENV being set automatically: 72827d2
  • Output webpack build stats as webpack-stats.json: #2828
  • Upgrade styled-jsx to version 2.1.2: #3231
  • Messages are availble within initialProps: #3252
  • Set Cache-Control max-age to a year: #3247
  • Document router events the way they are used: #3268
  • Update withData.js - support withRouter HOC: #3286

Examples

  • With-apollo example using Apollo 2: #3180
  • Change _error.js example to use err prop: #3197
  • Create example of activeClassLink using withRouter: #3188
  • Added Sentry.io example: #3215
  • Dropped isomorphic-fetch in examples in favor of isomorphic-unfetch.: #3230
  • Only-client-render-external-dependencies example: #3229
  • Add kea example: #3262
  • Example with-redux-observable: #3272
  • Update the custom-server-express with an req.params example: #3258
  • Update README.md for with-shallow-routing example: #3285

Credits

Huge thanks to @kpdecker, @liweinan0423, @sdgluck, @emattias, @jesstelford, @sebas5384, @remy, @bukinoshita, @lquixada, @lardissone, @J-Gallo, @ptomasroos, @Ellmen, @yuyaohshimo, @viniciusCamargo, @Tomekmularczyk, @tronghiep92 and @divyenduz for helping!