rescript-relay 1.2.0 → 1.2.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # master
2
2
 
3
+ # 1.2.1
4
+
5
+ ## Bug fix
6
+
7
+ - Proper import for `useBlockingPagination`. https://github.com/zth/rescript-relay/pull/459
8
+
3
9
  # 1.2.0
4
10
 
5
11
  This release mainly makes preparations under the hood for the upcoming `2.0` (ReScript v11 + uncurried mode support) and `3.0` (lots of changes, full uncurried mode only).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rescript-relay",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "main": "src/RescriptRelay.res",
5
5
  "license": "MIT",
6
6
  "author": "Gabriel Nordeborn",
Binary file
Binary file
Binary file
Binary file
@@ -7,6 +7,7 @@ var Caml_option = require("rescript/lib/js/caml_option.js");
7
7
  var ReactRelay = require("react-relay");
8
8
  var RescriptRelay = require("./RescriptRelay.bs.js");
9
9
  var RescriptRelay_Internal = require("./RescriptRelay_Internal.bs.js");
10
+ var UseBlockingPaginationFragment = require("react-relay/lib/relay-hooks/useBlockingPaginationFragment").default;
10
11
 
11
12
  function useFragment(node, convertFragment, fRef) {
12
13
  return RescriptRelay_Internal.internal_useConvertedValue(convertFragment, ReactRelay.useFragment(node, fRef));
@@ -65,7 +66,7 @@ function usePaginationFragment(node, fRef, convertFragment, convertRefetchVariab
65
66
  }
66
67
 
67
68
  function useBlockingPaginationFragment(node, fRef, convertFragment, convertRefetchVariables) {
68
- var p = ReactRelay.useBlockingPaginationFragment(node, fRef);
69
+ var p = UseBlockingPaginationFragment(node, fRef);
69
70
  var data = RescriptRelay_Internal.internal_useConvertedValue(convertFragment, p.data);
70
71
  return {
71
72
  data: data,
@@ -154,11 +154,11 @@ let usePaginationFragment = (
154
154
  }
155
155
  }
156
156
 
157
- @module("react-relay")
157
+ @module("react-relay/lib/relay-hooks/useBlockingPaginationFragment")
158
158
  external useBlockingPaginationFragment_: (
159
159
  fragmentNode<'node>,
160
160
  'fragmentRef,
161
- ) => paginationFragmentReturnRaw<'fragment, 'refetchVariables> = "useBlockingPaginationFragment"
161
+ ) => paginationFragmentReturnRaw<'fragment, 'refetchVariables> = "default"
162
162
 
163
163
  /** Like `Fragment.usePagination`, but calling the \
164
164
  pagination function will trigger suspense. Useful for \