rescript-relay 1.2.0 → 1.2.2

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,21 @@
1
1
  # master
2
2
 
3
+ # 1.2.2
4
+
5
+ ## Improvements
6
+
7
+ - Local enums (schema extensions) are now always emitted as input enums (without requiring decoding), since they can assumed to be safe as they're local only.
8
+
9
+ ## Bug fix
10
+
11
+ - Emit `getConnectionNodes` also for plural fragments.
12
+
13
+ # 1.2.1
14
+
15
+ ## Bug fix
16
+
17
+ - Proper import for `useBlockingPagination`. https://github.com/zth/rescript-relay/pull/459
18
+
3
19
  # 1.2.0
4
20
 
5
21
  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.2",
4
4
  "main": "src/RescriptRelay.res",
5
5
  "license": "MIT",
6
6
  "author": "Gabriel Nordeborn",
Binary file
Binary file
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 \