relay-runtime 0.0.0-main-945b2878 → 0.0.0-main-18b0ca99

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-945b2878
2
+ * Relay v0.0.0-main-18b0ca99
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
@@ -176,7 +176,8 @@ function getLinkedRecordID(record, storageKey) {
176
176
 
177
177
 
178
178
  var link = maybeLink;
179
- !(typeof link === 'object' && link && typeof link[REF_KEY] === 'string') ? process.env.NODE_ENV !== "production" ? invariant(false, 'RelayModernRecord.getLinkedRecordID(): Expected `%s.%s` to be a linked ID, ' + 'was `%s`.%s', record[ID_KEY], storageKey, JSON.stringify(link), typeof link === 'object' && link[REFS_KEY] !== undefined ? ' It appears to be a plural linked record: did you mean to call ' + 'getLinkedRecords() instead of getLinkedRecord()?' : '') : invariant(false) : void 0;
179
+ !(typeof link === 'object' && link && typeof link[REF_KEY] === 'string') ? process.env.NODE_ENV !== "production" ? invariant(false, 'RelayModernRecord.getLinkedRecordID(): Expected `%s.%s` to be a linked ID, ' + 'was `%s`.%s', record[ID_KEY], storageKey, JSON.stringify(link), typeof link === 'object' && link[REFS_KEY] !== undefined ? ' It appears to be a plural linked record: did you mean to call ' + 'getLinkedRecords() instead of getLinkedRecord()?' : '') : invariant(false) : void 0; // $FlowFixMe[incompatible-return]
180
+
180
181
  return link[REF_KEY];
181
182
  }
182
183
  /**
@@ -572,7 +572,7 @@ var RelayReader = /*#__PURE__*/function () {
572
572
  }
573
573
 
574
574
  if (cachedSnapshot.missingLiveResolverFields != null) {
575
- this._isMissingData = cachedSnapshot.missingLiveResolverFields.length > 0;
575
+ this._isMissingData = this._isMissingData || cachedSnapshot.missingLiveResolverFields.length > 0;
576
576
 
577
577
  var _iterator2 = (0, _createForOfIteratorHelper2["default"])(cachedSnapshot.missingLiveResolverFields),
578
578
  _step2;
@@ -661,6 +661,7 @@ var RelayReader = /*#__PURE__*/function () {
661
661
  // Client objects might use ids that are not gobally unique and instead are just
662
662
  // local within their type. ResolverCache will derive a namespaced ID for us.
663
663
  if (field.linkedField.plural) {
664
+ // $FlowFixMe[prop-missing]
664
665
  destinationDataID = destinationDataID.map(function (id) {
665
666
  return _this2._resolverCache.ensureClientRecord(id, field.concreteType);
666
667
  });
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-945b2878",
4
+ "version": "0.0.0-main-18b0ca99",
5
5
  "keywords": [
6
6
  "graphql",
7
7
  "relay"