Skip to content

Bump the frontend-dependencies group across 1 directory with 10 updates#178

Open
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/npm_and_yarn/frontend/dev/frontend-dependencies-f80235175d
Open

Bump the frontend-dependencies group across 1 directory with 10 updates#178
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/npm_and_yarn/frontend/dev/frontend-dependencies-f80235175d

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github Mar 10, 2025

Bumps the frontend-dependencies group with 10 updates in the /frontend directory:

Package From To
@testing-library/jest-dom 5.17.0 6.6.3
@testing-library/react 13.4.0 16.2.0
@testing-library/user-event 13.5.0 14.6.1
lucide-react 0.263.1 0.479.0
mapbox-gl 2.15.0 3.10.0
react 18.3.1 19.0.0
react-dom 18.3.1 19.0.0
react-icons 4.12.0 5.5.0
react-router-dom 6.30.0 7.3.0
web-vitals 2.1.4 4.2.4

Updates @testing-library/jest-dom from 5.17.0 to 6.6.3

Release notes

Sourced from @​testing-library/jest-dom's releases.

v6.6.3

6.6.3 (2024-10-31)

Bug Fixes

  • add vitest import when extending vitest matchers (#646) (5ba0156)

v6.6.2

6.6.2 (2024-10-17)

Bug Fixes

  • remove recursive type reference in vitest types (#636) (4468378)

v6.6.1

6.6.1 (2024-10-16)

Bug Fixes

  • fix lodash import in to-have-selection.js (#642) (ced792e)

v6.6.0

6.6.0 (2024-10-16)

Features

v6.5.0

6.5.0 (2024-08-23)

Features

  • toHaveValue: Asserting aria-valuenow (#479) (acbf416)

v6.4.8

6.4.8 (2024-07-23)

Bug Fixes

  • Drop peerDependencies from package.json (#610) (faf534b)

v6.4.7

6.4.7 (2024-07-22)

... (truncated)

Commits
  • 5ba0156 fix: add vitest import when extending vitest matchers (#646)
  • 4468378 fix: remove recursive type reference in vitest types (#636)
  • abba961 docs: add billyjanitsch as a contributor for bug (#644)
  • 9490615 docs: add G-Rath as a contributor for code (#643)
  • ced792e fix: fix lodash import in to-have-selection.js (#642)
  • 9b14804 feat: implement toHaveSelection (#637)
  • f5b0e94 docs: add diegohaz as a contributor for ideas (#640)
  • 68e927e docs: add pwolaq as a contributor for code, and test (#639)
  • 04005db docs: add silviuaavram as a contributor for code, and test (#638)
  • 4723de3 docs: add mibcadet as a contributor for doc (#628)
  • Additional commits viewable in compare view

Updates @testing-library/react from 13.4.0 to 16.2.0

Release notes

Sourced from @​testing-library/react's releases.

v16.2.0

16.2.0 (2025-01-15)

Features

v16.1.0

16.1.0 (2024-12-05)

Features

v16.0.1

16.0.1 (2024-08-29)

Bug Fixes

  • Add support for exactOptionalPropertyTypes in TypeScript (#1351) (3dcd8a9)

v16.0.0

16.0.0 (2024-06-03)

Features

  • Move @testing-library/dom and @types/react-dom to peer dependencies (#1305) (a4744fa)

BREAKING CHANGES

  • @testing-library/dom was moved to a peer dependency and needs to be explicitly installed. This reduces the chance of having conflicting versions of @testing-library/dom installed that frequently caused bugs when used with @testing-library/user-event. We will also be able to allow new versions of @testing-library/dom being used without a SemVer major release of @testing-library/react by just widening the peer dependency. @types/react-dom needs to be installed if you're typechecking files using @testing-library/react.

v15.0.7

15.0.7 (2024-05-07)

Bug Fixes

  • Ensure act is not any when React.act is not declared (#1323) (c1f2957)

v15.0.6

... (truncated)

Commits
  • 9618c51 feat: Add support for React error handlers (#1354)
  • eab6e67 [ci] Codecov fix follow-up
  • 7134e5d [ci] Fix codecov action (#1376)
  • 85ac253 feat: Add support for React 19 (#1367)
  • 3dcd8a9 fix: Add support for exactOptionalPropertyTypes in TypeScript (#1351)
  • 7a28fa9 Fix React Canary and Experimental tests (#1353)
  • a4744fa feat: Move @testing-library/dom and @types/react-dom to peer dependencie...
  • c1f2957 fix: Ensure act is not any when React.act is not declared (#1323)
  • b6e59f7 fix: export new act when available (#1319)
  • f6a1677 chore: Adjust tests to workaround 18.3.0 bug (#1315)
  • Additional commits viewable in compare view

Updates @testing-library/user-event from 13.5.0 to 14.6.1

Release notes

Sourced from @​testing-library/user-event's releases.

v14.6.1

14.6.1 (2025-01-21)

Bug Fixes

  • correct description for delay option (#1175) (2edf14d)
  • keyboard: add ContextMenu to defaultKeyMap (#1079) (3e471d1)
  • keyboard: add brackets to defaultKeyMap (#1226) (543ecb0)
  • keyboard: walk through radio group per arrow keys (#1049) (bf8111c)
  • pointer: dispatch mouse events if pointerdown is defaultPrevented (#1121) (f681f7b)
  • pointer: set button and buttons properties on PointerEvent (#1219) (6614f72)
  • pointer: use 1 as default value for PointerEvent.width and PointerEvent.height (#1224) (f0468d0)
  • prevent click event loop on form-associated custom element (#1238) (465fc7e)
  • prevent click event on non-focusable control (#1130) (e429094)
  • upload: apply accept filter more leniently (#1064) (a344ad4)

v14.6.0

14.6.0 (2025-01-15)

Features

Bug Fixes

  • clipboard: await DataTransferItem.getAsString() callback (#1251) (7b11b0e)
  • event: assign pointer coords to MouseEvent (#1039) (8528972)
  • pointer: check PointerCoords.x in isDifferentPointerPosition (#1216) (75edef5)
  • pointer: check all fields of PointerCoords in isDifferentPointerPosition() (#1229) (5f3d28f)

v14.5.2

14.5.2 (2023-12-29)

Bug Fixes

  • remove interop and deep DTL imports (6a3c896)

v14.5.1

14.5.1 (2023-09-15)

Bug Fixes

  • incorrect default import from @​testing-library/dom (#1162) (d7483f0)

v14.5.0

14.5.0 (2023-09-14)

... (truncated)

Commits
  • d42954b chore: fix typos (#1260)
  • 465fc7e fix: prevent click event loop on form-associated custom element (#1238)
  • 65c1f6c test: update snapshots (#1261)
  • 543ecb0 fix(keyboard): add brackets to defaultKeyMap (#1226)
  • f0468d0 fix(pointer): use 1 as default value for PointerEvent.width and `PointerE...
  • 6614f72 fix(pointer): set button and buttons properties on PointerEvent (#1219)
  • 2edf14d fix: correct description for delay option (#1175)
  • e429094 fix: prevent click event on non-focusable control (#1130)
  • f681f7b fix(pointer): dispatch mouse events if pointerdown is defaultPrevented (#...
  • 3e471d1 fix(keyboard): add ContextMenu to defaultKeyMap (#1079)
  • Additional commits viewable in compare view

Updates lucide-react from 0.263.1 to 0.479.0

Release notes

Sourced from lucide-react's releases.

Version 0.479.0

What's Changed

Full Changelog: lucide-icons/lucide@0.478.0...0.479.0

Version 0.478.0

What's Changed

Full Changelog: lucide-icons/lucide@0.477.0...0.478.0

New icons 0.477.0

New icons 🎨

Modified Icons 🔨

Fixes and new icons 0.476.0

Fixes

New icons 🎨

Modified Icons 🔨

New icons 0.475.0

New icons 🎨

... (truncated)

Commits
  • 1787b82 build(deps-dev): bump vite from 5.4.13 to 5.4.14 in /packages/lucide (#2804)
  • b46927e fix(lucide-react): Revert exports property package.json, fixing edge worker e...
  • 3ab6c37 build(deps-dev): bump vite from 5.4.12 to 5.4.13 (#2798)
  • ba2c4b5 build(deps-dev): bump vite from 5.1.8 to 5.4.12 (#2786)
  • 50630b3 ci: Improve build speeds (#2778)
  • 961404d replace keyof ReactSVG with SVGElementType (#2668)
  • 31c3fef fix(lucide-react) Adds type module in package.json (#2731)
  • 58c2e10 feat(lucide-react): Add DynamicIcon component (#2686)
  • 970fc3d fix(lucide-react): support React 19 (#2666)
  • 4f038d5 feat(docs): add Bun.sh support to documentation (#2642)
  • Additional commits viewable in compare view

Updates mapbox-gl from 2.15.0 to 3.10.0

Release notes

Sourced from mapbox-gl's releases.

v3.10.0

Features and improvements ✨

  • Add support for data-driven *-use-theme properties.
  • Improve rendering of complex SVG clip paths for vector icons.

Bug fixes 🐞

  • Fix issue where the close popup button was hidden from screen readers.
  • Fix updating of schema config values of imported styles.
  • Fix line placement symbol disappearing issue during transition from globe.
  • Fix queryRenderedFeatures not working on duplicated model layers.
  • Fix in-place update for SDF image.
  • Fix LUT not being applied to in-place updated image.
  • Fix various issues with using mouseenter and mouseleave with Interactions API.
  • Fix error with interactible map elements during interaction with a map that wasn't fully loaded.
  • Fix rendering of elevated and non-elevated lines on the same layer.
  • Fix pixel ratio handling for patterns with vector icons.
  • Fix positioning of vector icons with modified icon-size.
  • Fix a blank map issue after WebGL context loss.
  • Fix loss of precision for close to camera models.
  • Fix transparent models not being culled when terrain is enabled.

v3.10.0-beta.1

Features and improvements ✨

  • Add support for data-driven *-use-theme properties.
  • Improve rendering of complex SVG clip paths for vector icons.

Bug fixes 🐞

  • Fix issue where the close popup button was hidden from screen readers.
  • Fix queryRenderedFeatures not working on duplicated model layers.
  • Fix rendering of elevated and non-elevated lines on the same layer.
  • Fix a blank map issue after WebGL context loss.

v3.9.4

  • Fix vector icons rendering with stretch areas on high DPI devices.

v3.9.3

  • Fix issues when updating feature state on symbol layers.
  • Fix canvas source not rendering correctly after a canvas resize.

v3.9.2

  • Fix the display of user-rendered images.
  • Fix a broken build issue in specific bundling configurations using Vite or ESBuild.
  • Fix the console error issue that sometimes occurs during map initialization.

v3.9.1

  • Fix an error when using background patterns on styles with vector icons enabled.
  • Fix queryRenderedFeatures not working on styles with custom layers.
  • When using queryRenderedFeatures and querySourceFeatures with featureset, fix filter option to apply to featureset selectors rather than original properties, and add featureNamespace validation.

... (truncated)

Changelog

Sourced from mapbox-gl's changelog.

3.10.0

Features and improvements ✨

  • Add support for data-driven *-use-theme properties.
  • Improve rendering of complex SVG clip paths for vector icons.

Bug fixes 🐞

  • Fix some mouse gestures for Firefox 136 and later on Mac OS.
  • Fix issue where the close popup button was hidden from screen readers.
  • Fix updating of schema config values of imported styles.
  • Fix line placement symbol disappearing issue during transition from globe.
  • Fix queryRenderedFeatures not working on duplicated model layers.
  • Fix in-place update for SDF image.
  • Fix LUT not being applied to in-place updated image.
  • Fix various issues with using mouseenter and mouseleave with Interactions API.
  • Fix error with interactible map elements during interaction with a map that wasn't fully loaded.
  • Fix rendering of elevated and non-elevated lines on the same layer.
  • Fix pixel ratio handling for patterns with vector icons.
  • Fix positioning of vector icons with modified icon-size.
  • Fix a blank map issue after WebGL context loss.
  • Fix loss of precision for close to camera models.
  • Fix transparent models not being culled when terrain is enabled.

3.9.4

  • Fix vector icons rendering with stretch areas on high DPI devices.

3.9.3

  • Fix issues when updating feature state on symbol layers.
  • Fix canvas source not rendering correctly after a canvas resize.

3.9.2

  • Fix display of user-rendered images.
  • Fix a broken build issue in specific bundling configurations using Vite or ESBuild.
  • Fix console error issue that sometimes occur during map initialization.

3.9.1

  • Fix an error when using background patterns on styles with vector icons enabled.
  • Fix queryRenderedFeatures not working on styles with custom layers.
  • Fix small rendering artifacts on line corners when using patterns with line-join: none.
  • When using queryRenderedFeatures and querySourceFeatures with featureset, fix filter option to apply to featureset selectors rather than original properties, and add featureNamespace validation.
  • Fix queryRenderedFeatures missing source, sourceLayer and layer properties in resulting features where they should be present.

3.9.0

Breaking changes ⚠️

  • Rename featureset property to target in addInteraction and queryRenderedFeatures options.

... (truncated)

Commits
  • 83f5361 v3.10.0
  • afed1f2 Fix Firefox detection for mouse button correction (internal-2195)
  • f75aa8d Elevated circles features shader modifications. (for mapbox/mapbox-sdk#2062) ...
  • 19ceb05 update render test (internal-2188)
  • 6f8fafc [GLJS-1185] Fix positioning of icons with icon-size (internal-2184)
  • 4a8a0da Overhaul hover interactions (internal-2165)
  • b0464c4 Fixed in-place updates for SDF images, fixed LUT not being applied to in-plac...
  • 9e839ff [GLJS-1186] Respect pixel ratio in vector icon patterns (internal-2183)
  • 057c34b Fix line placement symbol disappearing issue when in zoom level 5 (internal-2...
  • 340023d Bump postcss from 8.5.1 to 8.5.2 (internal-2180)
  • Additional commits viewable in compare view

Updates react from 18.3.1 to 19.0.0

Release notes

Sourced from react's releases.

19.0.0 (December 5, 2024)

Below is a list of all new features, APIs, deprecations, and breaking changes. Read React 19 release post and React 19 upgrade guide for more information.

Note: To help make the upgrade to React 19 easier, we’ve published a react@18.3 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.

New Features

React

  • Actions: startTransition can now accept async functions. Functions passed to startTransition 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 fetch() in the pending state, and provides support for error handling, and optimistic updates.
  • useActionState: 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 action prop to support progressive enhancement in forms.
  • useOptimistic: 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.
  • use: is a new API that allows reading resources in render. In React 19, use accepts a promise or Context. If provided a promise, use will suspend until a value is resolved. use can only be used in render but can be called conditionally.
  • ref as a prop: Refs can now be used as props, removing the need for forwardRef.
  • Suspense sibling pre-warming: 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.

React DOM Client

  • <form> action prop: Form Actions allow you to manage forms automatically and integrate with useFormStatus. When a <form> action succeeds, React will automatically reset the form for uncontrolled components. The form can be reset manually with the new requestFormReset API.
  • <button> and <input> formAction prop: Actions can be passed to the formAction prop to configure form submission behavior. This allows using different Actions depending on the input.
  • useFormStatus: is a new hook that provides the status of the parent <form> action, as if the form was a Context provider. The hook returns the values: pending, data, method, and action.
  • Support for Document Metadata: We’ve added support for rendering document metadata tags in components natively. React will automatically hoist them into the <head> section of the document.
  • Support for Stylesheets: React 19 will ensure stylesheets are inserted into the <head> on the client before revealing the content of a Suspense boundary that depends on that stylesheet.
  • Support for async scripts: Async scripts can be rendered anywhere in the component tree and React will handle ordering and deduplication.
  • Support for preloading resources: React 19 ships with preinit, preload, prefetchDNS, and preconnect 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.

React DOM Server

  • Added prerender and prerenderToNodeStream APIs for static site generation. They are designed to work with streaming environments like Node.js Streams and Web Streams. Unlike renderToString, they wait for data to load for HTML generation.

React Server Components

  • 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 docs for how to support React Server Components.

Deprecations

  • Deprecated: element.ref access: React 19 supports ref as a prop, so we’re deprecating element.ref in favor of element.props.ref. Accessing will result in a warning.
  • react-test-renderer: 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 @​testinglibrary.com/docs/react-testing-library/intro/) or @​testingesting-library.com/docs/react-native-testing-library/intro)

Breaking Changes

React 19 brings in a number of breaking changes, including the removals of long-deprecated APIs. We recommend first upgrading to 18.3.1, where we've added additional deprecation warnings. Check out the upgrade guide for more details and guidance on codemodding.

React

  • New JSX Transform is now required: We introduced a new JSX transform 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.
  • 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 onUncaughtError and onCaughtError methods to createRoot and hydrateRoot to customize this error handling.
  • Removed: propTypes: Using propTypes will now be silently ignored. If required, we recommend migrating to TypeScript or another type-checking solution.
  • Removed: defaultProps for functions: ES6 default parameters can be used in place. Class components continue to support defaultProps since there is no ES6 alternative.
  • Removed: contextTypes and getChildContext: Legacy Context for class components has been removed in favor of the contextType API.

... (truncated)

Changelog

Sourced from react's changelog.

19.0.0 (December 5, 2024)

Below is a list of all new features, APIs, deprecations, and breaking changes. Read React 19 release post and React 19 upgrade guide for more information.

Note: To help make the upgrade to React 19 easier, we’ve published a react@18.3 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.

New Features

React

  • Actions: startTransition can now accept async functions. Functions passed to startTransition 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 fetch() in the pending state, and provides support for error handling, and optimistic updates.
  • useActionState: 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 action prop to support progressive enhancement in forms.
  • useOptimistic: 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.
  • use: is a new API that allows reading resources in render. In React 19, use accepts a promise or Context. If provided a promise, use will suspend until a value is resolved. use can only be used in render but can be called conditionally.
  • ref as a prop: Refs can now be used as props, removing the need for forwardRef.
  • Suspense sibling pre-warming: 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.

React DOM Client

  • <form> action prop: Form Actions allow you to manage forms automatically and integrate with useFormStatus. When a <form> action succeeds, React will automatically reset the form for uncontrolled components. The form can be reset manually with the new requestFormReset API.
  • <button> and <input> formAction prop: Actions can be passed to the formAction prop to configure form submission behavior. This allows using different Actions depending on the input.
  • useFormStatus: is a new hook that provides the status of the parent <form> action, as if the form was a Context provider. The hook returns the values: pending, data, method, and action.
  • Support for Document Metadata: We’ve added support for rendering document metadata tags in components natively. React will automatically hoist them into the <head> section of the document.
  • Support for Stylesheets: React 19 will ensure stylesheets are inserted into the <head> on the client before revealing the content of a Suspense boundary that depends on that stylesheet.
  • Support for async scripts: Async scripts can be rendered anywhere in the component tree and React will handle ordering and deduplication.
  • Support for preloading resources: React 19 ships with preinit, preload, prefetchDNS, and preconnect 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.

React DOM Server

  • Added prerender and prerenderToNodeStream APIs for static site generation. They are designed to work with streaming environments like Node.js Streams and Web Streams. Unlike renderToString, they wait for data to load for HTML generation.

React Server Components

  • 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 docs for how to support React Server Components.

Deprecations

  • Deprecated: element.ref access: React 19 supports ref as a prop, so we’re deprecating element.ref in favor of element.props.ref. Accessing will result in a warning.
  • react-test-renderer: 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 @​testing-library/react or @​testing-library/react-native

Breaking Changes

React 19 brings in a number of breaking changes, including the removals of long-deprecated APIs. We recommend first upgrading to 18.3.1, where we've added additional deprecation warnings. Check out the upgrade guide for more details and guidance on codemodding.

React

  • New JSX Transform is now required: We introduced a new JSX transform 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.
  • 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 onUncaughtError and onCaughtError methods to createRoot and hydrateRoot to customize this error handling.
  • Removed: propTypes: Using propTypes will now be silently ignored. If required, we recommend migrating to TypeScript or another type-checking solution.
  • Removed: defaultProps for functions: ES6 default parameters can be used in place. Class components continue to support defaultProps since there is no ES6 alternative.

... (truncated)

Commits
  • e137890 [string-refs] cleanup string ref code (#31443)
  • d1f0472 [string-refs] remove enableLogStringRefsProd flag (#31414)
  • 3dc1e48 Followup: remove dead test code from #30346 (#31415)
  • 07aa494 Remove enableRefAsProp feature flag (#30346)
  • 45804af [flow] Eliminate usage of more than 1-arg React.AbstractComponent in React ...
  • 5636fad [string-refs] log string ref from prod (#31161)
  • b78a7f2 [rcr] Re-export useMemoCache in top level React namespace (#31139)
  • 4e9540e [Fiber] Log the Render/Commit phases and the gaps in between (#31016)
  • d4688df [Fiber] Track Event Time, startTransition Time and setState Time (#31008)
  • 15da917 Don't read currentTransition back from internals (#30991)
  • Additional commits viewable in compare view

Updates react-dom from 18.3.1 to 19.0.0

Release notes

Sourced from react-dom's releases.

19.0.0 (December 5, 2024)

Below is a list of all new features, APIs, deprecations, and breaking changes. Read React 19 release post and React 19 upgrade guide for more information.

Note: To help make the upgrade to React 19 easier, we’ve published a react@18.3 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.

New Features

React

  • Actions: startTransition can now accept async functions. Functions passed to startTransition 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 fetch() in the pending state, and provides support for error handling, and optimistic updates.
  • useActionState: 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 action prop to support progressive enhancement in forms.
  • useOptimistic: 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.
  • use: is a new API that allows reading resources in render. In React 19, use accepts a promise or Context. If provided a promise, use will suspend until a value is resolved. use can only be used in render but can be called conditionally.
  • ref as a prop: Refs can now be used as props, removing the need for forwardRef.
  • Suspense sibling pre-warming: 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.

React DOM Client

  • <form> action prop: Form Actions allow you to manage forms automatically and integrate with useFormStatus. When a <form> action succeeds, React will automatically reset the form for uncontrolled components. The form can be reset manually with the new requestFormReset API.
  • <button> and <input> formAction prop: Actions can be passed to the formAction prop to configure form submission behavior. This allows using different Actions depending on the input.
  • useFormStatus: is a new hook that provides the status of the parent <form> action, as if the form was a Context provider. The hook returns the values: pending, data, method, and action.
  • Support for Document Metadata: We’ve added support for rendering document metadata tags in components natively. React will automatically hoist them into the <head> section of the document.
  • Support for Stylesheets: React 19 will ensure stylesheets are inserted into the <head> on the client before revealing the content of a Suspense boundary that depends on that stylesheet.
  • Support for async scripts: Async scripts can be rendered anywhere in the component tree and React will handle ordering and deduplication.
  • Support for preloading resources: React 19 ships with preinit, preload, prefetchDNS, and preconnect 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.

React DOM Server

  • Added prerender and prerenderToNodeStream APIs for static site generation. They are designed to work with streaming environments like Node.js Streams and Web Streams. Unlike renderToString, they wait for data to load for HTML generation.

React Server Components

  • 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 docs for how to support React Server Components.

Deprecations

  • Deprecated: element.ref access: React 19 supports ref as a prop, so we’re deprecating element.ref in favor of element.props.ref. Accessing will result in a warning.
  • react-test-renderer: 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 @​testinglibrary.com/docs/react-testing-library/intro/) or @​testingesting-library.com/docs/react-native-testing-library/intro)

Breaking Changes

React 19 brings in a number of breaking changes, including the removals of long-deprecated APIs. We recommend first upgrading to 18.3.1, where we've added additional deprecation warnings. Check out the upgrade guide for more details and guidance on codemodding.

React

  • New JSX Transform is now required: We introduced a new JSX transform 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.
  • 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 onUncaughtError and onCaughtError methods to createRoot and hydrateRoot to customize this error handling.
  • Removed: propTypes: Using p...

    Description has been truncated

@dependabot dependabot Bot added the frontend label Mar 10, 2025
@dependabot @github
Copy link
Copy Markdown
Author

dependabot Bot commented on behalf of github Mar 10, 2025

The following labels could not be found: dependencies.

@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/frontend/dev/frontend-dependencies-f80235175d branch 2 times, most recently from 523d0fe to eb281ff Compare March 17, 2025 10:28
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/frontend/dev/frontend-dependencies-f80235175d branch from eb281ff to 619d250 Compare March 24, 2025 10:58
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/frontend/dev/frontend-dependencies-f80235175d branch 2 times, most recently from 122b2eb to 06d499a Compare April 14, 2025 09:34
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/frontend/dev/frontend-dependencies-f80235175d branch from 06d499a to 1920279 Compare April 21, 2025 11:47
Bumps the frontend-dependencies group with 10 updates in the /frontend directory:

| Package | From | To |
| --- | --- | --- |
| [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) | `5.17.0` | `6.6.3` |
| [@testing-library/react](https://github.com/testing-library/react-testing-library) | `13.4.0` | `16.2.0` |
| [@testing-library/user-event](https://github.com/testing-library/user-event) | `13.5.0` | `14.6.1` |
| [lucide-react](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-react) | `0.263.1` | `0.479.0` |
| [mapbox-gl](https://github.com/mapbox/mapbox-gl-js) | `2.15.0` | `3.10.0` |
| [react](https://github.com/facebook/react/tree/HEAD/packages/react) | `18.3.1` | `19.0.0` |
| [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) | `18.3.1` | `19.0.0` |
| [react-icons](https://github.com/react-icons/react-icons) | `4.12.0` | `5.5.0` |
| [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) | `6.30.0` | `7.3.0` |
| [web-vitals](https://github.com/GoogleChrome/web-vitals) | `2.1.4` | `4.2.4` |



Updates `@testing-library/jest-dom` from 5.17.0 to 6.6.3
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md)
- [Commits](testing-library/jest-dom@v5.17.0...v6.6.3)

Updates `@testing-library/react` from 13.4.0 to 16.2.0
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md)
- [Commits](testing-library/react-testing-library@v13.4.0...v16.2.0)

Updates `@testing-library/user-event` from 13.5.0 to 14.6.1
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md)
- [Commits](testing-library/user-event@v13.5.0...v14.6.1)

Updates `lucide-react` from 0.263.1 to 0.479.0
- [Release notes](https://github.com/lucide-icons/lucide/releases)
- [Commits](https://github.com/lucide-icons/lucide/commits/0.479.0/packages/lucide-react)

Updates `mapbox-gl` from 2.15.0 to 3.10.0
- [Release notes](https://github.com/mapbox/mapbox-gl-js/releases)
- [Changelog](https://github.com/mapbox/mapbox-gl-js/blob/main/CHANGELOG.md)
- [Commits](mapbox/mapbox-gl-js@v2.15.0...v3.10.0)

Updates `react` from 18.3.1 to 19.0.0
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v19.0.0/packages/react)

Updates `react-dom` from 18.3.1 to 19.0.0
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v19.0.0/packages/react-dom)

Updates `react-icons` from 4.12.0 to 5.5.0
- [Release notes](https://github.com/react-icons/react-icons/releases)
- [Commits](react-icons/react-icons@v4.12.0...v5.5.0)

Updates `react-router-dom` from 6.30.0 to 7.3.0
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@7.3.0/packages/react-router-dom)

Updates `web-vitals` from 2.1.4 to 4.2.4
- [Changelog](https://github.com/GoogleChrome/web-vitals/blob/main/CHANGELOG.md)
- [Commits](GoogleChrome/web-vitals@v2.1.4...v4.2.4)

---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: frontend-dependencies
- dependency-name: "@testing-library/react"
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: frontend-dependencies
- dependency-name: "@testing-library/user-event"
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: frontend-dependencies
- dependency-name: lucide-react
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-dependencies
- dependency-name: mapbox-gl
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: frontend-dependencies
- dependency-name: react
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: frontend-dependencies
- dependency-name: react-dom
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: frontend-dependencies
- dependency-name: react-icons
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: frontend-dependencies
- dependency-name: react-router-dom
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: frontend-dependencies
- dependency-name: web-vitals
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: frontend-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/frontend/dev/frontend-dependencies-f80235175d branch from 1920279 to fec9b37 Compare May 5, 2025 09:54
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 5, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants