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 +10 -1
- package/package.json +1 -1
- package/ppx-linux +0 -0
- package/ppx-macos-latest +0 -0
- package/ppx-windows-latest +0 -0
- package/relay-compiler-linux-musl/relay +0 -0
- package/relay-compiler-linux-x64/relay +0 -0
- package/relay-compiler-macos-arm64/relay +0 -0
- package/relay-compiler-macos-x64/relay +0 -0
- package/relay-compiler-win-x64/relay.exe +0 -0
- package/src/RescriptRelay.res +6 -8
- package/src/RescriptRelay_Internal.res +2 -0
- package/src/RescriptRelay_Internal.resi +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# master
|
|
2
2
|
|
|
3
|
-
# 1.0.0-rc.
|
|
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
package/ppx-linux
CHANGED
|
Binary file
|
package/ppx-macos-latest
CHANGED
|
Binary file
|
package/ppx-windows-latest
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/RescriptRelay.res
CHANGED
|
@@ -573,8 +573,8 @@ module Store = {
|
|
|
573
573
|
make(
|
|
574
574
|
source,
|
|
575
575
|
{
|
|
576
|
-
gcReleaseBufferSize
|
|
577
|
-
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
|
|
754
|
+
fetchKey,
|
|
755
755
|
fetchPolicy: fetchPolicy->mapFetchPolicy,
|
|
756
|
-
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
|
-
|
|
774
|
-
|
|
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
|
}
|