Joe Haddad
bbe1e0f8a6
v9.0.1-canary.2
2019-07-11 14:53:10 -04:00
Luis Fernando Alvarez D
7b25e2995e
Export types for link props ( #7905 )
...
* export LinkProps
* Add test
2019-07-11 14:52:21 -04:00
Aaron Scherer
8078273a7f
Adding a note about babelrc ( #7897 )
...
* Adding a note about babelrc
Related to https://github.com/zeit/next.js/issues/7803
* Update UPGRADING.md
2019-07-11 13:36:05 -04:00
Luis Fernando Alvarez D
b94123ccc9
Improve exported router types ( #7853 )
...
* Added the RouteUrl type and improved router types
* Added more tests for router types
* Add build test for typescript types
* Add next-env.d.ts to the typescript test
* Removed next-env.d.ts
* Added next-env.d.ts to gitignore
* Remove route url re-exports
* renamed PublicRouterInstance to be NextRouter
* export the Url type
* Replaced BaseRouter with NextRouter in server/utils
* Don't export the Url type
* Update tsconfig.json
2019-07-11 13:35:39 -04:00
Joe Haddad
13cf664898
Add support for legacy server npm modules ( #7898 )
...
Notably, this PR fixes `faunadb` which relies on `formidable`.
n.b. `formidable` is an unmaintained legacy npm package that uses practices not compatible with the modern ecosystem.
2019-07-11 13:02:43 -04:00
Luis Fernando Alvarez D
6f9387f6cf
Add declaration files to the contributing guide ( #7885 )
2019-07-10 20:59:53 -04:00
Lukáš Huvar
2450c85e81
exportPathMap
dynamic routes params fix (#7846 )
...
* Fix dynamic page export fixes #7829
* Adding handling of unmatched path
* Remove logs
* Fix newline
* Tests
* Fix promise
* Fix amp tests
* Revert test
* Adjust error document
* Remove old argument
* Simplify export test
* Ensure page !== path for this check
2019-07-10 17:13:44 -04:00
JJ Kasper
41cb3b3bc0
Stop PageConfig plugin from running on non-pages ( #7884 )
...
* Add test for PageConfig
* Make sure PageConfig plugin is only run for pages
2019-07-10 15:27:11 -04:00
JJ Kasper
268ac93685
Fix placeholder values being added when exporting from serverless ( #7883 )
...
* Add testing serverless in dynamic routes suite
* Fix placeholder dynamic values being added
when exporting from serverless
2019-07-10 15:23:28 -04:00
Joe Haddad
193d049d62
Test for <Document> fragment styles
( #7875 )
2019-07-10 11:46:20 -04:00
Tim Neutkens
8122d82130
Handle empty directory ( #7876 )
...
* Add test for empty directory
* Fix test re-runs
* Handle empty `pages/` directory
2019-07-10 11:45:53 -04:00
Joe Haddad
70b8bed4ad
Add a dev2 command
2019-07-10 10:45:38 -04:00
JJ Kasper
bf7af1d16b
Add default values for runtime config ( #7847 )
...
* Add default values for runtime config
* Add test to ensure default values are set
for runtime config
* Only add runtimeConfig if it's not empty
* Only add runtimeConfig if it's not empty
* Simplify default value adding
* Reduce bundle size
* remove comment changes
* Fix typos
* Add test for runtimeConfig in __NEXT_DATA__
2019-07-10 10:43:04 -04:00
Tim Reynolds
c28f467488
Remove with-styled-components Auto Prerendering warning ( #7871 )
2019-07-10 14:35:50 +02:00
Luis Fernando Alvarez D
8c5209efab
Update typescript examples ( #7867 )
...
* Updated with-jest-typescript
* Updated the mobx-state-tree-typescript example
* Removed the sitemap with typescript example
* Updated the with css typings example
2019-07-10 12:51:21 +02:00
Joe Haddad
24fa6b352f
Title may be omitted ( #7865 )
...
Fixes https://github.com/zeit/next.js/issues/7854
2019-07-10 01:53:20 -04:00
Joe Haddad
e5fa2beac1
v9.0.1-canary.1
2019-07-10 01:39:48 -04:00
Joe Haddad
b430a4919e
Allow React.Fragment for Document styles ( #7863 )
...
* Allow React.Fragment for Document styles
Fixes https://github.com/zeit/next.js/issues/7784
Closes https://github.com/zeit/next.js/pull/7860
* Fix types
* Remove `Without`
2019-07-10 01:39:07 -04:00
Joe Haddad
437140a048
Add UrlObject to router methods ( #7859 )
2019-07-10 00:10:44 -04:00
Barry
1d8fa3a943
fix terminal links (cmd-click) on VSCode ( #7849 )
2019-07-09 19:34:20 -05:00
JJ Kasper
66a03bf1ff
Add test for trailing slash on API route ( #7851 )
2019-07-09 16:34:12 -04:00
Aziz Khambati
bd7a85e26f
Upgrade Doc: Note to remove @types/next ( #7830 )
...
* [doc] Add Uninstall @types/next in Upgrading Doc
* Apply suggestions from code review
Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>
* Update UPGRADING.md
* Update UPGRADING.md
2019-07-09 13:37:30 -04:00
Junyoung Choi
9c8d34d551
Upgrade next.js version in custom-typescript-server example ( #7772 )
...
* Upgrade next.js version of custom-typescript-server example
* Update examples/custom-server-typescript/package.json
Co-Authored-By: Resi Respati <resir014@gmail.com>
* Format package.json
2019-07-09 13:24:14 -04:00
Joe Haddad
ab0b2cf3da
Add a test for module.exports from a page ( #7842 )
...
Closes https://github.com/zeit/next.js/issues/7835
2019-07-09 13:23:38 -04:00
Joe Haddad
c650dca307
Note the config
key is reserved ( #7840 )
...
Closes https://github.com/zeit/next.js/issues/7834
2019-07-09 13:03:37 -04:00
Vincent Cordobes
a137447151
Improve NextApiResponse typing ( #7841 )
...
* Fix NextApiResponse.status type signature
* Improve NextApiResponse typing
2019-07-09 13:02:46 -04:00
Joe Haddad
ce8956aeda
Miscellaneous doc updates ( #7831 )
...
* Runtime config is not compatible w/ prerendering
Closes https://github.com/zeit/next.js/issues/7827
* Add req and res types
* Document using CORS
Closes https://github.com/zeit/next.js/issues/7805
* Add docs about GIP and Prerendering
Closes https://github.com/zeit/next.js/issues/7786
* set => provided
* Note by default
* Ref CORS doc
* Specify empty object
2019-07-09 09:24:29 -04:00
sharils
aac4e21d46
Reduce confusion about passing an object to push
( #7818 )
2019-07-09 13:34:11 +02:00
JJ Kasper
30da9e075e
Update to always require next/config when setting config ( #7822 )
2019-07-09 13:23:51 +02:00
Praveen Senadheera
432eec2aec
Fix small typo in TypeScript documentation ( #7820 )
2019-07-09 01:18:28 -04:00
Joe Haddad
3f56bc5092
Update docs about Automatic Prerendering ( #7816 )
...
* Update docs about Automatic Prerendering
Closes https://github.com/zeit/next.js/issues/7791
* Tweak layout
* Fix review from @ijjk
* Revise wording
* Simplify note since we note this below
* Update packages/next/README.md
Co-Authored-By: JJ Kasper <jj@jjsweb.site>
2019-07-08 23:41:26 -04:00
Yuki Takemoto
16f63a8a76
Upgrade with-firebase-hosting-and-typescript example ( #7815 )
...
* Upgrade with-firebase-hosting-and-typescript example
* Update package.json
2019-07-08 22:35:29 -04:00
Admon Sasson
634b138b40
Make recursiveReadDir return sorted array ( #7658 )
...
This function is used to return the /pages folder content.
The way it is today is that every run might result in a different order of files, which makes the whole webpack chunks be different.
An ordered list of files will result in a deterministic build, which will improve caching.
2019-07-08 21:06:04 -04:00
JJ Kasper
e56573008b
Fix package count being zero in some cases ( #7812 )
...
contains ignored package name
2019-07-08 20:49:51 -04:00
Joe Haddad
3208024735
Undocument the public/
folder ( #7810 )
...
Closes https://github.com/zeit/next.js/issues/7800
2019-07-08 20:12:40 -04:00
Joe Haddad
f152c745da
Update remaining examples to latest Next.js
2019-07-08 19:37:58 -04:00
Yuki Takemoto
3910b6de39
Upgrade next of with-typescript-styled-components sample ( #7788 )
2019-07-08 19:32:15 -04:00
Joe Haddad
7da546a3a5
v9.0.1-canary.0
2019-07-08 19:23:58 -04:00
JJ Kasper
78bba56580
Add API tests to serverless ( #7774 )
...
* Add failing API tests to serverless
* Add newline
* Fix failing serverless tests
2019-07-09 00:50:01 +02:00
Joe Haddad
5205695578
Switch all examples to next@latest
( #7806 )
2019-07-08 18:41:33 -04:00
Lukáš Huvar
a6c7ab9776
Example for GraphQL server with API routes ( #7804 )
...
* Example for GraphQL server with API routes
* Update examples/api-routes-graphql/pages/index.js
Co-Authored-By: Luis Fernando Alvarez D. <luis@zeit.co>
2019-07-09 00:37:51 +02:00
Joe Haddad
b013e11be3
Upgrade to webpack with latest acorns ( #7795 )
...
Closes https://github.com/zeit/next.js/issues/6240
2019-07-08 15:36:55 -04:00
Joe Haddad
6a35b1d302
Set cancelled
property on routeChangeError error ( #7790 )
...
* Set `cancelled` property on routeChangeError error
* Add route cancellation tests
2019-07-08 15:25:46 -04:00
JJ Kasper
a7171db2ca
Remove previous cache logic ( #7794 )
...
* Remove previous cache logic
* Remove old test
2019-07-08 14:59:45 -04:00
Joe Haddad
a164a70c72
Update remaining CODEOWNERS
2019-07-08 14:18:30 -04:00
Connor Davis
a0bcdd87c0
Update CODEOWNERS
2019-07-08 13:00:53 -05:00
Joe Haddad
b900ad9b85
Note TypeScript migration ( #7787 )
2019-07-08 13:08:58 -04:00
Delba de Oliveira
4172c894d3
Further clarification that api routes should be inside the page… ( #7780 )
2019-07-08 16:28:58 +02:00
Tim Neutkens
bb2ae41a26
Copy invalid-resolve-alias as it is being linked in the codebase
2019-07-08 14:29:19 +02:00
Tim Neutkens
18abc98257
Link invalid-resolve-alias as it is being linked in the codebase
2019-07-08 14:28:09 +02:00