- 15 Feb, 2023 19 commits
-
-
Tim Neutkens authored
-
Joe Freeman authored
fix(link): do not reload when Link is in svg (#41320)Co-authored-by: Tim Neutkens <tim@timneutkens.nl> <!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change that you're making: --> ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md` I believe this fixes `<Link>`s that appear inside an `<svg>`. For example: ```typescript <svg width={200} height={200}> <Link href="/about"> <a> <text x={0} y={20}>About</text> </a> </Link> </svg> ``` There's a comment in `next/link` (["anchors inside an svg have a lowercase nodeName"](https://github.com/vercel/next.js/blob/bef709bc74760aadedfeb2fd4a4434e213cb024f/packages/next/client/link.tsx#L163)) that implies `Link`s are supposed to work inside an `svg`, but at the moment, I'm finding that clicking the link causes a full page reload. This seems to be because Next.js considers the link to be a 'modified' event (as per `isModifiedEvent`). In the case where the event's `currentTarget` is an `SVGAElement` (rather than a `HTMLAnchorElement`), the `event.currentTarget.target` is actually an [`SVGAnimatedString`](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedString). This looks a bit like `{"animVal": "", "baseVal": ""}`, so the `(target && target !== '_self')` check is truthy. Using [`getAttribute`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttribute) instead seems to consistently give a string value in either (SVG or HTML) case. I've attempted to add a test, but I haven't worked out how to run it yet... --------- Co-authored-by:Tim Neutkens <tim@timneutkens.nl>
-
JJ Kasper authored
Follow-up to https://github.com/vercel/next.js/pull/45716 this ensures we correctly construct the initial URL value as it must be a fully qualified URL. Existing tests caught this failure when running in deploy mode.
-
Michael Law authored
Change it '/docs/api-reference/components/font.md#preload' to 'https://nextjs.org/docs/api-reference/next/font#preload', if not, 404 caused. ## 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:
JJ Kasper <22380829+ijjk@users.noreply.github.com>
-
OJ Kwon authored
<!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: --> This is improved followup for https://github.com/vercel/next.js/pull/45914, I realized I applied retry count logic only for the teardown, not for the actual execution. PR changes whole retrycount if predicate matches, also changes minor ergonomics for the turbopack output with custom binary. ## 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) ---------
-
JJ Kasper authored
Updates test cases that aren't expected to work for deploy mode at the moment. x-ref: https://github.com/vercel/next.js/actions/runs/4180235531/jobs/7241206278
-
Matt Cote authored
-
JJ Kasper authored
-
Parbez authored
<!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: --> Currently after enabling `typedRoute`, I can't add `className` so I checked the type and found it's missing `AnchorHTMLAttributes`. This pr adds them ## 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)
-
Hannes Bornö authored
Make the app-render error less verbose in dev. Reuse `logErrorWithOriginalStack` from the dev server but hide frames from `node_modules`, `next/dist/compiled` and `node:internal` if we're in the app directory. Also removes `webpack-internal` from the frame file name. <details> <summary>Before</summary>  </details> <details> <summary>After, with source</summary>  </details> <details> <summary>After, no source</summary>  </details> <details> <summary>For comparison, from `pages/`</summary>  </details> Fixes NEXT-441 ## 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) ---------
-
JJ Kasper authored
Ensures we're testing against the latest version of the CLI even if it hasn't been rolled yet to catch regressions faster. x-ref: https://github.com/vercel/next.js/actions/runs/4176809448/jobs/7235660705
-
Shu Ding authored
As per https://github.com/vercel/next.js/pull/45670#issuecomment-1428729000, it's very necessary to include `tsconfig.json` in our tests as we need to test specific TS configurations sometimes. ## 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)
-
Hannes Bornö authored
Fail at build time with helpful message instead of getting a runtime error when external package imports 'server-only' in a Client Component. Before  After  Fixes NEXT-494 ## 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)
-
Wyatt Johnson authored
When you're trying to migrate an application from `pages/` to `app/`, you'll need to access data like search parameters and the pathname in a way that lets you migrate safely. This adds support for dynamic typing of some of those exported functions from `next/navigation`, namely `useSearchParams` and `usePathname`. Currently, `searchParams` can’t be known when prerendering if the page doesn’t use [Server-side Rendering](https://nextjs.org/docs/basic-features/data-fetching/get-server-side-props) in the `pages/` directory. `pathname` can’t be known during prerendering if the page is a fallback page or has been automatically statically optimized when accessed from `pages/`. To make migraitons easier, this adds a new feature to `next dev` that will automatically add the correct types for `next/navigation`. It does this by checking if you have both a `app/` and `pages/` directory. If it detects you have a `app/` directory, it will also enable the suggested Typescript feature, [`structNullChecks`](https://www.typescriptlang.org/tsconfig#strictNullChecks) which will warn developers when trying to access a value that may be `null`. --------- Co-authored-by:
JJ Kasper <jj@jjsweb.site>
-
Shu Ding authored
Here we rename names of manifest files to align better with React. ## 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)
-
Michael Oliver authored
MDX publishes types which includes a proper `MDXComponents` type, provides nicer autocomplete for users and also includes the `wrapper` option:  <!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: --> ## 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 - [x] Make sure the linting passes by running `pnpm build && pnpm lint` - [x] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
-
Hannes Bornö authored
Currently the collapsed frameworks uses a `<button>` and React to show/hide the frames in the error overlay. This change utilizes the native `<details>` tag instead to achieve the same behaviour. The default `<details>` arrow is hidden to preserve the same look:  Fixes NEXT-546 ## 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)
-
Jiachi Liu authored
-
Wyatt Johnson authored
This adds updated matching handle for the server to separate out the matching and executing of different route types e.g. page routes, API routes, and app routes. Co-authored-by:JJ Kasper <22380829+ijjk@users.noreply.github.com>
-
- 14 Feb, 2023 16 commits
-
-
Steven authored
Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
Sukka authored
The PR upgrades `cross-spawn` to `7.0.3`. The precompiled has also been updated. The `cross-spawn` version is still pinned after the PR. ----- So I have been working on improving Next.js build performance recently. One thing that catches my eye is this: <img width="1751" alt="image" src="https://user-images.githubusercontent.com/40715044/218383194-5b24c737-0d97-4434-bbbf-ba5752072882.png"> The flamegraph shows the `semver` inside `cross-spawn` is one of the hottest functions. Then I take a look at the `cross-spawn`, turns out that `cross-spawn` has `semver` already removed: https://github.com/moxystudio/node-cross-spawn/pull/125 According to the CHANGELOG of `cross-spawn`, the only breaking change is that `cross-spawn@7` is dropping `Node.js < 8` support. So I assume it would be fine to upgrade `cross-spawn` to the latest version `7.0.3`, thus eliminating the extra performance overhead introduced by `semver`. --------- Co-authored-by:
JJ Kasper <jj@jjsweb.site>
-
Jan Kaifer authored
We don't need this action anymore, so we are deleting it. ## 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)
-
Hannes Bornö authored
Seems like a full reload was made in the test due to a runtime error which made it flaky. [slack ref](https://vercel.slack.com/archives/C04DUD7EB1B/p1676314015291299) ## 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)
-
Eng Zer Jun authored
Starting from Next.js 13.1.0, we can now return a response directly from Middleware. However, the NextResponse section in the middleware docs is still outdated. ## 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 - [x] 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 - [x] 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)
-
OJ Kwon authored
<!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: --> Closes WEB-592. This PR adds a naive checker named `skipRetryTestManifest`, which can be loaded by env variable. It expects a formed json includes single array - if it is available and matchs to the path for the failed test, it'll skip retrying. Primarily this is supposed to be used in conjunction with `NEXT_TEST_CONTINUE_ON_ERROR` - when running all of the tests with turbopack regardless of failure, there are certain set of tests `expected` to fail currently but it keeps retrying to increase whole test execution time. Having a known set of test to skip retry potentially reduce those time. Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
JJ Kasper authored
Similar to our CNA handling when `ctrl` + `c` is used this ensures we reset the cursor for `next-dev`.
-
JJ Kasper authored
This adds a debug warning to help catch when a stale `@next/swc` version is being used. x-ref: [slack thread](https://vercel.slack.com/archives/C02HY34AKME/p1676331498415309?thread_ts=1676315836.304549&cid=C02HY34AKME) ---------
-
JJ Kasper authored
This adds a top-level experimental config for including/excluding files from the file traces. This replaces the page level `unstable_includeFiles`/`unstable_excludeFiles` as those had some drawbacks such as not being supported for API routes as these files aren't required during build to gather the configs, having to duplicate includes/excludes for multiple pages, and causing more confusion for where the globs were meant to be relative to. The new top-level configs allow mapping page globs to includes/excludes so they can be shared across multiple pages or a single page. These can also affect the `next-server` trace by specifying that as the key if necessary. The previous `outputFileTraceIgnores` config is automatically mapped to the new config with a deprecation warning. ## 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 - [x] 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)
-
Tim Neutkens authored
-
LongYinan authored
The `experimental.turbotrace.memoryLimit` is not actually working, we need to use `turbo_malloc` as the global allocator to make it work. ~~Block by:~~ - https://github.com/swc-project/swc/pull/6940 - https://github.com/vercel/turbo/pull/3772 ## This PR also upgrades `turbopack-230213.2` to `turbopack-230214.1` - https://github.com/vercel/turbo/pull/3767 - https://github.com/vercel/turbo/pull/3772 - https://github.com/vercel/turbo/pull/3762 - https://github.com/vercel/turbo/pull/3741 - https://github.com/vercel/turbo/pull/3796
-
Shu Ding authored
This PR covers more common cases of metadata development. <details> <summary> Invalid exports in client components </summary> <img width="530" alt="CleanShot-2023-02-13-Ilq7rrRF@2x" src="https://user-images.githubusercontent.com/3676859/218588139-0fb00d2f-1c7e-4a3e-8387-4bbb66e6a182.png"> </details> <details> <summary> Check non-static re-assigned values </summary> <img width="771" alt="CleanShot-2023-02-13-rZbmD5b6@2x" src="https://user-images.githubusercontent.com/3676859/218588188-735b1db5-a0cc-4872-92e9-462473f2babc.png"> </details> <details> <summary> Check re-exports, cc @leerob :D </summary> <img width="819" alt="CleanShot-2023-02-13-WTzDfqIJ@2x" src="https://user-images.githubusercontent.com/3676859/218588486-e7d04fd6-78a7-4ad4-9c77-0807b364c380.png"> </details> ## 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) -
Jiachi Liu authored
Disable streaming SSR for `pages`, preferring the static rendering. This was leftover from when we implemented the server components alpha on `pages` and causes issues for people upgrading from Next.js 12 to 13 when the `chunked` response is unexpected, e.g. with certain CDN setups. Streaming is the default in `app` and that has the right implementation to fully leverage streaming in React including when navigating client-side as the router is built around React transitions.
-
Tim Neutkens authored
Fixes #45750 Closes #45822 Fixes NEXT-514 Ensures rootlayout marker is copied into the optimistic tree. <!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: --> ## 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)
-
Tim Neutkens authored
-
Sreetam Das authored
Fixes a small typo in the `@next/mdx` [readme](url). The file that needs to be created is `mdx-components.{js,jsx,ts,tsx}`, not `mdx-component.{js,jsx,ts,tsx}`. - Original MR where change was introduced: https://github.com/vercel/next.js/pull/44651/files#diff-bdcc8e0f4068c2d8bc8f1225c9776f3ec581e79a457abe748a053148925610d1R25 - This is also confirmed by the `app-dir-mdx` example: https://github.com/vercel/next.js/blob/3b1aa1c94174a293f8eb42b597ceb563264469dd/examples/app-dir-mdx/mdx-components.tsx ## 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)
-
- 13 Feb, 2023 5 commits
-
-
Justin Ridgewell authored
# New Features - https://github.com/vercel/turbo/pull/3695 - https://github.com/vercel/turbo/pull/3696 # Performance - https://github.com/vercel/turbo/pull/3738 - https://github.com/vercel/turbo/pull/3714 - https://github.com/vercel/turbo/pull/3739 # Fixes - https://github.com/vercel/turbo/pull/3718 - https://github.com/vercel/turbo/pull/3618 - https://github.com/vercel/turbo/pull/3736 # Other Changes - https://github.com/vercel/turbo/pull/3731 - https://github.com/vercel/turbo/pull/3733 - https://github.com/vercel/turbo/pull/3629 - https://github.com/vercel/turbo/pull/3769 - https://github.com/vercel/turbo/pull/3707 - https://github.com/vercel/turbo/pull/3737 - https://github.com/vercel/turbo/pull/3770Co-authored-by:
JJ Kasper <jj@jjsweb.site>
-
Tim Neutkens authored
-
Shu Uesugi authored
If `config.i18n` exists with `defaultLocale` and there's a redirect that looks like this: ```js { source: '/', destination: '/destination', permanent: false, } ``` Then, if you access `/`: - **Expected:** It redirects to `/destination` - **Actual:** redirects to `/<defaultLocale>/destination` This PR fixes it by adding a missing special-case logic for `/` in `packages/next/src/lib/load-custom-routes.ts`. x-ref: [slack thread](https://vercel.slack.com/archives/C03S8ED1DKM/p1676271611253739) ## Bug - [ ] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) --------- Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
JJ Kasper authored
This updates the default tracing root used when one isn't manually provided to be the directory of the closest lockfile. Previously it defaulted to the directory of the project being built which is incorrect in monorepos as any top-level dependencies wouldn't be traced correctly. Our tests were previously passing without this handling due to the env variable being manually set which this removes. x-ref: https://github.com/vercel/next.js/discussions/39432 x-ref: https://github.com/vercel/vercel/pull/9402 x-ref: [slack thread](https://vercel.slack.com/archives/C03S8ED1DKM/p1675821643786319) ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)
-
Tom Ballinger authored
Update Convex to 0.9.1 ## Documentation / Examples - [x] Make sure the linting passes by running `pnpm build && pnpm lint` - [x] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
-