Tim Neutkens
7fd9cb440d
v8.0.1
2019-02-13 09:31:49 +01:00
Tim Neutkens
77a5a6f91a
v8.0.1-canary.0
2019-02-13 07:20:54 +01:00
Tim Neutkens
4fea345f5d
Merge branch 'master' into canary
...
# Conflicts:
# lerna.json
# packages/next-server/package.json
# packages/next/package.json
2019-02-13 07:19:58 +01:00
Truong Hoang Dung
10f41f5d47
Fix Docs ( #6270 )
...
Add options to customize webpack config section.
2019-02-13 07:08:41 +01:00
Joe Haddad
f43e1a95f1
Set default Error
status code to 404 ( #6276 )
...
* Set default `Error` status code to 404
This is an appropriate default behavior because:
1. When the server encounters an error, the `err` property is set.
2. When the client-side application crashes, the `err` property is set.
This means the "only" way to render the `/_error` page without an error
is when a page is not found (special condition).
Fixes #6243
Closes #5437
* Add new integration test for client side 404
* single quotes
* Remove unused variable
* Standard needs to go away
* Whoops
* Check for null status code in res and err
* Only check response for valid statusCode
2019-02-12 21:32:25 -05:00
Connor Davis
68db0992b6
v8.0.0-canary.24
2019-02-11 19:29:58 -06:00
Connor Davis
bd249180c6
Fix Runtime Config in next export
( #6258 )
2019-02-11 19:28:47 -06:00
Joe Haddad
33b9ebc783
Add module
as server fallback main field ( #6256 )
...
* Add `module` as server fallback main field
* Test that a module only package can be imported
2019-02-12 01:39:57 +01:00
Juan Olvera
23c9c0d624
Change anynymous functions to named functions on examples in the README.md file ( #6255 )
...
* convert export default anonymous functions into named functions
* change examples to function declaration and split export in classes
* change NextHead name to Head and rename component
2019-02-12 00:04:05 +01:00
Connor Davis
e1056e32cf
Add yarn check to test ( #6257 )
2019-02-11 23:26:42 +01:00
Spencer Elliott
4dd6094639
styled-components example: use a fragment for styles initial prop ( #6252 )
...
`initialProps.styles` is a React node, but not guaranteed to be an
array, so we can use a fragment to concatenate additional styles.
See https://github.com/DefinitelyTyped/DefinitelyTyped/issues/32932#issuecomment-462372319
2019-02-11 20:48:03 +01:00
Jason Miller
734513b9be
Apply babel to .mjs files ( #6253 )
2019-02-11 18:59:24 +01:00
Juan Olvera
80cb91ec87
Add setup to run example with cookie authentication locally ( #6101 )
...
* extract request login from auth
* add clarification that the monorepo is for deploy in Now only and fix typo
* Refactor HOC
- add authorization to HOC
- add displayName to HOC
- remove unnecessary `run`s in local routing
2019-02-11 14:17:43 +01:00
Fredrik Höglund
2ab1ae7f61
Updated examples for build-time env configuration for v8 ( #6237 )
...
* Updated examples for build-time env configuration for v8
* Add comment to build time config example with how to include entire .env
2019-02-11 14:15:06 +01:00
Resi Respati
3746d7d90b
[with-typescript] Fixed incorrect query type ( #6238 )
2019-02-11 10:32:10 +01:00
Tim Neutkens
e4f96e65d3
v8.0.0
2019-02-11 09:02:37 +01:00
Tim Neutkens
b31819fa50
Remove build directory
2019-02-11 08:57:47 +01:00
Tim Neutkens
a2bb542f39
Allow publishing the master branch using Lerna
2019-02-11 08:44:28 +01:00
Tim Neutkens
7d6eb38f79
Merge branch 'canary'
2019-02-11 08:40:55 +01:00
Tim Neutkens
8ddf9c7f27
v8.0.0-canary.23
2019-02-11 08:28:49 +01:00
Tim Neutkens
c9f4a956d4
Update yarn.lock
2019-02-11 08:28:22 +01:00
Tim Neutkens
163830c026
Merge branch 'canary'
...
# Conflicts:
# examples/with-apollo-and-redux/README.md
# examples/with-sentry/README.md
# examples/with-sentry/package.json
# examples/with-sentry/pages/_app.js
# package.json
# packages/next/build/webpack-config.js
# packages/next/client/index.js
# server/document.js
# server/render.js
# test/integration/production/test/index.test.js
2019-02-11 08:22:31 +01:00
Tim Neutkens
100b733960
v8.0.0-canary.22
2019-02-11 08:17:22 +01:00
Tim Neutkens
315a374298
Add new circleci config
2019-02-11 08:15:23 +01:00
Resi Respati
f8a80f1aa9
[with-typescript] remove unnecessary passHref
in Link
components ( #6233 )
...
As per discussion in #6165 , I removed the `passHref` in `Link` as
they're unnecessary.
2019-02-11 00:00:05 +01:00
Giuseppe
ac0976affe
Update styled-jsx ( #6236 )
...
Changelog https://github.com/zeit/styled-jsx/releases/tag/v3.2.1
2019-02-10 22:19:38 +01:00
Fredrik Höglund
b05df70872
Fix first render of with-react-helmet example ( #6235 )
2019-02-10 20:48:13 +01:00
Akram
63c25a9c60
update preset.ts to use isProduction variable ( #6234 )
2019-02-10 18:45:51 +01:00
Tim Neutkens
c07e27f2f1
7.0.3
2019-02-10 05:46:26 +01:00
Tim Neutkens
7c64336e9d
Revert "should not change method to replaceState unless asPath is the same ( #6033 )"
...
This reverts commit ab46c45146
.
2019-02-10 05:36:32 +01:00
Tim Neutkens
155423f26b
Bring in terser-webpack-plugin (backport #6231 to master) ( #6232 )
...
* Bring in terser-webpack-plugin (backport #6231 to master)
* Use correct path for ignore
* Comment out schema
2019-02-10 05:32:32 +01:00
Tim Neutkens
bfd2d08ff2
v8.0.0-canary.21
2019-02-10 05:10:24 +01:00
Tim Neutkens
377e43b6e2
Update yarn.lock
2019-02-10 05:09:22 +01:00
Tim Neutkens
2ecb2489ce
v8.0.0-canary.20
2019-02-10 04:56:14 +01:00
Tim Neutkens
45f5663558
Bring in terser-webpack-plugin ( #6231 )
...
* Bring in terser-webpack-plugin
* Ignore terser from linting
2019-02-10 04:55:09 +01:00
Kris Luminar
693ab43663
Fix typo ( #6230 )
2019-02-10 04:45:33 +01:00
Tim Neutkens
c0701e948f
v8.0.0-canary.19
2019-02-08 16:04:44 +01:00
Connor Davis
6f162b94e1
Add Error when using publicRuntimeConfig with target serverless and add buildVars ( #6212 )
...
Introduce env to next.config.js for build-time configuration
2019-02-08 14:38:18 +01:00
Connor Davis
28b61a8c94
Remove Unneeded _error import ( #6224 )
2019-02-08 11:57:29 +01:00
Alexander Nanberg
cc0b3ef451
Remove extraneous benchmark dependency ( #6222 )
...
AFAIK this dependency isn't being used anywhere so it should be safe to remove it.
2019-02-07 21:50:35 +01:00
Henri
98cf0a8311
[examples] Update react jss example ( #6198 )
...
This updates the react-jss example to work with the v10 alpha
2019-02-04 11:51:38 +01:00
Tim Neutkens
815f2e9138
Only compile /_error when /_error is needed ( #6192 )
...
Followup to removing the /_error in the initial markup we can now compile it using on-demand-entries only when it's needed.
2019-02-03 15:34:28 +01:00
Konstantin Grushetsky
2f304bd10e
Remove 'acorn' dependency ( #6193 )
2019-02-03 14:36:29 +01:00
Guilherme Augusto Henschel
ed2aa607d5
Updated readme with improved info about next/link and next/router ( #6197 )
2019-02-03 14:34:27 +01:00
Christian Sánchez Mendoza
0e13d8c952
Remove route event in componentWillUnmount ( #6196 )
...
`Router.events.off` should be called instead of `Router.events.on` in `componentWillInmount`.
2019-02-03 14:13:30 +01:00
Giuseppe
5a4176cffe
Invalidate cache for link[preload] in DEV ( #6183 )
...
Fixes #5860
2019-02-03 00:12:49 +00:00
Tim Neutkens
230ae52de2
Remove publish test results for azure pipelines
2019-02-01 13:44:01 +00:00
Tim Neutkens
b2b2041e39
v8.0.0-canary.18
2019-02-01 13:23:56 +00:00
Sultan Tarimo
1a416b688e
Load ErrorComponent dynamically ( #6171 )
...
Closes #6152 .
- Only dynamically load /_error.js when an exception occurs.
- Fix websocket “/_error.js” ping oddity.
2019-01-31 20:45:36 +00:00
Resi Respati
8fdb133903
[with-typescript] Improved intial props examples, added example detail ( #6165 )
...
I've just thought of a way to improve the initial props page by adding
an example for a list/detail page structure. To do that, I've created a
separate `/detail` page, and a mock API which calls data from the array
we made on the previous PR.
A ListDetail component is created as an example for displaying detail.
Page structure is also cleaned up. Should I go ahead and add an example
on how to style with styled-jsx + its TS declarations? I might decide to
do it within this week anyway.
2019-01-31 17:36:02 +00:00