Rounak Agarwal
0c2a6d8f48
fix typo ( #11786 )
2020-04-09 12:54:59 -05:00
Joe Haddad
13cf97055f
v9.3.5-canary.6
2020-04-09 10:24:02 -04:00
Joe Haddad
041384bdda
Upgrade ci-info
( #11758 )
...
* Upgrade `ci-info`
This adds support for Nevercode, GH Actions, and Render.
* Repackage compiled deps
* Try to fix test
2020-04-09 10:23:04 -04:00
Stig Kleppe-Jørgensen
28e1be83df
Remove duplicate content ( #11750 )
2020-04-09 10:29:34 +02:00
JJ Kasper
7af04db4e4
Fix just headers not being applied in dev mode ( #11755 )
2020-04-09 10:24:15 +02:00
JJ Kasper
fa167e3346
Update to latest version of AMP optimizer ( #11753 )
...
* Update to latest version of AMP optimizer
* Update test
* Update another test
* Update another test
2020-04-09 10:23:31 +02:00
Yuki Takemoto
a35ae240c4
chore(example): Update styled-components to v5 ( #11765 )
2020-04-08 19:41:06 -05:00
Zack Krida
1d21897982
Update start script in preact example ( #11763 )
...
As far as I understand using preact in Next.js no longer requires a custom server. The current start command `"start": "NODE_ENV=production node server.js"` references a file that no longer exists.
2020-04-08 19:34:54 -05:00
sdhani
7e39079462
Minor with-docker readme grammar fix ( #11760 )
...
* Fix with-docker readme grammar
* Amended with-docker readme grammar fix
Co-Authored-By: Luis Alvarez D. <luis@zeit.co>
Co-authored-by: Luis Alvarez D. <luis@zeit.co>
2020-04-08 19:07:12 -05:00
Joe Haddad
2704387d2e
Add New Provider ( #11757 )
2020-04-08 16:20:28 -04:00
Zack Krida
21be4c054b
Fix: small typo in SERVER_PROPS_EXPORT_ERROR
constant ( #11749 )
2020-04-08 09:43:18 -04:00
Luis Alvarez D
84b73bdb0a
[contributing docs] Add more details about chromedriver for ma… ( #11739 )
2020-04-08 09:58:16 +02:00
Luis Alvarez D
5a786bdfd8
Bump timeout for create-next-app tests ( #11743 )
2020-04-08 09:44:52 +02:00
Luis Alvarez D
282f375189
[Examples] Update with-mobx-state-tree examples ( #11736 )
...
* Updated with-mobx-state-tree
* Updated with-mobx-state-tree-typescript
* minor fix
2020-04-08 09:44:28 +02:00
David Janda
17384fc064
Updated with-xstate ( #11658 )
...
* Replaced getInitialProps with SSG
* Removed getStaticProps
* Apply suggestions from code review
Remove count
Co-authored-by: Luis Alvarez D <luis@zeit.co>
2020-04-07 15:26:05 -05:00
JJ Kasper
cad2a75649
Make sure to handle "next" import gracefully ( #11733 )
...
* Make sure to handle "next" import gracefully
* Update test file
2020-04-07 15:13:01 -04:00
David Janda
44b7b3c953
Updated with-webpack-bundle-size-analyzer to use SSG ( #11657 )
...
* Replaced getInitialProps with SSG
* Moved faker to a top level import and re-added contact.js
2020-04-07 13:20:50 -05:00
Joe Haddad
43a8e57b3e
v9.3.5-canary.5
2020-04-07 13:38:48 -04:00
JJ Kasper
cc9678056e
Fix inconsistent handling for /index ( #11643 )
...
* Fix inconsistent handling for /index
* Add more test cases
* Add pages/index/index.js test
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-04-07 13:24:53 -04:00
Dylan Brookes
bc7d18367b
Confirm if user wants example when creating app ( #10543 )
...
* Confirm if user wants example when creating app
* Only ask user to choose example if they provide --example flag
* Simplify the search
* Added test
* Use a select to pick the template
* Updated test
* check for lowercase and updated no example message
* Add message if no template is selected
* Updated tests
* Handle error if fetching the examples fails
* Fixed tests
* Updated test timeout
* Update examples.ts
Co-authored-by: merelinguist <merelinguist@users.noreply.github.com>
Co-authored-by: Luis Alvarez <luis@zeit.co>
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-04-07 13:11:29 -04:00
JJ Kasper
bf184fceeb
Update to merge props from GSSP methods with _app pageProps ( #11709 )
...
* Add warning for pageProps GSSP conflict
* Update warning
* Update to merge pageProps instead of warn on conflict
* bump
* Update merging
2020-04-07 11:33:26 -04:00
Vincent Voyer
009369a9aa
docs(examples): add with-iron-session example ( #10973 )
...
This example creates an authentication system that uses a **signed and encrypted cookie to store session data**. It relies on [`next-iron-session`](https://github.com/vvo/next-iron-session ).
It uses current best practices as for authentication in the Next.js ecosystem:
1. **no `getInitialProps`** to ensure every page is static
2. **`useUser` hook** together with [`swr`](https://swr.now.sh/ ) for data fetching
Features:
- Logged in status synchronized between browser windows/tabs
- Layout based on logged in status
- All pages are static
- Session data is signed and encrypted in a cookie
2020-04-07 10:47:00 -04:00
viz
9f27259425
chore(deps): remove next-css from examples/antd ( #10804 )
...
* chore(deps): remove next-css
* Update examples/with-ant-design/package.json
Co-Authored-By: Jack <jacklee82814@gmail.com>
* Update examples/with-ant-design/pages/_app.js
Co-Authored-By: Jack <jacklee82814@gmail.com>
* chore(lint): fix a linting error
Co-authored-by: Jack <jacklee82814@gmail.com>
2020-04-07 10:40:11 -04:00
Luis Alvarez D
1eefd006a8
[example] Add SWR to api-routes-graphql ( #11383 )
...
* Updated example
* Removed isomorphic-unfetch
2020-04-07 09:51:02 -04:00
Luis Alvarez D
30870b444a
[Examples] Add SWR to api-routes and api-routes-middleware ( #11385 )
...
* Updated the api-routes-middleware example
* Updated the api-routes example
2020-04-07 09:49:59 -04:00
Luis Alvarez D
bf0f9da9db
[Example] Remove SSR from with-cerebral ( #11562 )
2020-04-07 09:48:32 -04:00
Luis Alvarez D
1239d5af59
[Examples] Update mobx examples to not use SSR ( #11576 )
...
* Updated with-custom-reverse-proxy
* Updated readme of with-env-from-next-config-js
* Updated the kea example
* Updated with-mobx
* Updated with-mobx readme
* Updated the with-mobx-react-lite example
2020-04-07 09:48:13 -04:00
JJ Kasper
84b89c8b24
Pre-ncc compiled packages to prevent re-nccing unnecessarily ( #11569 )
...
* Pre-ncc compiled packages to prevent re-nccing unnecessarily
* Add compiled files
* Re-run pre-ncc step
* Add check to workflow to ensure pre-compiled doesnt need updating
* Update check-pre-compiled script
* Add handling for lower case license while nccing
* bump
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-04-07 09:42:16 -04:00
matamatanot
1f15072e99
Update got in create-next-app ( #11725 )
...
Co-authored-by: “kosuke_matano” <kosuke_matano@cyberagent.co.jp>
2020-04-07 09:24:57 -04:00
Yuki Takemoto
7e556c75d7
Remove outdated sentence from static-export example ( #11708 )
2020-04-07 12:03:03 +02:00
Ben
44a04acd72
Update typescript.md ( #11717 )
...
just add file name to avoid wrong file name like `_app.ts`
2020-04-07 11:48:18 +02:00
JJ Kasper
43b9f8fbfe
v9.3.5-canary.4
2020-04-06 14:24:16 -05:00
JJ Kasper
04e4c457d9
Update to not modify req.url for getServerSideProps requests ( #11637 )
2020-04-06 13:55:22 -05:00
kkobiela
7227824b4a
Update dependencies ( #11707 )
2020-04-06 13:37:54 -05:00
Joey Tepperman
cdc7f01954
Add warning when a page is rendered without a starting / ( #11418 )
...
* Add error/warning when a page is rendered without a /
Throws an error for development and gives a warning in production
* Add tests for error when rendering without starting slash
* Update to always warn and add err.sh
* Update errors/render-no-starting-slash.md
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-04-06 11:54:42 -05:00
Aaron Reisman
8f4e265f76
Fix Utility Types ( #11077 )
2020-04-06 17:59:44 +02:00
Aaron Reisman
7a61fb7fdf
Cleanup Build Output Types ( #11076 )
2020-04-06 17:59:36 +02:00
Aaron Reisman
bddd1ce53e
Update compiler.ts Improve TypeScript typings ( #11074 )
...
Improve TypeScript typings
2020-04-06 17:58:35 +02:00
matamatanot
c89ddc97e2
Remove node-promisepipe
library ( #11700 )
...
* remove promisepipe
* commit yarn.lock
Co-authored-by: “kosuke_matano” <kosuke_matano@cyberagent.co.jp>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-04-06 10:46:04 -04:00
matamatanot
6821d1f8f7
import from compiled ( #11684 )
...
Co-authored-by: “kosuke_matano” <kosuke_matano@cyberagent.co.jp>
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-04-06 10:24:37 -04:00
Brandon Duffany
1fbd20dc37
Allow top-level GitHub repo URLs as examples ( #11691 )
...
* Support top-level GitHub repo URLs
Adds support for top-level GitHub repo URLs, e.g.
https://github.com/username/my-cool-next-example .
This is already possible, but you have to enter "/tree/master" (or the
desired branch name) after the repo URL.
The change itself simply expands that URL to
https://github.com/username/cool-next-example/tree/$DEFAULT_BRANCH_NAME
where DEFAULT_BRANCH_NAME is the default branch configured for the repo
in GitHub.
* Fix formatting issues
2020-04-06 15:57:19 +02:00
Luis Alvarez D
f33ba2c525
[docs] Mention the new data fetching methods on missing places ( #11620 )
...
Co-authored-by: Tim Neutkens <timneutkens@me.com>
2020-04-06 13:47:12 +02:00
Vass Bence
969ffd6c1a
Mention <title> and styled-jsx caveats in Document's docs ( #11499 )
...
* Mention <title> and styled-jsx caveats
* Update custom-document.md
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-04-06 13:38:29 +02:00
Karl Horky
baf0b28779
Add routing example with dynamic as
prop ( #11114 )
2020-04-06 13:36:57 +02:00
Yossi Spektor
23d71ff116
Any elements must be direct children of next/head ( #11557 )
...
It is any elements and not only meta or title because the children of next/head are generated in here: 8c899ee5e4/packages/next/next-server/lib/head.tsx (L139)
where React.cloneElement is called without the third parameter which is needed to clone the children as well (https://reactjs.org/docs/react-api.html#cloneelement ).
2020-04-06 13:35:22 +02:00
Yamagishi Kazutoshi
bd85cbdf17
Add repository URL to package.json ( #10748 )
...
Co-authored-by: Tim Neutkens <timneutkens@me.com>
2020-04-06 13:31:44 +02:00
Madeline Ziolko
301cca3802
Update webpack and mkdirp ( #11165 )
...
* Update mkdirp to a version that no longer has a dependency on minimist: https://npmjs.com/advisories/1179
* Update webpack to the most recent minor version to remove minimist vulnerability.
* Update deps
Co-authored-by: Tim Neutkens <timneutkens@me.com>
2020-04-06 13:12:14 +02:00
Paul van Dyk
19f41c60bc
Update postcss.config.js ( #11366 )
...
* Update postcss.config.js
Return empty array if the condition is not met to avoid a null/undefined PostCSS plugin.
* Update postcss.config.js
Fix array spread
* Update postcss.config.js
remove extra operator
* Fix linting
Co-authored-by: Tim Neutkens <timneutkens@me.com>
2020-04-06 12:06:06 +02:00
Fabian Mastenbroek
20f2b0b3b2
Add example for polyfilling DOMParser in Node ( #10782 )
...
This change updates the README of the `react-intl` example to show how to use
the FormattedHTMLMessage component from `react-intl` in Node environments when
using pre-v4 versions.
2020-04-06 12:03:10 +02:00
Tim Neutkens
69984de796
v9.3.5-canary.3
2020-04-06 11:51:39 +02:00