From 09a86aad7d00adfda46b604a35a9bd7a55c34917 Mon Sep 17 00:00:00 2001 From: Rob Knight Date: Fri, 20 Dec 2024 12:32:07 +0100 Subject: [PATCH] Add support for React 19 as a peer dependency --- .changeset/clever-berries-kiss.md | 25 +++++++++++++++++++ packages/lib/passport-interface/package.json | 4 +-- packages/lib/passport-ui/package.json | 2 +- packages/lib/zuauth/package.json | 4 +-- packages/ui/eddsa-frog-pcd-ui/package.json | 4 +-- packages/ui/eddsa-pcd-ui/package.json | 4 +-- packages/ui/eddsa-ticket-pcd-ui/package.json | 4 +-- packages/ui/email-pcd-ui/package.json | 4 +-- .../ui/ethereum-group-pcd-ui/package.json | 4 +-- .../ui/ethereum-ownership-pcd-ui/package.json | 4 +-- packages/ui/halo-nonce-pcd-ui/package.json | 4 +-- packages/ui/message-pcd-ui/package.json | 4 +-- packages/ui/pod-ticket-pcd-ui/package.json | 4 +-- packages/ui/rsa-image-pcd-ui/package.json | 4 +-- packages/ui/rsa-pcd-ui/package.json | 4 +-- packages/ui/rsa-ticket-pcd-ui/package.json | 4 +-- .../ui/semaphore-group-pcd-ui/package.json | 4 +-- .../ui/semaphore-identity-pcd-ui/package.json | 4 +-- .../semaphore-signature-pcd-ui/package.json | 4 +-- packages/ui/webauthn-pcd-ui/package.json | 4 +-- .../zk-eddsa-event-ticket-pcd-ui/package.json | 4 +-- packages/ui/zk-eddsa-frog-pcd-ui/package.json | 4 +-- 22 files changed, 66 insertions(+), 41 deletions(-) create mode 100644 .changeset/clever-berries-kiss.md diff --git a/.changeset/clever-berries-kiss.md b/.changeset/clever-berries-kiss.md new file mode 100644 index 0000000000..66cdb74d10 --- /dev/null +++ b/.changeset/clever-berries-kiss.md @@ -0,0 +1,25 @@ +--- +"@pcd/zk-eddsa-event-ticket-pcd-ui": patch +"@pcd/semaphore-signature-pcd-ui": patch +"@pcd/ethereum-ownership-pcd-ui": patch +"@pcd/semaphore-identity-pcd-ui": patch +"@pcd/semaphore-group-pcd-ui": patch +"@pcd/ethereum-group-pcd-ui": patch +"@pcd/zk-eddsa-frog-pcd-ui": patch +"@pcd/passport-interface": patch +"@pcd/eddsa-ticket-pcd-ui": patch +"@pcd/eddsa-frog-pcd-ui": patch +"@pcd/halo-nonce-pcd-ui": patch +"@pcd/pod-ticket-pcd-ui": patch +"@pcd/rsa-ticket-pcd-ui": patch +"@pcd/rsa-image-pcd-ui": patch +"@pcd/webauthn-pcd-ui": patch +"@pcd/message-pcd-ui": patch +"@pcd/passport-ui": patch +"@pcd/eddsa-pcd-ui": patch +"@pcd/email-pcd-ui": patch +"@pcd/rsa-pcd-ui": patch +"@pcd/zuauth": patch +--- + +Add support for React 19 as a peer dependency diff --git a/packages/lib/passport-interface/package.json b/packages/lib/passport-interface/package.json index ccae2300b1..a0e7128dd7 100644 --- a/packages/lib/passport-interface/package.json +++ b/packages/lib/passport-interface/package.json @@ -99,7 +99,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/lib/passport-ui/package.json b/packages/lib/passport-ui/package.json index 1cdf8d5414..6085c6b52a 100644 --- a/packages/lib/passport-ui/package.json +++ b/packages/lib/passport-ui/package.json @@ -50,7 +50,7 @@ "typescript": "^5.3.3" }, "peerDependencies": { - "react": "^18.2.0" + "react": "^18.2.0 || ^19.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/lib/zuauth/package.json b/packages/lib/zuauth/package.json index 6354ebfa3f..bebd8f7db7 100644 --- a/packages/lib/zuauth/package.json +++ b/packages/lib/zuauth/package.json @@ -79,7 +79,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/ui/eddsa-frog-pcd-ui/package.json b/packages/ui/eddsa-frog-pcd-ui/package.json index 9a38f286e6..9b8387d07e 100644 --- a/packages/ui/eddsa-frog-pcd-ui/package.json +++ b/packages/ui/eddsa-frog-pcd-ui/package.json @@ -45,7 +45,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/ui/eddsa-pcd-ui/package.json b/packages/ui/eddsa-pcd-ui/package.json index 7b6cefc07b..44167e09b6 100644 --- a/packages/ui/eddsa-pcd-ui/package.json +++ b/packages/ui/eddsa-pcd-ui/package.json @@ -43,7 +43,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/ui/eddsa-ticket-pcd-ui/package.json b/packages/ui/eddsa-ticket-pcd-ui/package.json index 5baf64a2fe..064c7d9ea7 100644 --- a/packages/ui/eddsa-ticket-pcd-ui/package.json +++ b/packages/ui/eddsa-ticket-pcd-ui/package.json @@ -45,7 +45,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/ui/email-pcd-ui/package.json b/packages/ui/email-pcd-ui/package.json index 8dd989104b..8dba05a15e 100644 --- a/packages/ui/email-pcd-ui/package.json +++ b/packages/ui/email-pcd-ui/package.json @@ -43,7 +43,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/ui/ethereum-group-pcd-ui/package.json b/packages/ui/ethereum-group-pcd-ui/package.json index e5b65a5bfb..7452eeab08 100644 --- a/packages/ui/ethereum-group-pcd-ui/package.json +++ b/packages/ui/ethereum-group-pcd-ui/package.json @@ -44,7 +44,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/ui/ethereum-ownership-pcd-ui/package.json b/packages/ui/ethereum-ownership-pcd-ui/package.json index 946002a5f1..462b798c59 100644 --- a/packages/ui/ethereum-ownership-pcd-ui/package.json +++ b/packages/ui/ethereum-ownership-pcd-ui/package.json @@ -44,7 +44,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/ui/halo-nonce-pcd-ui/package.json b/packages/ui/halo-nonce-pcd-ui/package.json index 64a4d0beda..cfb68a055e 100644 --- a/packages/ui/halo-nonce-pcd-ui/package.json +++ b/packages/ui/halo-nonce-pcd-ui/package.json @@ -44,7 +44,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/ui/message-pcd-ui/package.json b/packages/ui/message-pcd-ui/package.json index aab2eaafe2..4646fc26cc 100644 --- a/packages/ui/message-pcd-ui/package.json +++ b/packages/ui/message-pcd-ui/package.json @@ -45,7 +45,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/ui/pod-ticket-pcd-ui/package.json b/packages/ui/pod-ticket-pcd-ui/package.json index 3a1fe98cee..4f36388302 100644 --- a/packages/ui/pod-ticket-pcd-ui/package.json +++ b/packages/ui/pod-ticket-pcd-ui/package.json @@ -44,7 +44,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/ui/rsa-image-pcd-ui/package.json b/packages/ui/rsa-image-pcd-ui/package.json index cdfa012dd3..3608e3f6ba 100644 --- a/packages/ui/rsa-image-pcd-ui/package.json +++ b/packages/ui/rsa-image-pcd-ui/package.json @@ -43,7 +43,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/ui/rsa-pcd-ui/package.json b/packages/ui/rsa-pcd-ui/package.json index b3354b6631..522766cac7 100644 --- a/packages/ui/rsa-pcd-ui/package.json +++ b/packages/ui/rsa-pcd-ui/package.json @@ -43,7 +43,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/ui/rsa-ticket-pcd-ui/package.json b/packages/ui/rsa-ticket-pcd-ui/package.json index bc2888b276..f3c69b32ed 100644 --- a/packages/ui/rsa-ticket-pcd-ui/package.json +++ b/packages/ui/rsa-ticket-pcd-ui/package.json @@ -43,7 +43,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/ui/semaphore-group-pcd-ui/package.json b/packages/ui/semaphore-group-pcd-ui/package.json index 82d9e0a98e..4a64d9d149 100644 --- a/packages/ui/semaphore-group-pcd-ui/package.json +++ b/packages/ui/semaphore-group-pcd-ui/package.json @@ -43,7 +43,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/ui/semaphore-identity-pcd-ui/package.json b/packages/ui/semaphore-identity-pcd-ui/package.json index 2fe81cb21f..113139c793 100644 --- a/packages/ui/semaphore-identity-pcd-ui/package.json +++ b/packages/ui/semaphore-identity-pcd-ui/package.json @@ -44,7 +44,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/ui/semaphore-signature-pcd-ui/package.json b/packages/ui/semaphore-signature-pcd-ui/package.json index 267218bcaf..0db3a3d447 100644 --- a/packages/ui/semaphore-signature-pcd-ui/package.json +++ b/packages/ui/semaphore-signature-pcd-ui/package.json @@ -43,7 +43,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/ui/webauthn-pcd-ui/package.json b/packages/ui/webauthn-pcd-ui/package.json index 74e667dc43..00ac0c5b21 100644 --- a/packages/ui/webauthn-pcd-ui/package.json +++ b/packages/ui/webauthn-pcd-ui/package.json @@ -43,7 +43,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/ui/zk-eddsa-event-ticket-pcd-ui/package.json b/packages/ui/zk-eddsa-event-ticket-pcd-ui/package.json index 2fa81ca644..786b765ce2 100644 --- a/packages/ui/zk-eddsa-event-ticket-pcd-ui/package.json +++ b/packages/ui/zk-eddsa-event-ticket-pcd-ui/package.json @@ -43,7 +43,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } } diff --git a/packages/ui/zk-eddsa-frog-pcd-ui/package.json b/packages/ui/zk-eddsa-frog-pcd-ui/package.json index c9e5338416..ebcc60927a 100644 --- a/packages/ui/zk-eddsa-frog-pcd-ui/package.json +++ b/packages/ui/zk-eddsa-frog-pcd-ui/package.json @@ -43,7 +43,7 @@ "access": "public" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^18.2.0 || ^19.0.0", + "react-dom": "^18.2.0 || ^19.0.0" } }