1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
Commit graph

1992 commits

Author SHA1 Message Date
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 9d4891f295
Check if matched before reading value (#4096) 2018-04-02 21:18:33 +02:00
Tim Neutkens 2fa49d70b7 6.0.0-canary.2 2018-04-01 00:06:18 +02:00
Tim Neutkens c3318d8ef6
Make sure hot-self-accept-loader cleans up the route correctly (#4092) 2018-03-31 23:19:06 +02:00
Craig McNamara 7f335cb032 Allow BUILD_ID to be set using generateBuildId (minor) (#3873)
* Allow BUILD_ID to be set in the environment

This makes multi server deploys with Capistrano possible.

* next.config.js generateBuildId support

enable customising the build id via config

* Provide default for generateBuildId

* This is not used
2018-03-31 16:34:52 +02:00
George Pantazis 085b2f806a Add Router method to execute custom logic before popstate events (#3956)
* Add router method to inject code before popstate events

* Default _beforePopState, return true

* Fix link in README

* Re-order `if` statements per feedback
2018-03-31 16:21:51 +02:00
Tim Neutkens a785f303f4
Match externals ending in .js not everything with .js (#4091)
Makes sure highlight.js/styles/dark.css doesn’t get caught by externals.
2018-03-31 16:08:16 +02:00
Tim Neutkens 43fe9ace54 Merge branch 'canary' of github.com:zeit/next.js into canary 2018-03-31 16:07:16 +02:00
Tim Neutkens c07cf5e83f Upgrade Next in with-firebase-hosting 2018-03-31 16:06:12 +02:00
Jonathan James b39958e780 Fix serve command (#3989)
* Fix serve command

From the Firebase docs, you must use --only in order to run the local function emulator.
See https://firebase.google.com/docs/functions/local-emulator

* Add production env for firebase serve

Doesn't work without this

* Update text as suggested by @jthegedus
2018-03-31 15:59:24 +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
Tim Neutkens 0b9b902a89 Get pages before entry function (#4089) 2018-03-31 17:30:56 +05:30
Tim Teeling 9ec81c00fa Fix #3900 return 404 on asset hash mismatch in prod (#3941)
* Fix #3900 return 404 on asset hash mismatch in prod

* Make INVALID_BUILD_ID return 404
2018-03-31 09:01:46 +02:00
Luis Fernando Alvarez D b43af823dd Updated example with-now-env (#4081)
* New example: with-now-env

* updated the example with-now-env
2018-03-31 08:17:21 +02:00
Tim Phillips 7e67152232 clarify .next in .gitignore text (#4087) 2018-03-31 08:14:54 +02:00
Tage A. L. K b321e6e942 Remove deprected and refactor with-apollo-auth (#4070)
* Remove deprected use of apollo-client-preset, and refactor

Changes
* Remove deprected use of apollo-client-preset in favor of apollo-boost
* Refactor for usage of react-apollo@2.1

* Use standard

Just ran standard --fix
2018-03-31 08:11:36 +02:00
Tim Neutkens 812db745f8
Use printAndExit with error (#4086) 2018-03-31 00:00:41 +02:00
Tim Neutkens 9711f74db7 Update yarn.lock 2018-03-30 21:00:26 +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
Carlo Palinckx 136dabc51d fixed small readme typo (#4083) 2018-03-30 14:02:36 +02:00
Tim Neutkens 69ca73ca56 Upgrade @zeit/next-typescript in with-typescript example (patch) 2018-03-30 00:07:33 +02:00
Tim Neutkens 069f45d74e Upgrade @zeit/next-typescript in custom-server-typescript example (patch) fixes #4071 2018-03-29 21:06:53 +02:00
Wes Bos 3949c82bdf Add missing url prop (#4078)
This was causing react-apollo  to crash on any SSR page that needed the page's query to make the GraphQL queries. 

It's magically passed on the client, but we have to manually pass it to the composed component here
2018-03-29 18:01:12 +02:00
Pavel Prichodko 2ba8ad9760 Add with-google-analytics example (#4036)
* Rename example with-analytics to with-segment-analytics

* Add with-google-analytics example
2018-03-29 17:03:28 +02:00
Tim Neutkens 341c34d4bf Move getConfig message to the line above in readme 2018-03-29 10:19:21 +02:00
Tim Neutkens cfe748d4b5 Add note about getConfig 2018-03-29 10:17:44 +02:00
Luis Fernando Alvarez D 9f4e707682 New example: with-now-env (#4073) 2018-03-29 00:11:40 +02:00
Will Meier 4570f2d050 Update with-apollo examples (#4067)
* Update with-apollo examples to include note about top-level withData HOC

* Update with-apollo examples to include note about top-level withData HOC
2018-03-28 22:30:42 +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 3c97f9664b Merge branch 'canary' 2018-03-26 18:44:50 +02:00
Rasool Dastoori 603b90ce02 Fix loading and rendering GraphQL data on the server in the with-apollo-and-redux example (#4054) 2018-03-25 17:40:25 +02:00
moondef 7cf9199a5f Add alt attributes to examples in readme.md (#4053) 2018-03-25 12:43:36 +02:00
Tim Neutkens 14a16924c5 Make sourcemap paths relative in production 2018-03-23 17:10:23 +01:00
Gianmarco 7bef864a6f Fixes install command in with-absolute-imports example. (#4049)
Fixes installation command for `with-absolute-imports` example.
2018-03-23 14:00:18 +01:00
Tim Neutkens e1a0f18a92 Add note about _document being only server side 2018-03-23 13:50:52 +01:00
Luke Plaster a6af11c6ae Improved with-ant-design example (#4034)
* Improved with-ant-design example

* standardjs fix maybe
2018-03-23 12:52:34 +01:00
Prateek Rastogi 9470b91ba1 migrated from apollo-client-preset to apollo-boost (#4047) 2018-03-23 12:51:58 +01:00
Igor Toporet b13410525a Update readme (do not mention specific version) (#4038)
* Update readme for Next 5

* remove specific version mention
2018-03-23 09:24:42 +01:00
Tim Neutkens 930be2813b 5.0.1-canary.17 2018-03-21 12:17:47 +01:00
Tim Neutkens ac7a23d595
Make sure react and react-dom are bundled to main.js in development (#4039)
Signed-off-by: Tim Neutkens <timneutkens@me.com>
2018-03-21 12:16:44 +01:00
Arunoda Susiripala 1844a09023 Remove the default HMR error overlay (#4020)
This is supplied by webpack-hot-middleware.
I also added a test case to prevent this from popping up again.
2018-03-17 11:59:46 +01:00
Leo Lamprecht 17db533be5 Fixed deployment token (#4019) 2018-03-16 17:15:14 +01:00
Tim Neutkens b52ae3bb23 5.0.1-canary.16 2018-03-16 12:00:42 +01:00
Shaleen Jain cd1d9e0c35 with-apollo: Improve lib/withData (#3973)
* pass down getInitialProps ctx to ComposedComponent
* pass apollo client instance directly to getDataFromTree instead of through the ApolloProvider wrapper.
* Avoid redundant empty serverState initialization (It's always initialized)
2018-03-16 11:52:30 +01:00
Tomáš Witek c73f7d6ace Unlink only pages bundle in dev env (#4015)
* Unlink only pages bundle in dev env

* Use IS_BUNDLED_PAGE regexp for unlink file plugin
2018-03-15 22:04:17 +05:30
Jeffrey Young f0308687c1 fix mistake in docs (#4013) 2018-03-15 10:30:29 +05:30