react-relay 0.0.0-main-cb60dbd1 → 0.0.0-main-ac292aed

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Relay v0.0.0-main-cb60dbd1
2
+ * Relay v0.0.0-main-ac292aed
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
@@ -30,8 +30,8 @@ function getRootVariablesForFragments<TProps: {...}>(
30
30
  const selector = getSelector(fragmentNode, fragmentRef);
31
31
  const fragmentOwnerVariables =
32
32
  selector != null && selector.kind === 'PluralReaderSelector'
33
- ? selector.selectors[0]?.owner.variables ?? {}
34
- : selector?.owner.variables ?? {};
33
+ ? (selector.selectors[0]?.owner.variables ?? {})
34
+ : (selector?.owner.variables ?? {});
35
35
  /* $FlowFixMe[incompatible-indexer] Natural Inference rollout. See
36
36
  * https://fburl.com/gdoc/y8dn025u */
37
37
  rootVariables = {
package/hooks.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Relay v0.0.0-main-cb60dbd1
2
+ * Relay v0.0.0-main-ac292aed
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-cb60dbd1
2
+ * Relay v0.0.0-main-ac292aed
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
package/legacy.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Relay v0.0.0-main-cb60dbd1
2
+ * Relay v0.0.0-main-ac292aed
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-relay",
3
3
  "description": "A framework for building GraphQL-driven React applications.",
4
- "version": "0.0.0-main-cb60dbd1",
4
+ "version": "0.0.0-main-ac292aed",
5
5
  "keywords": [
6
6
  "graphql",
7
7
  "relay",
@@ -20,7 +20,7 @@
20
20
  "fbjs": "^3.0.2",
21
21
  "invariant": "^2.2.4",
22
22
  "nullthrows": "^1.1.1",
23
- "relay-runtime": "0.0.0-main-cb60dbd1"
23
+ "relay-runtime": "0.0.0-main-ac292aed"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "react": "^16.9.0 || ^17 || ^18 || ^19"
@@ -73,8 +73,8 @@ function getConnectionState(
73
73
 
74
74
  const cursor =
75
75
  direction === 'forward'
76
- ? pageInfo[END_CURSOR] ?? null
77
- : pageInfo[START_CURSOR] ?? null;
76
+ ? (pageInfo[END_CURSOR] ?? null)
77
+ : (pageInfo[START_CURSOR] ?? null);
78
78
  invariant(
79
79
  cursor === null || typeof cursor === 'string',
80
80
  'Relay: Expected page info for connection in fragment `%s` to have a ' +