Skip to content

Commit

Permalink
feat: update react peer dependency to react@18
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Oct 28, 2024
1 parent 3b5c73c commit 5f4c3bc
Show file tree
Hide file tree
Showing 52 changed files with 1,115 additions and 689 deletions.
8 changes: 4 additions & 4 deletions collections/forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"build": "d2-app-scripts build"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13"
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18"
},
"dependencies": {
"@dhis2/prop-types": "^3.1.2",
Expand All @@ -54,8 +54,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"types": "types"
}
8 changes: 4 additions & 4 deletions collections/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@
"peerDependencies": {
"@dhis2/app-runtime": "^3",
"@dhis2/d2-i18n": "^1",
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"devDependencies": {
"@dhis2/app-runtime": "^3.9.0",
"@dhis2/d2-i18n": "^1.1.0",
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions components/alert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": ">=16.13",
"react-dom": ">=16.13",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -44,8 +44,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/box/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -42,8 +42,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -46,8 +46,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/calendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
},
"peerDependencies": {
"@dhis2/d2-i18n": "^1",
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -51,8 +51,8 @@
],
"devDependencies": {
"@dhis2/d2-i18n": "^1.1.0",
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -42,8 +42,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/center/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -42,8 +42,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -44,8 +44,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/chip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -42,8 +42,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/cover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -42,8 +42,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -42,8 +42,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/divider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -42,8 +42,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/field/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -45,8 +45,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/file-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
},
"peerDependencies": {
"@dhis2/d2-i18n": "^1.1.0",
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -50,8 +50,8 @@
],
"devDependencies": {
"@dhis2/d2-i18n": "^1.1.0",
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/header-bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"peerDependencies": {
"@dhis2/app-runtime": "^3",
"@dhis2/d2-i18n": "^1",
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand Down Expand Up @@ -60,8 +60,8 @@
"devDependencies": {
"@dhis2/app-runtime": "^3.9.0",
"@dhis2/d2-i18n": "^1.1.0",
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/help/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -42,8 +42,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
8 changes: 4 additions & 4 deletions components/input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
},
"peerDependencies": {
"react": "^16.13",
"react-dom": "^16.13",
"react": "^16.13 || ^18",
"react-dom": "^16.13 || ^18",
"styled-jsx": "^4"
},
"dependencies": {
Expand All @@ -48,8 +48,8 @@
"types"
],
"devDependencies": {
"react": "16.13",
"react-dom": "16.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"styled-jsx": "^4.0.1"
},
"types": "types"
Expand Down
Loading

0 comments on commit 5f4c3bc

Please sign in to comment.