Skip to content

Commit

Permalink
fix: react 19 as peer dep (#4008)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgarciadev authored Nov 7, 2024
1 parent d650ab1 commit 7c1c0dd
Show file tree
Hide file tree
Showing 82 changed files with 460 additions and 374 deletions.
86 changes: 86 additions & 0 deletions .changeset/red-camels-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
---
"@nextui-org/accordion": patch
"@nextui-org/alert": patch
"@nextui-org/autocomplete": patch
"@nextui-org/avatar": patch
"@nextui-org/badge": patch
"@nextui-org/breadcrumbs": patch
"@nextui-org/button": patch
"@nextui-org/calendar": patch
"@nextui-org/card": patch
"@nextui-org/checkbox": patch
"@nextui-org/chip": patch
"@nextui-org/code": patch
"@nextui-org/date-input": patch
"@nextui-org/date-picker": patch
"@nextui-org/divider": patch
"@nextui-org/drawer": patch
"@nextui-org/dropdown": patch
"@nextui-org/image": patch
"@nextui-org/input": patch
"@nextui-org/kbd": patch
"@nextui-org/link": patch
"@nextui-org/listbox": patch
"@nextui-org/menu": patch
"@nextui-org/modal": patch
"@nextui-org/navbar": patch
"@nextui-org/pagination": patch
"@nextui-org/popover": patch
"@nextui-org/progress": patch
"@nextui-org/radio": patch
"@nextui-org/ripple": patch
"@nextui-org/scroll-shadow": patch
"@nextui-org/select": patch
"@nextui-org/skeleton": patch
"@nextui-org/slider": patch
"@nextui-org/snippet": patch
"@nextui-org/spacer": patch
"@nextui-org/spinner": patch
"@nextui-org/switch": patch
"@nextui-org/table": patch
"@nextui-org/tabs": patch
"@nextui-org/tooltip": patch
"@nextui-org/user": patch
"@nextui-org/react": patch
"@nextui-org/system": patch
"@nextui-org/system-rsc": patch
"@nextui-org/theme": patch
"@nextui-org/use-aria-accordion": patch
"@nextui-org/use-aria-accordion-item": patch
"@nextui-org/use-aria-button": patch
"@nextui-org/use-aria-link": patch
"@nextui-org/use-aria-menu": patch
"@nextui-org/use-aria-modal-overlay": patch
"@nextui-org/use-aria-multiselect": patch
"@nextui-org/use-aria-toggle-button": patch
"@nextui-org/use-callback-ref": patch
"@nextui-org/use-clipboard": patch
"@nextui-org/use-data-scroll-overflow": patch
"@nextui-org/use-disclosure": patch
"@nextui-org/use-draggable": patch
"@nextui-org/use-image": patch
"@nextui-org/use-infinite-scroll": patch
"@nextui-org/use-intersection-observer": patch
"@nextui-org/use-is-mobile": patch
"@nextui-org/use-is-mounted": patch
"@nextui-org/use-measure": patch
"@nextui-org/use-pagination": patch
"@nextui-org/use-real-shape": patch
"@nextui-org/use-ref-state": patch
"@nextui-org/use-resize": patch
"@nextui-org/use-safe-layout-effect": patch
"@nextui-org/use-scroll-position": patch
"@nextui-org/use-ssr": patch
"@nextui-org/use-theme": patch
"@nextui-org/use-update-effect": patch
"@nextui-org/aria-utils": patch
"@nextui-org/dom-animation": patch
"@nextui-org/framer-utils": patch
"@nextui-org/react-rsc-utils": patch
"@nextui-org/react-utils": patch
"@nextui-org/shared-icons": patch
"@nextui-org/shared-utils": patch
"@nextui-org/test-utils": patch
---

React 19 added to peerDeps
4 changes: 2 additions & 2 deletions packages/components/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"framer-motion": ">=11.5.6",
"@nextui-org/theme": ">=2.3.0-beta.0",
"@nextui-org/system": ">=2.3.0-beta.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/alert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"@nextui-org/system": ">=2.3.0-beta.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/components/autocomplete/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"@nextui-org/system": ">=2.3.0-beta.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"framer-motion": ">=11.5.6",
"react": ">=18",
"react-dom": ">=18"
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0"
},
"dependencies": {
"@nextui-org/aria-utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/components/avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"@nextui-org/system": ">=2.3.0-beta.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/components/badge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"@nextui-org/system": ">=2.3.0-beta.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/components/breadcrumbs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"@nextui-org/system": ">=2.3.0-beta.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/components/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"framer-motion": ">=11.5.6",
"@nextui-org/theme": ">=2.3.0-beta.0",
"@nextui-org/system": ">=2.3.0-beta.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/calendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"peerDependencies": {
"@nextui-org/system": ">=2.3.0-beta.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"react": ">=18",
"react-dom": ">=18"
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0"
},
"dependencies": {
"@nextui-org/react-utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/components/card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"framer-motion": ">=11.5.6",
"@nextui-org/theme": ">=2.3.0-beta.0",
"@nextui-org/system": ">=2.3.0-beta.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"peerDependencies": {
"@nextui-org/system": ">=2.3.0-beta.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"react": ">=18",
"react-dom": ">=18"
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0"
},
"dependencies": {
"@nextui-org/react-utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/components/chip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"@nextui-org/system": ">=2.3.0-beta.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/components/code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"@nextui-org/theme": ">=2.3.0-beta.0"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/components/date-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"peerDependencies": {
"@nextui-org/system": ">=2.3.0-beta.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"react": ">=18",
"react-dom": ">=18"
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0"
},
"dependencies": {
"@nextui-org/react-utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/components/date-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"peerDependencies": {
"@nextui-org/system": ">=2.3.0-beta.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"react": ">=18",
"react-dom": ">=18"
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0"
},
"dependencies": {
"@internationalized/date": "3.5.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/components/divider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"@nextui-org/theme": ">=2.3.0-beta.0"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/components/drawer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"@nextui-org/system": ">=2.3.0-beta.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/components/dropdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"@nextui-org/system": ">=2.3.0-beta.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"framer-motion": ">=11.5.6",
"react": ">=18",
"react-dom": ">=18"
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0"
},
"dependencies": {
"@nextui-org/aria-utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/components/image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"@nextui-org/system": ">=2.3.0-beta.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/components/input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"@nextui-org/system": ">=2.3.0-beta.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/components/kbd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"@nextui-org/theme": ">=2.3.0-beta.0"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/components/link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"@nextui-org/system": ">=2.3.0-beta.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/components/listbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"@nextui-org/system": ">=2.3.0-beta.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/components/menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"@nextui-org/system": ">=2.3.0-beta.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/components/modal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"framer-motion": ">=11.5.6",
"@nextui-org/theme": ">=2.3.0-beta.0",
"@nextui-org/system": ">=2.3.0-beta.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/navbar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"framer-motion": ">=11.5.6",
"@nextui-org/theme": ">=2.3.0-beta.0",
"@nextui-org/system": ">=2.3.0-beta.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/components/pagination/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"@nextui-org/system": ">=2.3.0-beta.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/components/popover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"@nextui-org/system": ">=2.3.0-beta.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"framer-motion": ">=11.5.6",
"react": ">=18",
"react-dom": ">=18"
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0"
},
"dependencies": {
"@nextui-org/aria-utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/components/progress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"postpack": "clean-package restore"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18",
"react": ">=18 || ^19.0.0-rc.0",
"react-dom": ">=18 || ^19.0.0-rc.0",
"@nextui-org/theme": ">=2.3.0-beta.0",
"@nextui-org/system": ">=2.3.0-beta.0"
},
Expand Down
Loading

0 comments on commit 7c1c0dd

Please sign in to comment.