rescript-relay 1.0.0-rc.3 → 1.0.0-rc.5

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-rc.3
3
+ # 1.0.0-rc.5
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
 
@@ -47,6 +47,15 @@ You can go ahead and remove these packages, that are no longer needed, as the co
47
47
 
48
48
  ## 1.0.0 development changelog
49
49
 
50
+ ### rc.5
51
+
52
+ - Fix compat with `rescript@10.1.0-alpha.1`.
53
+
54
+ ### rc.4
55
+
56
+ - _potentially breaking_ All enum type definitions now reside in `RelaySchemaAssets_graphql.enum_<yourEnumName>`, and are _not_ generated on the operation itself anymore. So, if you previously referred to the actual enum _type_, like `Fragment.Types.enum_MyFineEnum`, you'll now need to refer to that enum type as `RelaySchemaAssets_graphql.enum_MyFineEnum`.
57
+ - Fix bug in the new type safe connection ID makers where different types could end up in the same array, yielding type errors in ReScript.
58
+
50
59
  ### rc.3
51
60
 
52
61
  - Fix bug in the new type safe connection ID makers where constant value `null` couldn't be used.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rescript-relay",
3
- "version": "1.0.0-rc.3",
3
+ "version": "1.0.0-rc.5",
4
4
  "main": "src/RescriptRelay.res",
5
5
  "license": "MIT",
6
6
  "author": "Gabriel Nordeborn",
package/ppx-linux CHANGED
Binary file
package/ppx-macos-latest CHANGED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -573,8 +573,8 @@ module Store = {
573
573
  make(
574
574
  source,
575
575
  {
576
- gcReleaseBufferSize: gcReleaseBufferSize,
577
- queryCacheExpirationTime: queryCacheExpirationTime,
576
+ gcReleaseBufferSize,
577
+ queryCacheExpirationTime,
578
578
  },
579
579
  )
580
580
 
@@ -751,9 +751,9 @@ module MakeLoadQuery = (C: MakeLoadQueryConfig) => {
751
751
  C.query,
752
752
  variables->C.convertVariables,
753
753
  {
754
- fetchKey: fetchKey,
754
+ fetchKey,
755
755
  fetchPolicy: fetchPolicy->mapFetchPolicy,
756
- networkCacheConfig: networkCacheConfig,
756
+ networkCacheConfig,
757
757
  },
758
758
  )
759
759
 
@@ -770,10 +770,8 @@ module MakeLoadQuery = (C: MakeLoadQueryConfig) => {
770
770
  switch token->queryRefToObservable {
771
771
  | None => resolve(. Error())
772
772
  | Some(o) =>
773
- let _: Observable.subscription = o->{
774
- open Observable
775
- subscribe(makeObserver(~complete=() => resolve(. Ok()), ()))
776
- }
773
+ open Observable
774
+ let _: subscription = o->subscribe(makeObserver(~complete=() => resolve(. Ok()), ()))
777
775
  }
778
776
  })
779
777
  }
@@ -33,3 +33,5 @@ let internal_nullableToOptionalExnHandler = x =>
33
33
  | None => None
34
34
  | Some(handler) => Some(maybeExn => maybeExn->Js.Nullable.toOption->handler)
35
35
  }
36
+
37
+ @live @unboxed type rec arg = Arg(_): arg
@@ -4,3 +4,4 @@ let internal_removeUndefinedAndConvertNullsRaw: 't => 't
4
4
  let internal_nullableToOptionalExnHandler: option<option<'b> => 'a> => option<
5
5
  Js.Nullable.t<'b> => 'a,
6
6
  >
7
+ @live @unboxed type rec arg = Arg(_): arg