Skip to content

Commit

Permalink
feat: upgrade react to v18
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Sep 10, 2024
1 parent 05c7fd2 commit c6240ec
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dhis2-verify-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Build
run: yarn build

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: lib-build
path: |
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
with:
node-version: 18.x

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: lib-build

Expand All @@ -83,7 +83,7 @@ jobs:
with:
node-version: 18.x

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: lib-build

Expand Down
6 changes: 3 additions & 3 deletions adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"@testing-library/react-hooks": "^8.0.1",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.5",
"react": "^16.8",
"react-dom": "^16.8"
"react": "^18",
"react-dom": "^18"
},
"scripts": {
"build": "d2-app-scripts build",
Expand All @@ -44,7 +44,7 @@
"classnames": "^2",
"moment": "^2",
"prop-types": "^15",
"react": "^16.8",
"react": "^16.8 || ^18",
"react-dom": "^16.8",
"styled-jsx": "^4"
},
Expand Down
2 changes: 2 additions & 0 deletions cli/src/commands/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const handler = async ({
proxyPort,
host,
}) => {
// ToDo: remove before merging
reporter.print('!! CLI with React@18 !!')
const paths = makePaths(cwd)

const mode = 'development'
Expand Down
4 changes: 2 additions & 2 deletions shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"moment": "^2.29.1",
"post-robot": "^10.0.46",
"prop-types": "^15.7.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react": "^18",
"react-dom": "^18",
"source-map-explorer": "^2.1.0",
"styled-jsx": "^4.0.1",
"typeface-roboto": "^0.0.75",
Expand Down

0 comments on commit c6240ec

Please sign in to comment.