rescript-relay 3.0.0-alpha.5 → 3.0.0-rc.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
@@ -4,6 +4,15 @@
4
4
 
5
5
  # **Version 3**
6
6
 
7
+ # 3.0.0-rc.1
8
+
9
+ - Get rid of functor for creating `loadQuery`.
10
+ - Support for the `@preloadable` directive
11
+
12
+ # 3.0.0-rc.0
13
+
14
+ - First RC version.
15
+
7
16
  # 3.0.0-alpha.5
8
17
 
9
18
  ## Improvements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rescript-relay",
3
- "version": "3.0.0-alpha.5",
3
+ "version": "3.0.0-rc.1",
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
@@ -804,6 +804,16 @@ type fetchQueryOptions = {
804
804
  fetchPolicy?: fetchPolicy,
805
805
  }
806
806
 
807
+ type loadQueryConfig = {
808
+ fetchKey: option<string>,
809
+ fetchPolicy: option<fetchPolicy>,
810
+ networkCacheConfig: option<cacheConfig>,
811
+ }
812
+
813
+ @module("react-relay")
814
+ external loadQuery: (Environment.t, queryNode<'a>, 'variables, loadQueryConfig) => 'queryResponse =
815
+ "loadQuery"
816
+
807
817
  module type MakeLoadQueryConfig = {
808
818
  type variables
809
819
  type loadedQueryRef