relay-runtime 0.0.0-main-0298eecb → 0.0.0-main-8be0df84

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/experimental.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Relay v0.0.0-main-0298eecb
2
+ * Relay v0.0.0-main-8be0df84
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Relay v0.0.0-main-0298eecb
2
+ * Relay v0.0.0-main-8be0df84
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
@@ -484,9 +484,13 @@ var Executor = /*#__PURE__*/function () {
484
484
  variables = followupPayload.variables;
485
485
  }
486
486
  var selector = createNormalizationSelector(normalizationNode, followupPayload.dataID, variables);
487
- return this._normalizeResponse({
488
- data: followupPayload.data
489
- }, selector, followupPayload.typeName, {
487
+ var nextResponse = {
488
+ data: followupPayload.data,
489
+ extensions: this._state === 'loading_final' ? {
490
+ is_final: true
491
+ } : undefined
492
+ };
493
+ return this._normalizeResponse(nextResponse, selector, followupPayload.typeName, {
490
494
  actorIdentifier: this._actorIdentifier,
491
495
  getDataID: this._getDataID,
492
496
  log: this._log,
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-0298eecb",
4
+ "version": "0.0.0-main-8be0df84",
5
5
  "keywords": [
6
6
  "graphql",
7
7
  "relay"
@@ -750,8 +750,15 @@ class Executor<TMutation: MutationParameters> {
750
750
  followupPayload.dataID,
751
751
  variables,
752
752
  );
753
+ const nextResponse: GraphQLResponseWithData = {
754
+ data: followupPayload.data,
755
+ // `is_final` flag needs to be set for processing nested defer and 3D
756
+ // when the server doesn't support streaming
757
+ extensions:
758
+ this._state === 'loading_final' ? {is_final: true} : undefined,
759
+ };
753
760
  return this._normalizeResponse(
754
- {data: followupPayload.data},
761
+ nextResponse,
755
762
  selector,
756
763
  followupPayload.typeName,
757
764
  {