Skip to content

Commit 121da27

Browse files
Chia-Chi-ShenSavina Shen (Manpower Services Taiwan Co Ltd)
and
Savina Shen (Manpower Services Taiwan Co Ltd)
authoredMar 13, 2025··
feat: support react 19 (#229)
Co-authored-by: Savina Shen (Manpower Services Taiwan Co Ltd) <[email protected]>
1 parent 21f34bf commit 121da27

File tree

4 files changed

+11160
-8126
lines changed

4 files changed

+11160
-8126
lines changed
 

‎.github/workflows/nodejs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
node-version: ${{ matrix.node-version }}
2929
cache: 'npm'
30-
- run: npm ci --legacy-peer-deps
30+
- run: npm ci
3131
- run: npm run test # runs linting and tests
3232
- run: npm run build --if-present
3333
- run: python -m pip install linkcheckmd

‎.github/workflows/npm-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
node-version: 20
3030
registry-url: https://registry.npmjs.org/
31-
- run: npm ci --legacy-peer-deps
31+
- run: npm ci
3232
- run: npm run build --if-present --isNpmBuild
3333
- run: npm publish --access=public --tag=beta
3434
env:

‎package-lock.json

+11,149-8,115
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"build:code": "cross-env NODE_ENV=production rollup --config",
4444
"build:types": "tsc --emitDeclarationOnly",
4545
"build": "npm run build:types && npm run build:code",
46-
"test": "jest --coverage --env=jsdom",
46+
"test": "npx jest --coverage --env=jsdom",
4747
"test:watch": "jest --coverage --watch --env=jsdom",
4848
"test:prod": "npm run lint && npm run test -- --no-cache",
4949
"dev:code": "cross-env NODE_ENV=development rollup --config --watch",
@@ -89,11 +89,11 @@
8989
"@rollup/plugin-node-resolve": "^10.0.0",
9090
"@rollup/plugin-replace": "^2.3.4",
9191
"@testing-library/jest-dom": "^5.11.4",
92-
"@testing-library/react": "^13.3.0",
92+
"@testing-library/react": "^16.2.0",
9393
"@testing-library/user-event": "^12.1.10",
9494
"@types/jest": "^26.0.15",
95-
"@types/react": "^18.0.15",
96-
"@types/react-dom": "^18.0.6",
95+
"@types/react": "19.0.0",
96+
"@types/react-dom": "19.0.0",
9797
"azure-maps-control": "^3.5.0",
9898
"babel-preset-env": "^1.7.0",
9999
"concurrently": "^5.3.0",
@@ -104,9 +104,9 @@
104104
"lint-staged": "^10.5.2",
105105
"parcel-bundler": "1.12.3",
106106
"prettier": "^2.2.0",
107-
"react": "^18.2.0",
108-
"react-dom": "^18.2.0",
109-
"react-scripts": "4.0.1",
107+
"react": "^19.0.0",
108+
"react-dom": "^19.0.0",
109+
"react-scripts": "^5.0.1",
110110
"rollup": "^2.33.3",
111111
"rollup-plugin-copy": "^3.4.0",
112112
"rollup-plugin-livereload": "^2.0.0",
@@ -121,8 +121,8 @@
121121
},
122122
"peerDependencies": {
123123
"azure-maps-control": "^3.5.0",
124-
"react": "^17.0.2 || ^18.0.0",
125-
"react-dom": "^17.0.2 || ^18.0.0"
124+
"react": "^17.0.2 || ^18.0.0 || ^19.0.0",
125+
"react-dom": "^17.0.2 || ^18.0.0 || ^19.0.0"
126126
},
127127
"dependencies": {
128128
"guid-typescript": "^1.0.9"

0 commit comments

Comments
 (0)
Please sign in to comment.