Commit Graph

85 Commits

Author SHA1 Message Date
next-js-bot[bot] 83cb4fb70f Upgrade React from 6c0e1047-20260908 to 019019be-20260911 (#98576) 2026-09-11 17:58:49 +00:00
Vercel Release Bot cee9824aa5 Upgrade React from 172742b4-20260716 to 81e442ea-20260721 (#96016)
Co-authored-by: next-js-bot[bot] <279046576+next-js-bot[bot]@users.noreply.github.com>
2026-07-21 17:25:13 +00:00
Vercel Release Bot 84f9247617 Upgrade React from f0dfee38-20260529 to 43bcbf80-20260603 (#94440)
[diff
facebook/react@f0dfee38...43bcbf80](https://github.com/facebook/react/compare/f0dfee38...43bcbf80)

<details>
<summary>React upstream changes</summary>

- https://github.com/facebook/react/pull/36586
- https://github.com/facebook/react/pull/36603
- https://github.com/facebook/react/pull/36585
- https://github.com/facebook/react/pull/36580
- https://github.com/facebook/react/pull/36584
- https://github.com/facebook/react/pull/36583
- https://github.com/facebook/react/pull/36576
- https://github.com/facebook/react/pull/36575
- https://github.com/facebook/react/pull/36574

</details>

---------

Co-authored-by: next-js-bot[bot] <279046576+next-js-bot[bot]@users.noreply.github.com>
Co-authored-by: Josh Story <gnoff@storyposted.com>
2026-06-05 08:11:55 -07:00
Vercel Release Bot bab166a0d2 Upgrade React from f4e0d4ed-20260429 to dd453071-20260506 (#93547)
Co-authored-by: next-js-bot[bot] <279046576+next-js-bot[bot]@users.noreply.github.com>
2026-05-06 18:19:56 +00:00
Sebastian "Sebbie" Silbermann bdf8bea015 Update React from 74568e86-20260328 to 404b38c7-20260408 (#92536) 2026-04-08 22:10:09 +02:00
Sebastian "Sebbie" Silbermann a04499797e Re-enable types-and-precompiled (#89070) 2026-01-26 23:19:43 +00:00
nextjs-bot 1c09f4494b Upgrade React from b45bb335-20251211 to f93b9fd4-20251217 (#87281) 2025-12-18 00:10:32 +00:00
Sebastian "Sebbie" Silbermann 435000f407 Upgrade React from 55480b4d-20251208 to 80cb7a99-20251211 (#87078) 2025-12-11 22:05:41 +01:00
nextjs-bot 6ef90ef49f Upgrade React from fd524fe0-20251121 to 7dc903cd-20251203 (#86771) 2025-12-03 16:20:59 +00:00
nextjs-bot 9f98bf7705 Upgrade React from 86181134-20251001 to a757cb76-20251002 (#84463) 2025-10-02 17:18:41 +00:00
Remco Haszing 7aa5d16231 Use the automatic runtime for type checking (#83159)
Co-authored-by: Sebastian "Sebbie" Silbermann <silbermann.sebastian@gmail.com>
2025-09-02 12:35:42 +02:00
nextjs-bot 92d1f0d915 Upgrade React from 19baee81-20250725 to eaee5308-20250728 (#82120) 2025-07-28 18:22:47 +00:00
Sebastian "Sebbie" Silbermann 1ee500b01e [test] Use React 19.1 everywhere (#77895) 2025-04-10 14:39:55 +02:00
Sam Ko ca9af5bcad chore(examples): update React to stable 19 (#74499)
## Why?

- Update React in reproduction example templates to stable v19
- Switch `.ts` for `next.config`
- Fixes https://github.com/vercel/next.js/issues/74422
2025-01-06 17:32:37 -08:00
マルコメ f54d597563 examples: update gitignore files for parity for yarn recommendations (#71956)
## What?
Update examples `.gitignore` files for parity with [Yarn's official
recommendations](https://v3.yarnpkg.com/getting-started/qa#which-files-should-be-gitignored),
accounting for Yarn's modern Plug-n-Play functionality.

## Why?
New projects initialized with `create-next-app` presently add various
extraneous files from the Yarn cache to the initial commit. This is most
notable in the case of the Next SWC binary, which may exceed 100M in
some environments (empirically, 64-bit Darwin and WSL2 Ubuntu, and very
probably other unix/linux environments), and prevent users from pushing
their new projects to free GitHub repositories without rewriting the
commit history to exclude the extraneous files, or unnecessarily setting
up Git LFS to include them.

## How?
I have errored on the side of exclusion to enable users to push their
CNA projects to GitHub as-is and for parity with other package managers,
while still providing the opportunity to opt in to additional
functionality provided by modern Yarn.

These changes follow the recommendations for
**non**-[Zero-Install](https://yarnpkg.com/features/caching#zero-installs)
configurations, as Zero-Install functionality is an extension on top of
the base package manager experience, and may necessitate additional
configuration and present additional complications for unsuspecting
users, so I think it's best left up to the user to opt-in. On account of
the majority of publicly available Next.js-based projects comprising
general consumer-facing websites, it is my belief that the majority of
Next projects would not benefit from Yarn's Zero-Install functionality,
and that explicitly facilitating it by default would break status quo
with all other non-Yarn CNA projects.

Contrary to the example `.gitignore`s provided by Yarn, I've excluded
the `.yarn/sdks` directory as it contains IDE-specific tooling; I feel
it would be presumptuous for an environmentally-agnostic tool to target
and provide package-manager-specific tooling for specific editors. This
too should be left to the user to opt-in to and provide for their
project if they deem necessary.

I have retained the current `.gitignore`'s exclusion of the `/.pnp`
directory for backwards compatibility with older versions of Yarn (the
files therein have since been reallocated to the `.yarn` directory
addressed by these changes, but I am not clear on when that delineation
occurred or the prevalence of Yarn installations which depend on the
former convention). Maintaining the exclusion here, in the worst case,
implies additional downloads (on an order of magnitude merely similar to
using npm from the outset) rather than failure.

CC: @samcx 

### Adding or Updating Examples

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

Co-authored-by: Sam Ko <sam@vercel.com>
2024-12-17 01:24:53 +00:00
Jam Balaya e9c4a756a8 examples: remove next-env.d.ts files (#73673)
## Summary

Remove `next-env.d.ts` file from [the
examples](https://github.com/vercel/next.js/tree/canary/examples)
directory because gitignore template includes them.

## Description

At #41041, removed `next-env.d.ts` files.
However, #47241 reintroduced them.

`create-next-app` makes `next-env.d.ts` file in the example directory if
it's typescript.


https://github.com/vercel/next.js/blob/c2078d0c05a03e9fde449a01ff2a10afbdad48bb/packages/create-next-app/create-app.ts#L202-L209

Therefore, `next-env.d.ts` file isn't necessary.

CC: @samcx 

### Adding or Updating Examples

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

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2024-12-09 06:36:48 +00:00
Sebastian "Sebbie" Silbermann 3c3fd7367e Use React 19 stable in Pages Router (#73562) 2024-12-05 21:19:20 +01:00
Vercel Release Bot 16c309358c Upgrade React from 1b1283ad-20241203 to de68d2f4-20241204 (#73525) 2024-12-04 21:16:56 +01:00
Vercel Release Bot c7a7ce7274 Upgrade React from b01722d5-20241114 to 1b1283ad-20241203 (#73506) 2024-12-04 16:50:44 +00:00
Sebastian "Sebbie" Silbermann 28a25af1d6 Upgrade React from 380f5d67-20241113 to b01722d5-20241114 (#73107)
Co-authored-by: vercel-release-bot <infra+release@vercel.com>
2024-11-24 19:06:08 +01:00
Vercel Release Bot 6d39f220ca Upgrade React from 7ac8e612-20241113 to 380f5d67-20241113 (#72819) 2024-11-14 22:58:25 +01:00
Vercel Release Bot 35b47d5524 Upgrade React from 5c56b873-20241107 to 7ac8e612-20241113 (#72768) 2024-11-13 19:44:14 +01:00
Vercel Release Bot 18b357854b Upgrade React from 66855b96-20241106 to 5c56b873-20241107 (#72469) 2024-11-11 10:29:01 +00:00
Jam Balaya a9492ffa12 chore: update typescript document path (#72482)
## Description
At #72178,
[TypeScript](https://nextjs.org/docs/app/api-reference/config/typescript)
docs was moved.
So update the old URLs.

### Improving Documentation

- [x] Run `pnpm prettier-fix` to fix formatting issues before opening
the PR.
- [x] Read the Docs Contribution Guide to ensure your contribution
follows the docs guidelines:
https://nextjs.org/docs/community/contribution-guide

---------

Co-authored-by: Zack Tanner <1939140+ztanner@users.noreply.github.com>
2024-11-07 14:42:24 -08:00
Vercel Release Bot 8278fcc6f1 Upgrade React from 7c8e5e7a-20241101 to 66855b96-20241106 (#72415) 2024-11-06 17:12:33 +00:00
Vercel Release Bot c479c04e3e Upgrade React from 603e6108-20241029 to 7c8e5e7a-20241101 (#72199) 2024-11-03 19:11:20 +01:00
Vercel Release Bot e3c6b44b1a Upgrade React from 02c0e824-20241028 to 603e6108-20241029 (#72089) 2024-10-30 17:51:13 +01:00
Vercel Release Bot 8b65ec1b84 Upgrade React from 1631855f-20241023 to 02c0e824-20241028 (#71979) 2024-10-29 00:37:10 +01:00
Vercel Release Bot 4ae3fc3e35 Upgrade React from 28668d39-20241023 to 1631855f-20241023 (#71769)
**breaking change for canary users: Bumps peer dependency of React from
`19.0.0-rc-28668d39-20241023` to `19.0.0-rc-1631855f-20241023`**

[diff
facebook/react@28668d39...1631855f](https://github.com/facebook/react/compare/28668d39...1631855f)

<details>
<summary>React upstream changes</summary>

- https://github.com/facebook/react/pull/31340

</details>
2024-10-23 23:57:26 +00:00
Vercel Release Bot c464672dde Upgrade React from 45804af1-20241021 to 28668d39-20241023 (#71745) 2024-10-23 21:41:46 +02:00
Sebastian "Sebbie" Silbermann babc6a0242 Update React from 69d4b800-20241021 to 45804af1-20241021 (#71718) 2024-10-23 16:55:39 +00:00
Vercel Release Bot 8a905cf0cb Upgrade React from 65a56d0e-20241020 to 69d4b800-20241021 (#71568)
**breaking change for canary users: Bumps peer dependency of React from
`19.0.0-rc-65a56d0e-20241020` to `19.0.0-rc-69d4b800-20241021`**

[diff
facebook/react@65a56d0e...69d4b800](https://github.com/facebook/react/compare/65a56d0e...69d4b800)

<details>
<summary>React upstream changes</summary>

- https://github.com/facebook/react/pull/31313

</details>
2024-10-22 00:04:01 +02:00
Sebastian Markbåge 164723263b Update React (again) (#71528) 2024-10-20 03:31:42 -04:00
Sebastian Markbåge eb02b78afe Update React to bf7e210c (#71524) 2024-10-19 22:37:52 -07:00
Vercel Release Bot 3ff9b8b9d8 Upgrade React from 77b637d6-20241016 to bf7e210c-20241017 (#71436) 2024-10-18 10:23:31 +00:00
Vercel Release Bot cad01db9d2 Upgrade React from cd22717c-20241013 to 77b637d6-20241016 (#71391)
Co-authored-by: eps1lon <sebastian.silbermann@vercel.com>
2024-10-17 09:48:02 +00:00
Vercel Release Bot 69efa49c8e Upgrade React from 70fb1363-20241010 to cd22717c-20241013 (#71223) 2024-10-13 19:37:00 +00:00
Vercel Release Bot 2f7a48fa4d Upgrade React from 2d16326d-20240930 to 70fb1363-20241010 (#71118)
Co-authored-by: eps1lon <sebastian.silbermann@vercel.com>
2024-10-11 17:03:27 +00:00
Vercel Release Bot 95820c4066 Upgrade React from 3edc000d-20240926 to 2d16326d-20240930 (#70629) 2024-10-01 01:08:12 +02:00
Vercel Release Bot af8af5ea7e Upgrade React from 778e1ed2-20240926 to 3edc000d-20240926 (#70560)
**breaking change for canary users: Bumps peer dependency of React from
`19.0.0-rc-778e1ed2-20240926` to `19.0.0-rc-3edc000d-20240926`**

[diff
facebook/react@778e1ed2...3edc000d](https://github.com/facebook/react/compare/778e1ed2...3edc000d)

<details>
<summary>React upstream changes</summary>

- https://github.com/facebook/react/pull/31078
- https://github.com/facebook/react/pull/31083
- https://github.com/facebook/react/pull/31079
- https://github.com/facebook/react/pull/31080
- https://github.com/facebook/react/pull/31076
- https://github.com/facebook/react/pull/31021
- https://github.com/facebook/react/pull/31069
- https://github.com/facebook/react/pull/31074
- https://github.com/facebook/react/pull/31073
- https://github.com/facebook/react/pull/31047
- https://github.com/facebook/react/pull/31046
- https://github.com/facebook/react/pull/31045
- https://github.com/facebook/react/pull/31072
- https://github.com/facebook/react/pull/30980
- https://github.com/facebook/react/pull/30463
- https://github.com/facebook/react/pull/30694
- https://github.com/facebook/react/pull/31039
- https://github.com/facebook/react/pull/31048
- https://github.com/facebook/react/pull/31068

</details>

---------

Co-authored-by: Josh Story <story@hey.com>
2024-09-27 13:08:06 -07:00
Vercel Release Bot 3ead2d1fe9 Upgrade React from 5d19e1c8-20240923 to 778e1ed2-20240926 (#70486) 2024-09-26 08:00:08 +00:00
Vercel Release Bot fb4bf4a642 Upgrade React from e4953922-20240919 to 5d19e1c8-20240923 (#70351) 2024-09-24 16:52:24 +02:00
Vercel Release Bot d9fa5c93ee Upgrade React from e740d4b1-20240919 to e4953922-20240919 (#70290) 2024-09-24 09:27:25 +00:00
Vercel Release Bot 979fedb8d4 Upgrade React from 5dcb0097-20240918 to e740d4b1-20240919 (#70260) 2024-09-19 20:04:51 +02:00
Vercel Release Bot b59fe88f4c Upgrade React from a99d8e8d-20240916 to 5dcb0097-20240918 (#70225) 2024-09-19 07:59:14 +00:00
Vercel Release Bot 5791706891 Upgrade React from 206df66e-20240912 to a99d8e8d-20240916 (#70190)
**breaking change for canary users: Bumps peer dependency of React from
`19.0.0-rc-206df66e-20240912` to `19.0.0-rc-a99d8e8d-20240916`**

[diff
facebook/react@206df66e...a99d8e8d](https://github.com/facebook/react/compare/206df66e...a99d8e8d)

<details>
<summary>React upstream changes</summary>

- https://github.com/facebook/react/pull/30977
- https://github.com/facebook/react/pull/30971
- https://github.com/facebook/react/pull/30922
- https://github.com/facebook/react/pull/30917
- https://github.com/facebook/react/pull/30902
- https://github.com/facebook/react/pull/30912
- https://github.com/facebook/react/pull/30970
- https://github.com/facebook/react/pull/30969
- https://github.com/facebook/react/pull/30967
- https://github.com/facebook/react/pull/30966
- https://github.com/facebook/react/pull/30960
- https://github.com/facebook/react/pull/30968
- https://github.com/facebook/react/pull/30961
- https://github.com/facebook/react/pull/28255
- https://github.com/facebook/react/pull/30957
- https://github.com/facebook/react/pull/30958
- https://github.com/facebook/react/pull/30959
- https://github.com/facebook/react/pull/30951
- https://github.com/facebook/react/pull/30954
- https://github.com/facebook/react/pull/30920
- https://github.com/facebook/react/pull/30942

</details>
2024-09-18 09:30:51 +00:00
Vercel Release Bot 874454f3fa Upgrade React from 94e652d5-20240912 to 206df66e-20240912 (#70076)
Co-authored-by: vercel-release-bot <infra+release@vercel.com>
2024-09-13 19:06:33 +00:00
Vercel Release Bot f2cf2e0f93 Upgrade React from 7771d3a7-20240827 to 94e652d5-20240912 (#70037)
**breaking change for canary users: Bumps peer dependency of React from
`19.0.0-rc-7771d3a7-20240827` to `19.0.0-rc-94e652d5-20240912`**

[diff
facebook/react@7771d3a7...94e652d5](https://github.com/facebook/react/compare/7771d3a7...94e652d5)

<details>
<summary>React upstream changes</summary>

- https://github.com/facebook/react/pull/30952
- https://github.com/facebook/react/pull/30950
- https://github.com/facebook/react/pull/30946
- https://github.com/facebook/react/pull/30934
- https://github.com/facebook/react/pull/30947
- https://github.com/facebook/react/pull/30945
- https://github.com/facebook/react/pull/30938
- https://github.com/facebook/react/pull/30936
- https://github.com/facebook/react/pull/30879
- https://github.com/facebook/react/pull/30888
- https://github.com/facebook/react/pull/30931
- https://github.com/facebook/react/pull/30930
- https://github.com/facebook/react/pull/30832
- https://github.com/facebook/react/pull/30929
- https://github.com/facebook/react/pull/30926
- https://github.com/facebook/react/pull/30925
- https://github.com/facebook/react/pull/30905
- https://github.com/facebook/react/pull/30900
- https://github.com/facebook/react/pull/30910
- https://github.com/facebook/react/pull/30906
- https://github.com/facebook/react/pull/30899
- https://github.com/facebook/react/pull/30919
- https://github.com/facebook/react/pull/30708
- https://github.com/facebook/react/pull/30907
- https://github.com/facebook/react/pull/30897
- https://github.com/facebook/react/pull/30896
- https://github.com/facebook/react/pull/30895
- https://github.com/facebook/react/pull/30887
- https://github.com/facebook/react/pull/30889
- https://github.com/facebook/react/pull/30893
- https://github.com/facebook/react/pull/30892
- https://github.com/facebook/react/pull/30891
- https://github.com/facebook/react/pull/30882
- https://github.com/facebook/react/pull/30881
- https://github.com/facebook/react/pull/30870
- https://github.com/facebook/react/pull/30849
- https://github.com/facebook/react/pull/30878
- https://github.com/facebook/react/pull/30865
- https://github.com/facebook/react/pull/30869
- https://github.com/facebook/react/pull/30875
- https://github.com/facebook/react/pull/30800
- https://github.com/facebook/react/pull/30762
- https://github.com/facebook/react/pull/30831
- https://github.com/facebook/react/pull/30866
- https://github.com/facebook/react/pull/30853
- https://github.com/facebook/react/pull/30850
- https://github.com/facebook/react/pull/30847
- https://github.com/facebook/react/pull/30842
- https://github.com/facebook/react/pull/30837
- https://github.com/facebook/react/pull/30848
- https://github.com/facebook/react/pull/30844
- https://github.com/facebook/react/pull/30839
- https://github.com/facebook/react/pull/30802
- https://github.com/facebook/react/pull/30841
- https://github.com/facebook/react/pull/30827
- https://github.com/facebook/react/pull/30826
- https://github.com/facebook/react/pull/30825
- https://github.com/facebook/react/pull/30824
- https://github.com/facebook/react/pull/30840
- https://github.com/facebook/react/pull/30838
- https://github.com/facebook/react/pull/30836
- https://github.com/facebook/react/pull/30819
- https://github.com/facebook/react/pull/30816
- https://github.com/facebook/react/pull/30814
- https://github.com/facebook/react/pull/30813
- https://github.com/facebook/react/pull/30812
- https://github.com/facebook/react/pull/30811

</details>

---------

Co-authored-by: vercel-release-bot <infra+release@vercel.com>
2024-09-12 14:17:19 -07:00
Tim Neutkens 69f07b680c Revert "Support React 18 in Pages Router" (#69911)
Reverts vercel/next.js#69484
2024-09-10 10:20:27 +02:00
Sebastian "Sebbie" Silbermann 0f2845d2d8 Support React 18 in Pages Router (#69484)
Pages router (`/pages`) will continue to support React 18 not the React
19 RC. Current thinking is that we'll add support for React 19 in Pages
Router once 19 is stable.

This does not affect App Router (`/app`) which continues to use the
latest React Canary (i.e. React 19).

https://github.com/vercel/next.js/pull/65058 is required reading to
understand the changes in this PR

---------

Co-authored-by: Zack Tanner <1939140+ztanner@users.noreply.github.com>
2024-09-09 15:26:08 -07:00