- 29 Jun, 2019 2 commits
- 28 Jun, 2019 11 commits
-
-
Luis Fernando Alvarez D authored
-
Joe Haddad authored
* Remove `withAmp` and do not expose `isInAmpMode` This pull request removes the `withAmp` higher-order component in favor of the exported configuration object. Retaining this backwards compatibility isn't worth the extra maintenance burden, given it hasn't been released for very long and the migration is ultra-simple. I'm
👎 on retaining backwards compatibility just for the sake of it. Migration example follows. I'm willing to write a codemod if reviewers feel it's necessary. *Before* ```js import { withAmp } from 'next/amp' function Home() { return <h1>My AMP Page</h1> } export default withAmp(Home) // or export default withAmp(Home, { hybrid: true }) ``` *After* ```js export default function Home() { return <h1>My AMP Page</h1> } export const config = { amp: true, // or amp: 'hybrid', } ``` * Fix { amp: 'hybrid' } Co-Authored-By:JJ Kasper <jj@jjsweb.site>
-
Joe Haddad authored
-
Luis Fernando Alvarez D authored
* added docs for disabling prefetch * Update packages/next/README.md Co-Authored-By:JJ Kasper <jj@jjsweb.site>
-
JJ Kasper authored
* Expand automatic pre-rendering docs * Apply suggestions from code review Co-Authored-By:Luis Fernando Alvarez D. <luis@zeit.co>
-
Joe Haddad authored
* Unflag Dynamic Routing * Unflag Automatic Prerendering * Ensure pages are lambdas for test * Fix file check * Fix tests * oof * Use lambda for document middleware test
-
JJ Kasper authored
-
JJ Kasper authored
* Remove modules option from dynamic * Remove old test
-
Lukáš Huvar authored
* Update helper function to invoke only on get * Tests for body parsing * Update api-utils.ts * Update next-server.ts * Update packages/next-server/server/next-server.ts Co-Authored-By:JJ Kasper <jj@jjsweb.site>
-
Taro Shono authored
-
- 27 Jun, 2019 4 commits
-
-
JJ Kasper authored
-
Lukáš Huvar authored
* Dynamic routes for API * New structure * Change next config * Refactoring tests * Fix newline * Fix tests * Remove dynamic from config * Apply suggestions from code review Co-Authored-By:Joe Haddad <timer150@gmail.com> * Update index.test.js
-
JJ Kasper authored
* Clean up AMP logic * Tweak AMP logic some more * Rename hasAmpVersion to hybridAmp
-
Lukáš Huvar authored
-
- 26 Jun, 2019 8 commits
-
-
JJ Kasper authored
-
JJ Kasper authored
-
Joe Haddad authored
* Asynchronously check for type errors * Add TODO * Fix webpack invalidation * Show TypeScript error in dev client
-
Eduardo P. Rivero authored
* Updating hapijs package name Hapi was moved to a new module under the name @hapijs/hapi. Right now installing just as hapi is giving you this warning: ```bash npm WARN deprecated hapi@18.1.0: This module has moved and is now available at @hapi/hapi. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues. ``` This change does not affect the integration with next and it continues to work great. * Update package.json
-
JJ Kasper authored
-
JJ Kasper authored
-
JJ Kasper authored
-
JJ Kasper authored
-
- 25 Jun, 2019 5 commits
-
-
JJ Kasper authored
-
JJ Kasper authored
-
Joe Haddad authored
-
JJ Kasper authored
-
JJ Kasper authored
-
- 24 Jun, 2019 9 commits
-
-
JJ Kasper authored
-
JJ Kasper authored
* Update page-loader prefetch checking * Add test for re-prefetching same bundle
-
Joe Haddad authored
-
Joe Haddad authored
-
Joe Haddad authored
* Fix TypeScript typing This correctly defines `process.browser` instead of `process.env.browser`. It also removes `process.crossOrigin` because it's not found in our documentation anywhere and is mostly used for internal purposes. * Make sure `process.browser` doesn't throw a type error * Split globals from Next.js module * Allow `test` as a valid NODE_ENV * Fix type assignment * Make sure global types get published * Fix test
-
Kuba Juszczyk authored
* Restoring not working mouse event * Restoring possibility of conditionally switching off the prefetch
-
Joe Haddad authored
This PR compiles development-time dependencies that cause invalid syntax errors in IE 11 (ES 5). Closes #7610 Closes #7612
-
Joe Haddad authored
* `_document` middleware is experimental Closes https://github.com/zeit/next.js/issues/7580 * Turn on document middleware
-
Joe Haddad authored
This reverts commit e85a517e.
-
- 23 Jun, 2019 1 commit
-
-
Khang Hoang authored
-