181 Commits
Author SHA1 Message Date
Tim NeutkensandGitHub b1c4f3aec4 Monorepo (#5341)
- Implements Lerna
- Moves all source code into `packages/next`
- Keeps integration tests in the root directory
2018-10-01 01:02:10 +02:00
Leo LamprechtandTim Neutkens e4a94acd96 Moved to ZEIT's AppVeyor (#4991)
Previously, it was mistakenly located under @arunoda's personal account.
2018-08-20 11:52:00 +02:00
HaNdTriXandTim Neutkens 25de2e814e Fix broken readme link (#4977)
As reported by @ranyitz the links in the documentation about ['What syntactic features are transpiled? How do I change them?'](https://github.com/zeit/next.js#faq) are broken.

I updated the links and the text to reflect the latest changes.

Closes #4974 
Related https://github.com/zeit/next.js/commit/eb74ff4bf9e3b83edee346fc0dfa99e7e7cc086c
2018-08-17 11:21:52 -07:00
LucandTim Neutkens fcf9625ed0 Replace deprecated props.url in readme (#4952)
Following https://github.com/zeit/next.js/pull/4950

Fix https://github.com/zeit/next.js/issues/4716

I'm not sure to understand this part, though :
> Note: in order to programmatically change the route without triggering navigation and component-fetching, use `props.url.push` and `props.url.replace` within a component

Is there a difference between :
```jsx
export default () => <a onClick={() => Router.push('/about')}>About</a>
```

and
 
```jsx
export default withRouter(
  () => <a onClick={() => props.router.push('/about')}>About</a>
)
```
?
2018-08-13 14:38:02 -07:00
LucandTim Neutkens b516d094a4 Fix shallow routing examples using old React lifecycle and deprecated props.url (#4950)
* replace componentWillReceiveProps by componentDidUpdate

* replace props.url by withRouter HOC

* fix deprecated `props.url` in with-shallow-routing example
2018-08-13 11:09:45 -07:00
Stefan IvicandTim Neutkens fc05c9c273 Update readme with alternative hostname option (#4829)
Tackles the issue in #4025.
2018-07-26 12:42:35 +02:00
S. SuzukiandTim Neutkens 6bd24fd9e2 Fix micro readme example (#4827)
I found mistake on readme
2018-07-24 13:55:13 +02:00
Tim NeutkensandGitHub 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
Albin EkblomandTim Neutkens d8be2a0379 Add example of process.env runtimeConfig (#4759) 2018-07-11 12:48:14 +02:00
Jacob PageandTim Neutkens d51245b877 Improve documentation on runtime configuration (#4756)
* Remove nesting of runtime configuration under the babel section, since it's not related to babel.
* Clean up confusing verbiage relating to "keys."
2018-07-10 23:02:45 +02:00
Jacob PageandTim Neutkens 498f37e33f Support events emitter for router (#4726)
Fixes #4679 
* Document usage of `events` router property
* Expose `events` in the `router` context object
2018-07-05 14:41:18 +02:00
Kelly BurkeandTim Neutkens e70c59517b Add example to Recipes section (#4661) 2018-06-25 12:31:09 +02:00
Tim NeutkensandGitHub 3ae9f877a9 Rephrase url deprecation text and add link to next-codemod (#4649)
* Rephrase url deprecation text and add link to next-codemod

* Clean up double words
2018-06-22 14:21:28 +02:00
Tim NeutkensandGitHub 6cba9fa511 Remove the React 15 support comment (#4648)
Next.js supports React 15 / React-like alternatives that don’t have the `rehydrate` method (preact) again since Next.js 5+. It’s still not recommended to use React 15. But there’s no need to mention that here as this is the initial installation and we instruct the user to install the latest version of React.
2018-06-22 11:53:15 +02:00
Tim NeutkensandGitHub fc2d59de4d Add class properties configuration (#4619) 2018-06-19 21:48:54 +02:00
Tim NeutkensandGitHub 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
Andrew McLaganandTim Neutkens 2c4a5739a1 Update README.md to include browser support and polyfills docs (#4601)
Fixes #4572

This PR intends to address https://github.com/zeit/next.js/issues/4572 around documenting browser support and what needs polyfills.

There are many outstanding issues on the tracker regarding browser support and polyfills. This may alleviate some of them.
2018-06-14 12:39:13 +02:00
Tim NeutkensandGitHub 5bc3b23c23 Make router properties update when re-rendering (#4541)
* Make router properties update when re-rendering

* Remove documentation about methods that have been deprecated since v2/v3

* Update next export documentation
2018-06-05 17:10:28 +02:00
andy-vivandTim Neutkens 2b16d8b2ac added "hashChangeStart" and "hashChangeComplete" events (#4234)
This PR adds events for when there is a hash-only change in the URL. This is needed because `window.addEventListener('hashchange', ...)` does not work with next.js because it is using pushState.
2018-05-25 14:47:58 +02:00
Tim Neutkens 4e8009c107 Add section to the readme about configuring .babelrc 2018-05-25 14:39:37 +02:00
Robin WieruchandTim Neutkens 2c3e8d3201 Improve route prefetch docs: add client side imperative code (#4213)
I stumbled into this Issue https://github.com/zeit/next.js/issues/2868 and thought it should be mentioned properly in the documentation.
2018-05-25 14:26:45 +02:00
Timothy VernonandTim Neutkens a806c16713 Clarify documentation regarding the static folder (#4340) 2018-05-25 13:42:19 +02:00
Tim Neutkens 13cf9429f7 Remove note about exportPathMap not being supported in development 2018-05-16 21:16:26 +02:00
Gökay GürcanandTim Neutkens 121f6c2801 docs: add missing fat arrow (#4245) 2018-05-01 13:12:16 -07:00
RavenandTim Neutkens 9578e9f9d8 Update link to new learning page (#4223) 2018-04-29 10:55:19 -07:00
Tim Neutkens 0daf9beedc Add _app layout example 2018-04-24 12:31:26 -07:00
Tim Neutkens e6b5567b20 Update url for componentDidCatch 2018-04-23 15:16:30 -07:00
ninesaltandTim Neutkens 23716d4487 Fix grammatical errors in readme.md (#4199) 2018-04-23 11:17:27 -07:00
Tim Neutkens a691dd06cf State is no longer used since #4156 2018-04-18 21:39:57 +02:00
Tim PhillipsandTim Neutkens f6949349c1 Link to popstate doc on MDN (#4150) 2018-04-13 12:29:35 +02:00
Christian NwambaandTim Neutkens 09e5064821 Fixed typo (#4144)
which allows you can -> which allows you to
2018-04-12 10:40:32 +02:00
Tim NeutkensandGitHub 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 NeutkensandGitHub 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
Tobias TimmandTim Neutkens b393833aea Update doc for @zeit/next-stylus (#4107) 2018-04-04 13:18:28 +02:00
Craig McNamaraandTim Neutkens 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 PantazisandTim Neutkens 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 PhillipsandTim Neutkens 7e67152232 clarify .next in .gitignore text (#4087) 2018-03-31 08:14:54 +02:00
Tim NeutkensandGitHub 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 PalinckxandTim Neutkens 136dabc51d fixed small readme typo (#4083) 2018-03-30 14:02:36 +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
moondefandTim Neutkens 7cf9199a5f Add alt attributes to examples in readme.md (#4053) 2018-03-25 12:43:36 +02:00
Tim Neutkens e1a0f18a92 Add note about _document being only server side 2018-03-23 13:50:52 +01:00
Igor ToporetandTim Neutkens 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
Jeffrey YoungandArunoda Susiripala f0308687c1 fix mistake in docs (#4013) 2018-03-15 10:30:29 +05:30
Oscar MartinezandTim Neutkens eff27bdcfb Allow etags to be disabled with config option (#3915)
* Allow etags to be disabled with config option

- CR Change: Rename option to generateEtags
- CR Change: Add tests for etag generation
- CR Change: Refactor to use next.config.js
- Update documentation

* Use renderOpts instead of passing nextConfig
2018-03-13 14:18:59 +01:00
Leo Lamprecht b02e5849e9 Show only Spectrum link 2018-03-10 20:34:07 -08:00
Jimmy MoonandTim Neutkens 84493a67b3 Update readme.md (#3957)
Update readme for scroll props related to #3950
2018-03-07 08:38:11 +01:00
Fabio EspinosaandTim Neutkens 23c3ef88c9 Small grammar mistake (#3930)
"Let's assume we've another page called..." correct way to say it is "we have". Just a small correction.
2018-03-04 16:09:05 +01:00
Max StoiberandTim Neutkens fd7cb2a804 Add Spectrum badge (#3927)
🙌
2018-03-03 15:51:15 +01:00