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
Tim Neutkens
66bf56ff7e
v9.0.0
2019-07-08 08:43:07 +02:00
Joe Haddad
6cc72052b8
Add UPGRADING doc ( #7773 )
2019-07-08 02:28:11 -04:00
Joe Haddad
9f65e50b66
v8.1.1-canary.70
2019-07-08 02:23:36 -04:00
Lukáš Huvar
264fc01969
API routes documentation ( #7562 )
...
* API routes examples and documentation
* Update examples/api-routes-micro/README.md
Co-Authored-By: Luis Fernando Alvarez D. <luis@zeit.co>
* Update examples/api-routes/README.md
Co-Authored-By: Luis Fernando Alvarez D. <luis@zeit.co>
* Apply suggestions from code review
Co-Authored-By: Luis Fernando Alvarez D. <luis@zeit.co>
* Update API routes docs
* Improve example to reflect dynamic routes
* Update readme to reflect API routes changes
* Apply suggestions from review
2019-07-07 23:04:04 -07:00
Joe Haddad
b0b1c320a8
Experimentalize public/
( #7771 )
...
* Experimentalize `public/`
* Update tests for publicDirectory config
2019-07-08 07:45:41 +02:00
Lukáš Huvar
f204935251
Fix serverless loader for API routes ( #7767 )
...
* Fix serverless loader for API routes
* Only use params with dynamic routes
2019-07-07 17:45:40 -04:00
Alexander Kachkaev
e995c73b2c
[typings] Allow getInitialProps to be sync ( #7763 )
2019-07-07 14:52:59 -04:00
JJ Kasper
cc497568b4
v8.1.1-canary.69
2019-07-05 16:45:09 -07:00
Joe Haddad
270d548d33
Remove old docs ( #7760 )
...
* Remove old docs
* Run doctoc
2019-07-05 12:01:21 -04:00
Joe Haddad
6fa17b3f15
Improve automatic prerendering warning ( #7759 )
2019-07-05 11:57:16 -04:00
JJ Kasper
80b46c1d28
Update to have default pageProps of {} instead of null ( #7734 )
...
* Update to have default pageProps of {} instead of null
* Update test
* Test for empty object
2019-07-05 11:00:23 -04:00
Joe Haddad
7f3bdb1bf0
v8.1.1-canary.68
2019-07-05 01:08:29 -04:00
JJ Kasper
7ac8dcbec0
Add deprecation message for next/dynamic modules ( #7750 )
2019-07-04 23:36:53 -04:00
Joe Haddad
b60985b2be
Revert "fix(Link): Set focus back to the body element ( #7693 )" ( #7753 )
...
This reverts commit defde85e81
.
2019-07-04 23:24:14 -04:00
Connor Bär
defde85e81
fix(Link): Set focus back to the body element ( #7693 )
...
* fix(Link): Set focus back to the body element
* refactor(Link): Fix typings
* Update blurring logic and add tests
2019-07-04 11:30:22 -04:00
Lukáš Huvar
87acbdb594
Http methods update for static files and pages ( #7721 )
...
* Change static method handling and pages revert
* Allow and reflect old behaviour
* Post should return 501
* Add back old test
* Invert logic
* Handle 501 for pages in separate location
* Remove usage of 501 HTTP status code
* Prevent information leak
* Add test
* Only 405 if the page exists -- 404 if it doesn't
* Handle sent responses
* Revert "Handle sent responses"
This reverts commit 5e9012ae29b611c25ed1e090756a25dbe3437182.
* Fix bad test
* Switch back to quiet
* Update test/integration/production/test/index.test.js
Co-Authored-By: JJ Kasper <jj@jjsweb.site>
2019-07-04 10:22:25 +02:00
Junyoung Choi
12f1a63442
Expose next function type ( #7726 )
...
* Expose next function type
* Add type testing for typescript custom server
* Move types test to integration folder
2019-07-03 19:38:58 -07:00
JJ Kasper
e00a2c5d64
v8.1.1-canary.67
2019-07-03 15:57:16 -07:00
Lukáš Huvar
a60da57453
Clarify params and query merging ( #7744 )
...
* Clarify params and query merging
* Tweak README per @ijjk
2019-07-03 16:08:50 -04:00
Joe Haddad
b2a9670ca4
Make exportTrailingSlash
stable ( #7746 )
2019-07-03 13:25:44 -04:00