Skip to content

Commit

Permalink
Merge pull request #282 from relay-tools/relay-v18
Browse files Browse the repository at this point in the history
update relay dependencies v18
  • Loading branch information
morrys authored Nov 26, 2024
2 parents 06fae50 + 33a2700 commit fbb65ef
Show file tree
Hide file tree
Showing 7 changed files with 159 additions and 84 deletions.
6 changes: 0 additions & 6 deletions __tests__/ReactRelayFragmentContainer-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,7 @@ describe('ReactRelayFragmentContainer', () => {
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
selector: createReaderSelector(UserFragment, '4', { cond: true }, ownerUser1.request),
});
Expand Down Expand Up @@ -327,9 +325,7 @@ describe('ReactRelayFragmentContainer', () => {
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
selector: createReaderSelector(UserFragment, '842472', { cond: true }, ownerUser2.request),
});
Expand Down Expand Up @@ -373,9 +369,7 @@ describe('ReactRelayFragmentContainer', () => {
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
selector: createReaderSelector(UserFragment, '4', { cond: false }, ownerUser1WithCondVar.request),
});
Expand Down
16 changes: 4 additions & 12 deletions __tests__/ReactRelayPaginationContainer-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,8 @@ describe('ReactRelayPaginationContainer', () => {
data: expect.any(Object),
isMissingData: false,
errorResponseFields: null,
missingClientEdges: null,
missingRequiredFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
seenRecords: expect.any(Object),
selector: createReaderSelector(
UserFragment,
Expand Down Expand Up @@ -500,10 +498,8 @@ describe('ReactRelayPaginationContainer', () => {
data: expect.any(Object),
isMissingData: false,
errorResponseFields: null,
missingClientEdges: null,
missingRequiredFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
seenRecords: expect.any(Object),
selector: createReaderSelector(
UserFragment,
Expand Down Expand Up @@ -568,10 +564,8 @@ describe('ReactRelayPaginationContainer', () => {
data: expect.any(Object),
isMissingData: false,
errorResponseFields: null,
missingClientEdges: null,
missingRequiredFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
seenRecords: expect.any(Object),
selector: createReaderSelector(
UserFragment,
Expand Down Expand Up @@ -672,10 +666,8 @@ describe('ReactRelayPaginationContainer', () => {
data: expect.any(Object),
isMissingData: false,
errorResponseFields: null,
missingClientEdges: null,
missingRequiredFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
seenRecords: expect.any(Object),
selector: createReaderSelector(
UserFragment,
Expand Down
8 changes: 0 additions & 8 deletions __tests__/ReactRelayRefetchContainer-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,7 @@ describe('ReactRelayRefetchContainer', () => {
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
selector: createReaderSelector(UserFragment, '4', { cond: true }, ownerUser1.request),
});
Expand Down Expand Up @@ -367,9 +365,7 @@ describe('ReactRelayRefetchContainer', () => {
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
selector: createReaderSelector(UserFragment, '842472', { cond: true }, ownerUser2.request),
});
Expand Down Expand Up @@ -415,9 +411,7 @@ describe('ReactRelayRefetchContainer', () => {
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
selector: createReaderSelector(UserFragment, '4', { cond: false }, ownerUser1WithCondVar.request),
});
Expand Down Expand Up @@ -482,9 +476,7 @@ describe('ReactRelayRefetchContainer', () => {
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
selector: createReaderSelector(UserFragment, '4', { cond: false }, ownerUser1WithCondVar.request),
});
Expand Down
10 changes: 1 addition & 9 deletions __tests__/useRefetchable-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,7 @@ describe('useRefetchable', () => {
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
selector: createReaderSelector(UserFragment, '4', { cond: true }, ownerUser1.request),
});
Expand Down Expand Up @@ -355,9 +353,7 @@ describe('useRefetchable', () => {
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
selector: createReaderSelector(UserFragment, '842472', { cond: true }, ownerUser2.request),
});
Expand Down Expand Up @@ -403,10 +399,8 @@ describe('useRefetchable', () => {
},
isMissingData: false,
errorResponseFields: null,
missingClientEdges: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingRequiredFields: null,
missingClientEdges: null,
seenRecords: expect.any(Object),
selector: createReaderSelector(UserFragment, '4', { cond: false }, ownerUser1WithCondVar.request),
});
Expand Down Expand Up @@ -473,9 +467,7 @@ describe('useRefetchable', () => {
isMissingData: false,
errorResponseFields: null,
missingLiveResolverFields: [],
relayResolverErrors: [],
missingClientEdges: null,
missingRequiredFields: null,
seenRecords: expect.any(Object),
selector: createReaderSelector(UserFragment, '4', { cond: false }, ownerUser1WithCondVar.request),
});
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.1.0",
"relay-runtime": "17.0.0",
"relay-runtime": "18.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": "17.0.0",
"relay-compiler": "18.0.0",
"relay-compiler-language-typescript": "15.0.1",
"typescript": "^4.2.4"
}
Expand Down
Loading

0 comments on commit fbb65ef

Please sign in to comment.