Skip to content

Commit c9f4457

Browse files
committed
feat: upgrade examples
1 parent 500cec9 commit c9f4457

File tree

38 files changed

+16936
-8292
lines changed

38 files changed

+16936
-8292
lines changed

examples/accounts-microservice/package.json

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"main": "lib/index.js",
66
"license": "MIT",
77
"scripts": {
8-
"start": "NODE_ENV=development nodemon -w src -x ts-node src/accounts-microservice.ts & sleep 2 && nodemon -w src -x ts-node src/app-server.ts",
8+
"start": "NODE_ENV=development yarn run -T nodemon -w src -x ts-node src/accounts-microservice.ts & sleep 2 && yarn run -T nodemon -w src -x ts-node src/app-server.ts",
99
"start-services": "docker-compose up -d",
10-
"prestart": "pnpm run start-services",
11-
"build": "tsc",
12-
"test": "pnpm run build"
10+
"prestart": "yarn run start-services",
11+
"build": "yarn run -T tsc",
12+
"test": "yarn run build"
1313
},
1414
"dependencies": {
1515
"@accounts/module-core": "^0.34.0",
@@ -18,24 +18,21 @@
1818
"@accounts/mongo": "^0.34.0",
1919
"@accounts/password": "^0.32.1",
2020
"@accounts/server": "^0.33.1",
21-
"@apollo/server": "4.7.1",
21+
"@apollo/server": "4.9.3",
2222
"@apollo/server-plugin-landing-page-graphql-playground": "4.0.1",
23-
"@graphql-tools/delegate": "10.0.0",
23+
"@graphql-tools/delegate": "10.0.3",
2424
"@graphql-tools/merge": "9.0.0",
2525
"@graphql-tools/schema": "10.0.0",
26-
"@graphql-tools/stitch": "9.0.0",
27-
"@graphql-tools/utils": "10.0.0",
28-
"@graphql-tools/wrap": "10.0.0",
29-
"graphql": "16.6.0",
30-
"graphql-modules": "2.1.2",
26+
"@graphql-tools/stitch": "9.0.1",
27+
"@graphql-tools/utils": "10.0.6",
28+
"@graphql-tools/wrap": "10.0.1",
29+
"graphql": "16.8.0",
30+
"graphql-modules": "2.2.0",
3131
"lodash": "4.17.21",
32-
"node-fetch": "2.6.11",
33-
"tslib": "2.5.2"
32+
"node-fetch": "2.7.0",
33+
"tslib": "2.6.2"
3434
},
3535
"devDependencies": {
36-
"@types/lodash": "4.14.194",
37-
"nodemon": "2.0.22",
38-
"ts-node": "10.9.1",
39-
"typescript": "5.0.4"
36+
"@types/lodash": "4.14.198"
4037
}
4138
}

examples/graphql-server-mikro-orm-postgres/package.json

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
]
1313
},
1414
"scripts": {
15-
"start-only": "NODE_ENV=development nodemon -w src -x ts-node src/index.ts",
15+
"start-only": "NODE_ENV=development yarn run -T nodemon -w src -x ts-node src/index.ts",
1616
"start": "yarn start-only",
1717
"start-services": "docker-compose up -d",
18-
"build": "tsc",
19-
"test": "yarn build"
18+
"build": "yarn run -T tsc",
19+
"test": "yarn run build"
2020
},
2121
"dependencies": {
2222
"@accounts/mikro-orm": "^0.34.0",
@@ -25,26 +25,22 @@
2525
"@accounts/module-password": "^0.34.0",
2626
"@accounts/password": "^0.32.1",
2727
"@accounts/server": "^0.33.1",
28-
"@apollo/server": "4.7.1",
28+
"@apollo/server": "4.9.3",
2929
"@apollo/server-plugin-landing-page-graphql-playground": "4.0.1",
3030
"@graphql-tools/merge": "9.0.0",
3131
"@graphql-tools/schema": "10.0.0",
32-
"@mikro-orm/cli": "5.7.9",
33-
"@mikro-orm/core": "5.7.9",
34-
"@mikro-orm/entity-generator": "5.7.9",
35-
"@mikro-orm/knex": "5.7.9",
36-
"@mikro-orm/migrations": "5.7.9",
37-
"@mikro-orm/postgresql": "5.7.9",
38-
"@mikro-orm/reflection": "5.7.9",
39-
"graphql": "16.6.0",
40-
"graphql-modules": "2.1.2",
41-
"tslib": "2.5.2"
32+
"@mikro-orm/cli": "5.7.14",
33+
"@mikro-orm/core": "5.7.14",
34+
"@mikro-orm/entity-generator": "5.7.14",
35+
"@mikro-orm/knex": "5.7.14",
36+
"@mikro-orm/migrations": "5.7.14",
37+
"@mikro-orm/postgresql": "5.7.14",
38+
"@mikro-orm/reflection": "5.7.14",
39+
"graphql": "16.8.0",
40+
"graphql-modules": "2.2.0",
41+
"tslib": "2.6.2"
4242
},
4343
"devDependencies": {
44-
"@accounts/types": "^0.33.2",
45-
"@types/node": "20.2.3",
46-
"nodemon": "2.0.22",
47-
"ts-node": "10.9.1",
48-
"typescript": "5.0.4"
44+
"@accounts/types": "^0.33.2"
4945
}
5046
}

examples/graphql-server-typeorm-postgres/package.json

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"main": "lib/index.js",
66
"license": "Unlicensed",
77
"scripts": {
8-
"start-only": "NODE_ENV=development nodemon -w src -x ts-node src/index.ts",
9-
"start": "pnpm run start-only",
8+
"start-only": "NODE_ENV=development yarn run -T nodemon -w src -x ts-node src/index.ts",
9+
"start": "yarn run start-only",
1010
"start-services": "docker-compose up -d",
11-
"build": "tsc",
12-
"test": "pnpm run build"
11+
"build": "yarn run -T tsc",
12+
"test": "yarn run build"
1313
},
1414
"dependencies": {
1515
"@accounts/module-core": "^0.34.0",
@@ -18,21 +18,17 @@
1818
"@accounts/password": "^0.32.2",
1919
"@accounts/server": "^0.33.1",
2020
"@accounts/typeorm": "^0.34.0",
21-
"@apollo/server": "4.7.1",
21+
"@apollo/server": "4.9.3",
2222
"@apollo/server-plugin-landing-page-graphql-playground": "4.0.1",
2323
"@graphql-tools/merge": "9.0.0",
2424
"dotenv": "10.0.0",
25-
"graphql": "16.6.0",
26-
"graphql-modules": "2.1.2",
27-
"pg": "8.11.0",
28-
"tslib": "2.5.2",
29-
"typeorm": "0.3.16"
25+
"graphql": "16.8.0",
26+
"graphql-modules": "2.2.0",
27+
"pg": "8.11.3",
28+
"tslib": "2.6.2",
29+
"typeorm": "0.3.17"
3030
},
3131
"devDependencies": {
32-
"@accounts/types": "^0.33.2",
33-
"@types/node": "20.2.3",
34-
"nodemon": "2.0.22",
35-
"ts-node": "10.9.1",
36-
"typescript": "5.0.4"
32+
"@accounts/types": "^0.33.2"
3733
}
3834
}

examples/graphql-server-typescript/package.json

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"main": "lib/index.js",
66
"license": "MIT",
77
"scripts": {
8-
"start": "NODE_ENV=development nodemon -w src -x ts-node src/index.ts",
9-
"build": "tsc",
10-
"test": "pnpm run build"
8+
"start": "NODE_ENV=development yarn run -T nodemon -w src -x ts-node src/index.ts",
9+
"build": "yarn run -T tsc",
10+
"test": "yarn run build"
1111
},
1212
"dependencies": {
1313
"@accounts/module-core": "^0.34.0",
@@ -16,20 +16,14 @@
1616
"@accounts/password": "^0.32.2",
1717
"@accounts/rest-express": "^0.33.1",
1818
"@accounts/server": "^0.33.1",
19-
"@apollo/server": "4.7.1",
19+
"@apollo/server": "4.9.3",
2020
"@apollo/server-plugin-landing-page-graphql-playground": "4.0.1",
2121
"@graphql-tools/merge": "9.0.0",
2222
"@graphql-tools/schema": "10.0.0",
23-
"graphql": "16.6.0",
24-
"graphql-modules": "2.1.2",
23+
"graphql": "16.8.0",
24+
"graphql-modules": "2.2.0",
2525
"graphql-tag": "2.12.6",
26-
"mongoose": "7.2.0",
27-
"tslib": "2.5.2"
28-
},
29-
"devDependencies": {
30-
"@types/node": "20.2.3",
31-
"nodemon": "2.0.22",
32-
"ts-node": "10.9.1",
33-
"typescript": "5.0.4"
26+
"mongoose": "7.5.0",
27+
"tslib": "2.6.2"
3428
}
3529
}

examples/magic-link-server-typescript/package.json

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,15 @@
55
"main": "lib/index.js",
66
"license": "MIT",
77
"scripts": {
8-
"start": "NODE_ENV=development nodemon -w src -x ts-node src/index.ts",
9-
"build": "tsc",
10-
"test": "pnpm run build"
8+
"start": "NODE_ENV=development yarn run -T nodemon -w src -x ts-node src/index.ts",
9+
"build": "yarn run -T tsc",
10+
"test": "yarn run build"
1111
},
1212
"dependencies": {
1313
"@accounts/magic-link": "^0.1.1",
1414
"@accounts/mongo": "^0.34.1",
1515
"@accounts/server": "^0.33.1",
16-
"mongoose": "7.2.0",
17-
"tslib": "2.5.2"
18-
},
19-
"devDependencies": {
20-
"@types/node": "20.2.3",
21-
"nodemon": "2.0.22",
22-
"ts-node": "10.9.1",
23-
"typescript": "5.0.4"
16+
"mongoose": "7.5.0",
17+
"tslib": "2.6.2"
2418
}
2519
}

examples/react-graphql-typescript/package.json

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"scripts": {
66
"start": "SKIP_PREFLIGHT_CHECK=true react-scripts start",
77
"build": "SKIP_PREFLIGHT_CHECK=true react-scripts build",
8-
"test": "pnpm run build",
9-
"testonly": "pnpm run build"
8+
"test": "yarn run build",
9+
"testonly": "yarn run build"
1010
},
1111
"eslintConfig": {
1212
"extends": [
@@ -31,28 +31,29 @@
3131
"@accounts/client": "^0.33.1",
3232
"@accounts/client-password": "^0.32.2",
3333
"@accounts/graphql-client": "^0.33.1",
34-
"@apollo/client": "3.7.14",
35-
"@material-ui/core": "4.12.3",
36-
"@material-ui/styles": "4.11.4",
37-
"graphql": "16.6.0",
34+
"@apollo/client": "3.8.3",
35+
"@emotion/react": "11.11.1",
36+
"@emotion/styled": "11.11.0",
37+
"@mui/material": "5.14.8",
38+
"@mui/styles": "5.14.7",
39+
"graphql": "16.8.0",
3840
"graphql-tag": "2.12.6",
39-
"qrcode.react": "1.0.1",
40-
"react": "17.0.2",
41-
"react-dom": "17.0.2",
42-
"react-router": "5.2.1",
43-
"react-router-dom": "5.3.0",
44-
"tslib": "2.5.2"
41+
"qrcode.react": "3.1.0",
42+
"react": "18.2.0",
43+
"react-dom": "18.2.0",
44+
"react-router": "5.3.4",
45+
"react-router-dom": "5.3.4",
46+
"tslib": "2.6.2"
4547
},
4648
"devDependencies": {
47-
"@types/node": "20.2.3",
48-
"@types/qrcode.react": "1.0.2",
49-
"@types/react": "17.0.38",
50-
"@types/react-dom": "17.0.11",
51-
"@types/react-router": "5.1.18",
49+
"@types/qrcode.react": "1.0.3",
50+
"@types/react": "18.2.21",
51+
"@types/react-dom": "18.2.7",
52+
"@types/react-router": "5.1.20",
5253
"@types/react-router-dom": "5.3.3",
53-
"eslint-config-react-app": "7.0.0",
54-
"react-scripts": "5.0.0",
55-
"typescript": "5.0.4",
56-
"web-vitals": "1.1.2"
54+
"eslint": "8.49.0",
55+
"eslint-config-react-app": "7.0.1",
56+
"react-scripts": "5.0.1",
57+
"web-vitals": "3.4.0"
5758
}
5859
}

examples/react-graphql-typescript/src/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { RouteComponentProps, Link, Redirect } from 'react-router-dom';
3-
import { Button, Typography } from '@material-ui/core';
3+
import { Button, Typography } from '@mui/material';
44
import gql from 'graphql-tag';
55
import { useQuery } from '@apollo/client';
66

examples/react-graphql-typescript/src/Login.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState } from 'react';
22
import { RouteComponentProps, Link } from 'react-router-dom';
3-
import { FormControl, InputLabel, Input, Button, Typography } from '@material-ui/core';
4-
import { makeStyles } from '@material-ui/styles';
3+
import { FormControl, InputLabel, Input, Button, Typography } from '@mui/material';
4+
import { makeStyles } from '@mui/styles';
55

66
import { accountsPassword } from './utils/accounts';
77
import FormError from './components/FormError';

examples/react-graphql-typescript/src/ResetPassword.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState } from 'react';
22
import { RouteComponentProps, Link } from 'react-router-dom';
3-
import { FormControl, InputLabel, Input, Button, Typography, Snackbar } from '@material-ui/core';
4-
import { makeStyles } from '@material-ui/styles';
3+
import { FormControl, InputLabel, Input, Button, Typography, Snackbar } from '@mui/material';
4+
import { makeStyles } from '@mui/styles';
55

66
import { accountsGraphQL } from './utils/accounts';
77
import FormError from './components/FormError';

examples/react-graphql-typescript/src/Router.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { BrowserRouter, Route } from 'react-router-dom';
3-
import { CssBaseline, Grid, Paper } from '@material-ui/core';
4-
import { makeStyles } from '@material-ui/styles';
3+
import { CssBaseline, Grid, Paper } from '@mui/material';
4+
import { makeStyles } from '@mui/styles';
55

66
import Signup from './Signup';
77
import Login from './Login';

0 commit comments

Comments
 (0)