From d59a33d4dcddb9cce66e2c76cc06df222e4bd08b Mon Sep 17 00:00:00 2001 From: Erick Lugo Date: Wed, 30 Oct 2024 01:55:52 -0600 Subject: [PATCH] chore: set react minimum version >=18 --- .changeset/young-pianos-draw.md | 5 +++++ packages/react/package.json | 3 ++- pnpm-lock.yaml | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .changeset/young-pianos-draw.md diff --git a/.changeset/young-pianos-draw.md b/.changeset/young-pianos-draw.md new file mode 100644 index 0000000..aef8eb7 --- /dev/null +++ b/.changeset/young-pianos-draw.md @@ -0,0 +1,5 @@ +--- +"@stepperize/react": major +--- + +Fix react version to work with v19 diff --git a/packages/react/package.json b/packages/react/package.json index 70626f6..77591c4 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -36,7 +36,8 @@ "clean": "rm -rf .turbo && rm -rf node_modules dist" }, "peerDependencies": { - "react": "^18.0.0" + "react": "^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0" }, "devDependencies": { "@types/react": "^18.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 647d078..3f8b1ff 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -167,6 +167,10 @@ importers: version: 5.6.2 packages/react: + dependencies: + react-dom: + specifier: ^17.0.0 || ^18.0.0 || ^19.0.0 + version: 18.3.1(react@18.3.1) devDependencies: '@types/react': specifier: ^18.0.0