Skip to content

Update docusaurus-theme-openapi-docs dependencies for React 19 compatibilityΒ #1130

Open
@anaxite

Description

@anaxite

Summary

docusaurus-theme-openapi-docs depends on the following dependencies that declare React 18 compatibility or below:

  • "@reduxjs/toolkit": "^1.7.1",
  • "react-redux": "^7.2.0",

docusaurus-theme-openapi-docs still seems to work with React 19, but installing it gives NPM peer dependency warnings; it would be nice to clear the warnings!

Proposed solution

  • Update react-redux to ^9.2.0
  • Update @reduxjs/toolkit to "^2.5.0",`

Additional context

Docusaurus 3.7 introduced support for React 19, and recommends using it where possible to prepare for future changes. docusaurus-theme-openapi-docs has two dependencies whose versions still rely on older versions of React.

@reduxjs/toolkit is compatible since v2.5.0, and react-redux is compatible since v9.2.0 (the current version). Both were released Dec 11, 2024.

Thank you!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions