rescript-relay 1.0.0-beta.21 → 1.0.0-beta.22

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,6 +1,6 @@
1
1
  # master
2
2
 
3
- # 1.0.0-beta.21
3
+ # 1.0.0-beta.22
4
4
 
5
5
  _[Here's a commit showing a project being upgraded to this version](https://github.com/zth/rescript-relay/commit/5831c2f1f0f13eedc1cb60468c32fd32b2dc01d3)_
6
6
 
@@ -49,6 +49,11 @@ You can go ahead and remove these packages, that are no longer needed, as the co
49
49
 
50
50
  ### unreleased
51
51
 
52
+ ### beta.22
53
+
54
+ - Fix locations for `%relay.deferredComponent` so jump-to-definition, hover etc works as expected (pointing to the dynamically imported module rather than what the PPX produces).
55
+ - Add links for `Operation` module in `Query`, `Mutation`, `Subscription` and `Fragment` ([XiNiHa](https://github.com/XiNiHa))
56
+
52
57
  ### beta.21
53
58
 
54
59
  - Support formatting commented out operations in the CLI ([reck753](https://github.com/reck753)).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rescript-relay",
3
- "version": "1.0.0-beta.21",
3
+ "version": "1.0.0-beta.22",
4
4
  "main": "src/RescriptRelay.res",
5
5
  "license": "MIT",
6
6
  "author": "Gabriel Nordeborn",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@rescript/react": "*",
57
- "react-relay": "*",
57
+ "react-relay": "=>11.0.0",
58
58
  "relay-runtime": "*",
59
59
  "rescript": "^9.1.2"
60
60
  },
package/ppx-darwin CHANGED
Binary file
package/ppx-linux CHANGED
Binary file
Binary file
Binary file
@@ -10,7 +10,6 @@ var Caml_option = require("rescript/lib/js/caml_option.js");
10
10
  var ReactRelay = require("react-relay");
11
11
  var RelayRuntime = require("relay-runtime");
12
12
  var Caml_exceptions = require("rescript/lib/js/caml_exceptions.js");
13
- var Hooks = require("react-relay/hooks");
14
13
 
15
14
  function convertObj(prim0, prim1, prim2, prim3) {
16
15
  return Utils.traverser(prim0, prim1, prim2, prim3);
@@ -218,7 +217,7 @@ function mapFetchQueryFetchPolicy(x) {
218
217
 
219
218
  function MakeLoadQuery(C) {
220
219
  var load = function (environment, variables, fetchPolicy, fetchKey, networkCacheConfig, param) {
221
- return Hooks.loadQuery(environment, C.query, Curry._1(C.convertVariables, variables), {
220
+ return ReactRelay.loadQuery(environment, C.query, Curry._1(C.convertVariables, variables), {
222
221
  fetchKey: fetchKey,
223
222
  fetchPolicy: mapFetchPolicy(fetchPolicy),
224
223
  networkCacheConfig: networkCacheConfig
@@ -703,7 +703,7 @@ type loadQueryConfig = {
703
703
  networkCacheConfig: option<cacheConfig>,
704
704
  }
705
705
 
706
- @module("react-relay/hooks")
706
+ @module("react-relay")
707
707
  external loadQuery: (Environment.t, queryNode<'a>, 'variables, loadQueryConfig) => 'queryResponse =
708
708
  "loadQuery"
709
709
 
@@ -775,6 +775,6 @@ external commitLocalUpdate: (
775
775
  ~updater: RecordSourceSelectorProxy.t => unit,
776
776
  ) => unit = "commitLocalUpdate"
777
777
 
778
- @module("react-relay/hooks")
778
+ @module("react-relay")
779
779
  external useSubscribeToInvalidationState: (array<dataId>, unit => unit) => Disposable.t =
780
780
  "useSubscribeToInvalidationState"
@@ -891,7 +891,7 @@ external commitLocalUpdate: (
891
891
  @ocaml.doc(
892
892
  "Allows you to subscribe to when a record, connection, or even the store itself is invalidated, and then react to that."
893
893
  )
894
- @module("react-relay/hooks")
894
+ @module("react-relay")
895
895
  external useSubscribeToInvalidationState: (array<dataId>, unit => unit) => Disposable.t =
896
896
  "useSubscribeToInvalidationState"
897
897