diff --git a/.changeset/tasty-worms-fry.md b/.changeset/tasty-worms-fry.md new file mode 100644 index 0000000000..4743c04caf --- /dev/null +++ b/.changeset/tasty-worms-fry.md @@ -0,0 +1,7 @@ +--- +'nextra-theme-blog': patch +'nextra-theme-docs': patch +'nextra': patch +--- + +Make React 18 as minimal requirement diff --git a/packages/nextra-theme-blog/package.json b/packages/nextra-theme-blog/package.json index 5f0c123ae9..542d3c1a1d 100644 --- a/packages/nextra-theme-blog/package.json +++ b/packages/nextra-theme-blog/package.json @@ -50,9 +50,9 @@ "peerDependencies": { "next": ">=13", "nextra": "workspace:*", - "react": ">=16.13.1", + "react": ">=18.0.0", "react-cusdis": "^2.1.3", - "react-dom": ">=16.13.1" + "react-dom": ">=18.0.0" }, "peerDependenciesMeta": { "react-cusdis": { diff --git a/packages/nextra-theme-docs/package.json b/packages/nextra-theme-docs/package.json index f7077a3185..44d3ff8069 100644 --- a/packages/nextra-theme-docs/package.json +++ b/packages/nextra-theme-docs/package.json @@ -32,12 +32,11 @@ "peerDependencies": { "next": ">=13", "nextra": "workspace:*", - "react": ">=16.13.1", - "react-dom": ">=16.13.1" + "react": ">=18.0.0", + "react-dom": ">=18.0.0" }, "dependencies": { "@headlessui/react": "^2.1.2", - "@popperjs/core": "^2.11.8", "clsx": "^2.0.0", "escape-string-regexp": "^5.0.0", "flexsearch": "^0.7.43", diff --git a/packages/nextra/package.json b/packages/nextra/package.json index 709ff070db..ceb18eb09e 100644 --- a/packages/nextra/package.json +++ b/packages/nextra/package.json @@ -113,8 +113,8 @@ }, "peerDependencies": { "next": ">=13", - "react": ">=16.13.1", - "react-dom": ">=16.13.1" + "react": ">=18.0.0", + "react-dom": ">=18.0.0" }, "dependencies": { "@headlessui/react": "^2.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ed9f50f854..15ee48dbdd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -156,7 +156,7 @@ importers: version: file:packages/nextra(@types/react@18.3.7)(next@14.2.5)(react-dom@18.3.1)(react@18.3.1)(typescript@5.6.2) nextra-theme-blog: specifier: workspace:* - version: file:packages/nextra-theme-blog(next@14.2.5)(nextra@3.0.0-alpha.39)(react-dom@18.3.1)(react@18.3.1) + version: file:packages/nextra-theme-blog(next@14.2.5)(nextra@3.0.0-alpha.40)(react-dom@18.3.1)(react@18.3.1) react: specifier: ^18.2.0 version: 18.3.1 @@ -179,7 +179,7 @@ importers: version: file:packages/nextra(@types/react@18.3.7)(next@14.2.5)(react-dom@18.3.1)(react@18.3.1)(typescript@5.6.2) nextra-theme-docs: specifier: workspace:* - version: file:packages/nextra-theme-docs(next@14.2.5)(nextra@3.0.0-alpha.39)(react-dom@18.3.1)(react@18.3.1) + version: file:packages/nextra-theme-docs(next@14.2.5)(nextra@3.0.0-alpha.40)(react-dom@18.3.1)(react@18.3.1) react: specifier: ^18.2.0 version: 18.3.1 @@ -205,7 +205,7 @@ importers: version: file:packages/nextra(@types/react@18.3.7)(next@14.2.5)(react-dom@18.3.1)(react@18.3.1)(typescript@5.6.2) nextra-theme-docs: specifier: workspace:* - version: file:packages/nextra-theme-docs(next@14.2.5)(nextra@3.0.0-alpha.39)(react-dom@18.3.1)(react@18.3.1) + version: file:packages/nextra-theme-docs(next@14.2.5)(nextra@3.0.0-alpha.40)(react-dom@18.3.1)(react@18.3.1) react: specifier: ^18.2.0 version: 18.3.1 @@ -445,9 +445,6 @@ importers: '@headlessui/react': specifier: ^2.1.2 version: 2.1.8(react-dom@18.3.1)(react@18.3.1) - '@popperjs/core': - specifier: ^2.11.8 - version: 2.11.8 clsx: specifier: ^2.0.0 version: 2.1.1 @@ -4471,10 +4468,6 @@ packages: resolution: {integrity: sha512-2LuNTFBIO0m7kKIQvvPHN6UE63VjpmL9rnEEaOOaiSPbZK+zUOYIzBAWcED+3XYzhYsd/0mD57VdxAEqqV52CQ==} dev: true - /@popperjs/core@2.11.8: - resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==} - dev: false - /@react-aria/focus@3.18.2(react@18.3.1): resolution: {integrity: sha512-Jc/IY+StjA3uqN73o6txKQ527RFU7gnG5crEl5Xy3V+gbYp2O5L3ezAo/E0Ipi2cyMbG6T5Iit1IDs7hcGu8aw==} peerDependencies: @@ -13952,8 +13945,8 @@ packages: engines: {node: '>=18'} peerDependencies: next: 14.2.5 - react: '>=16.13.1' - react-dom: '>=16.13.1' + react: '>=18.0.0' + react-dom: '>=18.0.0' dependencies: '@headlessui/react': 2.1.3(react-dom@18.3.1)(react@18.3.1) '@mdx-js/mdx': 3.0.1 @@ -13997,16 +13990,16 @@ packages: - typescript dev: false - file:packages/nextra-theme-blog(next@14.2.5)(nextra@3.0.0-alpha.39)(react-dom@18.3.1)(react@18.3.1): + file:packages/nextra-theme-blog(next@14.2.5)(nextra@3.0.0-alpha.40)(react-dom@18.3.1)(react@18.3.1): resolution: {directory: packages/nextra-theme-blog, type: directory} id: file:packages/nextra-theme-blog name: nextra-theme-blog peerDependencies: next: 14.2.5 nextra: workspace:* - react: '>=16.13.1' + react: '>=18.0.0' react-cusdis: ^2.1.3 - react-dom: '>=16.13.1' + react-dom: '>=18.0.0' peerDependenciesMeta: react-cusdis: optional: true @@ -14018,18 +14011,17 @@ packages: react-dom: 18.3.1(react@18.3.1) dev: false - file:packages/nextra-theme-docs(next@14.2.5)(nextra@3.0.0-alpha.39)(react-dom@18.3.1)(react@18.3.1): + file:packages/nextra-theme-docs(next@14.2.5)(nextra@3.0.0-alpha.40)(react-dom@18.3.1)(react@18.3.1): resolution: {directory: packages/nextra-theme-docs, type: directory} id: file:packages/nextra-theme-docs name: nextra-theme-docs peerDependencies: next: 14.2.5 nextra: workspace:* - react: '>=16.13.1' - react-dom: '>=16.13.1' + react: '>=18.0.0' + react-dom: '>=18.0.0' dependencies: '@headlessui/react': 2.1.3(react-dom@18.3.1)(react@18.3.1) - '@popperjs/core': 2.11.8 clsx: 2.1.1 escape-string-regexp: 5.0.0 flexsearch: 0.7.43