Commit graph

705 commits

Author SHA1 Message Date
Tim Neutkens
14a7264c27 6.0.4-canary.3 2018-05-31 14:26:11 +02:00
Tim Neutkens
86d01706a6
Remove react-hot-loader (#4500)
Fixes #4494
2018-05-31 11:47:29 +02:00
Tim Neutkens
0f9ea55023 6.0.4-canary.2 2018-05-29 19:42:15 +02:00
Tim Neutkens
1b63a14136 6.0.4-canary.1 2018-05-25 15:35:04 +02:00
Tim Neutkens
7eabccb5f0 6.0.4-canary.0 2018-05-23 21:11:24 +02:00
Tim Neutkens
8158945b85 Merge branch 'master' into canary 2018-05-23 21:08:56 +02:00
Logan Smyth
2495316235 Use custom Babel loader to avoid using separate Babel copies for loader and loader options (#4417)
This resolves the

> .value is not a valid Plugin property

error showing up for people in https://github.com/zeit/next.js/issues/4227

cc @timneutkens
2018-05-23 20:26:57 +02:00
yhirano55
f6880954c1 Improve files list order in package.json (#4399)
* This is minor refactoring.
* Apply alphabetical order to files list.
2018-05-16 23:56:21 +02:00
Tim Neutkens
73a55d7a92 6.0.3 2018-05-16 21:05:58 +02:00
Tim Neutkens
4b0f10ba93 6.0.3-canary.1 2018-05-16 10:09:34 +02:00
Tim Neutkens
3a6fee2a8a 6.0.3-canary.0 2018-05-16 00:40:36 +02:00
Tim Neutkens
b0bbf72347 6.0.2 2018-05-13 20:28:21 +02:00
Tim Neutkens
355b1ad989 6.0.2-canary.0 2018-05-12 20:22:55 +02:00
Tim Neutkens
837c6ed23a 6.0.1 2018-05-11 15:10:49 +02:00
Tim Neutkens
8588e8d812 6.0.1-canary.2 2018-05-09 11:25:02 +02:00
Tim Neutkens
1dda50cbc5
Upgrade react-hot-loader (#4317) 2018-05-09 11:23:53 +02:00
Tim Neutkens
91c21805f2 6.0.1-canary.1 2018-05-06 18:40:21 +02:00
Tim Neutkens
aaa15ebddd
Add source-map dependency (#4281) 2018-05-06 10:56:25 +02:00
Tim Neutkens
e21ccad33a Revert "Add source-map module to dependencies"
This reverts commit b970e25e6f.
2018-05-06 07:02:38 +02:00
Tim Neutkens
b970e25e6f Add source-map module to dependencies
Fixes #4268
2018-05-05 17:43:22 +02:00
Tim Neutkens
8ac67a00db 6.0.1-canary.0 2018-05-05 14:55:37 +02:00
Tim Neutkens
22005080bc
Upgrade react-hot-loader (#4277)
Fixes zeit/styled-jsx#425
Fixes #4246
Fixes #4273
2018-05-05 05:34:28 -07:00
Tim Neutkens
3685c30fb4 Merge branch 'master' into canary 2018-05-05 14:23:05 +02:00
Tim Neutkens
2435798479
Upgrade update-check (#4247) 2018-05-01 14:43:20 -07:00
Tim Neutkens
7e3d464912 6.0.0 2018-04-29 12:05:40 -07:00
Tim Neutkens
4d9eb200d9 6.0.0-canary.7 2018-04-26 11:27:11 -07:00
Tim Neutkens
f48b67d535 6.0.0-canary.6 2018-04-23 13:28:36 -07:00
Tim Neutkens
59ff251bca 6.0.0-canary.5 2018-04-22 16:39:34 -07:00
Tim Neutkens
bc03c59f57
Upgrade react hot loader (#4171)
* Upgrade react hot loader

* Upgrade to 4.1.1
2018-04-22 16:11:17 -07:00
Tim Neutkens
f373d25c0d
Replaced update checker (#4192)
* Use update-check

* Check for tty
2018-04-22 15:43:24 -07:00
Tim Neutkens
65a9a63af1 6.0.0-canary.4 2018-04-18 21:32:50 +02:00
Tim Neutkens
467ec85572 Merge branch 'canary' of github.com:zeit/next.js into canary 2018-04-18 21:32:01 +02:00
Tim Neutkens
68626c5147 Improved stacktraces (minor) (#4156)
* Handle production errors correctly

* Improved source map support

* Make react-hot-loader hold state again

* Remove console.log

* Load modules on demand

* Catch errors in rewriteErrorTrace

* Update comment

* Update comment

* Remove source-map-support

* Load modules in next-dev

* Make sure error logged has sourcemaps too

* Add tests for production runtime errors

* Add tests for development runtime errors. Fix issue with client side errors in development

* Move functionality back to renderError now that error handling is consistent

* Rename to applySourcemaps
2018-04-18 21:48:06 +05:30
Edheltur
925d79ef33 react-hot-loader: 4.0.0 -> 4.0.1 (#4167)
# Conflicts:
#	yarn.lock
2018-04-18 14:03:40 +02:00
Tim Neutkens
eca8e8f64b
Expose app.js (#4129)
* Expose pages/_app.js

* Add tests for _app and _document

* Uncomment deprecation warnings

* Add documentation for _app, improve documentation of _document

* Update docs / test for _document

* Add _document to client compiler in development

* Add missing app.js to comment

* Only warn once

* Add url-deprecated error page

* Combine tests

* Yse same message for all methods of ‘props.url’

* Update docs around _app

* Update documentation

* Quotes

* Update table of contents
2018-04-12 10:33:22 +02:00
Tim Neutkens
15dde33794
Add build manifest (#4119)
* Add build manifest

* Split out css since they don’t have exact name

* Remove pages map

* Fix locations test

* Re-run tests

* Get consistent open ports

* Fix static tests

* Add comment about Cache-Control header
2018-04-12 09:47:42 +02:00
Olivier Tassinari
cb566bd6f0 Redo #4090 (#4104) 2018-04-03 22:08:04 +02:00
Tim Neutkens
746a6c083f 6.0.0-canary.3 2018-04-03 09:55:12 +02:00
Tim Neutkens
af2fa8ee57 Bring back 6.0.0-canary.2 2018-04-03 09:50:03 +02:00
Tim Neutkens
09989f56ef 5.0.1-canary.18 2018-04-03 09:39:35 +02:00
Tim Neutkens
2d8c19a450
Upgrade Babel 6 to Babel 7 (major) (#4050)
Upgrade Babel 6 to Babel 7 (major)
2018-04-03 09:34:07 +02:00
Tim Neutkens
2fa49d70b7 6.0.0-canary.2 2018-04-01 00:06:18 +02:00
Olivier Tassinari
bd50a7c74a Better support React 16.3.0 (#4090)
* Better support React 16.3.0

https://github.com/mridgway/hoist-non-react-statics/pull/43

* Lock version
2018-03-31 15:11:34 +02:00
Tim Neutkens
a48dc31e80 Release 6.0.0-canary.1 2018-03-31 14:58:10 +02:00
Samatar
56998a6193 Remove mz-fs and glob-promise (#4026)
* Remove mz and add promisify util

* Remove glob-promise and promisify glob

* Use access instead of exists

* Use promisify for access
2018-03-30 20:29:42 +05:30
Tim Neutkens
b6b88e5f81 Merge branch 'canary' of github.com:zeit/next.js into canary 2018-03-30 16:09:40 +02:00
Tim Neutkens
e90f89633c
Add flow, pages-manifest.json, defaultPathMap for export (minor) (#4066)
* Initial implementation of next export without exportPathMap

* Shorter message

* Set up flow

* Create pages manifest

* Use pagesManifest for next export

* Fix tests

* Document defaultPathMap

* Replacing the path is no longer needed

* Use posix normalize for consistent behaviour

* Remove second instance of examples

* Add comment about what pages-manifest does

* Make windows path a route
2018-03-30 15:08:09 +02:00
Tim Neutkens
ebf0c47c25
Upgrade standard.js (#4064)
* Upgrade standard.js

# Conflicts:
#	yarn.lock

* Upgrade babel-eslint
2018-03-27 20:11:03 +02:00
Tim Neutkens
e3a9c95023 5.1.0 2018-03-26 18:45:16 +02:00
Tim Neutkens
930be2813b 5.0.1-canary.17 2018-03-21 12:17:47 +01:00
Tim Neutkens
b52ae3bb23 5.0.1-canary.16 2018-03-16 12:00:42 +01:00
Tim Neutkens
c5bd36e373 5.0.1-canary.15 2018-03-12 18:51:28 +01:00
Tim Neutkens
96dd757f00 Upgrade styled-jsx 2018-03-12 18:50:23 +01:00
Tim Neutkens
6e31583d01 5.0.1-canary.14 2018-03-09 17:14:55 +01:00
Tim Neutkens
2abcfec110 5.0.1-canary.13 2018-03-08 11:49:54 +01:00
Tim Neutkens
ae07cbae09 5.0.1-canary.12 2018-03-08 09:53:42 +01:00
Tim Neutkens
b0cdc1368e
Remove unused dependencies (#3962) 2018-03-07 09:31:24 +01:00
Tim Neutkens
5bb9fa67b1
Upgrade react-hot-loader (#3961) 2018-03-07 09:10:41 +01:00
Tim Neutkens
dac6e9c17d 5.0.1-canary.11 2018-03-06 21:39:36 +01:00
Tim Neutkens
503f4a3b24 Upgrade @zeit/check-updates 2018-03-06 21:28:10 +01:00
Jeremy Stucki
edfd44c3ca Add EventSource polyfill to hot-middleware-client (#3945)
* Move security related test cases into a its own file.

* Removes the unused renderScript function

* Add a nerv example. (#3573)

* Add a nerv example.

* Fix for indentation/style

* Fix for name

* Release 5.0.0

* Add multi-zones docs. (#3688)

* with emotion example - hoist styles out of the index page component (#3821)

* Use indexOf instead of startsWith (#3758)

* Use indexOf instead of startsWith

This fixes an IE11 regression, see #3755

* Lint the code

* Add event-source-polyfill

Fixes an issue where the dev server crashes in IE11.
2018-03-06 17:25:03 +05:30
Tomas Roos
76582b8e43 Enable source maps in webpack chunking + bundling process (#3793)
* Removed combine-assets-plugin, since its very broken

* Bundle everything into app.js on production build

* Clean up

* Removed app.js from server routes

* Renamed app.js -> main.js and removed commons from loading

* Remove commons and react CommonChunks

* Removed the commons route

* Killing the entire build-stats hack for app.js

* Removed unused md5-file package
2018-03-06 10:45:29 +01:00
Tim Neutkens
87e0ed562b Release 5.0.1-canary.10 2018-02-28 11:50:38 +01:00
Tim Neutkens
1bcd2e0575 Release 5.0.1-canary.9 2018-02-26 12:10:07 +01:00
Tim Neutkens
1aade36f13
Exposing configuration to the server / client side (minor) (#3882)
* Add next/config

* Set config on server start / client render

* Add documentation for next/config

* Add next/config support for next export

* Fix test

* Use the correct name

* Set default to empty object on the client side

* Add config tests

* Rename config to runtimeConfig
2018-02-26 12:03:27 +01:00
Tim Neutkens
9e39dd2f3c Release 5.0.1-canary.8 2018-02-25 19:16:11 +01:00
Tim Neutkens
faa992bb55
Downgrade webpack-hot-middleware to 2.19.1 (patch) (#3888)
* Fixes overlay showing randomly

* Downgrade webpack-hot-middleware to 2.19.1
2018-02-25 19:05:47 +01:00
Tim Neutkens
5017f91d23 Allow next.config.js to export a function (#3867)
* Allow next.config.js to export a function

* Expose phases to the configuration function

* Use same value as variable name

* Add next/constants

* Add documentation for config function / phases

* Add constants.js to npm bundle
2018-02-23 19:12:06 +05:30
Arunoda Susiripala
5362cbe116 Release 5.0.1-canary.7 2018-02-21 23:24:01 +05:30
Arunoda Susiripala
a32b22bb2d
Remove special error script handling (#3849)
* Remove special error script handling.
As a result of that, we can't detect 500 errors and buildIdMismatch via client side.

* Fix failing test cases.

* Refactor the code base.

* Remove Router.onAppUpdated
2018-02-21 23:11:25 +05:30
Tim Neutkens
695c8836d4
Upgrade react-hot-loader to beta 23 (#3843) 2018-02-19 10:29:10 +01:00
Tim Neutkens
7a28922b63 Release 5.0.1-canary.6 2018-02-18 23:09:07 +01:00
Tim Neutkens
5b061ec793
Upgrade styled-jsx (#3840) 2018-02-18 23:06:58 +01:00
Jerome Fitzgerald
a0798fd9ad [chore] react-hot-loader@4.0.0-beta.22 (patch) (#3808) 2018-02-14 23:58:44 +01:00
Tim Neutkens
6ac25b02dc Release 5.0.1-canary.5 2018-02-14 17:53:14 +01:00
Zoltan Kochan
5daf3830db fix: add missing dependency to package.json (#3753)
webpack-sources is used in code but not declared in package.json

ref https://github.com/pnpm/pnpm/issues/891
2018-02-11 17:39:06 +05:30
Tim Neutkens
b615564c2a Release 5.0.1-canary.4 2018-02-09 21:25:37 +01:00
Tim Neutkens
90db1c2545 Release 5.0.1-canary.3 2018-02-09 21:00:04 +01:00
Tim Neutkens
34670bbd3d Upgrade react-hot-loader (#3733) 2018-02-08 16:05:06 +05:30
Arunoda Susiripala
882efbbac3 Release 5.0.1-canary.2 2018-02-08 14:23:41 +05:30
Tim Neutkens
d7941438dd Release 5.0.1-canary.1 2018-02-07 22:28:19 +01:00
Tim Neutkens
3e1a70a30a
Upgrade styled-jsx (#3725) 2018-02-07 17:08:20 +01:00
Tim Neutkens
f9b52cfcb6 Include next/dist/pages instead of exclude (patch) (#3704)
* Move security related test cases into a its own file.

* Removes the unused renderScript function

* Add a nerv example. (#3573)

* Add a nerv example.

* Fix for indentation/style

* Fix for name

* Release 5.0.0

* Add multi-zones docs. (#3688)

* Include next/dist/pages

* Fix linting
2018-02-06 17:39:41 +05:30
Tim Neutkens
ed122934af Add tests for universal webpack (#3680)
* Add tests for universal webpack

* Move tests to next-plugins

* Remove obsolete files

* Remove removed page

* Remove tests

* Rename test suite
2018-02-05 21:48:31 +05:30
Tim Neutkens
cdbbe928b2 Add update notifier (#3678)
* Add update notifier

* Make update notifier work with custom server
2018-02-05 18:09:32 +05:30
Tim Neutkens
0da17ca4fc Upgrade source-map-support 2018-02-04 06:45:16 +01:00
Tim Neutkens
c01de960f4
Upgrade react-hot-loader (#3665) 2018-02-03 00:14:40 +01:00
Arunoda Susiripala
4c7f6cc76a Set assetPrefix dynamically (#3661)
* Introduce the setAssetPrefix API for dynamic assetPrefix.

* Remove unwanted node_modules dir in a test dir.

* Change test main description.
2018-02-02 15:43:36 +01:00
Arunoda Susiripala
abe6e3ea47 Use a latest version of path-to-regexp for path-match (#3655)
* Use the latest path-to-regexp for path-match.

* Fix the error route resolving.

* Give proper credit to path-match

* Remove an unwanted route.

* Revert "Remove an unwanted route."

This reverts commit 523c1687da8ddd499819e70df81567ec208e5998.

* Add a comment why we need to keep _error.js route.
2018-02-01 19:54:09 +01:00
Tim Neutkens
4305d526c0
Upgrade styled-jsx (#3657) 2018-02-01 17:07:59 +01:00
Arunoda Susiripala
4b143fc232 Make sure dynamic imports works on Windows (#3641)
* Make sure dynamic imports works on Windows

* Fix an issue with the load test firmware.

* Fix symlink creation on Unix
2018-01-31 08:35:10 +01:00
Tim Neutkens
e093441bad Universal Webpack (#3578)
* Speed up next build

* Document webpack config

* Speed up next build

* Remove comment

* Add comment

* Clean up rules

* Add comments

* Run in parallel

* Push plugins seperately

* Create a new chunk for react

* Don’t uglify react since it’s already uglified. Move react to commons in development

* Use the minified version directly

* Re-add globpattern

* Move loaders into a separate variable

* Add comment linking to Dan’s explanation

* Remove dot

* Add universal webpack

* Initial dev support

* Fix linting

* Add changes from Arunoda's work

* Made next dev works.
But super slow and no HMR support.

* Fix client side hot reload

* Server side hmr

* Only in dev

* Add on-demand-entries client + hot-middleware

* Add .babelrc support

* Speed up on demand entries by running in parallel

* Serve static generated files

* Add missing config in dev

* Add sass support

* Add support for .map

* Add cssloader config and fix .jsx support

* Rename

* use same defaults as css-loader. Fix linting

* Add NoEmitErrorsPlugin

* Add clientBootstrap

* Use webpackhotmiddleware on the multi compiler

* alpha.3

* Use babel 16.2.x

* Fix reloading after error

* Remove comment

* Release 5.0.0-univeral-alpha.1

* Remove check for React 16

* Release 5.0.0-universal-alpha.2

* React hot loader v4

* Use our static file rendering machanism to serve pages.
This should work well since the file path for a page is predictable.

* Release 5.0.0-universal-alpha.3

* Remove optional loaders

* Release 5.0.0-universal-alpha.4

* Remove clientBootstrap

* Remove renderScript

* Make sure pages bundles are served correctly

* Remove unused import

* Revert to using the same code as canary

* Fix hot loader

* Release 5.0.0-universal-alpha.5

* Check if externals dir exist before applying config

* Add typescript support

* Add support for transpiling certain packages in node_modules

Thanks to @giuseppeg’s work in https://github.com/zeit/next.js/pull/3319

* Add BABEL_DISABLE_CACHE support

* Make sourcemaps in production opt-in

* Revert "Add support for transpiling certain packages in node_modules"

This reverts commit d4b1d9babfb4b9ed4f4b12d56d52dee233e862da.

In favor of a better api around this.

* Support typescript through next.config.js

* Remove comments

* Bring back commons.js calculation

* Remove unused dependencies

* Move base.config.js to webpack.js

* Make sure to only invalidate webpackDevMiddleware one after other.

* Allow babel-loder caching by default.

* Add comment about preact support

* Bring back buildir replace

* Remove obsolete plugin

* Remove build replace, speed up build

* Resolve page entries like pages/day/index.js to pages/day.js

* Add componentDidCatch back

* Compile to bundles

* Use config.distDir everywhere

* Make sure the file is an array

* Remove console.log

* Apply optimization to uglifyjs

* Add comment pointing to source

* Create entries the same way in dev and production

* Remove unused and broken pagesGlobPattern

* day/index.js is automatically turned into day.js at build time

* Remove poweredByHeader option

* Load pages with the correct path.

* Release 5.0.0-universal-alpha.6

* Make sure react-dom/server can be overwritten by module-alias

* Only add react-hot-loader babel plugin in dev

* Release 5.0.0-universal-alpha.7

* Revert tests

* Release 5.0.0-universal-alpha.10

* Make sure next/head is working properly.

* Add wepack alias for 'next' back.

* Make sure overriding className in next/head works

* Alias react too

* Add missing r

* Fragment fallback has to wrap the children

* Use min.js

* Remove css.js

* Remove wallaby.js

* Release 5.0.0-universal-alpha.11

* Resolve relative to workdir instead of next

* Make sure we touch the right file

* Resolve next modules

* Remove dotjsx removal plugins since we use webpack on the server

* Revert "Resolve relative to workdir instead of next"

This reverts commit a13f3e4ab565df9e2c9a3dfc8eb4009c0c2e02ed.

* Externalize any locally loaded module lives outside of app dir.

* Remove server aliases

* Check node_modules reliably

* Add symlink to next for tests

* Make sure dynamic imports work locally.
This is why we need it: b545b519b2/lib/MainTemplate.js (L68)
We need to have the finally clause in the above in __webpack_require__.
webpack output option strictModuleExceptionHandling does that.

* dynmaic -> dynamic

* Remove webpack-node-externals

* Make sure dynamic imports support SSR.

* Remove css support in favor of next-css

* Make sure we load path from `/` since it’s included in the path matching

* Catch when ensurepage couldn’t be fulfilled for `.js.map`

* Register require cache flusher for both client and server

* Add comment explaining this is to facilitate hot reloading

* Only load module when needed

* Remove unused modules

* Release 5.0.0-universal-alpha.12

* Only log the `found babel` message once

* Make sure ondemand entries working correctly.
Now we are just using a single instance of OnDemandEntryHandler.

* Better sourcemaps

* Release 5.0.0-universal-alpha.13

* Lock uglify version to 1.1.6

* Release 5.0.0-universal-alpha.14

* Fix a typo.

* Introduce multi-zones support for mircofrontends

* Add section on css
2018-01-30 16:44:44 +01:00
Tim Neutkens
e451218900 Release 4.4.0-canary.3 2018-01-13 08:35:15 +01:00
Tim Neutkens
95fe683c58 Release 4.4.0-canary.2 2018-01-13 06:41:35 +01:00
Tim Neutkens
21f875f3ae Add comma removed by merge 2018-01-13 06:40:37 +01:00
Tim Neutkens
6befb1f889 Release 4.4.0-canary.1 2018-01-13 06:35:28 +01:00
Tim Neutkens
bba744d3fa Merge branch 'master' into fix/canary 2018-01-13 06:33:19 +01:00
Arunoda Susiripala
44de0f15c9 Release 4.2.3 2018-01-13 10:41:49 +05:30
Arunoda Susiripala
b89b05bc76 Release 4.2.2 2018-01-13 10:38:32 +05:30
Wiktor Tkaczyński
9d059f6007 Add support for Fragments in Head (#3502)
* Add support for Fragments in Head.

* Add test cases

* Check if Component has custom key

* Upgrade to React 16.2.0
2017-12-28 07:12:27 +05:30