diff --git a/__tests__/ReactRelayFragmentContainer-test.tsx b/__tests__/ReactRelayFragmentContainer-test.tsx index 115856c7..c592e940 100644 --- a/__tests__/ReactRelayFragmentContainer-test.tsx +++ b/__tests__/ReactRelayFragmentContainer-test.tsx @@ -247,6 +247,8 @@ describe('ReactRelayFragmentContainer', () => { name: 'Zuck', }, isMissingData: false, + missingLiveResolverFields: [], + relayResolverErrors: [], missingClientEdges: null, missingRequiredFields: null, seenRecords: expect.any(Object), @@ -331,6 +333,8 @@ describe('ReactRelayFragmentContainer', () => { name: 'Joe', }, isMissingData: false, + missingLiveResolverFields: [], + relayResolverErrors: [], missingClientEdges: null, missingRequiredFields: null, seenRecords: expect.any(Object), @@ -380,6 +384,8 @@ describe('ReactRelayFragmentContainer', () => { // Name is excluded since value of cond is now false }, isMissingData: false, + missingLiveResolverFields: [], + relayResolverErrors: [], missingClientEdges: null, missingRequiredFields: null, seenRecords: expect.any(Object), diff --git a/__tests__/ReactRelayPaginationContainer-test.tsx b/__tests__/ReactRelayPaginationContainer-test.tsx index 5760ebd4..8bf00c56 100644 --- a/__tests__/ReactRelayPaginationContainer-test.tsx +++ b/__tests__/ReactRelayPaginationContainer-test.tsx @@ -393,6 +393,8 @@ describe('ReactRelayPaginationContainer', () => { isMissingData: false, missingClientEdges: null, missingRequiredFields: null, + missingLiveResolverFields: [], + relayResolverErrors: [], seenRecords: expect.any(Object), selector: createReaderSelector( UserFragment, @@ -501,6 +503,8 @@ describe('ReactRelayPaginationContainer', () => { isMissingData: false, missingClientEdges: null, missingRequiredFields: null, + missingLiveResolverFields: [], + relayResolverErrors: [], seenRecords: expect.any(Object), selector: createReaderSelector( UserFragment, @@ -567,6 +571,8 @@ describe('ReactRelayPaginationContainer', () => { isMissingData: false, missingClientEdges: null, missingRequiredFields: null, + missingLiveResolverFields: [], + relayResolverErrors: [], seenRecords: expect.any(Object), selector: createReaderSelector( UserFragment, @@ -669,6 +675,8 @@ describe('ReactRelayPaginationContainer', () => { isMissingData: false, missingClientEdges: null, missingRequiredFields: null, + missingLiveResolverFields: [], + relayResolverErrors: [], seenRecords: expect.any(Object), selector: createReaderSelector( UserFragment, diff --git a/__tests__/ReactRelayRefetchContainer-test.tsx b/__tests__/ReactRelayRefetchContainer-test.tsx index e9a0ad30..b4e5a6e5 100644 --- a/__tests__/ReactRelayRefetchContainer-test.tsx +++ b/__tests__/ReactRelayRefetchContainer-test.tsx @@ -285,6 +285,8 @@ describe('ReactRelayRefetchContainer', () => { name: 'Zuck', }, isMissingData: false, + missingLiveResolverFields: [], + relayResolverErrors: [], missingClientEdges: null, missingRequiredFields: null, seenRecords: expect.any(Object), @@ -372,6 +374,8 @@ describe('ReactRelayRefetchContainer', () => { name: 'Joe', }, isMissingData: false, + missingLiveResolverFields: [], + relayResolverErrors: [], missingClientEdges: null, missingRequiredFields: null, seenRecords: expect.any(Object), @@ -423,6 +427,8 @@ describe('ReactRelayRefetchContainer', () => { // Name is excluded since value of cond is now false }, isMissingData: false, + missingLiveResolverFields: [], + relayResolverErrors: [], missingClientEdges: null, missingRequiredFields: null, seenRecords: expect.any(Object), @@ -495,6 +501,8 @@ describe('ReactRelayRefetchContainer', () => { // Name is excluded since value of cond is now false }, isMissingData: false, + missingLiveResolverFields: [], + relayResolverErrors: [], missingClientEdges: null, missingRequiredFields: null, seenRecords: expect.any(Object), diff --git a/__tests__/useRefetchable-test.tsx b/__tests__/useRefetchable-test.tsx index 2a7af696..3deadf7e 100644 --- a/__tests__/useRefetchable-test.tsx +++ b/__tests__/useRefetchable-test.tsx @@ -271,6 +271,8 @@ describe('useRefetchable', () => { name: 'Zuck', }, isMissingData: false, + missingLiveResolverFields: [], + relayResolverErrors: [], missingClientEdges: null, missingRequiredFields: null, seenRecords: expect.any(Object), @@ -360,6 +362,8 @@ describe('useRefetchable', () => { name: 'Joe', }, isMissingData: false, + missingLiveResolverFields: [], + relayResolverErrors: [], missingClientEdges: null, missingRequiredFields: null, seenRecords: expect.any(Object), @@ -413,6 +417,8 @@ describe('useRefetchable', () => { }, isMissingData: false, missingClientEdges: null, + missingLiveResolverFields: [], + relayResolverErrors: [], missingRequiredFields: null, seenRecords: expect.any(Object), selector: createReaderSelector( @@ -486,6 +492,8 @@ describe('useRefetchable', () => { // Name is excluded since value of cond is now false }, isMissingData: false, + missingLiveResolverFields: [], + relayResolverErrors: [], missingClientEdges: null, missingRequiredFields: null, seenRecords: expect.any(Object), diff --git a/package-lock.json b/package-lock.json index d1343d0d..c9b34f07 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "relay-hooks", - "version": "7.0.0", + "version": "7.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "relay-hooks", - "version": "7.0.0", + "version": "7.1.0", "license": "MIT", "dependencies": { "@restart/hooks": "^0.3.1", @@ -46,10 +46,10 @@ "promise-polyfill": "6.1.0", "react": "^18.0.0", "react-test-renderer": "^18.0.0", - "relay-compiler": "^13.0.2", - "relay-runtime": "^13.0.2", - "relay-test-utils": "^13.0.2", - "relay-test-utils-internal": "^13.0.2", + "relay-compiler": "^14.0.0", + "relay-runtime": "^14.0.0", + "relay-test-utils": "^14.0.0", + "relay-test-utils-internal": "^14.0.0", "replace-in-file": "6.2.0", "rimraf": "^2.5.4", "rollup": "^2.23.0", @@ -16588,18 +16588,18 @@ } }, "node_modules/relay-compiler": { - "version": "13.0.2", - "resolved": "https://registry.npmjs.org/relay-compiler/-/relay-compiler-13.0.2.tgz", - "integrity": "sha512-Gg/5FNj8gz03GRkG5KjMNpDB4nOeApDFZq+8CZehu3KkQQ+vNIurX6RiTY3UNUYvg5SX2A9DS5bq5iHJ8iEV3A==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/relay-compiler/-/relay-compiler-14.0.0.tgz", + "integrity": "sha512-1h4lwvHg5efhivqpMfG6SS4cGoCJH3BsRelihwD+GNiylBnLKArSE6zyW7LfEwSpuDfJ+l6rrRfSL8IVZwOZ0g==", "dev": true, "bin": { "relay-compiler": "cli.js" } }, "node_modules/relay-runtime": { - "version": "13.0.2", - "resolved": "https://registry.npmjs.org/relay-runtime/-/relay-runtime-13.0.2.tgz", - "integrity": "sha512-sP4lNGfFcOm7tQD12qlvwsiOREDgjkw4FQAjtemmtwivKOqI4qHAL22Ar62r5TPVlASn4iVWMk7rIdIJI20KGQ==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/relay-runtime/-/relay-runtime-14.0.0.tgz", + "integrity": "sha512-Rnf6EgCl3QY85il/gTEh6GHAR9hoRkjYWgMR2Y3Afugb8qLR0vL6m/GBYqol8W3L8B+XqZ2U04/g624DRpEqAw==", "dev": true, "dependencies": { "@babel/runtime": "^7.0.0", @@ -16642,26 +16642,26 @@ } }, "node_modules/relay-test-utils": { - "version": "13.0.2", - "resolved": "https://registry.npmjs.org/relay-test-utils/-/relay-test-utils-13.0.2.tgz", - "integrity": "sha512-f88LTq+1UbFJBEKfmb35kiOyGTBRtQJo3plQj6koDhG1supLqB72CsDwRDilXXEaAMM3CExlyZ3AjKEgMPK3MA==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/relay-test-utils/-/relay-test-utils-14.0.0.tgz", + "integrity": "sha512-jWklGWWTFx+ZxMIisle6+0eyGVYqnarKpGwpgCitwWhGLoqTRIy2ChmqTX4ZPKfU3fq4g6Vqb1CXyga1GrHHnQ==", "dev": true, "dependencies": { "@babel/runtime": "^7.0.0", "fbjs": "^3.0.2", "invariant": "^2.2.4", - "relay-runtime": "13.0.2" + "relay-runtime": "14.0.0" } }, "node_modules/relay-test-utils-internal": { - "version": "13.0.2", - "resolved": "https://registry.npmjs.org/relay-test-utils-internal/-/relay-test-utils-internal-13.0.2.tgz", - "integrity": "sha512-IwqnbHbVYuakYzk6Xv8dkZZks1U7r2l8/3+04/RghX96QWk/FvATtta8FRfy5LXd9vStPJdTtQP92QpbT17mKw==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/relay-test-utils-internal/-/relay-test-utils-internal-14.0.0.tgz", + "integrity": "sha512-5WCMEVgtDpQGcN2+UQ/QYJ2LqRl1t3yyUuhBpW0UBJfJhXajbWy2Rpyke8TvKqg0coIzb2Jv3svuiWm7xCIBpA==", "dev": true, "dependencies": { "@babel/runtime": "^7.0.0", "fbjs": "^3.0.2", - "relay-runtime": "13.0.2" + "relay-runtime": "14.0.0" } }, "node_modules/relay-test-utils-internal/node_modules/fbjs": { @@ -32926,15 +32926,15 @@ "dev": true }, "relay-compiler": { - "version": "13.0.2", - "resolved": "https://registry.npmjs.org/relay-compiler/-/relay-compiler-13.0.2.tgz", - "integrity": "sha512-Gg/5FNj8gz03GRkG5KjMNpDB4nOeApDFZq+8CZehu3KkQQ+vNIurX6RiTY3UNUYvg5SX2A9DS5bq5iHJ8iEV3A==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/relay-compiler/-/relay-compiler-14.0.0.tgz", + "integrity": "sha512-1h4lwvHg5efhivqpMfG6SS4cGoCJH3BsRelihwD+GNiylBnLKArSE6zyW7LfEwSpuDfJ+l6rrRfSL8IVZwOZ0g==", "dev": true }, "relay-runtime": { - "version": "13.0.2", - "resolved": "https://registry.npmjs.org/relay-runtime/-/relay-runtime-13.0.2.tgz", - "integrity": "sha512-sP4lNGfFcOm7tQD12qlvwsiOREDgjkw4FQAjtemmtwivKOqI4qHAL22Ar62r5TPVlASn4iVWMk7rIdIJI20KGQ==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/relay-runtime/-/relay-runtime-14.0.0.tgz", + "integrity": "sha512-Rnf6EgCl3QY85il/gTEh6GHAR9hoRkjYWgMR2Y3Afugb8qLR0vL6m/GBYqol8W3L8B+XqZ2U04/g624DRpEqAw==", "dev": true, "requires": { "@babel/runtime": "^7.0.0", @@ -32966,15 +32966,15 @@ } }, "relay-test-utils": { - "version": "13.0.2", - "resolved": "https://registry.npmjs.org/relay-test-utils/-/relay-test-utils-13.0.2.tgz", - "integrity": "sha512-f88LTq+1UbFJBEKfmb35kiOyGTBRtQJo3plQj6koDhG1supLqB72CsDwRDilXXEaAMM3CExlyZ3AjKEgMPK3MA==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/relay-test-utils/-/relay-test-utils-14.0.0.tgz", + "integrity": "sha512-jWklGWWTFx+ZxMIisle6+0eyGVYqnarKpGwpgCitwWhGLoqTRIy2ChmqTX4ZPKfU3fq4g6Vqb1CXyga1GrHHnQ==", "dev": true, "requires": { "@babel/runtime": "^7.0.0", "fbjs": "^3.0.2", "invariant": "^2.2.4", - "relay-runtime": "13.0.2" + "relay-runtime": "14.0.0" }, "dependencies": { "fbjs": { @@ -33001,14 +33001,14 @@ } }, "relay-test-utils-internal": { - "version": "13.0.2", - "resolved": "https://registry.npmjs.org/relay-test-utils-internal/-/relay-test-utils-internal-13.0.2.tgz", - "integrity": "sha512-IwqnbHbVYuakYzk6Xv8dkZZks1U7r2l8/3+04/RghX96QWk/FvATtta8FRfy5LXd9vStPJdTtQP92QpbT17mKw==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/relay-test-utils-internal/-/relay-test-utils-internal-14.0.0.tgz", + "integrity": "sha512-5WCMEVgtDpQGcN2+UQ/QYJ2LqRl1t3yyUuhBpW0UBJfJhXajbWy2Rpyke8TvKqg0coIzb2Jv3svuiWm7xCIBpA==", "dev": true, "requires": { "@babel/runtime": "^7.0.0", "fbjs": "^3.0.2", - "relay-runtime": "13.0.2" + "relay-runtime": "14.0.0" }, "dependencies": { "fbjs": { diff --git a/package.json b/package.json index 9ed337ff..ea2d21fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "relay-hooks", - "version": "7.1.0", + "version": "7.2.0", "keywords": [ "graphql", "relay", @@ -52,7 +52,7 @@ }, "peerDependencies": { "react": "^16.9.0 || ^17 || ^18", - "relay-runtime": "^13.0.2" + "relay-runtime": "^13.0.2 || ^14.0.0" }, "devDependencies": { "babel-preset-fbjs": "^3.3.0", @@ -89,10 +89,10 @@ "promise-polyfill": "6.1.0", "react": "^18.0.0", "react-test-renderer": "^18.0.0", - "relay-compiler": "^13.0.2", - "relay-runtime": "^13.0.2", - "relay-test-utils": "^13.0.2", - "relay-test-utils-internal": "^13.0.2", + "relay-compiler": "^14.0.0", + "relay-runtime": "^14.0.0", + "relay-test-utils": "^14.0.0", + "relay-test-utils-internal": "^14.0.0", "rimraf": "^2.5.4", "rollup": "^2.23.0", "rollup-plugin-sourcemaps": "0.6.2",