Skip to content

Commit 676bd44

Browse files
authored
Merge pull request #4 from nu-xin/feat/react-19
feat: support React 19
2 parents e0130e3 + bb6531d commit 676bd44

6 files changed

Lines changed: 7040 additions & 5117 deletions

File tree

package.json

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"doc:gen": "typedoc",
4040
"build:demo": "cross-env BABEL_ENV=development BUILD_DEMO=true vite build",
4141
"deploy": "npm run doc:gen && npm run build:demo && gh-pages -d dist",
42-
"test": "cross-env NODE_ENV=test c8 mocha",
42+
"test": "vitest run",
4343
"test:watch": "npm test -- --watch",
4444
"preversion": "npm run build",
4545
"postversion": "npm publish",
@@ -61,8 +61,8 @@
6161
"node": ">=14"
6262
},
6363
"peerDependencies": {
64-
"react": "^17.0.0 || ^18.0.0",
65-
"react-dom": "^17.0.0 || ^18.0.0"
64+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
65+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
6666
},
6767
"dependencies": {
6868
"@native-router/core": "^1.0.3",
@@ -76,15 +76,18 @@
7676
"@linaria/babel-preset": "^5.0.2",
7777
"@linaria/core": "^5.0.1",
7878
"@linaria/vite": "^5.0.2",
79-
"@testing-library/react": "^14.0.0",
79+
"@testing-library/dom": "^10.4.1",
80+
"@testing-library/react": "^14.3.1",
8081
"@types/mocha": "^10.0.1",
8182
"@types/node": "^20.6.5",
82-
"@types/react": "^18.2.22",
83-
"@types/react-dom": "^18.2.7",
83+
"@types/react": "^19.0.0",
84+
"@types/react-dom": "^19.0.0",
8485
"@types/sinon": "^10.0.16",
8586
"@typescript-eslint/eslint-plugin": "^6.7.2",
8687
"@typescript-eslint/parser": "^6.7.2",
8788
"@vitejs/plugin-react": "^4.1.0",
89+
"@vitest/coverage-v8": "^4.0.18",
90+
"@vitest/ui": "^4.0.18",
8891
"babel-plugin-module-resolver": "^5.0.0",
8992
"c8": "^8.0.1",
9093
"commitizen": "^4.3.0",
@@ -110,8 +113,8 @@
110113
"lint-staged": "^14.0.1",
111114
"mocha": "^10.2.0",
112115
"prettier": "^3.0.3",
113-
"react": "^18.2.0",
114-
"react-dom": "^18.2.0",
116+
"react": "^19.0.0",
117+
"react-dom": "^19.0.0",
115118
"should": "^13.2.3",
116119
"should-sinon": "0.0.6",
117120
"sinon": "^16.0.0",
@@ -121,6 +124,7 @@
121124
"typedoc-plugin-mark-react-functional-components": "^0.2.2",
122125
"typedoc-plugin-missing-exports": "^2.1.0",
123126
"typescript": "^5.2.2",
124-
"vite": "^4.4.9"
127+
"vite": "^7.3.1",
128+
"vitest": "^4.0.18"
125129
}
126130
}

0 commit comments

Comments
 (0)