Skip to content

Commit 62a5d7d

Browse files
committed
fix: update packages
1 parent 9bd98ad commit 62a5d7d

File tree

7 files changed

+8768
-7137
lines changed

7 files changed

+8768
-7137
lines changed

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"inquirer": "^8.2.0",
3232
"listr": "^0.14.3",
3333
"ncp": "^2.0.0",
34-
"pkg-install": "^1.0.0"
34+
"pkg-install": "^1.0.0",
35+
"react": "^18.2.0"
3536
},
3637
"files": [
3738
"bin/",

Diff for: src/templates/graphql/package.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@
1717
"graphql:codegen": "graphql-codegen --config codegen.yml -r dotenv/config"
1818
},
1919
"dependencies": {
20-
"@chakra-ui/react": "^1.8.3",
21-
"@emotion/react": "^11",
22-
"@emotion/styled": "^11",
20+
"@chakra-ui/react": "^2.3.1",
21+
"@emotion/react": "^11.10.0",
22+
"@emotion/styled": "^11.10.0",
2323
"axios": "^0.24.0",
24-
"framer-motion": "^5",
24+
"framer-motion": "^7.2.1",
2525
"graphql": "^16.2.0",
26-
"react": "^17.0.2",
27-
"react-dom": "^17.0.2",
26+
"react": "^18.2.0",
27+
"react-dom": "^18.2.0",
2828
"react-error-boundary": "^3.1.4",
29-
"react-location": "^3.3.0",
30-
"react-query": "^3.34.7"
29+
"react-query": "^3.34.7",
30+
"react-router-dom": "^6.3.0"
3131
},
3232
"devDependencies": {
33-
"@chakra-ui/cli": "^1.8.1",
33+
"@chakra-ui/cli": "^2.1.7",
3434
"@commitlint/cli": "^15.0.0",
3535
"@commitlint/config-conventional": "^15.0.0",
3636
"@commitlint/prompt-cli": "^15.0.0",
@@ -41,11 +41,11 @@
4141
"@graphql-codegen/typescript-operations": "2.2.2",
4242
"@graphql-codegen/typescript-react-query": "^3.5.5",
4343
"@types/node": "^16.11.14",
44-
"@types/react": "^17.0.37",
45-
"@types/react-dom": "^17.0.11",
44+
"@types/react": "^18.0.17",
45+
"@types/react-dom": "^18.0.6",
4646
"@typescript-eslint/eslint-plugin": "^5.7.0",
4747
"@typescript-eslint/parser": "^5.7.0",
48-
"@vitejs/plugin-react": "^1.1.3",
48+
"@vitejs/plugin-react": "^2.0.1",
4949
"autoprefixer": "^10.4.0",
5050
"concurrently": "^7.0.0",
5151
"eslint": "^8.4.1",
@@ -58,11 +58,11 @@
5858
"husky": "^7.0.4",
5959
"lint-staged": "^12.1.2",
6060
"prettier": "2.5.1",
61-
"react-test-renderer": "^17.0.2",
61+
"react-test-renderer": "^18.2.0",
6262
"source-map-explorer": "^2.5.2",
6363
"ts-jest": "^27.1.1",
64-
"typescript": "^4.5.4",
65-
"vite": "^2.8.4",
64+
"typescript": "^4.6.4",
65+
"vite": "^3.0.7",
6666
"vite-tsconfig-paths": "^3.3.17"
6767
}
6868
}

Diff for: src/templates/graphql/src/App.tsx

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
import { Suspense } from 'react';
22
import { Spinner } from '@chakra-ui/react';
33

4-
import { ReactLocation, Router } from 'react-location';
4+
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
55
import routes from 'routes';
66

7-
const location = new ReactLocation();
87
function App() {
98
return (
109
<Suspense fallback={<Spinner />}>
11-
<Router location={location} routes={routes}></Router>
10+
<Router>
11+
<Routes>
12+
{routes.map((path) => (
13+
<Route path={path.path} element={path.element} />
14+
))}
15+
</Routes>
16+
</Router>
1217
</Suspense>
1318
);
1419
}

Diff for: src/templates/graphql/vite.config.ts

+4
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ export default defineConfig({
77
envDir: './env',
88
plugins: [react(), tsconfigPaths()],
99
/* If proxy is needed
10+
1011
server: {
1112
proxy: {
1213
"/api": "localhost:8080"
1314
}
1415
},
1516
*/
17+
server: {
18+
port: 3000,
19+
},
1620
resolve: {
1721
alias: {
1822
tslib: 'tslib/tslib.es6.js',

0 commit comments

Comments
 (0)