rsnext/packages/next/server
Shu Ding 685c87c946
Show error for invalid page props in the TS plugin (#43300)
For page entries, currently it's only allowed to have `params` and
`searchParams` in props:

<img width="677" alt="CleanShot 2022-11-23 at 16 18 57@2x"
src="https://user-images.githubusercontent.com/3676859/203583323-12c24900-8046-4b3b-ac95-b0ed1bee37e4.png">

In the future, this will cover more cases for layout entries too.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the
feature request has been accepted for implementation before opening a
PR.
- [ ] Related issues linked using `fixes #number`
- [ ]
[e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)

Co-authored-by: Jiachi Liu <inbox@huozhi.im>
2022-11-23 19:27:06 +01:00
..
api-utils Remove unstable_revalidate (#43119) 2022-11-19 15:54:19 -08:00
base-http Improve types for <Image /> and responseLimit (#40863) 2022-09-26 22:41:25 -07:00
dev Refactor code (#43291) 2022-11-23 19:08:14 +01:00
lib Ensure backslash is correctly handled in find-page-file (#43057) 2022-11-17 17:30:01 -08:00
response-cache Eliminate path polyfill and incremental-cache from base server (#39548) 2022-08-12 15:25:47 +00:00
send-payload Fix app static generation cases (#41172) 2022-10-06 21:43:23 +02:00
web Rename RSC and Router headers (#42482) 2022-11-07 16:35:32 -08:00
accept-header.ts Enable @typescript-eslint/no-use-before-define for functions (#39602) 2022-08-15 10:29:51 -04:00
app-render.tsx Fix React.cache() in layout/page file (#43187) 2022-11-22 19:49:51 +01:00
base-server.ts Avoid bundling appDir rendering into pages edge SSR bundle (#43184) 2022-11-21 14:09:46 -08:00
body-streams.ts fix(stream): Allows body larger than 16 KiB with middleware (#41270) 2022-10-17 15:26:16 -07:00
config-schema.ts Add experimental outputFileTracingIgnores config (#43103) 2022-11-18 14:35:28 -08:00
config-shared.ts Add experimental outputFileTracingIgnores config (#43103) 2022-11-18 14:35:28 -08:00
config-utils.ts Prebundle react for appDir (#41337) 2022-10-18 16:32:23 -07:00
config.ts Fix @next/font imports from outside of the root directory (#42678) 2022-11-09 13:22:45 -08:00
crypto-utils.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
font-utils.ts Updating size-adjust calculation (#41406) 2022-10-20 10:58:26 -07:00
get-app-route-from-entrypoint.ts App Build Stats (#38884) 2022-08-10 19:31:01 +00:00
get-page-files.ts Add initial handling for routing tests (#36635) 2022-05-03 10:37:23 +00:00
get-route-from-entrypoint.ts App Build Stats (#38884) 2022-08-10 19:31:01 +00:00
google-font-metrics.json Updating avg width metrics for google fonts (#41755) 2022-10-24 21:17:32 -07:00
htmlescape.ts Subresource Integrity for App Directory (#39729) 2022-09-08 15:17:15 -07:00
image-optimizer.ts docs(image): improve error message when sharp is missing in standalone mode (#41133) 2022-10-05 17:28:29 +00:00
initialize-require-hook.ts Disable esm resolving for appDir and alias react (#41687) 2022-10-23 20:04:23 -07:00
internal-utils.ts Rename RSC and Router headers (#42482) 2022-11-07 16:35:32 -08:00
load-components.ts BREAKING CHANGE: Remove target: serverless (#41495) 2022-10-18 09:47:13 -07:00
match-bundle.ts App Build Stats (#38884) 2022-08-10 19:31:01 +00:00
next-server.ts Add middleware prefetching config (#42936) 2022-11-17 13:22:36 -08:00
next-typescript.ts Show error for invalid page props in the TS plugin (#43300) 2022-11-23 19:27:06 +01:00
next.ts Remove react root condition and always use concurrent mode (#42141) 2022-10-29 20:34:03 +00:00
node-polyfill-fetch.js Support next option for Request (#41614) 2022-10-23 20:24:35 -07:00
node-polyfill-web-streams.js Update Edge Runtime (#38862) 2022-07-21 18:29:19 +00:00
node-web-streams-helper.ts Fix server html insertion target (#42591) 2022-11-07 18:16:13 +01:00
optimize-amp.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
post-process.ts Fix replaceAll usage in post-process (#42714) 2022-11-09 17:26:55 -08:00
render-result.ts Fix app static generation cases (#41172) 2022-10-06 21:43:23 +02:00
render.tsx Change usePathname to return string | null (#42380) 2022-11-03 13:34:50 -07:00
request-meta.ts Fix middleware rewrite for _next/data (#41341) 2022-10-11 12:23:22 -07:00
require.ts perf: refactor path logic in router + add LRU cache (#41365) 2022-10-20 15:42:50 +00:00
router.ts Add missing matcher support (#42660) 2022-11-08 16:48:27 -08:00
serve-static.ts fix(#39706): add avif support for node serve static (#39733) 2022-08-18 17:57:12 +00:00
server-route-utils.ts Update @types/node to 14.14.31 (#41634) 2022-10-22 11:19:14 -07:00
utils.ts Remove react root condition and always use concurrent mode (#42141) 2022-10-29 20:34:03 +00:00
web-server.ts Fix app static generation cases (#41172) 2022-10-06 21:43:23 +02:00