Commit graph

1024 commits

Author SHA1 Message Date
Tim Neutkens
14c07f059e 7.0.0-canary.19 2018-09-17 13:48:52 +02:00
Tim Neutkens
35c2103e57 7.0.0-canary.18 2018-09-16 18:11:03 +02:00
Tim Neutkens
d3f57fb215 7.0.0-canary.17 2018-09-16 17:03:34 +02:00
Tim Neutkens
b475e619b9
Implement hard-source-webpack-plugin (#5181)
Follow-up of #5176

Closes #5173 as it led to inconsistencies in DX.
2018-09-16 17:02:32 +02:00
Tim Neutkens
459c1c13d0
Improvements to on-demand-entries (#5176)
First wave of changes. Just landing this first so that there is a base to build on.
2018-09-16 16:06:02 +02:00
René Keller
864ea5d0a1 Remove reference to ./css.js from npm files list (#5179)
./css.js has been removed with [e093441](e093441bad (diff-b9cfc7f2cdf78a7f4b91a753d10865a2))
2018-09-16 13:20:28 +02:00
Tim Neutkens
12c0c9fd40 7.0.0-canary.16 2018-09-11 20:05:36 +02:00
Tim Neutkens
b5003ffb8b 7.0.0-canary.15 2018-09-09 22:34:48 +02:00
Tim Neutkens
d21603707e
Set cwd on babel-loader (#5127)
Fixes #5125

I'm not sure if this is a bug in babel-loader / babel-core or not. But this will at least temporary fix it till I hear back from @loganfsmyth 🙏
2018-09-09 01:10:47 +02:00
Tim Neutkens
fd67f22b65 7.0.0-canary.14 2018-09-07 14:43:44 +02:00
Evan Jacobs
7c0de2c397 update hoist-non-react-statics (#5117)
you folks should really use semver ranges, but since greenkeeper
is no longer running for this branch things have fallen behind

in particular, there seems to be an incompatibility with multiple
v2.x versions of this package in the same bundle as displayed here:

styled-components/styled-components#1972

When I force resolution to a particular h-n-r-s version, the issue
goes away. This is true for both next 6 and next 7 canary.
2018-09-07 12:11:25 +02:00
Tim Neutkens
48c48975c4 7.0.0-canary.13 2018-09-06 09:59:55 +02:00
Tim Neutkens
e7c41690b4 7.0.0-canary.12 2018-09-04 17:30:33 +02:00
Tim Neutkens
52a4dfc8a5 7.0.0-canary.11 2018-09-03 21:04:06 +02:00
Tim Neutkens
1cdc25ff79
Use terser for minification (#5083)
Fixes #5021
2018-09-03 20:59:11 +02:00
Tim Neutkens
b97fc82aa1
Use preset-react's development option + enable modules transform in test env (#5081)
## Minor changes

When `NODE_ENV=test` is used we'll now apply the `'auto'` configuration for modules transformation. Which causes Babel to check if the current environment needs to be transformed or not. In practice this means that the following `.babelrc` is not needed anymore:

**OLD**:

```json
{
  "env": {
    "development": {
      "presets": ["next/babel"]
    },
    "production": {
      "presets": ["next/babel"]
    },
    "test": {
      "presets": [["next/babel", { "preset-env": { "modules": "commonjs" } }]]
    }
  }
}
```

**NEW**:

```
{
  "presets": ["next/babel"]
}
```

## Patches

`@babel/preset-react` has a `development` option that automatically applies a development-time plugin we manually applied before (`@babel/plugin-transform-react-jsx-source`). It also adds another development-time plugin that is said to make debugging/errors clearer: `@babel/plugin-transform-react-jsx-self` which we didn't apply before. Overall this means we can take advantage of preset-react to provide these plugins.
2018-09-03 16:41:52 +02:00
Tim Neutkens
6b9b7d44aa 7.0.0-canary.10 2018-09-03 12:10:36 +02:00
Tim Neutkens
cdf44c4f91 7.0.0-canary.9 2018-09-02 19:18:46 +02:00
Tim Neutkens
ff35d2e747 7.0.0-canary.8 2018-09-01 13:01:04 +02:00
Tim Neutkens
3b35e5be14
Upgrade to styled-jsx@canary (#5067)
This fixes an issue with styles jumping around when using `transition: all`
2018-08-31 21:10:20 +02:00
Popuguy
4ef3788613 Update dependencies in package.json (#5066)
Babel loader v8 now for babel v7
other update fix bugs and performance improvements
2018-08-31 10:42:11 +02:00
Tim Neutkens
4247a13ff1 7.0.0-canary.7 2018-08-30 15:11:11 +02:00
Tim Neutkens
3ede818252 7.0.0-canary.6 2018-08-30 14:07:05 +02:00
Tim Neutkens
e1c544cd75
Fix loading... issue (#5058)
This fixes intermittent `loading...` on some requests which surfaced on zeit.co when upgrading
2018-08-30 14:02:18 +02:00
Tim Neutkens
99c509e449 7.0.0-canary.5 2018-08-28 18:02:29 +02:00
Tim Neutkens
d0df0e497b 7.0.0-canary.4 2018-08-28 12:46:21 +02:00
Tim Neutkens
4c891a7e8a
Upgrade to Babel 7 stable (#5042) (major)
🎉 https://twitter.com/left_pad/status/1034204330352500736
2018-08-28 12:44:15 +02:00
Tim Neutkens
e0c74948d0 7.0.0-canary.3 2018-08-25 20:41:36 +02:00
Michael Fix
9532cc1256 Remove old UNSAFE_ lifecycle methods (#5020)
~I am not sure if this is a valid fix yet, but I was going to let CI run the tests for me. I'll close and look into it if the build fails.~

Let me know if this will cause issues, but I don't think it should. The React docs recommends moving `componentWillMount` logic into the constructor
2018-08-25 17:26:11 +02:00
Tim Neutkens
1babde1026 7.0.0-canary.2 2018-08-24 16:47:33 +02:00
HaNdTriX
11816537c3 Open editor from error-overlay (minor) (#4979)
This PR adds links to the [react-error-overlay](https://www.npmjs.com/package/react-error-overlay).
This allows a developer to open a stack trace in its own editor.

![codelinking](https://user-images.githubusercontent.com/1265681/44278860-a63e0a80-a24f-11e8-9c69-c5365c026c58.gif)

Closes #4813
2018-08-24 16:30:41 +02:00
Tim Neutkens
d3f8de3306 7.0.0-canary.1 2018-08-24 10:31:24 +02:00
HaNdTriX
bb13e941e5
Fix polyfills (#5013) 2018-08-24 01:57:04 +02:00
Tim Neutkens
918e0a6e32
Replace uuid with nanoid (#4987)
* Replace uuid with nanoid

Same functionality in a smaller package:

https://bundlephobia.com/result?p=nanoid@1.2.1
https://bundlephobia.com/result?p=uuid@3.3.2

* Add comment
2018-08-23 17:02:47 +02:00
HaNdTriX
24386b93dc Remove babel-plugin-transform-remove-strict-mode (#5003)
This plugin wasn’t in use anyway.

Related: https://github.com/zeit/next.js/pull/414

Maybe we can remove the [`"strict_mode"`](https://github.com/zeit/next.js/search?q=%27use+strict%27&type=Code) statements as well.
2018-08-22 08:32:57 +02:00
HaNdTriX
eb00bc23e5 Remove babel-plugin-istanbul (#5004)
This plugin is not in use.

https://github.com/zeit/next.js/search?q=istanbul&unscoped_q=istanbul
2018-08-22 08:31:49 +02:00
HaNdTriX
5ff7c0742c Lint examples (#4985)
* Lint examples/with-apollo-and-redux-saga

* Lint examples/with-apollo-auth

* Lint examples/with-apollo

* Lint exampels/with-google-analytics

* Lint examples/with-higher-order-component

* Lint examples/with-react-i18next

* Lint exampels/with-redux

* Lint exampels/with-relay-modern

* Lint examples/with-universal-configuration-runtime

* Add **/examples/**/lib/** to linter
2018-08-20 08:31:24 +02:00
Tim Neutkens
b9533c318d 7.0.0-canary.0 2018-08-15 16:45:42 -07:00
Giuseppe
9ae27b20b4 upgrade styled-jsx to v3 (#4936)
Upgrade styled-jsx to v3 (major)
2018-08-15 12:44:01 -07:00
Tim Neutkens
1fe1f7fc49
Implement autodllplugin (#4951)
* Implement autodllplugin

* Add flow-typed for autodll-webpack-plugin
2018-08-13 15:09:05 -07:00
Alexander Kachkaev
9319c158a5 Upgrade Babel to 7.0.0-rc.1 (major) (#4937)
Fixes #4691
Fixes #4614

This PR gives path to https://github.com/zeit/next-plugins/pull/242

I did not add or remove `^` near dependency versions in package.json files. However, I don't exclude that some changes can be made given that rc is more stable than beta.
2018-08-13 10:34:08 -07:00
Tim Neutkens
3eda0c09cd 6.1.1-canary.5 2018-08-10 09:38:05 -07:00
Tim Neutkens
2e62b87fff
Make wasm files load on ssr (#4942)
* Make wasm files load on ssr

* Upgrade React for tests
2018-08-10 09:37:27 -07:00
Tim Neutkens
80fdfec088
Fix decorator warnings (#4910) 2018-08-06 20:47:27 -07:00
Tim Neutkens
b20b80adf0
Run rename-unsafe-lifecycles as preparation for React 17 (#4907)
https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles
2018-08-06 20:23:28 -07:00
Tim Neutkens
59c7d42d36 6.1.1-canary.4 2018-07-31 21:24:46 +02:00
Tim Neutkens
b65d2dff30 6.1.1-canary.3 2018-07-30 21:35:19 +02:00
Tim Neutkens
183866a96d
Add support for rendering .css chunks (#4861)
Depends on https://github.com/zeit/next-plugins/pull/228

Failing tests are expected as `@zeit/next-css` has to be updated/released first.

This implements rendering of `.css` chunks. Effectively removing the custom document requirement when adding next-css/sass/less/stylus.
2018-07-30 15:48:02 +02:00
Tim Neutkens
475b426ed1
Compile pages to .next/static directory (#4828)
* Compile pages to .next/static/<buildid>/pages/<page>

* Fix test

* Export class instead of using exports

* Use constant for static directory

* Add comment about what the middleware does
2018-07-25 13:45:42 +02:00
Tim Neutkens
75476a9136
[WIP] Webpack 4, react-error-overlay, react-loadable (#4639)
Webpack 4, react-error-overlay, react-loadable (major)
2018-07-24 11:24:40 +02:00
Tim Neutkens
d83207cd4b 6.1.1-canary.2 2018-07-19 14:39:44 +02:00
Tim Neutkens
921084fc4e 6.1.1-canary.1 2018-07-13 18:18:05 +02:00
Tim Neutkens
a42a969e07 6.1.1-canary.0 2018-07-06 20:08:04 +02:00
Tim Neutkens
183ed6b748 Merge branch 'master' into canary 2018-07-06 20:07:21 +02:00
Luc
71fe4984bf Upgrade styled-jsx to 2.2.7 (#4714)
Fixes #4713

I ran into this issue, when re-installing :
```
error upath@1.0.4: The engine "node" is incompatible with this module. Expected version ">=4 <=9".
error Found incompatible module
```

I used `yarn install --ignore-engines` as a workaround.
2018-07-02 23:00:18 +02:00
Tim Neutkens
0bcee3c23f 6.1.1 2018-06-29 10:27:42 +02:00
Tim Neutkens
9d52268604 6.1.0-canary.0 2018-06-28 20:58:33 +02:00
Tim Neutkens
da0c7a9ce6 Merge branch 'master' into canary 2018-06-28 20:57:39 +02:00
Tim Neutkens
17e410a1d0
Fix Typescript HMR (#4689)
Fixes #4686

Adds tests for @zeit/next-typescript so that we don't regress on this again.

I've fixed an issue in the `next` CLI too which caused lingering processes when the process gets force killed, which is what we do in the test suite, so it kept running if there was no manual quit.
2018-06-28 20:07:41 +02:00
Tim Neutkens
512f16e01f 6.1.0 2018-06-27 21:19:51 +02:00
Tim Neutkens
1ebd9967ac 6.0.4-canary.9 2018-06-25 23:28:51 +02:00
Tim Neutkens
82f2e08eab 6.0.4-canary.8 2018-06-16 15:52:28 +02:00
Tim Neutkens
491d2ec0dd 6.0.4-canary.7 2018-06-15 11:23:22 +02:00
Tim Neutkens
f2c2519159
Move build directory outside of server folder (#4565)
The prepares for next-server.

I also took this as an opportunity to get all build directory paths from a single location, as they were previously scattered across webpack/babel plugins and loaders.
2018-06-14 19:30:14 +02:00
Tim Neutkens
ecf61f65a8 6.0.4-canary.6 2018-06-13 22:15:37 +02:00
Tim Neutkens
06136d9111 6.0.4-canary.5 2018-06-13 20:33:35 +02:00
Tim Neutkens
f670412c77 6.0.4-canary.4 2018-06-13 19:45:50 +02:00
Tim Neutkens
e2beadd960
Upgrade update-check (#4585)
Fixes #4581
2018-06-11 13:23:28 +02:00
Tim Neutkens
f11d3487f6
Remove react-hot-loader dependency (#4550)
React hot loader was removed already, the dependency still had to be removed.
2018-06-07 13:37:48 +02:00
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
Tim Neutkens
c23046dc79
Rewrite combine-asset-plugin using correct event (#3486)
* Speed up next build

* Remove comment

* Add comment

* Add comments
2017-12-22 10:25:35 +01:00
Tyll Weiß
702dd5d3f4 Resolve the next.config.js up the tree to avoid it not being loaded when a source dir was specified via the CLI - solves #3379 (#3380) 2017-12-13 18:49:26 -08:00
Harri Hälikkä
1135075513 Update glob-promise to latest 3.3.0 (#3447)
v3.2.0 pulls in 20+ MB worth of devDeps of which some are
deprecated, and these are shown as warnings to the users
of Next.js. Dropping these devDeps is the only change
between 3.2.0 and 3.3.0 (see
https://github.com/ahmadnassri/glob-promise/releases)

Related glob-promise issue:

- https://github.com/ahmadnassri/glob-promise/pull/52
2017-12-13 01:46:37 -08:00
Tim Neutkens
2cbc53f6a1 Release 4.3.0-canary.1 2017-12-08 15:17:23 -08:00
Tim Neutkens
52ccc14059 Merge branch 'canary'
# Conflicts:
#	examples/with-markdown/readme.md
#	lib/page-loader.js
#	package.json
#	server/build/plugins/pages-plugin.js
2017-12-08 15:11:37 -08:00
Tim Neutkens
67643e255a Release 4.2.1 2017-12-08 14:58:21 -08:00
Ramin B
5a5b3b6702 Downgrade strip-ansi to support IE11/Google Fetch (#3403)
A few discussions:
https://github.com/zeit/next.js/issues/2747
https://github.com/zeit/next.js/issues/3126
# Conflicts:
#	package.json
2017-12-08 14:40:17 -08:00
Ramin B
2a6557d6cd Downgrade strip-ansi to support IE11/Google Fetch (#3403)
A few discussions:
https://github.com/zeit/next.js/issues/2747
https://github.com/zeit/next.js/issues/3126
2017-12-08 14:38:28 -08:00
Arunoda Susiripala
03507501cd Release 4.2.0 2017-12-04 15:30:14 -08:00
Giuseppe
5daafa4f87 Upgrade styled-jsx to v2.2.1 (#3358)
* Pulled encoding to top of head (#3214)

* Remove next.d.ts to use @types/next (#3297)

* Add with-mobx-state-tree example (#3179)

* Adapt with-mobx example for with-mobx-state-tree

* Remove unnecessary lastUpdate parameter to show off snapshot

* update readme

* make other.js more closely mimic index.js

* Upgrade styled-jsx to v2.2.1

Includes some bug fixes.

* Fix linting
2017-12-04 08:15:30 -08:00
Arunoda Susiripala
f6bd1df6aa
Fix canary tests on CIs (travis, appveyor) (#3375)
* Dump address.

* Use zero as the port.

* Limit test cases.

* throw address.

* Fail a specific error.

* Set a port manually.

* Make sure jest is working properly.

* Set the jest timeout time to 5 min.

* Run the actual test

* Run all production tests on Travis.

* Set the Jest default timeout to 5 min for all integration tests.

* Remove production only testing.

* Remove unwanted console.log

* Remove the addition number from test case

* Set the static export test jest timeout to 5 min.

* Run tests again if they failed once.
2017-12-03 08:12:12 +05:30
Jess Telford
52bf00eda3 Update to uglifyjs-webpack-plugin@1.1.1 (#3329) 2017-11-23 22:25:09 +01:00
Tim Neutkens
03aae1f9fc Release 4.2.0-canary.1 2017-11-15 13:22:41 +01:00
Jess Telford
80a1603189 Use uglify-es for minification (#3150) 2017-11-13 12:19:51 +01:00
Tim Neutkens
18f8ab392a Merge branch 'master' into canary
# Conflicts:
#	examples/with-apollo/lib/initApollo.js
#	examples/with-apollo/package.json
#	examples/with-react-with-styles/package.json
#	examples/with-static-export/package.json
#	package.json
2017-11-05 11:01:59 +01:00
Bu Kinoshita
31ba48ada2 Upgrade styled-jsx to version 2.1.2 (#3231) 2017-11-04 15:04:26 +01:00
Kevin Decker
6e44cdef5f Expose mechanism to monitor render events (#2655)
* Allow custom clientBootstrap entrypoint

This allows for customization of the client global bootstrap.

* Expose render event emitter to client

* Include client entry point in npm package
2017-10-30 16:01:40 +01:00
Tim Neutkens
c927c4f1ce Release 4.1.4 2017-10-29 01:00:16 +02:00
Tim Neutkens
436a2ac73b Release 4.1.4-canary.2 2017-10-29 00:58:17 +02:00
Tim Neutkens
cd7bfe890d Release 4.1.4-canary.1 2017-10-29 00:58:17 +02:00
Tim Neutkens
2ec397b356 Release 4.1.4-canary.2 2017-10-23 22:15:26 +02:00
Tim Neutkens
fe2924c5f4 Release 4.1.4-canary.1 2017-10-23 21:36:17 +02:00
Tim Neutkens
9805231cf9 Release 4.1.3 2017-10-22 11:16:35 +02:00
Tim Neutkens
a2a83236f0 Release 4.1.2 2017-10-20 08:06:38 +02:00
Tim Neutkens
586b871a43 Release 4.1.1 2017-10-19 22:18:52 +02:00
Tim Neutkens
43b5626ec6 Use strict version of react-hot-loader (#3112) 2017-10-16 21:51:12 +02:00
Arunoda Susiripala
ec3486a702 Release 4.1.0 2017-10-16 10:37:42 +05:30
Tim Neutkens
443b1d1260 Release 4.0.5 2017-10-15 23:20:17 +02:00
Tim Neutkens
7271970629 Upgrade styled-jsx (#3101) 2017-10-15 22:56:40 +02:00
Tim Neutkens
e9d14613d4 Make styled-jsx configurable (#3050)
* Make styled-jsx configurable

* Add styled-jsx-plugin-postcss example

* Add styled-jsx 2.1.0 with plugins support

* Move examples around and add description

* Add link to new example
2017-10-15 19:54:57 +02:00
Tim Neutkens
db151d250a Release 4.0.4 2017-10-15 01:03:24 +02:00
Tomas Roos
494f416a9f Update exposed package to avoid DoS (#3080)
Running nsp check

```
➜  web git:(master) nsp check
(+) 1 vulnerabilities found
┌───────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│               │ Regular Expression Denial of Service                                                                       │
├───────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Name          │ mime                                                                                                       │
├───────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ CVSS          │ 7.5 (High)                                                                                                 │
├───────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Installed     │ 1.3.4                                                                                                      │
├───────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Vulnerable    │ < 1.4.1 || > 2.0.0 < 2.0.3                                                                                 │
├───────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Patched       │ >= 1.4.1 < 2.0.0 || >= 2.0.3                                                                               │
├───────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Path          │ web@1.0.0 > next@4.0.1 > send@0.15.6 > mime@1.3.4                                                          │
├───────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ More Info     │ https://nodesecurity.io/advisories/535                                                                     │
└───────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

```

This is a dependency of send which already upgraded this in order to not be exposed to this known error.
https://github.com/pillarjs/send/blob/master/HISTORY.md
2017-10-14 23:52:15 +02:00
Arunoda Susiripala
10566b7da8 Release 4.0.3 2017-10-11 05:52:33 +05:30
Zach Brown
8873735de3 Upgrade react-hot-loader (add React 16 Support) (#3072) 2017-10-11 05:44:34 +05:30
Tim Neutkens
4de69f8ba4 Bump version (#3070) 2017-10-10 14:04:32 -07:00
Giuseppe
0262845a36 Update styled-jsx to version 2.0.2 (#3069) 2017-10-10 23:01:11 +02:00
Arunoda Susiripala
c047378992 Release 4.0.1 2017-10-10 02:00:38 +05:30
Arunoda Susiripala
c99c05018b Release 4.0.0 2017-10-09 22:04:51 +05:30
Arunoda Susiripala
feff71ecac Update styled-jsx to version 2.0.1 2017-10-09 22:04:20 +05:30
Arunoda Susiripala
7c908633cb Release 4.0.0-beta.6 2017-10-08 15:45:09 +05:30
Giuseppe
b0bf03407c Update styled-jsx into 2.0.1-beta.5 (#3052) 2017-10-08 15:43:55 +05:30
Arunoda Susiripala
ed5305b537 Release 4.0.0-beta.5 2017-10-08 03:09:48 +05:30
Arunoda Susiripala
1cca97cb5d Update styled-jsx into 2.0.1-beta.4 2017-10-08 03:06:07 +05:30
Arunoda Susiripala
a761aa5b97 Release 4.0.0-beta.4 2017-10-07 01:02:35 +05:30
Arunoda Susiripala
b6e7691978 Use styled-jsx 2.0.1-beta.3 2017-10-07 00:58:26 +05:30
Tim Neutkens
949296baf1 Upgrade styled-jsx@beta to latest version (#3045) 2017-10-05 15:39:16 -04:00
Arunoda Susiripala
af59c9f676 Release 4.0.0-beta.3 2017-10-04 23:53:23 +05:30
Arunoda Susiripala
2eb8b0e983 Add styled-jsx 2.0 beta support. (#3039) 2017-10-04 23:46:06 +05:30
Arunoda Susiripala
f2f987f02b Release 4.0.0-beta.2 2017-09-28 22:37:47 +02:00
Tim Neutkens
c2d98e2b79 4.0.0-beta.1 2017-09-27 23:01:29 +02:00
Kenny Smith
d19cc975f4 React 16 (fiber) (#2996)
* Updating React to v16.0.0

* Updating error handling from ReactReconciler to componentDidCatch

* Using hydrate() instead of render() on client side.

* React 16 is not making `charSet` lowercase but that is in spec.
2017-09-27 21:09:16 +02:00
Tim Neutkens
531d0a3068 Upgrade dependencies (#2998) 2017-09-27 20:11:02 +02:00
Tim Neutkens
a44c9e472a Only use strict dependencies (#2929)
Since we use greenkeeper we get PRs when there is an update
2017-09-09 11:37:21 +02:00
Arunoda Susiripala
aa09625744 3.2.2 2017-09-08 23:46:18 +05:30
Arunoda Susiripala
03294bb25e 3.2.1 2017-08-31 05:50:45 +05:30
Arunoda Susiripala
99c4798ff1 3.2.0 2017-08-30 19:47:54 +05:30
Arunoda Susiripala
56662b4d84 Add/with router (#2870)
* Add withRoute HOC

Rebased (squashed)
- removed routerToProps
- updated hoist-non-react-statics
- improved propTypes

* Expose the whole Router instead of the route.

* Make the example simple.

* Update examples and the readme.

* Add a test case.
2017-08-30 19:37:12 +05:30
Arunoda Susiripala
4ee0dc90d8 3.1.0 2017-08-30 16:00:23 +05:30
Jan-Philipp Willem
9cce984834 Downgrade strip-ansi to 3.0.1 (#2860)
See: https://github.com/facebookincubator/create-react-app/pull/2692
2017-08-28 18:48:10 +02:00
Tim Neutkens
eba9ebef5f Merge v3-beta into master (#2809)
* Add examples/with-redux-code-splitting. (#2721)

* #1757 Relay Modern Example (#2696)

* Add ReasonML example (#2640)

* Add ReasonML example

* Add a gitignore specifically for the reasonml example

* Allow custom className for <Main /> (#2802)

* 3.0.2

* Remove beta information from the README.

* 3.0.3

* Remove unnecessary lookup in example with emotion (#2731)

* Document SCSS/Less (#2742)

* Document SCSS/Less

* Add missing word

* Add docs for examples dir

* Add extra example

* uppercase J

* Add with pkg example (#2751)

* Add custom server micro example (#2750)

* Ease running multiple examples at the same time with process.env.PORT (#2753)

* Add line-height rule for error page h2 (#2761)

* Add support for fetching multiple translation files (#2743)

* Add support for fetching multiple translation files

* Cleanup

* Clear missed interval (#2611)

* clear missed interval

* remove trailing whitespace

* Relay Modern Example (#1757) (#2773)

* Simplification of Relay Modern Example (#1757) (#2776)

* Use deterministic names for dynamic import (#2788)

* Always use the same name for the same dynamic import.

* Add unit tests for the modulePath generation.

* Allow tests to run correctly on Windows.

* Make the chunk name a bit pretty.

* Fix tests to run on Windows.

* 3.0.4

* Revert "Make the chunk name a bit pretty." (#2792)

This reverts commit 0c9e8cf2271955e74ab9f752b5869b98c1dc60f9.

* 3.0.5

* Use _ as the divider for dynamic import name splitter. (#2793)

Using - gives us some weird webpack errors.

* 3.0.6

* next/dynamic Error Message Tweaks (#2798)

* Fixed issue (#2804)

https://github.com/zeit/next.js/issues/2800

* docs(material-ui): move the source code to Material-UI repository (#2808)
2017-08-27 22:13:35 +02:00
Arunoda Susiripala
c692101649 3.0.6 2017-08-17 02:26:18 +05:30
Arunoda Susiripala
eafa2c676d 3.0.5 2017-08-17 00:29:09 +05:30
Arunoda Susiripala
265296c7dd 3.0.4 2017-08-16 22:45:52 +05:30
Arunoda Susiripala
8f2677e42a 3.0.3 2017-08-09 12:33:55 +05:30
Arunoda Susiripala
42e21288a9 3.0.2 2017-08-09 12:05:16 +05:30
Arunoda Susiripala
6d572ee087 3.0.1-beta.21 2017-08-07 12:38:03 +05:30
Arunoda Susiripala
242739eb0f 3.0.1-beta.20 2017-07-28 11:39:49 +05:30
崔宁
67697afa44 Remove the extra plugin (#2670) 2017-07-28 10:45:04 +05:30
Arunoda Susiripala
37531726c2 3.0.1-beta.19 2017-07-26 22:33:15 +05:30
Arunoda Susiripala
f2f5b96ecb 3.0.1-beta.18 2017-07-20 23:50:05 +05:30
Arunoda Susiripala
d4eb9455b8 Merge branch 'v3-beta' of github.com:zeit/next.js into v3-beta 2017-07-20 23:48:58 +05:30
Arunoda Susiripala
4833e2ffb5 [WIP] Add more HMR test cases (#2599)
Add more HMR test cases
2017-07-20 21:30:45 +05:30
Arunoda Susiripala
3a2fdbec65 3.0.1-beta.17 2017-07-18 13:03:04 +05:30
Arunoda Susiripala
dba24dac9d 3.0.1-beta.16 2017-07-17 11:13:54 +05:30
Arunoda Susiripala
ed733dc14d 3.0.1-beta.15 2017-07-16 15:50:54 +05:30
greenkeeper[bot]
99dd045d1c Update webpack to the latest version 🚀 (#2569) 2017-07-15 22:04:07 +02:00
Arunoda Susiripala
62a6247753 3.0.1-beta.14 2017-07-15 16:26:25 +05:30
greenkeeper[bot]
20db38e21a Update webpack to the latest version 🚀 (#2537) 2017-07-15 09:32:55 +02:00
greenkeeper[bot]
62f7386808 Update wd to the latest version 🚀 (#2552) 2017-07-14 23:44:46 +02:00
Tim Neutkens
ee29abb8d1 Add propType check with validation (#2516) 2017-07-09 18:42:20 +05:30
Arunoda Susiripala
86c283777f 3.0.1-beta.13 2017-07-09 10:21:50 +05:30
Arunoda Susiripala
f718bcaa13 3.0.1-beta.12 2017-07-09 10:11:18 +05:30
Arunoda Susiripala
e94671bd95 3.0.1-beta.11 2017-07-09 10:07:38 +05:30
Tim Neutkens
874f9a78ef fix(package): update webpack-hot-middleware to version 2.18.2 (#2481)
Closes #2448
2017-07-08 14:10:29 +02:00
greenkeeper[bot]
06dc1e960c Update wd to the latest version 🚀 (#2482) 2017-07-08 14:09:30 +02:00
Arunoda Susiripala
6c8a891d7d 3.0.1-beta.10 2017-07-08 11:12:42 +05:30
greenkeeper[bot]
ec9fc46477 fix(package): update webpack to version 3.1.0 (#2485) 2017-07-07 09:34:25 +05:30
Arunoda Susiripala
ace1939c4b 3.0.1-beta.9 2017-07-06 12:30:43 +05:30
Arunoda Susiripala
0c7089f856 Remove mitt and use an internal EventEmitter (#2477)
This fixes one of the crucial bug in Next.js
The issue happens when you try to load a page when it's
prefetching.
With mitt, it only fires the first registered event.
2017-07-06 12:19:33 +05:30
greenkeeper[bot]
f44d597c29 Update husky to the latest version 🚀 (#2470) 2017-07-05 14:16:38 +02:00
greenkeeper[bot]
dc74d5a70f Update babel-preset-env to the latest version 🚀 (#2462) 2017-07-04 20:32:51 +02:00
Leo Lamprecht
a941c434ad 3.0.1-beta.8 2017-07-03 17:17:14 +02:00
Leo Lamprecht
c050ba46bf Support for Prettier 1.5.x added (styled-jsx) 2017-07-03 17:15:52 +02:00
Arunoda Susiripala
e2a8cc411a 3.0.1-beta.7 2017-07-03 11:09:11 +05:30
Tim Neutkens
590dcc98b5 chore(package): update chromedriver to version 2.29.2 (#2429)
Closes #2191
2017-07-02 13:58:45 +02:00
Tim Neutkens
cb752e7ab9 chore(package): update babel-jest to version 20.0.3 (#2430)
Closes #1992
2017-07-02 13:58:31 +02:00
greenkeeper[bot]
0076c1ac60 fix(package): update babel-template to version 6.25.0 (#2206) 2017-07-02 12:59:48 +05:30
greenkeeper[bot]
3e7ca1e89e fix(package): update styled-jsx to version 1.0.7 (#2373) 2017-07-02 11:52:23 +05:30
Arunoda Susiripala
761a965bfb 3.0.1-beta.6 2017-07-02 09:17:40 +05:30
Tim Neutkens
8af2da14f4 fix(package): update case-sensitive-paths-webpack-plugin to version 2… (#2427)
Closes #2116
2017-07-02 00:51:38 +02:00
greenkeeper[bot]
3c0876ceae Update babel-generator to the latest version 🚀 (#2205) 2017-07-01 21:52:44 +02:00
greenkeeper[bot]
7f6f65d68c chore(package): update husky to version 0.14.2 (#2418) 2017-07-01 08:05:13 +02:00
greenkeeper[bot]
5ac99f8a7f Update touch to the latest version 🚀 (#2419) 2017-07-01 08:05:06 +02:00
greenkeeper[bot]
063db7099c Update @taskr/clear to the latest version 🚀 (#2404) 2017-06-30 23:24:32 +02:00
greenkeeper[bot]
d6a96a82aa Update @taskr/babel to the latest version 🚀 (#2405) 2017-06-30 22:12:50 +02:00
greenkeeper[bot]
c0573e2e45 chore(package): update taskr to version 1.0.6 (#2406) 2017-06-30 22:12:40 +02:00
greenkeeper[bot]
6f93f30894 Update @taskr/watch to the latest version 🚀 (#2407) 2017-06-30 22:12:22 +02:00
greenkeeper[bot]
99bf7c5da5 Update touch to the latest version 🚀 (#2411) 2017-06-30 16:27:47 +02:00
Ian Mitchell
ac3c59b9f4 Removes Windows Webpack Polling (#2359) 2017-06-30 12:20:18 +05:30
Richard Littauer
1d126c7d14 Adding bugs and homepage fields to package.json (#2401)
* Adding bugs and homepage fields to package.json

This adds bugs and homepage entries to the package.json. This helps these links render on npm, and can lead developers to the right place to put issues and to find more information. I have included the url which redirects to the github repository in case this changes later, for the homepage field.

Hopefully, this makes the package a bit more usable. Not a big fix, at all.

* Use https://github.com/zeit/next.js as the home
2017-06-29 22:05:03 +05:30
Arunoda Susiripala
765642caf7 3.0.1-beta.5 2017-06-29 00:52:02 +05:30
greenkeeper[bot]
99731625ba Update babel-core to the latest version 🚀 (#2207) 2017-06-28 19:33:19 +02:00
greenkeeper[bot]
2a6212a2bd Update lint-staged to the latest version 🚀 (#2301) 2017-06-28 19:32:27 +02:00
greenkeeper[bot]
b36f643249 Update strip-ansi to the latest version 🚀 (#2325) 2017-06-28 19:32:04 +02:00
greenkeeper[bot]
19b6cca44b Update nyc to the latest version 🚀 (#2367) 2017-06-28 19:05:58 +02:00
Tim Neutkens
75f8c4f23b chore(package): update husky to version 0.14.1 (#2370)
* chore(package): update husky to version 0.14.1

Closes #2346

* Fix trailing comma
2017-06-28 19:02:56 +02:00
Tim Neutkens
048ebdf15a fix(package): update touch to version 2.0.2 (#2378)
Closes #2377
2017-06-28 19:02:44 +02:00
greenkeeper[bot]
9a1fae2222 Update unfetch to the latest version 🚀 (#2387) 2017-06-28 19:02:12 +02:00
Arunoda Susiripala
6f619652f5 3.0.1-beta.4 2017-06-28 21:41:09 +05:30
Arunoda Susiripala
95f9b1e3b3 3.0.1-beta.3 2017-06-28 21:39:40 +05:30
Brent Mealhouse
f8b822b7f6 Include dynamic.js in published files (#2386)
closes #2385
2017-06-28 21:36:24 +05:30
greenkeeper[bot]
ad2c34e00f Update babel-loader to the latest version 🚀 (#2381) 2017-06-28 08:12:21 +02:00
Arunoda Susiripala
b2b7946c53 3.0.1-beta.2 2017-06-26 23:28:36 +05:30
Arunoda Susiripala
c92bdef8b5 Merge master into v3-beta. 2017-06-26 23:21:52 +05:30
Arunoda Susiripala
3d162d9d7b 2.4.5 2017-06-26 23:03:36 +05:30
Arunoda Susiripala
7247a36ef8 Update styled-jsx to 1.0.6. (#2368)
This fixes the styled-jsx HMR not working error
2017-06-26 23:02:27 +05:30
Arunoda Susiripala
1abfe108c0 3.0.1-beta.1
We've changed the beta version a bit to follow the semvar.
See: https://github.com/zeit/next.js/issues/2309
2017-06-23 13:26:31 +05:30
C. T. Lin
213d7a82d1 update webpack to v3 (#2349)
* update webpack to v3

* Use exact versions.
2017-06-23 10:44:40 +05:30
Luke Edwards
8d0fdc09f7 [Beta] Switch from Fly to Taskr (#2307)
* switch from fly to taskr

* update taskfile
2017-06-22 15:52:13 +02:00
Luke Edwards
ba5b05a276 [Stable] Move from Fly to Taskr (#2306)
* switch from fly to taskr

* update taskfile
2017-06-22 15:51:49 +02:00
greenkeeper[bot]
7c97cdc7fb fix(package): update uuid to version 3.1.0 (#2290) 2017-06-17 10:54:14 +02:00
Arunoda Susiripala
65c6d75419 3.0.0-beta16 2017-06-16 21:56:25 +05:30
Arunoda Susiripala
a33a01fba5 2.4.4 2017-06-16 21:51:03 +05:30
Arunoda Susiripala
25f967edfc 3.0.0-beta15 2017-06-16 18:55:05 +05:30
Jayden Seric
f36b4f9b4a Update Webpack to v2.6.1 (#2271)
* Update Webpack to v2.6.1.

Also, added the ^ so that future patches won’t be missed. Should fix https://github.com/zeit/next.js/issues/2244.

* Update package.json
2017-06-16 18:47:13 +05:30
Zane Milakovic
05f6e3ff11 updates styled-jsx to fix issues and bugs (#2275) 2017-06-15 21:49:59 +02:00
Arunoda Susiripala
320b94a94b 3.0.0-beta14 2017-06-12 23:06:55 +05:30
greenkeeper[bot]
fa951c8578 fix(package): update styled-jsx to version 1.0.5 (#2231) 2017-06-12 23:05:00 +05:30
Arunoda Susiripala
e7a85f7c1a 3.0.0-beta13 2017-06-11 09:06:05 +05:30
greenkeeper[bot]
ad4ec554ca fix(package): update del to version 3.0.0 (#2220) 2017-06-09 23:30:54 +02:00
Iain Collins
5fa03f941d Updating react & react-dom versions (#2212)
Ran into blocking compatibility issues (unable to start an app even  with the simplest possible example) when trying to upgrade the next.js version on an older project that used react/react-dom@15.4.2.

This was resolved by upgrading react/react-dom to the latest version (15.5.4) so updating dependencies and peerDependencies to reflect the latest version.

Raised in issue #2150
2017-06-09 23:49:31 +05:30
Arunoda Susiripala
0151d09cf3 3.0.0-beta12 2017-06-09 10:06:35 +05:30
greenkeeper[bot]
b7de7a5733 chore(package): update cross-env to version 5.0.1 (#2192) 2017-06-08 19:24:51 +02:00
greenkeeper[bot]
7e5af32375 chore(package): update chromedriver to version 2.29.1 (#2191) 2017-06-08 19:18:21 +02:00
greenkeeper[bot]
24439f96ec fix(package): update write-file-webpack-plugin to version 4.1.0 (#2188) 2017-06-07 19:53:18 +02:00
greenkeeper[bot]
669270a20c fix(package): update babel-preset-env to version 1.5.2 (#2187) 2017-06-07 19:53:01 +02:00
Arunoda Susiripala
c9a7a35f78 3.0.0-beta11 2017-06-07 12:09:32 +05:30
Arunoda Susiripala
4504d9f3cd 2.4.3 2017-06-07 12:00:59 +05:30
Arunoda Susiripala
13a51e0a75 Merge master into v3-beta. 2017-06-07 11:43:05 +05:30
Arunoda Susiripala
7cd2bb69ea Squashed commit of the following:
commit ced48c3fcfd1880016b08590e1b50827247b7cfb
Author: Arunoda Susiripala <arunoda.susiripala@gmail.com>
Date:   Wed Jun 7 11:28:43 2017 +0530

    Make sure XSS fix doesn't break our 404 support.

commit d40c833aa16660d547df785bb52e69ecf9a717f2
Author: Arunoda Susiripala <arunoda.susiripala@gmail.com>
Date:   Wed Jun 7 09:08:41 2017 +0530

    Prevent url path based XSS attacks.
2017-06-07 11:37:28 +05:30
Arunoda Susiripala
660aaa624b 2.4.2 2017-06-06 05:04:46 +05:30
Arunoda Susiripala
0a2e4aa4e7 3.0.0-beta10 2017-06-06 05:00:51 +05:30
greenkeeper[bot]
8eb6ea3c57 chore(package): update node-fetch to version 1.7.1 (#2159) 2017-06-05 11:27:39 +02:00
greenkeeper[bot]
e74fb7858e fix(package): update styled-jsx to version 1.0.4 (#2162) 2017-06-04 23:18:11 +02:00
Guillermo Rauch
62a41605aa Release 3.0.0-beta9 2017-06-02 07:21:36 -07:00
greenkeeper[bot]
7f782e182e chore(package): update nyc to version 11.0.1 (#2138) 2017-06-02 08:06:16 +02:00
Arunoda Susiripala
e1a9febe28 Get latest master into v3 (#2139)
* Merge branch 'master' into v3-beta

* Add send back to v3-beta.
2017-06-02 10:35:04 +05:30
Guillermo Rauch
fbb242a973 Release 3.0.0-beta8 2017-06-01 18:38:27 -07:00
Guillermo Rauch
f4345e79c2 Merge branch 'v3-beta' of github.com:zeit/next.js into v3-beta 2017-06-01 18:31:14 -07:00
Guillermo Rauch
850a931e88 Merge branch 'master' into v3-beta 2017-06-01 18:30:57 -07:00
Arunoda Susiripala
ed3618f035 Fix test failures (#2129)
* Fix test failures due to styled-jsx change.

* Update styled-jsx to the latest.
2017-06-01 10:34:21 +05:30
Guillermo Rauch
dd4b4dd9d0 Release 2.4.1 2017-05-31 18:06:48 -07:00
Arunoda Susiripala
0ec33c8ccd fix(package): update styled-jsx to version 1.0.3 (#2122)
Closes #2095
2017-05-31 18:33:58 +05:30
Tim Neutkens
57b2aefe30 Pin styled-jsx dependency 2017-05-31 07:57:46 +02:00
Tim Neutkens
25afe27211 Update styled jsx to 1.x (#2119) 2017-05-31 07:43:17 +02:00
greenkeeper[bot]
6fe552601b fix(package): update mitt to version 1.1.2 (#2027) 2017-05-27 13:52:09 +02:00
greenkeeper[bot]
c80fdf3d1c fix(package): update babel-preset-env to version 1.5.1 (#2041) 2017-05-25 18:33:04 +02:00
greenkeeper[bot]
e12db8c1c4 fix(package): update webpack to version 2.6.0 (#2043) 2017-05-25 18:32:34 +02:00
greenkeeper[bot]
1723d9defd chore(package): update jest-cli to version 20.0.4 (#2057) 2017-05-25 18:30:39 +02:00
greenkeeper[bot]
3b5704c4d8 chore(package): update node-fetch to version 1.7.0 (#2049) 2017-05-23 18:42:25 +02:00
Guillermo Rauch
533a31b005 Release 3.0.0-beta6 2017-05-22 13:18:51 -07:00
Guillermo Rauch
e9915d3da5 Release 3.0.0-beta5 2017-05-20 20:47:09 -07:00
greenkeeper[bot]
9a30f10ad8 fix(package): update babel-preset-env to version 1.5.0 (#2031) 2017-05-20 22:39:16 +02:00
Arunoda Susiripala
9346c96b39 Update react-hot-loader to 3.0.0-beta.7 (#2004) 2017-05-18 12:00:39 +05:30
greenkeeper[bot]
4d924ca90b chore(package): update babel-jest to version 20.0.2 (#1992) 2017-05-17 19:42:10 +02:00
greenkeeper[bot]
c69eb34cee chore(package): update jest-cli to version 20.0.2 (#1993) 2017-05-17 19:40:38 +02:00
Guillermo Rauch
b00525897d Release 2.4.0 2017-05-17 09:48:40 -07:00
greenkeeper[bot]
550406fbd1 fix(package): update send to version 0.15.3 (#1988) 2017-05-17 11:39:30 +02:00
Guillermo Rauch
0926129a86 Release 2.3.2 2017-05-16 12:46:47 -07:00
Guillermo Rauch
524552017e Release 3.0.0-beta4 2017-05-16 09:41:47 -07:00
Guillermo Rauch
27be055828 Release 3.0.0-beta3 2017-05-15 12:10:51 -07:00