Skip to content

Commit c6a4dea

Browse files
committed
Upgrade dependencies to latest versions
1 parent 3f4df63 commit c6a4dea

File tree

4 files changed

+1431
-1495
lines changed

4 files changed

+1431
-1495
lines changed

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"version": "2.0.0",
44
"private": true,
55
"dependencies": {
6-
"babel-plugin-relay": "^18.2.0",
6+
"babel-plugin-relay": "^20.1.1",
77
"bootstrap": "^5.1.3",
88
"react": "^19.0.0",
99
"react-bootstrap": "^2.4.0",
1010
"react-dom": "^19.0.0",
11-
"react-relay": "^18.2.0",
11+
"react-relay": "^20.1.1",
1212
"react-router-dom": "^7.4.1",
1313
"react-scripts": "5.0.1",
14-
"relay-runtime": "^18.2.0"
14+
"relay-runtime": "^20.1.1"
1515
},
1616
"scripts": {
1717
"start": "react-scripts start",
@@ -39,21 +39,22 @@
3939
},
4040
"devDependencies": {
4141
"@babel/core": "^7.4.5",
42-
"@types/node": "^22.5.0",
42+
"@types/node": "^24.10.1",
4343
"@types/react": "^19.0.0",
4444
"@types/react-dom": "^19.0.0",
45-
"@types/react-relay": "^18.2.0",
45+
"@types/react-relay": "^18.2.1",
4646
"@typescript-eslint/eslint-plugin": "^5.33.0",
4747
"@typescript-eslint/parser": "^5.33.0",
4848
"eslint": "^8.21.0",
4949
"graphql": "^16.10.0",
50-
"relay-compiler": "^18.2.0",
50+
"relay-compiler": "^20.1.1",
5151
"relay-compiler-language-typescript": "^15.0.0",
5252
"typescript": "^5.7.3"
5353
},
5454
"relay": {
5555
"src": "./src/",
5656
"schema": "./schema.graphql",
5757
"language": "typescript"
58-
}
58+
},
59+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
5960
}

src/pages/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const Home: FunctionComponent = () => (
1111
<Row>
1212
<Col>
1313
<h1>Quotes - React &amp; Relay example project</h1>
14-
<p className="lead">The whole page is created with <a href="https://create-react-app.dev/" rel="noopener noreferrer" target="_blank">create-react-app</a> without eject. It uses newest version of <a href="https://reactjs.org/" rel="noopener noreferrer" target="_blank">React</a> (<i>19.0.0</i>) and <a href="https://relay.dev/" rel="noopener noreferrer" target="_blank">Relay</a> (<i>18.2.0</i>) that is now available (<i>10.1.2025</i>) and everything is coded in <a href="https://www.typescriptlang.org/" rel="noopener noreferrer" target="_blank">TypeScript</a>. You can find here how to use <code>useLazyLoadQuery</code>, <code>useFragment</code> and <code>usePaginationFragment</code>. Backend is available in <a href="https://github.com/juffalow/slim-graphql-eloquent-example" rel="noopener noreferrer" target="_blank">PHP</a> and <a href="https://github.com/juffalow/express-graphql-example" rel="noopener noreferrer" target="_blank">NodeJS</a>.</p>
14+
<p className="lead">The whole page is created with <a href="https://create-react-app.dev/" rel="noopener noreferrer" target="_blank">create-react-app</a> without eject. It uses newest version of <a href="https://reactjs.org/" rel="noopener noreferrer" target="_blank">React</a> (<i>19.0.0</i>) and <a href="https://relay.dev/" rel="noopener noreferrer" target="_blank">Relay</a> (<i>20.1.0</i>) that is now available (<i>10.1.2025</i>) and everything is coded in <a href="https://www.typescriptlang.org/" rel="noopener noreferrer" target="_blank">TypeScript</a>. You can find here how to use <code>useLazyLoadQuery</code>, <code>useFragment</code> and <code>usePaginationFragment</code>. Backend is available in <a href="https://github.com/juffalow/slim-graphql-eloquent-example" rel="noopener noreferrer" target="_blank">PHP</a> and <a href="https://github.com/juffalow/express-graphql-example" rel="noopener noreferrer" target="_blank">NodeJS</a>.</p>
1515
<p>This project was created because of lot of hours spent searching, trying and debugging. There are several articles and projects about Relay, but those are mostly using older versions, or it is just a small sample of a code without other major parts. Here is a complete web application with everything you need to start using React, Relay and GraphQL.</p>
1616
<HomeContainer />
1717
<h2>Want to contribute?</h2>

src/pages/home/QuotesLoader.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,16 @@ interface Props {
77
count?: number;
88
}
99

10-
const QuotesLoader = (props: Props) => (
10+
const QuotesLoader = ({ count = 9 }: Props) => (
1111
<Row className="mt-4">
1212
{
13-
Array.apply(null, Array(props.count)).map((_, index) => (
13+
Array.apply(null, Array(count)).map((_, index) => (
1414
<Col key={index} md={4} style={{ marginBottom: 20 }}>
1515
<Card className="bar-loader" style={{ minHeight: 125 }} />
1616
</Col>
1717
))
1818
}
1919
</Row>
20-
)
21-
22-
QuotesLoader.defaultProps = {
23-
count: 3,
24-
}
20+
);
2521

2622
export default QuotesLoader;

0 commit comments

Comments
 (0)