Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump the main group with 21 updates (#16)
Bumps the main group with 21 updates: | Package | From | To | | --- | --- | --- | | [@primer/octicons-react](https://github.com/primer/octicons) | `19.14.0` | `19.15.0` | | [@primer/primitives](https://github.com/primer/primitives) | `10.3.2` | `10.3.4` | | [@primer/react](https://github.com/primer/react) | `37.8.0` | `37.12.0` | | [react](https://github.com/facebook/react/tree/HEAD/packages/react) | `18.3.1` | `19.0.0` | | [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) | `18.3.18` | `19.0.8` | | [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) | `18.3.1` | `19.0.0` | | [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) | `18.3.5` | `19.0.3` | | [styled-components](https://github.com/styled-components/styled-components) | `5.3.11` | `6.1.15` | | [@electron-forge/cli](https://github.com/electron/forge) | `7.6.0` | `7.6.1` | | [@electron-forge/maker-deb](https://github.com/electron/forge) | `7.6.0` | `7.6.1` | | [@electron-forge/maker-rpm](https://github.com/electron/forge) | `7.6.0` | `7.6.1` | | [@electron-forge/maker-squirrel](https://github.com/electron/forge) | `7.6.0` | `7.6.1` | | [@electron-forge/maker-zip](https://github.com/electron/forge) | `7.6.0` | `7.6.1` | | [@electron-forge/plugin-auto-unpack-natives](https://github.com/electron/forge) | `7.6.0` | `7.6.1` | | [@electron-forge/plugin-fuses](https://github.com/electron/forge) | `7.6.0` | `7.6.1` | | [@electron-forge/plugin-vite](https://github.com/electron/forge/tree/HEAD/packages/plugin/vite) | `7.6.0` | `7.6.1` | | [electron](https://github.com/electron/electron) | `33.2.1` | `34.1.1` | | [eslint](https://github.com/eslint/eslint) | `9.19.0` | `9.20.0` | | [prettier](https://github.com/prettier/prettier) | `3.4.2` | `3.5.0` | | [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) | `8.22.0` | `8.23.0` | | [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) | `5.4.12` | `6.1.0` | Updates `@primer/octicons-react` from 19.14.0 to 19.15.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/primer/octicons/releases"><code>@primer/octicons-react</code>'s releases</a>.</em></p> <blockquote> <h2>v19.15.0</h2> <h3>Minor Changes</h3> <ul> <li><a href="https://redirect.github.com/primer/octicons/pull/1063">#1063</a> <a href="https://github.com/primer/octicons/commit/6481783a5a7258cc4d7981a0510de56be05a2dc3"><code>6481783a</code></a> Thanks <a href="https://github.com/dylanatsmith"><code>@dylanatsmith</code></a>! - Add square-circle icon</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/primer/octicons/blob/main/CHANGELOG.md"><code>@primer/octicons-react</code>'s changelog</a>.</em></p> <blockquote> <h2>19.15.0</h2> <h3>Minor Changes</h3> <ul> <li><a href="https://redirect.github.com/primer/octicons/pull/1063">#1063</a> <a href="https://github.com/primer/octicons/commit/6481783a5a7258cc4d7981a0510de56be05a2dc3"><code>6481783a</code></a> Thanks <a href="https://github.com/dylanatsmith"><code>@dylanatsmith</code></a>! - Add square-circle icon</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/primer/octicons/commit/7e2921779e529199562e3f89d422aa231d1fe19e"><code>7e29217</code></a> Version Packages (<a href="https://redirect.github.com/primer/octicons/issues/1067">#1067</a>)</li> <li><a href="https://github.com/primer/octicons/commit/6481783a5a7258cc4d7981a0510de56be05a2dc3"><code>6481783</code></a> Add square-circle icons (<a href="https://redirect.github.com/primer/octicons/issues/1063">#1063</a>)</li> <li><a href="https://github.com/primer/octicons/commit/cd2e303f3944df986712275e3a49a73958ea23d2"><code>cd2e303</code></a> Update year in license from 2024 to 2025 (<a href="https://redirect.github.com/primer/octicons/issues/1064">#1064</a>)</li> <li>See full diff in <a href="https://github.com/primer/octicons/compare/v19.14.0...v19.15.0">compare view</a></li> </ul> </details> <br /> Updates `@primer/primitives` from 10.3.2 to 10.3.4 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/primer/primitives/releases"><code>@primer/primitives</code>'s releases</a>.</em></p> <blockquote> <h2>v10.3.4</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/primer/primitives/pull/1154">#1154</a> <a href="https://github.com/primer/primitives/commit/f86174b05a516b8d46b0f2ef5258c72b53ea6e82"><code>f86174b</code></a> Thanks <a href="https://github.com/lukasoppermann"><code>@lukasoppermann</code></a>! - Fix borderColor-closed-muted in dark-protanopia-deuteranopia and revert protanopia-deuteranopia open color to be orange again</p> <ul> <li><code>borderColor-closed-muted</code> in dark-protanopia-deuteranopia is now <code>gray</code> instead of <code>orange</code></li> <li><code>borderColor-open-[muted|emphasis]</code> in protanopia-deuteranopia is now <code>orange</code> again (instead of <code>blue</code>)</li> <li><code>fgColor-open</code> in protanopia-deuteranopia is now <code>orange</code> again (instead of <code>blue</code>)</li> <li><code>bgColor-open-[muted|emphasis]</code> in protanopia-deuteranopia is now <code>orange</code> again (instead of <code>blue</code>)</li> </ul> </li> </ul> <h2>v10.3.3</h2> <h3>Patch Changes</h3> <ul> <li><a href="https://redirect.github.com/primer/primitives/pull/1151">#1151</a> <a href="https://github.com/primer/primitives/commit/f98e52f057fac3da10eb7d689a291fb3f6f60ae6"><code>f98e52f</code></a> Thanks <a href="https://github.com/lukasoppermann"><code>@lukasoppermann</code></a>! - Update easing curves</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/primer/primitives/blob/main/CHANGELOG.md"><code>@primer/primitives</code>'s changelog</a>.</em></p> <blockquote> <h2>10.3.4</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/primer/primitives/pull/1154">#1154</a> <a href="https://github.com/primer/primitives/commit/f86174b05a516b8d46b0f2ef5258c72b53ea6e82"><code>f86174b</code></a> Thanks <a href="https://github.com/lukasoppermann"><code>@lukasoppermann</code></a>! - Fix borderColor-closed-muted in dark-protanopia-deuteranopia and revert protanopia-deuteranopia open color to be orange again</p> <ul> <li><code>borderColor-closed-muted</code> in dark-protanopia-deuteranopia is now <code>gray</code> instead of <code>orange</code></li> <li><code>borderColor-open-[muted|emphasis]</code> in protanopia-deuteranopia is now <code>orange</code> again (instead of <code>blue</code>)</li> <li><code>fgColor-open</code> in protanopia-deuteranopia is now <code>orange</code> again (instead of <code>blue</code>)</li> <li><code>bgColor-open-[muted|emphasis]</code> in protanopia-deuteranopia is now <code>orange</code> again (instead of <code>blue</code>)</li> </ul> </li> </ul> <h2>10.3.3</h2> <h3>Patch Changes</h3> <ul> <li><a href="https://redirect.github.com/primer/primitives/pull/1151">#1151</a> <a href="https://github.com/primer/primitives/commit/f98e52f057fac3da10eb7d689a291fb3f6f60ae6"><code>f98e52f</code></a> Thanks <a href="https://github.com/lukasoppermann"><code>@lukasoppermann</code></a>! - Update easing curves</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/primer/primitives/commit/618fd0f55a33e74e54d3f062d277fcc18af680e5"><code>618fd0f</code></a> Version Packages (<a href="https://redirect.github.com/primer/primitives/issues/1157">#1157</a>)</li> <li><a href="https://github.com/primer/primitives/commit/f86174b05a516b8d46b0f2ef5258c72b53ea6e82"><code>f86174b</code></a> Fix borderColor-closed-muted and revert open colors to orange in protanopia-d...</li> <li><a href="https://github.com/primer/primitives/commit/20b3ddaf226fa67869b9a270f6798e00b6926251"><code>20b3dda</code></a> Extract bgColor tokens to a separate file (<a href="https://redirect.github.com/primer/primitives/issues/1155">#1155</a>)</li> <li><a href="https://github.com/primer/primitives/commit/3218978e44305e1220e0308623d52e49617d7259"><code>3218978</code></a> Extract fgColor tokens into separate file (<a href="https://redirect.github.com/primer/primitives/issues/1153">#1153</a>)</li> <li><a href="https://github.com/primer/primitives/commit/0b76b1a795730cd5235a89d8176065f69acc81c7"><code>0b76b1a</code></a> Version Packages (<a href="https://redirect.github.com/primer/primitives/issues/1152">#1152</a>)</li> <li><a href="https://github.com/primer/primitives/commit/f98e52f057fac3da10eb7d689a291fb3f6f60ae6"><code>f98e52f</code></a> Update easing curves (<a href="https://redirect.github.com/primer/primitives/issues/1151">#1151</a>)</li> <li>See full diff in <a href="https://github.com/primer/primitives/compare/v10.3.2...v10.3.4">compare view</a></li> </ul> </details> <br /> Updates `@primer/react` from 37.8.0 to 37.12.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/primer/react/releases"><code>@primer/react</code>'s releases</a>.</em></p> <blockquote> <h2><code>@primer/react</code><a href="https://github.com/37"><code>@37</code></a>.12.0</h2> <h3><a href="https://primer-663f5fc3ab-13348165.drafts.github.io">Permalink to documentation</a></h3> <h3>Minor Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/primer/react/pull/5466">#5466</a> <a href="https://github.com/primer/react/commit/eb0857d33c77ab76c15d01ee9db6a6a718eeab4e"><code>eb0857d</code></a> Thanks <a href="https://github.com/jonrohan"><code>@jonrohan</code></a>! - Remove CSS modules feature flag from Spinner</p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5492">#5492</a> <a href="https://github.com/primer/react/commit/469f7033ae4f7508542379ec5dceb44199cc4e67"><code>469f703</code></a> Thanks <a href="https://github.com/joshblack"><code>@joshblack</code></a>! - Update dependency range for React dependencies to include 19.x</p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5608">#5608</a> <a href="https://github.com/primer/react/commit/3a41430356bd336afc9855149eb34ecfbf016d57"><code>3a41430</code></a> Thanks <a href="https://github.com/hussam-i-am"><code>@hussam-i-am</code></a>! - feat(AvatarStack): add style prop</p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5139">#5139</a> <a href="https://github.com/primer/react/commit/59e0efa015201b73b54aeda0b666a3e3116ec47b"><code>59e0efa</code></a> Thanks <a href="https://github.com/broccolinisoup"><code>@broccolinisoup</code></a>! - [SelectPanel] Implement loading states</p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5174">#5174</a> <a href="https://github.com/primer/react/commit/cf80bf29769c0e672ebfcd06041e322735e822f3"><code>cf80bf2</code></a> Thanks <a href="https://github.com/TylerJDev"><code>@TylerJDev</code></a>! - TreeView: Adds <code>aria-label</code> prop to <code>TreeView.Subtree</code></p> </li> </ul> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/primer/react/pull/5606">#5606</a> <a href="https://github.com/primer/react/commit/f291e81c78a4d3ac954940374e0f8e6c09517271"><code>f291e81</code></a> Thanks <a href="https://github.com/joshblack"><code>@joshblack</code></a>! - Update BaseStyles to no longer pass system props when feature flag is enabled</p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5595">#5595</a> <a href="https://github.com/primer/react/commit/2db6c9206cc44991eb27ce4abcd6d7c33772c134"><code>2db6c92</code></a> Thanks <a href="https://github.com/francinelucca"><code>@francinelucca</code></a>! - fix(useResizeObserver): undefined variable alternative</p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5593">#5593</a> <a href="https://github.com/primer/react/commit/2b05aad5416512096ceead2d9cd28f34a8211cf8"><code>2b05aad</code></a> Thanks <a href="https://github.com/camertron"><code>@camertron</code></a>! - Fix experimental SelectPanel anchoring behavior</p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5657">#5657</a> <a href="https://github.com/primer/react/commit/de4fc48ed87b08b132be27c0f73e7161f6b73a40"><code>de4fc48</code></a> Thanks <a href="https://github.com/langermank"><code>@langermank</code></a>! - Remove style from sx</p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5610">#5610</a> <a href="https://github.com/primer/react/commit/32b1f2f2372b217e31cbefc8fd14553153704389"><code>32b1f2f</code></a> Thanks <a href="https://github.com/jonrohan"><code>@jonrohan</code></a>! - Moving CSS component feature flag for Autocomplete from <code>team</code> to <code>staff</code></p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5610">#5610</a> <a href="https://github.com/primer/react/commit/32b1f2f2372b217e31cbefc8fd14553153704389"><code>32b1f2f</code></a> Thanks <a href="https://github.com/jonrohan"><code>@jonrohan</code></a>! - Moving CSS component feature flag for Overlay from <code>team</code> to <code>staff</code></p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5610">#5610</a> <a href="https://github.com/primer/react/commit/32b1f2f2372b217e31cbefc8fd14553153704389"><code>32b1f2f</code></a> Thanks <a href="https://github.com/jonrohan"><code>@jonrohan</code></a>! - Moving CSS component feature flag for PageHeader from <code>team</code> to <code>staff</code></p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5610">#5610</a> <a href="https://github.com/primer/react/commit/32b1f2f2372b217e31cbefc8fd14553153704389"><code>32b1f2f</code></a> Thanks <a href="https://github.com/jonrohan"><code>@jonrohan</code></a>! - Moving CSS component feature flag for PageLayout from <code>team</code> to <code>staff</code></p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5610">#5610</a> <a href="https://github.com/primer/react/commit/32b1f2f2372b217e31cbefc8fd14553153704389"><code>32b1f2f</code></a> Thanks <a href="https://github.com/jonrohan"><code>@jonrohan</code></a>! - Moving CSS component feature flag for Pagination from <code>team</code> to <code>staff</code></p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5610">#5610</a> <a href="https://github.com/primer/react/commit/32b1f2f2372b217e31cbefc8fd14553153704389"><code>32b1f2f</code></a> Thanks <a href="https://github.com/jonrohan"><code>@jonrohan</code></a>! - Moving CSS component feature flag for SegmentedControl from <code>team</code> to <code>staff</code></p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5610">#5610</a> <a href="https://github.com/primer/react/commit/32b1f2f2372b217e31cbefc8fd14553153704389"><code>32b1f2f</code></a> Thanks <a href="https://github.com/jonrohan"><code>@jonrohan</code></a>! - Moving CSS component feature flag for SelectPanel from <code>team</code> to <code>staff</code></p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5610">#5610</a> <a href="https://github.com/primer/react/commit/32b1f2f2372b217e31cbefc8fd14553153704389"><code>32b1f2f</code></a> Thanks <a href="https://github.com/jonrohan"><code>@jonrohan</code></a>! - Moving CSS component feature flag for SideNav from <code>team</code> to <code>staff</code></p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5610">#5610</a> <a href="https://github.com/primer/react/commit/32b1f2f2372b217e31cbefc8fd14553153704389"><code>32b1f2f</code></a> Thanks <a href="https://github.com/jonrohan"><code>@jonrohan</code></a>! - Moving CSS component feature flag for SubNav from <code>team</code> to <code>staff</code></p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5610">#5610</a> <a href="https://github.com/primer/react/commit/32b1f2f2372b217e31cbefc8fd14553153704389"><code>32b1f2f</code></a> Thanks <a href="https://github.com/jonrohan"><code>@jonrohan</code></a>! - Moving CSS component feature flag for Token from <code>team</code> to <code>staff</code></p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5610">#5610</a> <a href="https://github.com/primer/react/commit/32b1f2f2372b217e31cbefc8fd14553153704389"><code>32b1f2f</code></a> Thanks <a href="https://github.com/jonrohan"><code>@jonrohan</code></a>! - Moving CSS component feature flag for TooltipV2 from <code>team</code> to <code>staff</code></p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5610">#5610</a> <a href="https://github.com/primer/react/commit/32b1f2f2372b217e31cbefc8fd14553153704389"><code>32b1f2f</code></a> Thanks <a href="https://github.com/jonrohan"><code>@jonrohan</code></a>! - Moving CSS component feature flag for AvatarStack from <code>team</code> to <code>staff</code></p> </li> <li> <p><a href="https://redirect.github.com/primer/react/pull/5610">#5610</a> <a href="https://github.com/primer/react/commit/32b1f2f2372b217e31cbefc8fd14553153704389"><code>32b1f2f</code></a> Thanks <a href="https://github.com/jonrohan"><code>@jonrohan</code></a>! - Moving CSS component feature flag for UnderlinePanels from <code>team</code> to <code>staff</code></p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/primer/react/commit/05df3c3a10cb530f6749110619405d2dfe61187a"><code>05df3c3</code></a> Version Packages (<a href="https://redirect.github.com/primer/react/issues/5603">#5603</a>)</li> <li><a href="https://github.com/primer/react/commit/6cd9b387b1e1c52f0cf93928d6d83863d4960e5e"><code>6cd9b38</code></a> [TreeView] Mark leading action as private and add high-risk warning (<a href="https://redirect.github.com/primer/react/issues/5660">#5660</a>)</li> <li><a href="https://github.com/primer/react/commit/2c235178c5a3504b6cec129cfcc6420e542f96a6"><code>2c23517</code></a> Update contribution guidelines for CSS Modules (<a href="https://redirect.github.com/primer/react/issues/5663">#5663</a>)</li> <li><a href="https://github.com/primer/react/commit/de4fc48ed87b08b132be27c0f73e7161f6b73a40"><code>de4fc48</code></a> bugfix(ActionList.Item): Remove <code>styles</code> from <code>enabled</code> ActionList.Item (<a href="https://redirect.github.com/primer/react/issues/5657">#5657</a>)</li> <li><a href="https://github.com/primer/react/commit/14b840fb10f4108f45d43749963df88138389c7b"><code>14b840f</code></a> Remove axe e2e tests that are duplicated in axe.test.ts (<a href="https://redirect.github.com/primer/react/issues/5653">#5653</a>)</li> <li><a href="https://github.com/primer/react/commit/20bb3e6d2ea1d608ffa978e72c619be8cb604dd4"><code>20bb3e6</code></a> chore(deps): bump github/accessibility-alt-text-bot from 1.6.0 to 1.7.1 (<a href="https://redirect.github.com/primer/react/issues/5641">#5641</a>)</li> <li><a href="https://github.com/primer/react/commit/d30e544cc23f5e5524198fe4e02962856301b524"><code>d30e544</code></a> chore(deps-dev): bump <code>@rollup/plugin-replace</code> from 6.0.1 to 6.0.2 (<a href="https://redirect.github.com/primer/react/issues/5643">#5643</a>)</li> <li><a href="https://github.com/primer/react/commit/476afed9b2511fdecde4607a10209a49e174a5e4"><code>476afed</code></a> chore(deps-dev): bump concurrently from 8.0.1 to 9.1.2 (<a href="https://redirect.github.com/primer/react/issues/5644">#5644</a>)</li> <li><a href="https://github.com/primer/react/commit/1b81401587c60ee16a737493cf88e0ee1e33002e"><code>1b81401</code></a> chore(deps-dev): bump prettier from 3.3.3 to 3.4.2 (<a href="https://redirect.github.com/primer/react/issues/5646">#5646</a>)</li> <li><a href="https://github.com/primer/react/commit/36dbb046190d3811e6b8a31cbc351c758408fb8f"><code>36dbb04</code></a> ci: remove continue-on-error from workflows (<a href="https://redirect.github.com/primer/react/issues/5652">#5652</a>)</li> <li>Additional commits viewable in <a href="https://github.com/primer/react/compare/@primer/[email protected]...@primer/[email protected]">compare view</a></li> </ul> </details> <br /> Updates `react` from 18.3.1 to 19.0.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/facebook/react/releases">react's releases</a>.</em></p> <blockquote> <h2>19.0.0 (December 5, 2024)</h2> <p>Below is a list of all new features, APIs, deprecations, and breaking changes. Read <a href="https://react.dev/blog/2024/04/25/react-19">React 19 release post</a> and <a href="https://react.dev/blog/2024/04/25/react-19-upgrade-guide">React 19 upgrade guide</a> for more information.</p> <blockquote> <p>Note: To help make the upgrade to React 19 easier, we’ve published a [email protected] release that is identical to 18.2 but adds warnings for deprecated APIs and other changes that are needed for React 19. We recommend upgrading to React 18.3.1 first to help identify any issues before upgrading to React 19.</p> </blockquote> <h2>New Features</h2> <h3>React</h3> <ul> <li>Actions: <code>startTransition</code> can now accept async functions. Functions passed to <code>startTransition</code> are called “Actions”. A given Transition can include one or more Actions which update state in the background and update the UI with one commit. In addition to updating state, Actions can now perform side effects including async requests, and the Action will wait for the work to finish before finishing the Transition. This feature allows Transitions to include side effects like <code>fetch()</code> in the pending state, and provides support for error handling, and optimistic updates.</li> <li><code>useActionState</code>: is a new hook to order Actions inside of a Transition with access to the state of the action, and the pending state. It accepts a reducer that can call Actions, and the initial state used for first render. It also accepts an optional string that is used if the action is passed to a form <code>action</code> prop to support progressive enhancement in forms.</li> <li><code>useOptimistic</code>: is a new hook to update state while a Transition is in progress. It returns the state, and a set function that can be called inside a transition to “optimistically” update the state to expected final value immediately while the Transition completes in the background. When the transition finishes, the state is updated to the new value.</li> <li><code>use</code>: is a new API that allows reading resources in render. In React 19, <code>use</code> accepts a promise or Context. If provided a promise, <code>use</code> will suspend until a value is resolved. <code>use</code> can only be used in render but can be called conditionally.</li> <li><code>ref</code> as a prop: Refs can now be used as props, removing the need for <code>forwardRef</code>.</li> <li><strong>Suspense sibling pre-warming</strong>: When a component suspends, React will immediately commit the fallback of the nearest Suspense boundary, without waiting for the entire sibling tree to render. After the fallback commits, React will schedule another render for the suspended siblings to “pre-warm” lazy requests.</li> </ul> <h3>React DOM Client</h3> <ul> <li><code><form> action</code> prop: Form Actions allow you to manage forms automatically and integrate with <code>useFormStatus</code>. When a <code><form> action</code> succeeds, React will automatically reset the form for uncontrolled components. The form can be reset manually with the new <code>requestFormReset</code> API.</li> <li><code><button> and <input> formAction</code> prop: Actions can be passed to the <code>formAction</code> prop to configure form submission behavior. This allows using different Actions depending on the input.</li> <li><code>useFormStatus</code>: is a new hook that provides the status of the parent <code><form> action</code>, as if the form was a Context provider. The hook returns the values: <code>pending</code>, <code>data</code>, <code>method</code>, and <code>action</code>.</li> <li>Support for Document Metadata: We’ve added support for rendering document metadata tags in components natively. React will automatically hoist them into the <code><head></code> section of the document.</li> <li>Support for Stylesheets: React 19 will ensure stylesheets are inserted into the <code><head></code> on the client before revealing the content of a Suspense boundary that depends on that stylesheet.</li> <li>Support for async scripts: Async scripts can be rendered anywhere in the component tree and React will handle ordering and deduplication.</li> <li>Support for preloading resources: React 19 ships with <code>preinit</code>, <code>preload</code>, <code>prefetchDNS</code>, and <code>preconnect</code> APIs to optimize initial page loads by moving discovery of additional resources like fonts out of stylesheet loading. They can also be used to prefetch resources used by an anticipated navigation.</li> </ul> <h3>React DOM Server</h3> <ul> <li>Added <code>prerender</code> and <code>prerenderToNodeStream</code> APIs for static site generation. They are designed to work with streaming environments like Node.js Streams and Web Streams. Unlike <code>renderToString</code>, they wait for data to load for HTML generation.</li> </ul> <h3>React Server Components</h3> <ul> <li>RSC features such as directives, server components, and server functions are now stable. This means libraries that ship with Server Components can now target React 19 as a peer dependency with a react-server export condition for use in frameworks that support the Full-stack React Architecture. The underlying APIs used to implement a React Server Components bundler or framework do not follow semver and may break between minors in React 19.x. See <a href="https://19.react.dev/reference/rsc/server-components">docs</a> for how to support React Server Components.</li> </ul> <h2>Deprecations</h2> <ul> <li>Deprecated: <code>element.ref</code> access: React 19 supports ref as a prop, so we’re deprecating <code>element.ref</code> in favor of <code>element.props.ref</code>. Accessing will result in a warning.</li> <li><code>react-test-renderer</code>: In React 19, react-test-renderer logs a deprecation warning and has switched to concurrent rendering for web usage. We recommend migrating your tests to <a href="https://github.com/testinglibrary"><code>@testinglibrary</code></a>.com/docs/react-testing-library/intro/) or <a href="https://github.com/testingesting-library"><code>@testingesting-library</code></a>.com/docs/react-native-testing-library/intro)</li> </ul> <h2>Breaking Changes</h2> <p>React 19 brings in a number of breaking changes, including the removals of long-deprecated APIs. We recommend first upgrading to <code>18.3.1</code>, where we've added additional deprecation warnings. Check out the <a href="https://19.react.dev/blog/2024/04/25/react-19-upgrade-guide">upgrade guide</a> for more details and guidance on codemodding.</p> <h3>React</h3> <ul> <li>New JSX Transform is now required: We introduced <a href="https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html">a new JSX transform</a> in 2020 to improve bundle size and use JSX without importing React. In React 19, we’re adding additional improvements like using ref as a prop and JSX speed improvements that require the new transform.</li> <li>Errors in render are not re-thrown: Errors that are not caught by an Error Boundary are now reported to window.reportError. Errors that are caught by an Error Boundary are reported to console.error. We’ve introduced <code>onUncaughtError</code> and <code>onCaughtError</code> methods to <code>createRoot</code> and <code>hydrateRoot</code> to customize this error handling.</li> <li>Removed: <code>propTypes</code>: Using <code>propTypes</code> will now be silently ignored. If required, we recommend migrating to TypeScript or another type-checking solution.</li> <li>Removed: <code>defaultProps</code> for functions: ES6 default parameters can be used in place. Class components continue to support <code>defaultProps</code> since there is no ES6 alternative.</li> <li>Removed: <code>contextTypes</code> and <code>getChildContext</code>: Legacy Context for class components has been removed in favor of the <code>contextType</code> API.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/facebook/react/blob/main/CHANGELOG.md">react's changelog</a>.</em></p> <blockquote> <h2>19.0.0 (December 5, 2024)</h2> <p>Below is a list of all new features, APIs, deprecations, and breaking changes. Read <a href="https://react.dev/blog/2024/04/25/react-19">React 19 release post</a> and <a href="https://react.dev/blog/2024/04/25/react-19-upgrade-guide">React 19 upgrade guide</a> for more information.</p> <blockquote> <p>Note: To help make the upgrade to React 19 easier, we’ve published a [email protected] release that is identical to 18.2 but adds warnings for deprecated APIs and other changes that are needed for React 19. We recommend upgrading to React 18.3.1 first to help identify any issues before upgrading to React 19.</p> </blockquote> <h3>New Features</h3> <h4>React</h4> <ul> <li>Actions: <code>startTransition</code> can now accept async functions. Functions passed to <code>startTransition</code> are called “Actions”. A given Transition can include one or more Actions which update state in the background and update the UI with one commit. In addition to updating state, Actions can now perform side effects including async requests, and the Action will wait for the work to finish before finishing the Transition. This feature allows Transitions to include side effects like <code>fetch()</code> in the pending state, and provides support for error handling, and optimistic updates.</li> <li><code>useActionState</code>: is a new hook to order Actions inside of a Transition with access to the state of the action, and the pending state. It accepts a reducer that can call Actions, and the initial state used for first render. It also accepts an optional string that is used if the action is passed to a form <code>action</code> prop to support progressive enhancement in forms.</li> <li><code>useOptimistic</code>: is a new hook to update state while a Transition is in progress. It returns the state, and a set function that can be called inside a transition to “optimistically” update the state to expected final value immediately while the Transition completes in the background. When the transition finishes, the state is updated to the new value.</li> <li><code>use</code>: is a new API that allows reading resources in render. In React 19, <code>use</code> accepts a promise or Context. If provided a promise, <code>use</code> will suspend until a value is resolved. <code>use</code> can only be used in render but can be called conditionally.</li> <li><code>ref</code> as a prop: Refs can now be used as props, removing the need for <code>forwardRef</code>.</li> <li><strong>Suspense sibling pre-warming</strong>: When a component suspends, React will immediately commit the fallback of the nearest Suspense boundary, without waiting for the entire sibling tree to render. After the fallback commits, React will schedule another render for the suspended siblings to “pre-warm” lazy requests.</li> </ul> <h4>React DOM Client</h4> <ul> <li><code><form> action</code> prop: Form Actions allow you to manage forms automatically and integrate with <code>useFormStatus</code>. When a <code><form> action</code> succeeds, React will automatically reset the form for uncontrolled components. The form can be reset manually with the new <code>requestFormReset</code> API.</li> <li><code><button> and <input> formAction</code> prop: Actions can be passed to the <code>formAction</code> prop to configure form submission behavior. This allows using different Actions depending on the input.</li> <li><code>useFormStatus</code>: is a new hook that provides the status of the parent <code><form> action</code>, as if the form was a Context provider. The hook returns the values: <code>pending</code>, <code>data</code>, <code>method</code>, and <code>action</code>.</li> <li>Support for Document Metadata: We’ve added support for rendering document metadata tags in components natively. React will automatically hoist them into the <code><head></code> section of the document.</li> <li>Support for Stylesheets: React 19 will ensure stylesheets are inserted into the <code><head></code> on the client before revealing the content of a Suspense boundary that depends on that stylesheet.</li> <li>Support for async scripts: Async scripts can be rendered anywhere in the component tree and React will handle ordering and deduplication.</li> <li>Support for preloading resources: React 19 ships with <code>preinit</code>, <code>preload</code>, <code>prefetchDNS</code>, and <code>preconnect</code> APIs to optimize initial page loads by moving discovery of additional resources like fonts out of stylesheet loading. They can also be used to prefetch resources used by an anticipated navigation.</li> </ul> <h4>React DOM Server</h4> <ul> <li>Added <code>prerender</code> and <code>prerenderToNodeStream</code> APIs for static site generation. They are designed to work with streaming environments like Node.js Streams and Web Streams. Unlike <code>renderToString</code>, they wait for data to load for HTML generation.</li> </ul> <h4>React Server Components</h4> <ul> <li>RSC features such as directives, server components, and server functions are now stable. This means libraries that ship with Server Components can now target React 19 as a peer dependency with a react-server export condition for use in frameworks that support the Full-stack React Architecture. The underlying APIs used to implement a React Server Components bundler or framework do not follow semver and may break between minors in React 19.x. See <a href="https://19.react.dev/reference/rsc/server-components">docs</a> for how to support React Server Components.</li> </ul> <h3>Deprecations</h3> <ul> <li>Deprecated: <code>element.ref</code> access: React 19 supports ref as a prop, so we’re deprecating <code>element.ref</code> in favor of <code>element.props.ref</code>. Accessing will result in a warning.</li> <li><code>react-test-renderer</code>: In React 19, react-test-renderer logs a deprecation warning and has switched to concurrent rendering for web usage. We recommend migrating your tests to <a href="https://testing-library.com/docs/react-testing-library/intro/"><code>@testing-library/react</code></a> or <a href="https://testing-library.com/docs/react-native-testing-library/intro"><code>@testing-library/react-native</code></a></li> </ul> <h3>Breaking Changes</h3> <p>React 19 brings in a number of breaking changes, including the removals of long-deprecated APIs. We recommend first upgrading to <code>18.3.1</code>, where we've added additional deprecation warnings. Check out the <a href="https://19.react.dev/blog/2024/04/25/react-19-upgrade-guide">upgrade guide</a> for more details and guidance on codemodding.</p> <h3>React</h3> <ul> <li>New JSX Transform is now required: We introduced <a href="https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html">a new JSX transform</a> in 2020 to improve bundle size and use JSX without importing React. In React 19, we’re adding additional improvements like using ref as a prop and JSX speed improvements that require the new transform.</li> <li>Errors in render are not re-thrown: Errors that are not caught by an Error Boundary are now reported to window.reportError. Errors that are caught by an Error Boundary are reported to console.error. We’ve introduced <code>onUncaughtError</code> and <code>onCaughtError</code> methods to <code>createRoot</code> and <code>hydrateRoot</code> to customize this error handling.</li> <li>Removed: <code>propTypes</code>: Using <code>propTypes</code> will now be silently ignored. If required, we recommend migrating to TypeScript or another type-checking solution.</li> <li>Removed: <code>defaultProps</code> for functions: ES6 default parameters can be used in place. Class components continue to support <code>defaultProps</code> since there is no ES6 alternative.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/facebook/react/commit/e1378902bbb322aa1fe1953780f4b2b5f80d26b1"><code>e137890</code></a> [string-refs] cleanup string ref code (<a href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/31443">#31443</a>)</li> <li><a href="https://github.com/facebook/react/commit/d1f04722d617600cc6cd96dcebc1c2ef7affc904"><code>d1f0472</code></a> [string-refs] remove enableLogStringRefsProd flag (<a href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/31414">#31414</a>)</li> <li><a href="https://github.com/facebook/react/commit/3dc1e4820ec985baa6668a4fa799760c4b99f5d9"><code>3dc1e48</code></a> Followup: remove dead test code from <a href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/30346">#30346</a> (<a href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/31415">#31415</a>)</li> <li><a href="https://github.com/facebook/react/commit/07aa494432e97f63fca9faf2fad6f76fead31063"><code>07aa494</code></a> Remove enableRefAsProp feature flag (<a href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/30346">#30346</a>)</li> <li><a href="https://github.com/facebook/react/commit/45804af18d589fd2c181f3b020f07661c46b73ea"><code>45804af</code></a> [flow] Eliminate usage of more than 1-arg <code>React.AbstractComponent</code> in React ...</li> <li><a href="https://github.com/facebook/react/commit/5636fad840942cfea80301d91e931a50c6370d19"><code>5636fad</code></a> [string-refs] log string ref from prod (<a href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/31161">#31161</a>)</li> <li><a href="https://github.com/facebook/react/commit/b78a7f2f35e554a8647c3262d7f392e68d06febc"><code>b78a7f2</code></a> [rcr] Re-export useMemoCache in top level React namespace (<a href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/31139">#31139</a>)</li> <li><a href="https://github.com/facebook/react/commit/4e9540e3c2a8f9ae56318b967939c99b3a815190"><code>4e9540e</code></a> [Fiber] Log the Render/Commit phases and the gaps in between (<a href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/31016">#31016</a>)</li> <li><a href="https://github.com/facebook/react/commit/d4688dfaafe51a4cb6e3c51fc2330662cb4e2296"><code>d4688df</code></a> [Fiber] Track Event Time, startTransition Time and setState Time (<a href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/31008">#31008</a>)</li> <li><a href="https://github.com/facebook/react/commit/15da9174518f18f82869767ebe2a21be2fc8bd90"><code>15da917</code></a> Don't read currentTransition back from internals (<a href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/30991">#30991</a>)</li> <li>Additional commits viewable in <a href="https://github.com/facebook/react/commits/v19.0.0/packages/react">compare view</a></li> </ul> </details> <br /> Updates `@types/react` from 18.3.18 to 19.0.8 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react">compare view</a></li> </ul> </details> <br /> Updates `react-dom` from 18.3.1 to 19.0.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/facebook/react/releases">react-dom's releases</a>.</em></p> <blockquote> <h2>19.0.0 (December 5, 2024)</h2> <p>Below is a list of all new features, APIs, deprecations, and breaking changes. Read <a href="https://react.dev/blog/2024/04/25/react-19">React 19 release post</a> and <a href="https://react.dev/blog/2024/04/25/react-19-upgrade-guide">React 19 upgrade guide</a> for more information.</p> <blockquote> <p>Note: To help make the upgrade to React 19 easier, we’ve published a [email protected] release that is identical to 18.2 but adds warnings for deprecated APIs and other changes that are needed for React 19. We recommend upgrading to React 18.3.1 first to help identify any issues before upgrading to React 19.</p> </blockquote> <h2>New Features</h2> <h3>React</h3> <ul> <li>Actions: <code>startTransition</code> can now accept async functions. Functions passed to <code>startTransition</code> are called “Actions”. A given Transition can include one or more Actions which update state in the background and update the UI with one commit. In addition to updating state, Actions can now perform side effects including async requests, and the Action will wait for the work to finish before finishing the Transition. This feature allows Transitions to include side effects like <code>fetch()</code> in the pending state, and provides support for error handling, and optimistic updates.</li> <li><code>useActionState</code>: is a new hook to order Actions inside of a Transition with access to the state of the action, and the pending state. It accepts a reducer that can call Actions, and the initial state used for first render. It also accepts an optional string that is used if the action is passed to a form <code>action</code> prop to support progressive enhancement in forms.</li> <li><code>useOptimistic</code>: is a new hook to update state while a Transition is in progress. It returns the state, and a set function that can be called inside a transition to “optimistically” update the state to expected final value immediately while the Transition completes in the background. When the transition finishes, the state is updated to the new value.</li> <li><code>use</code>: is a new API that allows reading resources in render. In React 19, <code>use</code> accepts a promise or Context. If provided a promise, <code>use</code> will suspend until a value is resolved. <code>use</code> can only be used in render but can be called conditionally.</li> <li><code>ref</code> as a prop: Refs can now be used as props, removing the need for <code>forwardRef</code>.</li> <li><strong>Suspense sibling pre-warming</strong>: When a component suspends, React will immediately commit the fallback of the nearest Suspense boundary, without waiting for the entire sibling tree to render. After the fallback commits, React will schedule another render for the suspended siblings to “pre-warm” lazy requests.</li> </ul> <h3>React DOM Client</h3> <ul> <li><code><form> action</code> prop: Form Actions allow you to manage forms automatically and integrate with <code>useFormStatus</code>. When a <code><form> action</code> succeeds, React will automatically reset the form for uncontrolled components. The form can be reset manually with the new <code>requestFormReset</code> API.</li> <li><code><button> and <input> formAction</code> prop: Actions can be passed to the <code>formAction</code> prop to configure form submission behavior. This allows using different Actions depending on the input.</li> <li><code>useFormStatus</code>: is a new hook that provides the status of the parent <code><form> action</code>, as if the form was a Context provider. The hook returns the values: <code>pending</code>, <code>data</code>, <code>method</code>, and <code>action</code>.</li> <li>Support for Document Metadata: We’ve added support for rendering document metadata tags in components natively. React will automatically hoist them into the <code><head></code> section of the document.</li> <li>Support for Stylesheets: React 19 will ensure stylesheets are inserted into the <code><head></code> on the client before revealing the content of a Suspense boundary that depends on that stylesheet.</li> <li>Support for async scripts: Async scripts can be rendered anywhere in the component tree and React will handle ordering and deduplication.</li> <li>Support for preloading resources: React 19 ships with <code>preinit</code>, <code>preload</code>, <code>prefetchDNS</code>, and <code>preconnect</code> APIs to optimize initial page loads by moving discovery of additional resources like fonts out of stylesheet loading. They can also be used to prefetch resources used by an anticipated navigation.</li> </ul> <h3>React DOM Server</h3> <ul> <li>Added <code>prerender</code> and <code>prerenderToNodeStream</code> APIs for static site generation. They are designed to work with streaming environments like Node.js Streams and Web Streams. Unlike <code>renderToString</code>, they wait for data to load for HTML generation.</li> </ul> <h3>React Server Components</h3> <ul> <li>RSC features such as directives, server components, and server functions are now stable. This means libraries that ship with Server Components can now target React 19 as a peer dependency with a react-server export condition for use in frameworks that support the Full-stack React Architecture. The underlying APIs used to implement a React Server Components bundler or framework do not follow semver and may break between minors in React 19.x. See <a href="https://19.react.dev/reference/rsc/server-components">docs</a> for how to support React Server Components.</li> </ul> <h2>Deprecations</h2> <ul> <li>Deprecated: <code>element.ref</code> access: React 19 supports ref as a prop, so we’re deprecating <code>element.ref</code> in favor of <code>element.props.ref</code>. Accessing will result in a warning.</li> <li><code>react-test-renderer</code>: In React 19, react-test-renderer logs a deprecation warning and has switched to concurrent rendering for web usage. We recommend migrating your tests to <a href="https://github.com/testinglibrary"><code>@testinglibrary</code></a>.com/docs/react-testing-library/intro/) or <a href="https://github.com/testingesting-library"><code>@testingesting-library</code></a>.com/docs/react-native-testing-library/intro)</li> </ul> <h2>Breaking Changes</h2> <p>React 19 brings in a number of breaking changes, including the removals of long-deprecated APIs. We recommend first upgrading to <code>18.3.1</code>, where we've added additional deprecation warnings. Check out the <a href="https://19.react.dev/blog/2024/04/25/react-19-upgrade-guide">upgrade guide</a> for more details and guidance on codemodding.</p> <h3>React</h3> <ul> <li>New JSX Transform is now required: We introduced <a href="https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html">a new JSX transform</a> in 2020 to improve bundle size and use JSX without importing React. In React 19, we’re adding additional improvements like using ref as a prop and JSX speed improvements that require the new transform.</li> <li>Errors in render are not re-thrown: Errors that are not caught by an Error Boundary are now reported to window.reportError. Errors that are caught by an Error Boundary are reported to console.error. We’ve introduced <code>onUncaughtError</code> and <code>onCaughtError</code> methods to <code>createRoot</code> and <code>hydrateRoot</code> to customize this error handling.</li> <li>Removed: <code>propTypes</code>: Using <code>propTypes</code> will now be silently ignored. If required, we recommend migrating to TypeScript or another type-checking solution.</li> <li>Removed: <code>defaultProps</code> for functions: ES6 default parameters can be used in place. Class components continue to support <code>defaultProps</code> since there is no ES6 alternative.</li> <li>Removed: <code>contextTypes</code> and <code>getChildContext</code>: Legacy Context for class components has been removed in favor of the <code>contextType</code> API.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/facebook/react/blob/main/CHANGELOG.md">react-dom's changelog</a>.</em></p> <blockquote> <h2>19.0.0 (December 5, 2024)</h2> <p>Below is a list of all new features, APIs, deprecations, and breaking changes. Read <a href="https://react.dev/blog/2024/04/25/react-19">React 19 release post</a> and <a href="https://react.dev/blog/2024/04/25/react-19-upgrade-guide">React 19 upgrade guide</a> for more information.</p> <blockquote> <p>Note: To help make the upgrade to React 19 easier, we’ve published a [email protected] release that is identical to 18.2 but adds warnings for deprecated APIs and other changes that are needed for React 19. We recommend upgrading to React 18.3.1 first to help identify any issues before upgrading to React 19.</p> </blockquote> <h3>New Features</h3> <h4>React</h4> <ul> <li>Actions: <code>startTransition</code> can now accept async functions. Functions passed to <code>startTransition</code> are called “Actions”. A given Transition can include one or more Actions which update state in the background and update the UI with one commit. In addition to updating state, Actions can now perform side effects including async requests, and the Action will wait for the work to finish before finishing the Transition. This feature allows Transitions to include side effects like <code>fetch()</code> in the pending state, and provides support for error handling, and optimistic updates.</li> <li><code>useActionState</code>: is a new hook to order Actions inside of a Transition with access to the state of the action, and the pending state. It accepts a reducer that can call Actions, and the initial state used for first render. It also accepts an optional string that is used if the action is passed to a form <code>action</code> prop to support progressive enhancement in forms.</li> <li><code>useOptimistic</code>: is a new hook to update state while a Transition is in progress. It returns the state, and a set function that can be called inside a transition to “optimistically” update the state to expected final value immediately while the Transition completes in the background. When the transition finishes, the state is updated to the new value.</li> <li><code>use</code>: is a new API that allows reading resources in render. In React 19, <code>use</code> accepts a promise or Context. If provided a promise, <code>use</code> will suspend until a value is resolved. <code>use</code> can only be used in render but can be called conditionally.</li> <li><code>ref</code> as a prop: Refs can now be used as props, removing the need for <code>forwardRef</code>.</li> <li><strong>Suspense sibling pre-warming</strong>: When a component suspends, React will immediately commit the fallback of the nearest Suspense boundary, without waiting for the entire sibling tree to render. After the fallback commits, React will schedule another render for the suspended siblings to “pre-warm” lazy requests.</li> </ul> <h4>React DOM Client</h4> <ul> <li><code><form> action</code> prop: Form Actions allow you to manage forms automatically and integrate with <code>useFormStatus</code>. When a <code><form> action</code> succeeds, React will automatically reset the form for uncontrolled components. The form can be reset manually with the new <code>requestFormReset</code> API.</li> <li><code><button> and <input> formAction</code> prop: Actions can be passed to the <code>formAction</code> prop to configure form submission behavior. This allows using different Actions depending on the input.</li> <li><code>useFormStatus</code>: is a new hook that provides the status of the parent <code><form> action</code>, as if the form was a Context provider. The hook returns the values: <code>pending</code>, <code>data</code>, <code>method</code>, and <code>action</code>.</li> <li>Support for Document Metadata: We’ve added support for rendering document metadata tags in components natively. React will automatically hoist them into the <code><head></code> section of the document.</li> <li>Support for Stylesheets: React 19 will ensure stylesheets are inserted into the <code><head></code> on the client before revealing the content of a Suspense boundary that depends on that stylesheet.</li> <li>Support for async scripts: Async scripts can be rendered anywhere in the component tree and React will handle ordering and deduplication.</li> <li>Support for preloading resources: React 19 ships with <code>preinit</code>, <code>preload</code>, <code>prefetchDNS</code>, and <code>preconnect</code> APIs to optimize initial page loads by moving discovery of additional resources like fonts out of stylesheet loading. They can also be used to prefetch resources used by an anticipated navigation.</li> </ul> <h4>React DOM Server</h4> <ul> <li>Added <code>prerender</code> and <code>prerenderToNodeStream</code> APIs for static site generation. They are designed to work with streaming environments like Node.js Streams and Web Streams. Unlike <code>renderToString</code>, they wait for data to load for HTML generation.</li> </ul> <h4>React Server Components</h4> <ul> <li>RSC features such as directives, server components, and server functions are now stable. This means libraries that ship with Server Components can now target React 19 as a peer dependency with a react-server export condition for use in frameworks that support the Full-stack React Architecture. The underlying APIs used to implement a React Server Components bundler or framework do not follow semver and may break between minors in React 19.x. See <a href="https://19.react.dev/reference/rsc/server-components">docs</a> for how to support React Server Components.</li> </ul> <h3>Deprecations</h3> <ul> <li>Deprecated: <code>element.ref</code> access: React 19 supports ref as a prop, so we’re deprecating <code>element.ref</code> in favor of <code>element.props.ref</code>. Accessing will result in a warning.</li> <li><code>react-test-renderer</code>: In React 19, react-test-renderer logs a deprecation warning and has switched to concurrent rendering for web usage. We recommend migrating your tests to <a href="https://testing-library.com/docs/react-testing-library/intro/"><code>@testing-library/react</code></a> or <a href="https://testing-library.com/docs/react-native-testing-library/intro"><code>@testing-library/react-native</code></a></li> </ul> <h3>Breaking Changes</h3> <p>React 19 brings in a number of breaking changes, including the removals of long-deprecated APIs. We recommend first upgrading to <code>18.3.1</code>, where we've added additional deprecation warnings. Check out the <a href="https://19.react.dev/blog/2024/04/25/react-19-upgrade-guide">upgrade guide</a> for more details and guidance on codemodding.</p> <h3>React</h3> <ul> <li>New JSX Transform is now required: We introduced <a href="https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html">a new JSX transform</a> in 2020 to improve bundle size and use JSX without importing React. In React 19, we’re adding additional improvements like using ref as a prop and JSX speed improvements that require the new transform.</li> <li>Errors in render are not re-thrown: Errors that are not caught by an Error Boundary are now reported to window.reportError. Errors that are caught by an Error Boundary are reported to console.error. We’ve introduced <code>onUncaughtError</code> and <code>onCaughtError</code> methods to <code>createRoot</code> and <code>hydrateRoot</code> to customize this error handling.</li> <li>Removed: <code>propTypes</code>: Using <code>propTypes</code> will now be silently ignored. If required, we recommend migrating to TypeScript or another type-checking solution.</li> <li>Removed: <code>defaultProps</code> for functions: ES6 default parameters can be used in place. Class components continue to support <code>defaultProps</code> since there is no ES6 alternative.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/facebook/react/commit/989af12f72080c17db03ead91d99b6394a215564"><code>989af12</code></a> Make prerendering always non-blocking with fix (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/31452">#31452</a>)</li> <li><a href="https://github.com/facebook/react/commit/e1378902bbb322aa1fe1953780f4b2b5f80d26b1"><code>e137890</code></a> [string-refs] cleanup string ref code (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/31443">#31443</a>)</li> <li><a href="https://github.com/facebook/react/commit/07aa494432e97f63fca9faf2fad6f76fead31063"><code>07aa494</code></a> Remove enableRefAsProp feature flag (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/30346">#30346</a>)</li> <li><a href="https://github.com/facebook/react/commit/cae764ce81b1bd6c418e9e23651794b6b09208e8"><code>cae764c</code></a> Revert "[Re-land] Make prerendering always non-blocking (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/31268">#31268</a>)" (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/31355">#31355</a>)</li> <li><a href="https://github.com/facebook/react/commit/d49123f73f12564223c890bfa36be537de2c571d"><code>d49123f</code></a> Expose prerender() for SSG in stable (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/31298">#31298</a>)</li> <li><a href="https://github.com/facebook/react/commit/6c4bbc783286bf6eebd9927cb52e8fec5ad4dd74"><code>6c4bbc7</code></a> [Re-land] Make prerendering always non-blocking (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/31268">#31268</a>)</li> <li><a href="https://github.com/facebook/react/commit/d8c90fa48d3addefe4b805ec56a3c65e4ee39127"><code>d8c90fa</code></a> Disable infinite render loop detection (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/31088">#31088</a>)</li> <li><a href="https://github.com/facebook/react/commit/67fee58b1f72754cc77488c40c44e786572ef954"><code>67fee58</code></a> [Fizz] Start initial work immediately (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/31079">#31079</a>)</li> <li><a href="https://github.com/facebook/react/commit/76aee6f39d94caa04c11be92d75d12cb9ee56494"><code>76aee6f</code></a> Revert "Make prerendering always non-blocking" (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/31080">#31080</a>)</li> <li><a href="https://github.com/facebook/react/commit/0f1856c49febe96923e469f98c0b123130ea015c"><code>0f1856c</code></a> Make prerendering always non-blocking (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/31056">#31056</a>)</li> <li>Additional commits viewable in <a href="https://github.com/facebook/react/commits/v19.0.0/packages/react-dom">compare view</a></li> </ul> </details> <br /> Updates `@types/react-dom` from 18.3.5 to 19.0.3 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom">compare view</a></li> </ul> </details> <br /> Updates `styled-components` from 5.3.11 to 6.1.15 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/styled-components/styled-components/releases">styled-components's releases</a>.</em></p> <blockquote> <h2>[email protected]</h2> <h3>Patch Changes</h3> <ul> <li>b9688ae: chore: update postcss to version 8.4.49 and nanoid to version 3.3.8</li> </ul> <h2>[email protected]</h2> <h3>Patch Changes</h3> <ul> <li>6908326: Add changesets for release management</li> <li>18ebf6d: Prevent styled() from injecting an undefined ref prop in React 19</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/styled-components/styled-components/commit/44a31cb346dc7d22608bb38cc4369acdb05ee705"><code>44a31cb</code></a> Version Packages (<a href="https://redirect.github.com/styled-components/styled-components/issues/5552">#5552</a>)</li> <li><a href="https://github.com/styled-components/styled-components/commit/b9688ae0575b67590e4a996704d8030ed1263ec4"><code>b9688ae</code></a> chore: update postcss to version 8.4.49 and nanoid to version 3.3.8 (<a href="https://redirect.github.com/styled-components/styled-components/issues/5520">#5520</a>)</li> <li><a href="https://github.com/styled-components/styled-components/commit/8b9d66f9a8e1dc59cfe5f5c4c079d8fcf5054e12"><code>8b9d66f</code></a> chore: add publishConfig</li> <li><a href="https://github.com/styled-components/styled-components/commit/c6ac5b16aebced653c51d12ee82150f4bf0138bc"><code>c6ac5b1</code></a> chore: fix release script</li> <li><a href="https://github.com/styled-components/styled-components/commit/3f930451aaf761755ca8c6778af2b1cd17c3dbfd"><code>3f93045</code></a> Version Packages (<a href="https://redirect.github.com/styled-components/styled-components/issues/4347">#4347</a>)</li> <li><a href="https://github.com/styled-components/styled-components/commit/18ebf6d0b977ac0cbf18839d1d51bd7c95e9fa73"><code>18ebf6d</code></a> Prevent styled() from injecting an undefined ref prop in React 19 (<a href="https://redirect.github.com/styled-components/styled-components/issues/5510">#5510</a>)</li> <li><a href="https://github.com/styled-components/styled-components/commit/6f6db180bd0ec89bd4342dc4b8f1eae0b34d8dca"><code>6f6db18</code></a> update contributor guide to reference changesets (<a href="https://redirect.github.com/styled-components/styled-components/issues/4348">#4348</a>)</li> <li><a href="https://github.com/styled-components/styled-components/commit/948b26f36724b7f0e4e20483edd79bb2d6cbf7c0"><code>948b26f</code></a> fix workflows in changeset branch, hopefully</li> <li><a href="https://github.com/styled-components/styled-components/commit/49dce894f1618a8cdc600e079ec48eaeba9fc5ea"><code>49dce89</code></a> meh</li> <li><a href="https://github.com/styled-components/styled-components/commit/38c0fe4b519dbb6f4fa0e4a63f5352d7eeb7e465"><code>38c0fe4</code></a> try different way of skipping</li> <li>Additional commits viewable in <a href="https://github.com/styled-components/styled-components/compare/[email protected]">compare view</a></li> </ul> </details> <br /> Updates `@electron-forge/cli` from 7.6.0 to 7.6.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/electron/forge/releases"><code>@electron-forge/cli</code>'s releases</a>.</em></p> <blockquote> <h2>v7.6.1</h2> <h2>What's Changed</h2> <p>This release contains several bug fixes and improvements, as well as bumps in dependencies.</p> <h3>Bug Fixes and Improvements</h3> <ul> <li>fix(maker-dmg): remove extraneous properties from <code>MakerDMGConfig</code> by <a href="https://github.com/tanishqkancharla"><code>@tanishqkancharla</code></a> in <a href="https://redirect.github.com/electron/forge/pull/3761">electron/forge#3761</a></li> <li>fix(core-utils): don't add --save flag for npm install by <a href="https://github.com/erickzhao"><code>@erickzhao</code></a> in <a href="https://redirect.github.com/electron/forge/pull/3795">electron/forge#3795</a></li> <li>fix: update native module unpack pattern to include hidden directories by <a href="https://github.com/glowingjade"><code>@glowingjade</code></a> in <a href="https://redirect.github.com/electron/forge/pull/3793">electron/forge#3793</a></li> <li>fix(maker-dmg): make <code>macos-alias</code> build on Node.js 22 by <a href="https://github.com/erickzhao"><code>@erickzhao</code></a> in <a href="https://redirect.github.com/electron/forge/pull/3810">electron/forge#3810</a></li> <li>fix(template): install fuses@ELECTRON_FORGE/VERSION by <a href="https://github.com/erickzhao"><code>@erickzhao</code></a> in <a href="https://redirect.github.com/electron/forge/pull/3702">electron/forge#3702</a></li> </ul> <h3>Other Changes</h3> <ul> <li>build(deps): remove unused <code>pretty-ms</code> dep by <a href="https://github.com/erickzhao"><code>@erickzhao</code></a> in <a href="https://redirect.github.com/electron/forge/pull/3775">electron/forge#3775</a></li> <li>build(deps): bump vite from 5.4.11 to 5.4.12 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/electron/forge/pull/3814">electron/forge#3814</a></li> <li>build(plugin-vite): allow renderer name to contain dashes by <a href="https://github.com/broose-goose"><code>@broose-goose</code></a> in <a href="https://redirect.github.com/electron/forge/pull/3794">electron/forge#3794</a></li> <li>build(deps): TypeScript 5.4 by <a href="https://github.com/erickzhao"><code>@erickzhao</code></a> in <a href="https://redirect.github.com/electron/forge/pull/3790">electron/forge#3790</a></li> <li>ci: disable parallelism by <a href="https://github.com/erickzhao"><code>@erickzhao</code></a> in <a href="https://redirect.github.com/electron/forge/pull/3798">electron/forge#3798</a></li> <li>ci: change gh-pages workflow to ubuntu-latest runner by <a href="https:/…
- Loading branch information