Skip to content

5.1.0

Compare
Choose a tag to compare
@timneutkens timneutkens released this 26 Mar 17:41

We are happy to introduce Next.js 5.1, which features support for environment configuration, phases, source maps, and new Next.js plugins.

Major performance improvements are introduced: resolving pages is 102x faster, and error pages are loaded more efficiently.

Read blog post

Minor Changes

  • Make sourcemap paths relative in production: 14a1692
  • Allow etags to be disabled with config option: #3915
  • Enable source maps in webpack chunking + bundling process: #3793
  • Implement new next/config keys: #3909
  • Allow next.config.js to export a function: #3867
  • Make pageExtensions configurable: #3787
  • Implement proper error handling: #3749
  • Make page require faster: #3776
  • Get config from one location: #3801

Patches

  • Unlink only pages bundle in dev env: #4015
  • Add a set of test cases for error recovery in the dev mode: #3895
  • Add a test case on error recovery in the module scope.: #3892
  • Add a test for reloading the page on page script error with prefetch: #3811
  • Add test case for reloading the page on page script error: #3798
  • Move security related test cases into a its own file.: 33f8f28
  • Removes the unused renderScript function: 77c10b2
  • Use indexOf instead of startsWith: #3758
  • Remove the default HMR error overlay: #4020
  • Show only Spectrum link: b02e584
  • Presets should be array: #3996
  • Upgrade styled-jsx: 96dd757
  • Expose manifest.js.map during development: #3975
  • Only show 404 when the page does not exist: #3976
  • Expose main.js.map: #3969
  • Upgrade react-hot-loader: #3961
  • Remove unused dependencies: #3962
  • Enable conditionals and evaluate uglify: 521b722
  • Add message to ask questions on Spectrum: 5e4dc75
  • Change wording of issue template: bd973ab
  • Make important title clearer, search for issues that are closed too: 656434d
  • Add Spectrum badge: #3927
  • Set default for serverRuntimeConfig: #3938
  • Add EventSource polyfill to hot-middleware-client: #3945
  • Upgrade @zeit/check-updates: 503f4a3
  • Downgrade webpack-hot-middleware to 2.19.1: #3888
  • Return true instead of void: #3869
  • Fix SSR error handling in the global scope: #3877
  • Do feature detection instead of disabling iframes.: #3880
  • Fixes overlay showing randomly: #3885
  • Read compiler.context instead of this.context: #3839
  • [SSR] Use relative paths in dynamic import output code: #3844
  • Fix w3c warnings: #3572
  • Remove special error script handling: #3849
  • disabling poweredByHeader (#3807): #3716
  • Allow page extensions in any order: #3827
  • Upgrade styled-jsx: #3840
  • Load pathname correctly: ab43e9e
  • Fix: add missing dependency to package.json: #3753
  • Include next/dist/pages instead of exclude: #3704
  • Fix typo in withRouter: #3723
  • Serve static /_next/static/* relative from dir directory: #3722
  • Copy static assets from .next folder when exporting: #3719

Documentation

  • Update readme.md: #3957
  • Add multi-zones docs.: #3688
  • Add note about _document being only server side: e1a0f18
  • Add alt attributes to examples in readme.md: #4053
  • Fix typo in documentation.: #3907
  • prefetch is a production only feature: #3851
  • Fix links for next css: #3820
  • Add example to #recipes: #3789
  • Document pageExtensions: 340b49c

Examples

  • Examples: use npx and yarn create to run create-next-app on examples: #4002
  • Update with-react-i18next sample with latest dependencies: #3835
  • Update tsconfig.json in with-typescript example: #3837
  • Display errors when using glamor/server in a custom document: #3804
  • Extendable with-redux example: #3947
  • Fix null pointer exception in with-react-18next: #3944
  • FIX #3757 update Fela example for Next 5: #3949
  • With-firebase-hosting improvements & fixes: #3886
  • Use separate tsconfig for server in custom-server-typescript example: #3963
  • Update debug flag in with-react-i18next example: #3964
  • Split exports in with-react-18next example to avoid ambiguity: #3959
  • Remove error handling from custom-server-koa's server example: #3982
  • Fix mistake in docs: #4013
  • With-apollo: Improve lib/withData: #3973
  • Fix a/b typo in custom-server-typescript routing: #4003
  • Add a nerv example.: #3573
  • With emotion example - hoist styles out of the index page component: #3821
  • Update readme (do not mention specific version): #4038
  • Migrated from apollo-client-preset to apollo-boost: #4047
  • Improved with-ant-design example: #4034
  • Fixes install command in with-absolute-imports example.: #4049
  • Fix loading and rendering GraphQL data on the server in the with-apollo-and-redux example: #4054
  • Small grammar mistake: #3930
  • Update custom-server-typescript example: #3936
  • Update with-react-i18next example: #3932
  • Custom-server-actionhero: #3905
  • Add custom-server-typescript example (see #3694): #3838
  • Revamp example to use real world hocs: #3423
  • with-apollo-and-redux-saga: #3488
  • Changed code to use the new css & asset imports instead of loading the whole lib from CDN: #3884
  • Fix #3700 Added examples for next-sass: #3729
  • Examples: Add an example for the next-css plugin: #3739
  • Add example of next-plugin composition: #3800
  • Change mergeMap -> map in redux-observable example: #3794
  • Upgrade Firebase and Firebase-Admin: #3786
  • With redux example clock interval fix: #3756
  • Fix with-redux-saga server rendered clock, fixes #3760: #3762
  • Use null instead of empty string for coerced className: #3771
  • Fix setInterval usage in mobx examples to work in firefox: #3769
  • Update README.md: #3784
  • Remove redux comment: #3792
  • Fix react-native-web example typo: #3802
  • Create example using custom charset: #3697
  • Fix webpack-bundle-analyzer example to work with Next 5: #3692
  • ssr-caching Only cache 200 status requests: #3708
  • Example/with-typescript: #3698

Credits

Huge thanks to @malixsys, @arunoda, @tkh44, @leMaik, @igor-toporet, @prateekrastogi, @notatestuser, @gsimone, @moondef, @shalzz, @ooHmartY, @wcamarao, @jthegedus, @jeffreyyoung, @tomaswitek, @egorovli, @PetrSnobelt, @dastoori, @sarovin, @alexindigo, @ptomasroos, @ragingwind, @kachkaev, @mxstbr, @fabioespinosa, @herrstucki, @omaksi, @rofrischmann, @bryanrsmith, @evantahler, @retrixe, @brikou, @JeromeFitz, @r0b-, @thomhos, @JuanCaicedo, @xfumihiro, @Albert-Gao, @AriLFrankel, @djskinner, @jayphelps, @abelta, @jamuhl, @zkochan, @shogunsea, @UltCombo, @brentmclark, @vuldin, @klyburke, @dcalhoun, @goldensunliu, @juancampa, @tusbar, @oliviertassinari, @deptno, @bjrnt, @martyla and @ScottPolhemus for helping!