@graphitation/apollo-react-relay-duct-tape 0.8.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintcache CHANGED
@@ -1 +1 @@
1
- [{"/mnt/vss/_work/1/s/packages/apollo-react-relay-duct-tape/src/__tests__/hooks.test.tsx":"1","/mnt/vss/_work/1/s/packages/apollo-react-relay-duct-tape/src/hooks.ts":"2","/mnt/vss/_work/1/s/packages/apollo-react-relay-duct-tape/src/index.ts":"3","/mnt/vss/_work/1/s/packages/apollo-react-relay-duct-tape/src/types.ts":"4"},{"size":10125,"mtime":1678715625060,"results":"5","hashOfConfig":"6"},{"size":10318,"mtime":1678715625060,"results":"7","hashOfConfig":"6"},{"size":50,"mtime":1678715625060,"results":"8","hashOfConfig":"6"},{"size":1353,"mtime":1678715625060,"results":"9","hashOfConfig":"6"},{"filePath":"10","messages":"11","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"dgh5fu",{"filePath":"12","messages":"13","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"14","messages":"15","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"16","messages":"17","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/mnt/vss/_work/1/s/packages/apollo-react-relay-duct-tape/src/__tests__/hooks.test.tsx",[],"/mnt/vss/_work/1/s/packages/apollo-react-relay-duct-tape/src/hooks.ts",[],"/mnt/vss/_work/1/s/packages/apollo-react-relay-duct-tape/src/index.ts",[],"/mnt/vss/_work/1/s/packages/apollo-react-relay-duct-tape/src/types.ts",[]]
1
+ [{"/mnt/vss/_work/1/s/packages/apollo-react-relay-duct-tape/src/__tests__/hooks.test.tsx":"1","/mnt/vss/_work/1/s/packages/apollo-react-relay-duct-tape/src/hooks.ts":"2","/mnt/vss/_work/1/s/packages/apollo-react-relay-duct-tape/src/index.ts":"3","/mnt/vss/_work/1/s/packages/apollo-react-relay-duct-tape/src/types.ts":"4"},{"size":10735,"mtime":1681999477119,"results":"5","hashOfConfig":"6"},{"size":11118,"mtime":1681999477119,"results":"7","hashOfConfig":"6"},{"size":50,"mtime":1681999477119,"results":"8","hashOfConfig":"6"},{"size":1438,"mtime":1681999477119,"results":"9","hashOfConfig":"6"},{"filePath":"10","messages":"11","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1viti9w",{"filePath":"12","messages":"13","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"14","messages":"15","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"16","messages":"17","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/mnt/vss/_work/1/s/packages/apollo-react-relay-duct-tape/src/__tests__/hooks.test.tsx",[],"/mnt/vss/_work/1/s/packages/apollo-react-relay-duct-tape/src/hooks.ts",[],"/mnt/vss/_work/1/s/packages/apollo-react-relay-duct-tape/src/index.ts",[],"/mnt/vss/_work/1/s/packages/apollo-react-relay-duct-tape/src/types.ts",[]]
package/CHANGELOG.md CHANGED
@@ -1,12 +1,30 @@
1
1
  # Change Log - @graphitation/apollo-react-relay-duct-tape
2
2
 
3
- This log was last generated on Mon, 13 Mar 2023 14:00:36 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 20 Apr 2023 14:11:50 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.9.0
8
+
9
+ Thu, 20 Apr 2023 14:11:50 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - support context in duct tape hooks (52814187+ira-kaundal@users.noreply.github.com)
14
+ - Bump @graphitation/apollo-mock-client to v0.11.0
15
+
16
+ ## 0.8.3
17
+
18
+ Tue, 18 Apr 2023 13:36:20 GMT
19
+
20
+ ### Patches
21
+
22
+ - Bump @graphitation/apollo-mock-client to v0.10.17
23
+ - Bump @graphitation/graphql-js-operation-payload-generator to v0.12.2
24
+
7
25
  ## 0.8.2
8
26
 
9
- Mon, 13 Mar 2023 14:00:36 GMT
27
+ Mon, 13 Mar 2023 14:00:55 GMT
10
28
 
11
29
  ### Patches
12
30
 
package/lib/hooks.d.ts CHANGED
@@ -44,10 +44,13 @@ export declare type GraphQLTaggedNode = DocumentNode;
44
44
  * @param variables Object containing the variable values to fetch the query. These variables need to match GraphQL
45
45
  * variables declared inside the query.
46
46
  * @param options Options passed on to the underlying implementation.
47
+ * @param options.context The query context to pass along the apollo link chain. Should be avoided when possible as
48
+ * it will not be compatible with Relay APIs.
47
49
  * @returns An object with either an error, the result data, or neither while loading.
48
50
  */
49
51
  export declare function useLazyLoadQuery<TQuery extends OperationType>(query: GraphQLTaggedNode, variables: TQuery["variables"], options?: {
50
- fetchPolicy: "cache-first";
52
+ fetchPolicy?: "cache-first";
53
+ context?: TQuery["context"];
51
54
  }): {
52
55
  error?: Error;
53
56
  data?: TQuery["response"];
@@ -120,6 +123,10 @@ export declare function useFragment<TKey extends KeyType>(_fragmentInput: GraphQ
120
123
  interface GraphQLSubscriptionConfig<TSubscriptionPayload extends OperationType> {
121
124
  subscription: GraphQLTaggedNode;
122
125
  variables: TSubscriptionPayload["variables"];
126
+ /**
127
+ * Should be avoided when possible as it will not be compatible with Relay APIs.
128
+ */
129
+ context?: TSubscriptionPayload["context"];
123
130
  /**
124
131
  * Should response be nullable?
125
132
  */
@@ -129,6 +136,10 @@ interface GraphQLSubscriptionConfig<TSubscriptionPayload extends OperationType>
129
136
  export declare function useSubscription<TSubscriptionPayload extends OperationType>(config: GraphQLSubscriptionConfig<TSubscriptionPayload>): void;
130
137
  interface IMutationCommitterOptions<TMutationPayload extends OperationType> {
131
138
  variables: TMutationPayload["variables"];
139
+ /**
140
+ * Should be avoided when possible as it will not be compatible with Relay APIs.
141
+ */
142
+ context?: TMutationPayload["context"];
132
143
  optimisticResponse?: Partial<TMutationPayload["response"]> | null;
133
144
  }
134
145
  declare type MutationCommiter<TMutationPayload extends OperationType> = (options: IMutationCommitterOptions<TMutationPayload>) => Promise<{
@@ -146,6 +157,8 @@ declare type MutationCommiter<TMutationPayload extends OperationType> = (options
146
157
  * commitMutationFn
147
158
  * @param options.variables map of variables to pass to mutation
148
159
  * @param options.optimisticResponse proposed response to apply to the store while mutation is in flight
160
+ * @param options.context mutation context to pass along the apollo link chain. Should be avoided when possible as
161
+ * it will not be compatible with Relay APIs.
149
162
  * @returns A Promise to an object with either errors or/and the result data
150
163
  *
151
164
  * Example
@@ -176,6 +189,9 @@ declare type MutationCommiter<TMutationPayload extends OperationType> = (options
176
189
  newName: "foo",
177
190
  }
178
191
  }
192
+ context: {
193
+ callerInfo: "SomeReactComponent"
194
+ }
179
195
  })} disabled={isInFlight}/>
180
196
  </div>
181
197
  );
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAWvC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAa,MAAM,SAAS,CAAC;AAEzE,oBAAY,iBAAiB,GAAG,YAAY,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,SAAS,aAAa,EAC3D,KAAK,EAAE,iBAAiB,EACxB,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC,EAC9B,OAAO,CAAC,EAAE;IAAE,WAAW,EAAE,aAAa,CAAA;CAAE,GACvC;IAAE,KAAK,CAAC,EAAE,KAAK,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC,CAAA;CAAE,CAE9C;AAED;;;;;;;;;;;;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E,KAAK,KAAK,IAAI,CAAC;CAClC;AAED,wBAAgB,eAAe,CAAC,oBAAoB,SAAS,aAAa,EACxE,MAAM,EAAE,yBAAyB,CAAC,oBAAoB,CAAC,GACtD,IAAI,CA4BN;AAED,UAAU,yBAAyB,CAAC,gBAAgB,SAAS,aAAa;IACxE,SAAS,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACzC;;OAEG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IACtC,kBAAkB,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,GAAG,IAAI,CAAC;CACnE;AAED,aAAK,gBAAgB,CAAC,gBAAgB,SAAS,aAAa,IAAI,CAC9D,OAAO,EAAE,yBAAyB,CAAC,gBAAgB,CAAC,KACjD,OAAO,CAAC;IAAE,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAA;CAAE,CAAC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,wBAAgB,WAAW,CAAC,gBAAgB,SAAS,aAAa,EAChE,QAAQ,EAAE,iBAAiB,GAC1B,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC,CAuB/C"}
package/lib/hooks.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -30,7 +31,14 @@ var __copyProps = (to, from, except, desc) => {
30
31
  }
31
32
  return to;
32
33
  };
33
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
34
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
35
+ // If the importer is in node compatibility mode or this is not an ESM
36
+ // file that has been converted to a CommonJS file using a Babel-
37
+ // compatible transform (i.e. "__esModule" has not been set), then set
38
+ // "default" to the CommonJS "module.exports" for node compatibility.
39
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
40
+ mod
41
+ ));
34
42
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
43
  var __async = (__this, __arguments, generator) => {
36
44
  return new Promise((resolve, reject) => {
@@ -71,8 +79,12 @@ function useFragment(_fragmentInput, fragmentRef) {
71
79
  function useSubscription(config) {
72
80
  const { error } = (0, import_client.useSubscription)(config.subscription, {
73
81
  variables: config.variables,
82
+ context: config.context,
74
83
  onSubscriptionData: ({ subscriptionData }) => {
75
- (0, import_invariant.default)(!subscriptionData.error, "Did not expect to receive an error here");
84
+ (0, import_invariant.default)(
85
+ !subscriptionData.error,
86
+ "Did not expect to receive an error here"
87
+ );
76
88
  if (subscriptionData.data && config.onNext) {
77
89
  config.onNext(subscriptionData.data);
78
90
  }
@@ -83,7 +95,9 @@ function useSubscription(config) {
83
95
  if (config.onError) {
84
96
  config.onError(error);
85
97
  } else {
86
- console.warn(`An unhandled GraphQL subscription error occurred: ${error.message}`);
98
+ console.warn(
99
+ `An unhandled GraphQL subscription error occurred: ${error.message}`
100
+ );
87
101
  }
88
102
  }
89
103
  }
@@ -93,6 +107,7 @@ function useMutation(mutation) {
93
107
  (options) => __async(this, null, function* () {
94
108
  const apolloResult = yield apolloUpdater({
95
109
  variables: options.variables || {},
110
+ context: options.context,
96
111
  optimisticResponse: options.optimisticResponse
97
112
  });
98
113
  if (apolloResult.errors) {
package/lib/hooks.mjs CHANGED
@@ -51,8 +51,12 @@ function useFragment(_fragmentInput, fragmentRef) {
51
51
  function useSubscription(config) {
52
52
  const { error } = useApolloSubscription(config.subscription, {
53
53
  variables: config.variables,
54
+ context: config.context,
54
55
  onSubscriptionData: ({ subscriptionData }) => {
55
- invariant(!subscriptionData.error, "Did not expect to receive an error here");
56
+ invariant(
57
+ !subscriptionData.error,
58
+ "Did not expect to receive an error here"
59
+ );
56
60
  if (subscriptionData.data && config.onNext) {
57
61
  config.onNext(subscriptionData.data);
58
62
  }
@@ -63,7 +67,9 @@ function useSubscription(config) {
63
67
  if (config.onError) {
64
68
  config.onError(error);
65
69
  } else {
66
- console.warn(`An unhandled GraphQL subscription error occurred: ${error.message}`);
70
+ console.warn(
71
+ `An unhandled GraphQL subscription error occurred: ${error.message}`
72
+ );
67
73
  }
68
74
  }
69
75
  }
@@ -73,6 +79,7 @@ function useMutation(mutation) {
73
79
  (options) => __async(this, null, function* () {
74
80
  const apolloResult = yield apolloUpdater({
75
81
  variables: options.variables || {},
82
+ context: options.context,
76
83
  optimisticResponse: options.optimisticResponse
77
84
  });
78
85
  if (apolloResult.errors) {
package/lib/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
package/lib/types.d.ts CHANGED
@@ -1,8 +1,12 @@
1
1
  export interface Variables {
2
2
  [name: string]: any;
3
3
  }
4
+ export interface Context {
5
+ [name: string]: any;
6
+ }
4
7
  export interface OperationType {
5
8
  readonly variables: Variables;
9
+ readonly context?: Context;
6
10
  readonly response: unknown;
7
11
  readonly rawResponse?: unknown;
8
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC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,oBAAY,gBAAgB,CAC1B,IAAI,SAAS,YAAY,CAAC,KAAK,CAAC,EAChC,KAAK,GAAG,OAAO,IACb,WAAW,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC"}
package/lib/types.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphitation/apollo-react-relay-duct-tape",
3
3
  "description": "A compatibility wrapper that provides the react-relay API on top of Apollo Client.",
4
4
  "license": "MIT",
5
- "version": "0.8.2",
5
+ "version": "0.9.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/microsoft/graphitation.git",
@@ -19,8 +19,8 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@apollo/client": "^3.3.15",
22
- "@graphitation/apollo-mock-client": "^0.10.16",
23
- "@graphitation/graphql-js-operation-payload-generator": "^0.12.1",
22
+ "@graphitation/apollo-mock-client": "^0.11.0",
23
+ "@graphitation/graphql-js-operation-payload-generator": "^0.12.2",
24
24
  "@graphitation/graphql-js-tag": "^0.9.0",
25
25
  "@types/jest": "^26.0.22",
26
26
  "@types/react": "^17.0.3",