Skip to content

Commit 55625bc

Browse files
authored
✨ - Make compatible with ReScript 11 (#380)
1 parent 1cbfe83 commit 55625bc

33 files changed

+6388
-2489
lines changed

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
.merlin
33
.bsb.lock
44
npm-debug.log
5-
/lib/bs/
6-
/lib/ocaml/
5+
/lib
76
/node_modules/
8-
*.bs.js
7+
*.res.mjs
98
example/build/
109
.graphql_ppx_cache
1110
/.vscode/

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [master] - 2024-04-15
9+
10+
Given that Wonka has been converted to typescript, we don't rely on the Reason version. (ReScript 11 also doesn't support Reason syntax anymore). This has been replaced with the Wonka module that just binds to JavaScript. We had to depend on the GitHub version of @glennsl/rescript-fetch, but we fix that once it's released on NPM. Also note that we are not supporting uncurried mode yet, given that graphql-ppx doesn't support it yet, it's not relevant yet. But we will fix it once we are able to!
11+
812
## [4.0.0] - 2021-03-21
913

1014
This release adds support for several major version upgrades of dependencies, including:
@@ -258,8 +262,8 @@ let subscription = Client.executeQuery(~query, ~requestPolicy=`CacheFirst, ~poll
258262
```reason
259263
type t =
260264
exchangeInput =>
261-
(. Wonka.Types.sourceT(UrqlClientTypes.operation)) =>
262-
Wonka.Types.sourceT(UrqlClientTypes.operationResult);
265+
(. Wonka.Source.t(UrqlClientTypes.operation)) =>
266+
Wonka.Source.t(UrqlClientTypes.operationResult);
263267
```
264268

265269
- Local binding of `graphQLError` is now a record type rather than a `[@bs.deriving abstract]` and has its own module `GraphQLError`.

0 commit comments

Comments
 (0)