Skip to content

Commit

Permalink
Merge pull request #279 from relay-tools/relay-v17
Browse files Browse the repository at this point in the history
update relay dependencies v17
  • Loading branch information
morrys authored Nov 26, 2024
2 parents 15b5d8e + a75b2c0 commit c3fdb5c
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 41 deletions.
3 changes: 3 additions & 0 deletions __tests__/ReactRelayFragmentContainer-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ describe('ReactRelayFragmentContainer', () => {
name: 'Zuck',
},
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
Expand Down Expand Up @@ -324,6 +325,7 @@ describe('ReactRelayFragmentContainer', () => {
name: 'Joe',
},
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
Expand Down Expand Up @@ -369,6 +371,7 @@ describe('ReactRelayFragmentContainer', () => {
// Name is excluded since value of cond is now false
},
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
Expand Down
4 changes: 4 additions & 0 deletions __tests__/ReactRelayPaginationContainer-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ describe('ReactRelayPaginationContainer', () => {
expect(environment.subscribe.mock.calls[0][0]).toEqual({
data: expect.any(Object),
isMissingData: false,
errorResponseFields: null,
missingClientEdges: null,
missingRequiredFields: null,
missingLiveResolverFields: [],
Expand Down Expand Up @@ -498,6 +499,7 @@ describe('ReactRelayPaginationContainer', () => {
expect(environment.subscribe.mock.calls[0][0]).toEqual({
data: expect.any(Object),
isMissingData: false,
errorResponseFields: null,
missingClientEdges: null,
missingRequiredFields: null,
missingLiveResolverFields: [],
Expand Down Expand Up @@ -565,6 +567,7 @@ describe('ReactRelayPaginationContainer', () => {
expect(environment.subscribe.mock.calls[0][0]).toEqual({
data: expect.any(Object),
isMissingData: false,
errorResponseFields: null,
missingClientEdges: null,
missingRequiredFields: null,
missingLiveResolverFields: [],
Expand Down Expand Up @@ -668,6 +671,7 @@ describe('ReactRelayPaginationContainer', () => {
expect(environment.subscribe.mock.calls[0][0]).toEqual({
data: expect.any(Object),
isMissingData: false,
errorResponseFields: null,
missingClientEdges: null,
missingRequiredFields: null,
missingLiveResolverFields: [],
Expand Down
4 changes: 4 additions & 0 deletions __tests__/ReactRelayRefetchContainer-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ describe('ReactRelayRefetchContainer', () => {
name: 'Zuck',
},
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
Expand Down Expand Up @@ -364,6 +365,7 @@ describe('ReactRelayRefetchContainer', () => {
name: 'Joe',
},
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
Expand Down Expand Up @@ -411,6 +413,7 @@ describe('ReactRelayRefetchContainer', () => {
// Name is excluded since value of cond is now false
},
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
Expand Down Expand Up @@ -477,6 +480,7 @@ describe('ReactRelayRefetchContainer', () => {
// Name is excluded since value of cond is now false
},
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
Expand Down
1 change: 1 addition & 0 deletions __tests__/testschema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,7 @@ type User implements Named & Node & Actor & HasJsField & Entity & AllConcreteTyp
nearest_neighbor: User!
parents: [User!]!
actor_key: ID!
count: Int
}

enum NameRendererContext {
Expand Down
4 changes: 4 additions & 0 deletions __tests__/useRefetchable-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ describe('useRefetchable', () => {
name: 'Zuck',
},
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
Expand Down Expand Up @@ -352,6 +353,7 @@ describe('useRefetchable', () => {
name: 'Joe',
},
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
Expand Down Expand Up @@ -400,6 +402,7 @@ describe('useRefetchable', () => {
// Name is excluded since value of cond is now false
},
isMissingData: false,
errorResponseFields: null,
missingClientEdges: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
Expand Down Expand Up @@ -468,6 +471,7 @@ describe('useRefetchable', () => {
// Name is excluded since value of cond is now false
},
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"react": "^18.0.0",
"react-dom": "^18.0.0",
"relay-hooks": "9.0.0",
"relay-runtime": "16.0.0",
"relay-runtime": "17.0.0",
"whatwg-fetch": "3.0.0",
"react-infinite-scroller": "1.2.6"
},
Expand All @@ -53,7 +53,7 @@
"babel-loader": "^8.0.5",
"babel-plugin-relay": "13.0.1",
"cross-env": "6.0.3",
"relay-compiler": "16.0.0",
"relay-compiler": "17.0.0",
"relay-compiler-language-typescript": "15.0.1",
"typescript": "^4.2.4"
}
Expand Down
68 changes: 34 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
},
"peerDependencies": {
"react": "^16.9.0 || ^17 || ^18",
"relay-runtime": "^16.0.0"
"relay-runtime": "^16.0.0 || ^17.0.0 "
},
"devDependencies": {
"babel-preset-fbjs": "^3.3.0",
Expand Down Expand Up @@ -89,10 +89,10 @@
"promise-polyfill": "6.1.0",
"react": "^18.0.0",
"react-test-renderer": "^18.0.0",
"relay-compiler": "^16.1.0",
"relay-runtime": "^16.1.0",
"relay-test-utils": "^16.1.0",
"relay-test-utils-internal": "^16.1.0",
"relay-compiler": "^17.0.0",
"relay-runtime": "^17.0.0",
"relay-test-utils": "^17.0.0",
"relay-test-utils-internal": "^17.0.0",
"rimraf": "^2.5.4",
"rollup": "^2.23.0",
"rollup-plugin-sourcemaps": "0.6.2",
Expand Down

0 comments on commit c3fdb5c

Please sign in to comment.