Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit d6c147c

Browse files
authored
Merge pull request #174 from thicodes/upgrade-examples-v8
Upgrade to support relay-compiler v9
2 parents 8b0d331 + dc60c16 commit d6c147c

18 files changed

+331
-495
lines changed

example-hooks/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
"graphql-compiler": "^1.7.0",
2020
"graphql-relay": "^0.6.0",
2121
"prop-types": "^15.6.2",
22-
"react": "^16.11.0",
23-
"react-dom": "^16.11.0",
24-
"react-relay": "^7.0.0",
25-
"relay-runtime": "^7.0.0",
22+
"react": "0.0.0-experimental-f42431abe",
23+
"react-dom": "0.0.0-experimental-f42431abe",
24+
"react-relay": "0.0.0-experimental-8cc94ddc",
25+
"relay-runtime": "^9.0.0",
2626
"todomvc-app-css": "^2.1.0",
2727
"todomvc-common": "^1.0.3",
2828
"webpack": "^4.41.2",
@@ -35,13 +35,13 @@
3535
"@types/prop-types": "^15.5.5",
3636
"@types/react": "^16.4.12",
3737
"@types/react-dom": "^16.0.7",
38-
"@types/react-relay": "^7.0.0",
39-
"@types/relay-runtime": "^6.0.8",
38+
"@types/react-relay": "^7.0.3",
39+
"@types/relay-runtime": "^8.0.6",
4040
"babel-cli": "^6.26.0",
4141
"babel-core": "^6.26.0",
4242
"babel-eslint": "6.1.2",
4343
"babel-loader": "^7.1.2",
44-
"babel-plugin-relay": "^7.0.0",
44+
"babel-plugin-relay": "^9.0.0",
4545
"babel-plugin-transform-runtime": "^6.12.0",
4646
"babel-preset-env": "^1.7.0",
4747
"babel-preset-react": "^6.11.1",
@@ -51,8 +51,8 @@
5151
"fork-ts-checker-webpack-plugin": "^3.1.1",
5252
"patch-package": "^6.2.0",
5353
"postinstall-postinstall": "^2.0.0",
54-
"relay-compiler": "^7.0.0",
55-
"relay-compiler-language-typescript": "file:.yalc/relay-compiler-language-typescript",
54+
"relay-compiler": "^9.0.0",
55+
"relay-compiler-language-typescript": "file:../lib",
5656
"ts-loader": "^6.2.0",
5757
"tslint": "^5.20.0",
5858
"tslint-plugin-relay": "^0.0.3",

example-hooks/ts/__relay_artifacts__/AddTodoMutation.graphql.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import { ConcreteRequest } from "relay-runtime";
44
export type AddTodoInput = {
5-
readonly text: string;
6-
readonly clientMutationId?: string | null;
5+
text: string;
6+
clientMutationId?: string | null;
77
};
88
export type AddTodoMutationVariables = {
99
input: AddTodoInput;

example-hooks/ts/__relay_artifacts__/ChangeTodoStatusMutation.graphql.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
import { ConcreteRequest } from "relay-runtime";
44
export type ChangeTodoStatusInput = {
5-
readonly complete: boolean;
6-
readonly id: string;
7-
readonly clientMutationId?: string | null;
5+
complete: boolean;
6+
id: string;
7+
clientMutationId?: string | null;
88
};
99
export type ChangeTodoStatusMutationVariables = {
1010
input: ChangeTodoStatusInput;

example-hooks/ts/__relay_artifacts__/MarkAllTodosMutation.graphql.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import { ConcreteRequest } from "relay-runtime";
44
export type MarkAllTodosInput = {
5-
readonly complete: boolean;
6-
readonly clientMutationId?: string | null;
5+
complete: boolean;
6+
clientMutationId?: string | null;
77
};
88
export type MarkAllTodosMutationVariables = {
99
input: MarkAllTodosInput;

example-hooks/ts/__relay_artifacts__/RemoveCompletedTodosMutation.graphql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { ConcreteRequest } from "relay-runtime";
44
export type RemoveCompletedTodosInput = {
5-
readonly clientMutationId?: string | null;
5+
clientMutationId?: string | null;
66
};
77
export type RemoveCompletedTodosMutationVariables = {
88
input: RemoveCompletedTodosInput;

example-hooks/ts/__relay_artifacts__/RemoveTodoMutation.graphql.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import { ConcreteRequest } from "relay-runtime";
44
export type RemoveTodoInput = {
5-
readonly id: string;
6-
readonly clientMutationId?: string | null;
5+
id: string;
6+
clientMutationId?: string | null;
77
};
88
export type RemoveTodoMutationVariables = {
99
input: RemoveTodoInput;

example-hooks/ts/__relay_artifacts__/RenameTodoMutation.graphql.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
import { ConcreteRequest } from "relay-runtime";
44
export type RenameTodoInput = {
5-
readonly id: string;
6-
readonly text: string;
7-
readonly clientMutationId?: string | null;
5+
id: string;
6+
text: string;
7+
clientMutationId?: string | null;
88
};
99
export type RenameTodoMutationVariables = {
1010
input: RenameTodoInput;

0 commit comments

Comments
 (0)