relay-runtime 0.0.0-main-72cfddf8 → 0.0.0-main-e7bcc36d

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/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Relay v0.0.0-main-72cfddf8
2
+ * Relay v0.0.0-main-e7bcc36d
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
@@ -21,6 +21,7 @@ function convertFetch(fn) {
21
21
  var result = fn(request, variables, cacheConfig, uploadables, logRequestInfo); // Note: We allow FetchFunction to directly return Error to indicate
22
22
  // a failure to fetch. To avoid handling this special case throughout the
23
23
  // Relay codebase, it is explicitly handled here.
24
+ // $FlowFixMe[incompatible-type]
24
25
 
25
26
  if (result instanceof Error) {
26
27
  return RelayObservable.create(function (sink) {
@@ -21,6 +21,8 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
21
21
  var _require = require('../util/RelayConcreteNode'),
22
22
  ACTOR_CHANGE = _require.ACTOR_CHANGE,
23
23
  CLIENT_EDGE = _require.CLIENT_EDGE,
24
+ CLIENT_EDGE_TO_CLIENT_OBJECT = _require.CLIENT_EDGE_TO_CLIENT_OBJECT,
25
+ CLIENT_EDGE_TO_SERVER_OBJECT = _require.CLIENT_EDGE_TO_SERVER_OBJECT,
24
26
  CLIENT_EXTENSION = _require.CLIENT_EXTENSION,
25
27
  CONDITION = _require.CONDITION,
26
28
  DEFER = _require.DEFER,
@@ -454,7 +456,11 @@ var RelayReader = /*#__PURE__*/function () {
454
456
 
455
457
  break;
456
458
 
459
+ case CLIENT_EDGE_TO_CLIENT_OBJECT:
460
+ throw new Error('Client edges to client objects are not yet supported.');
461
+
457
462
  case CLIENT_EDGE:
463
+ case CLIENT_EDGE_TO_SERVER_OBJECT:
458
464
  if (RelayFeatureFlags.ENABLE_CLIENT_EDGES) {
459
465
  this._readClientEdge(selection, record, data);
460
466
  } else {
@@ -28,6 +28,9 @@ var RelayConcreteNode = {
28
28
  CONDITION: 'Condition',
29
29
  CLIENT_COMPONENT: 'ClientComponent',
30
30
  CLIENT_EDGE: 'ClientEdge',
31
+ // Legacy
32
+ CLIENT_EDGE_TO_SERVER_OBJECT: 'ClientEdgeToServerObject',
33
+ CLIENT_EDGE_TO_CLIENT_OBJECT: 'ClientEdgeToClientObject',
31
34
  CLIENT_EXTENSION: 'ClientExtension',
32
35
  DEFER: 'Defer',
33
36
  CONNECTION: 'Connection',
@@ -37,6 +37,7 @@ function convertFetch(fn: FetchFunction): ExecuteFunction {
37
37
  // Note: We allow FetchFunction to directly return Error to indicate
38
38
  // a failure to fetch. To avoid handling this special case throughout the
39
39
  // Relay codebase, it is explicitly handled here.
40
+ // $FlowFixMe[incompatible-type]
40
41
  if (result instanceof Error) {
41
42
  return RelayObservable.create(sink => sink.error(result));
42
43
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "relay-runtime",
3
3
  "description": "A core runtime for building GraphQL-driven applications.",
4
- "version": "0.0.0-main-72cfddf8",
4
+ "version": "0.0.0-main-e7bcc36d",
5
5
  "keywords": [
6
6
  "graphql",
7
7
  "relay"