Skip to content

Commit

Permalink
✨ - Make compatible with ReScript 11 (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrolich authored Apr 22, 2024
1 parent 1cbfe83 commit 55625bc
Show file tree
Hide file tree
Showing 33 changed files with 6,388 additions and 2,489 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
.merlin
.bsb.lock
npm-debug.log
/lib/bs/
/lib/ocaml/
/lib
/node_modules/
*.bs.js
*.res.mjs
example/build/
.graphql_ppx_cache
/.vscode/
Expand Down
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [master] - 2024-04-15

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!

## [4.0.0] - 2021-03-21

This release adds support for several major version upgrades of dependencies, including:
Expand Down Expand Up @@ -258,8 +262,8 @@ let subscription = Client.executeQuery(~query, ~requestPolicy=`CacheFirst, ~poll
```reason
type t =
exchangeInput =>
(. Wonka.Types.sourceT(UrqlClientTypes.operation)) =>
Wonka.Types.sourceT(UrqlClientTypes.operationResult);
(. Wonka.Source.t(UrqlClientTypes.operation)) =>
Wonka.Source.t(UrqlClientTypes.operationResult);
```

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

0 comments on commit 55625bc

Please sign in to comment.