rescript-relay 0.0.0-test-rust-compiler-a2f32b9e → 0.0.0-unwind-ppx-8e367f1d

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.
Files changed (47) hide show
  1. package/CHANGELOG.md +280 -8
  2. package/README.md +6 -10
  3. package/cli/cli.js +29 -35
  4. package/package.json +22 -13
  5. package/postinstall.js +37 -8
  6. package/ppx-linux +0 -0
  7. package/{ppx-darwin → ppx-macos-arm64} +0 -0
  8. package/ppx-macos-latest +0 -0
  9. package/ppx-windows-latest +0 -0
  10. package/relay-compiler-linux-musl/relay +0 -0
  11. package/relay-compiler-linux-x64/relay +0 -0
  12. package/relay-compiler-macos-arm64/relay +0 -0
  13. package/relay-compiler-macos-x64/relay +0 -0
  14. package/relay-compiler-win-x64/relay.exe +0 -0
  15. package/src/ReactDOMExperimental.bs.js +7 -4
  16. package/src/ReactDOMExperimental.res +2 -6
  17. package/src/ReactExperimental.bs.js +16 -1
  18. package/src/ReactExperimental.res +9 -4
  19. package/src/ReactExperimental.resi +18 -0
  20. package/src/RescriptRelay.bs.js +45 -33
  21. package/src/RescriptRelay.res +85 -32
  22. package/src/RescriptRelay.resi +247 -274
  23. package/src/RescriptRelayUtils.bs.js +28 -29
  24. package/src/RescriptRelayUtils.resi +3 -5
  25. package/src/RescriptRelay_Fragment.bs.js +116 -0
  26. package/src/RescriptRelay_Fragment.res +239 -0
  27. package/src/RescriptRelay_Fragment.resi +86 -0
  28. package/src/RescriptRelay_Internal.bs.js +49 -16
  29. package/src/RescriptRelay_Internal.res +27 -18
  30. package/src/RescriptRelay_Internal.resi +2 -0
  31. package/src/RescriptRelay_Mutation.bs.js +57 -0
  32. package/src/RescriptRelay_Mutation.res +146 -0
  33. package/src/RescriptRelay_Mutation.resi +54 -0
  34. package/src/RescriptRelay_Query.bs.js +102 -0
  35. package/src/RescriptRelay_Query.res +188 -0
  36. package/src/RescriptRelay_Query.resi +70 -0
  37. package/src/RescriptRelay_RelayResolvers.bs.js +13 -0
  38. package/src/RescriptRelay_RelayResolvers.res +21 -0
  39. package/src/RescriptRelay_RelayResolvers.resi +10 -0
  40. package/src/RescriptRelay_Subscriptions.bs.js +24 -0
  41. package/src/RescriptRelay_Subscriptions.res +51 -0
  42. package/src/RescriptRelay_Subscriptions.resi +15 -0
  43. package/src/utils.js +229 -160
  44. package/src/utils.mjs +429 -0
  45. package/src/experimental-router/RescriptRelayRouter.bs.js +0 -423
  46. package/src/experimental-router/RescriptRelayRouter.res +0 -379
  47. package/src/experimental-router/RescriptRelayRouter.resi +0 -77
package/CHANGELOG.md CHANGED
@@ -1,8 +1,90 @@
1
1
  # master
2
2
 
3
- # 1.0.0-beta.1
3
+ ## Improvements
4
+
5
+ - Add `@live` annotations to generated JSXv4 dynamic import compat modules, so they don't show up in dead code analysis (which they shouldn't).
6
+
7
+ # 1.1.1
8
+
9
+ - Fix M1 binary to include new JSXv4 dynamic import compat changes.
10
+
11
+ # 1.1.0
12
+
13
+ Notable changes:
14
+
15
+ - _JSX v4 is now required_
16
+ - Relay and @rescript/react upgraded
17
+ - M1 support for the PPX (should speed up builds for anyone on an M1)
18
+
19
+ ## Upgrade versions
20
+
21
+ - `react-relay` and `relay-runtime` to `>=15.0.0`
22
+ - `@rescript/react` to `>=0.11.0`
23
+
24
+ ## Breaking changes
25
+
26
+ - The signature for missing field handlers has changed. Previously you got an open type `{..}` as record, now instead you get a proper `RecordProxy.t` from the store. Check out [the changelog for Relay 15](https://github.com/facebook/relay/releases/tag/v15.0.0).
27
+ - ReScript `>=10.1` and JSX v4 is now required.
28
+ - Work around issue with JSX v4 and `%relay.deferredComponent`. You now need to annotate any component you want to use with `%relay.deferredComponent` with `@relay.deferredComponent`. https://github.com/zth/rescript-relay/pull/439
29
+
30
+ ## Improvements
31
+
32
+ - Experimental support for allowing `null` in operation variables. Add `@rescriptRelayNullableVariables` to your operation (query, mutation, subscription) and you'll be allowed to pass `Js.null` (via the `Js.Null` module) to your server. https://github.com/zth/rescript-relay/pull/426
33
+ - :tada: M1 support for the PPX! This should speed up builds some. https://github.com/zth/rescript-relay/pull/435
34
+
35
+ ## Bug Fixes
36
+
37
+ - Fix issue with conversion of custom scalars, where custom scalars represented as arrays would get converted "internally" although they should've really just been left alone. https://github.com/zth/rescript-relay/pull/433
38
+
39
+ # 1.0.5
40
+
41
+ ## Bug Fixes
42
+
43
+ - Fix fairly large performance issue with runtime conversion. This should give a large speedup in certain cases.
44
+
45
+ # 1.0.4
46
+
47
+ ## Improvements
48
+
49
+ - Improved autocomplete for fragments etc (pulled from upstream Relay compiler). https://github.com/facebook/relay/pull/4134
50
+
51
+ # 1.0.3
52
+
53
+ ## Improvements
54
+
55
+ - Add `RescriptRelay.Disposable.ignore` for more ergonomic handling of ignoring disposables.
56
+
57
+ ## Bug Fixes
4
58
 
5
- The time has finally come - RescriptRelay `1.0.0` is in beta! The one, big major thing this release brings is that the ReScript type generation for the Relay compiler has been completely rewritten, and fully integrated into the new Relay Rust compiler. The RescriptRelay fork of the compiler is available and maintained [here])(https://github.com/zth/relay/tree/rescript-relay).
59
+ - Fix the `remove-unused-fields` script for CI with Node.js version >14 in [#409](https://github.com/zth/rescript-relay/pull/409)
60
+
61
+ # 1.0.2
62
+
63
+ ## Bug Fixes
64
+
65
+ - `private` is now correctly marked as a reserved word.
66
+
67
+ ## Improvements
68
+
69
+ - Add ReScript 10 compat in peerDependencies https://github.com/zth/rescript-relay/pull/397 @MoOx
70
+ - `makeConnectionId` helpers are now marked as `@live` to not trigger the dead code analysis.
71
+
72
+ # 1.0.1
73
+
74
+ ## Bug Fixes
75
+
76
+ - Fix issue with custom scalar of JSON values being accidentally mangled https://github.com/zth/rescript-relay/pull/395 @tsnobip
77
+
78
+ # 1.0.0
79
+
80
+ _[Here's a commit showing a project being upgraded to this version](https://github.com/zth/rescript-relay/commit/5831c2f1f0f13eedc1cb60468c32fd32b2dc01d3)_
81
+
82
+ The time has finally come - RescriptRelay `1.0.0` is released! This version brings a ton of new features and improvements. One of the the big major things this release brings is that the ReScript type generation for the Relay compiler has been completely rewritten, and fully integrated into the new Relay Rust compiler. The RescriptRelay fork of the compiler is available and maintained [here])(https://github.com/zth/relay/tree/rescript-relay).
83
+
84
+ ## Upgrade versions
85
+
86
+ - `react-relay` and `relay-runtime` to `>=14.1.0`
87
+ - `react` and `react-dom` to `>=18.0.0`
6
88
 
7
89
  ## Remove Packages
8
90
 
@@ -12,22 +94,212 @@ You can go ahead and remove these packages, that are no longer needed, as the co
12
94
  - `relay-compiler`
13
95
  - `graphql` (if you don't use it for anything else)
14
96
 
15
- ## Breaking Changes
16
-
17
- - The compiler expects the `__generated__` folder to always exist, so if you're not committing your artifacts to source control, make sure you add a `.gitkeep` to the generated folder so git keeps it around.
18
-
19
97
  ## Improvements
20
98
 
21
99
  - The compiler itself should be _much_ faster than the old one. An order of magnitude faster. Especially for incremental compilation in watch mode.
22
100
  - There's no longer any need to manually select `__typename` on interfaces and unions for RescriptRelay's sake, unless you actually want to use it yourself.
23
- - We now support the `@required` directive from Relay, which is a new directive that lets you force non-nullability for nullable fields on the client side. You can then choose to throw an error if null values are encountered, or let the null value bubble up. Docs are coming soon, and you'll need to do `RescriptRelay.relayFeatureFlags.enableRequiredDirective = true` somewhere in your code to enable it for now.
101
+ - We now support the `@required` directive from Relay, which is a new directive that lets you force non-nullability for nullable fields on the client side. You can then choose to throw an error if null values are encountered, or let the null value bubble up. Docs are coming soon.
24
102
  - The errors reported by the compiler is now quite a lot better.
103
+ - Full support for `reanalyze` as all false positive dead code results from generated code are now suppressed.
104
+ - Bindings for `requiredFieldLogger` for logging when missing fields are encountered (kudos [Emilios1995](https://github.com/Emilios1995)).
105
+ - Improved utils for [dealing with enums](https://rescript-relay-documentation.vercel.app/docs/enums).
106
+ - `recordSourceRecords` is now typed as `Js.Json.t` rather than being abstract.
107
+ - Project now works in `"type": "module"` mode in `package.json` (kudos [cometkim](https://github.com/cometkim))
108
+ - The field name of the `id` field of the `Node` interface is now configurable via `schemaConfig: {nodeInterfaceIdField: "idNameHere"}`.
109
+ - Add support for experimental [Relay Resolvers](https://relay.dev/docs/next/guides/relay-resolvers). Undocumented so far, but looking at the [test](https://github.com/zth/rescript-relay/blob/master/packages/rescript-relay/__tests__/Test_relayResolvers.res) and [definition file](https://github.com/zth/rescript-relay/blob/master/packages/rescript-relay/__tests__/TestRelayUserResolver.res) should give you a hint of how it works.
110
+ - Support `@rescriptRelayIgnoreUnused` directive on fragment definitions to insert annotations that makes `reanalyze` consider all fields in the fragment used, even if they aren't.
111
+ - Support `@rescriptRelayAllowUnsafeEnum` directive on fields selecting enums, which will ignore safety measures for enums, meaning you won't need to add a catch all clause, etc. It'll essentially output the enum as an _input_ enum (as desribed in the docs).
112
+ - Support [provided variables](https://relay.dev/docs/api-reference/graphql-and-directives/#provided-variables). More info in the docs.
113
+ - Windows support! :tada:
114
+ - A `RelaySchemaAssets_graphql.res` is now emitted, containing type definitions for all enums and all input objects. This is designed to help with accessing and using enums and input objects outside of Relay's context. This means it'll be much easier to share makers for input objects, pass enums around, etc.
115
+ - Each fragment with a `@connection` now emits a `makeConnectionId` function that allows you to generate _type safe_ connection IDs. More on why this is useful in the documentation.
116
+
117
+ ## Breaking changes
118
+
119
+ - The list of disallowed field names has been adapted to ReScript (it was never properly updated for ReScript when moving from ReasonML). This means that _some of your variable prop names might be renamed_. One example - if you previously had a variable in GraphQL called `$to`, you'd interact with that as `to_` in ReScript. This is because RescriptRelay would pin `to` as a reserved word, and rename it for you. But, `to` _isn't_ actually a keyword in ReScript (it was in ReasonML), so with this release, that `to_` in ReScript will be renamed to `to`. The fix is to just update all `to_` to `to` - let the compiler guide you!
120
+ - Using variable names that are reserved words in ReScript is now _disallowed at the Relay compiler level_. This means that Relay won't compile your project if you have variables whose names are reserved words. The fix is to simply rename the variables.
121
+ - `refetchVariables` now works as intended with regards to supplying only the variables you want _changed_ when refetching, as [detailed under `variables` here](https://relay.dev/docs/next/api-reference/use-refetchable-fragment/#return-value). This means that what was previously `makeRefetchVariables(~someValue=123, ())` should now be `makeRefetchVariables(~someValue=Some(123), ())`.
122
+ Crash course:
123
+
124
+ - `makeRefetchVariables(~someValue=Some(123), ())` means _refetch, use the same values for all variables that was used in the last fetch, but change `someValue` to `123`_.
125
+ - `makeRefetchVariables(~someValue=None, ())` means _refetch, use the same values for all variables that was used in the last fetch, but change `someValue` to `null` (unsetting it)_.
126
+ - `makeRefetchVariables()` means _refetch, use the same values for all variables that was used in the last fetch, change nothing_.
127
+
128
+ This way you can surgically change only certain values when refetching, without having to keep track of the current values for the other values.
129
+
130
+ More details on this [in the docs](https://rescript-relay-documentation.vercel.app/docs/refetching-and-loading-more-data#makerefetchvariables). Thanks to [@tsnobip](https://github.com/tsnobip) for fixing this!
131
+
132
+ - 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`.
133
+ - Input object fields with illegal names in ReScript previously had their maker function argument names suffixed with `_`, like `~type_: string`. This is now instead _prefixed_, like `~_type: string`. Prefixing like this instead of suffixing means we can ship fully zero cost maker functions, which we couldn't before for input objects with illegal field names.
134
+
135
+ ## Assorted Changes and Fixes
136
+
137
+ - Add Environment isServer option @MoOx
138
+ - Remove rescript from dependencies @anmonteiro
139
+ - Add undocumented holdGC method on relay store @MoOx
140
+ - Fixed `setLinkedRecordToNull`, `setLinkedRecordToUndefined`, `setLinkedRecordsToNull` and `setLinkedRecordsToUndefined` methods by binding them to `setValue` instead of `setLinkedRecord/s`. Previously they were throwing an error because `setLinkedRecord/s` did not support "deleting" values using them. (@reck753)
141
+ - Fix long standing bug that would make whether connection helpers were emitted or not unreliable.
142
+
143
+ ## 1.0.0 development changelog
144
+
145
+ - Fix bug in the new type safe connection ID makers where null default values wouldn't turn the variable into a `Js.Null.t<t>`, leading to type errors.
146
+ - Fix bug with connection handling where connections behind a `@include` or `@skip` directive would not be found.
147
+ - Move `getConnectionNodes` back into generated and auto included `Utils` module. This means that failing to generate `getConnectionNodes`, which can happen for various reasons, won't break the build, but rather not just emit the helper.
148
+
149
+ ### rc.5
150
+
151
+ - Fix compat with `rescript@10.1.0-alpha.1`.
152
+
153
+ ### rc.4
154
+
155
+ - _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`.
156
+ - 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.
157
+
158
+ ### rc.3
159
+
160
+ - Fix bug in the new type safe connection ID makers where constant value `null` couldn't be used.
161
+
162
+ ### rc.2
163
+
164
+ - Fix long standing bug that would make whether connection helpers were emitted or not unreliable.
165
+
166
+ ### rc.1
167
+
168
+ - Restore half-broken connection helper function inlining.
169
+
170
+ ### rc.0
171
+
172
+ - _potentially breaking_ `getConnectionNodes` and `connectionKey` is now located directly in the generated module, and not in a nested `Utils` module. `connectionKey` is also no longer exposed on the `Fragment` module, but only via the generated module for that fragment (`WhateverYourFragmentIsCalled_whatever_graphql.res`)
173
+ - Support [provided variables](https://relay.dev/docs/api-reference/graphql-and-directives/#provided-variables). More info in the docs.
174
+ - Windows support! :tada:
175
+ - Fixed `setLinkedRecordToNull`, `setLinkedRecordToUndefined`, `setLinkedRecordsToNull` and `setLinkedRecordsToUndefined` methods by binding them to `setValue` instead of `setLinkedRecord/s`. Previously they were throwing an error because `setLinkedRecord/s` did not support "deleting" values using them. (@reck753)
176
+ - A `RelaySchemaAssets_graphql.res` is now emitted, containing type definitions for all enums and all input objects. This is designed to help with accessing and using enums and input objects outside of Relay's context. This means it'll be much easier to share makers for input objects, pass enums around, etc.
177
+ - Each fragment with a `@connection` now emits a `makeConnectionId` function that allows you to generate _type safe_ connection IDs. More on why this is useful in the documentation.
178
+ - _breaking_ Input object fields with illegal names in ReScript previously had their maker function argument names suffixed with `_`, like `~type_: string`. This is now instead _prefixed_, like `~_type: string`. Prefixing like this instead of suffixing means we can ship fully zero cost maker functions, which we couldn't before for input objects with illegal field names.
179
+
180
+ ## beta.26
181
+
182
+ - Upgrade Relay packages to version `14.1.0`.
183
+
184
+ ## beta.25
185
+
186
+ - Change signature of preload function (router related).
187
+
188
+ ## beta.24
189
+
190
+ - Fix compatibility with ReScript v10
191
+
192
+ ## beta.23
193
+
194
+ - Add Environment isServer option @MoOx
195
+ - Fix incorrect react-relay peerDependencies version @MoOx
196
+ - Remove rescript from dependencies @anmonteiro
197
+ - Fix instantiation of Relay context @vikfroberg
198
+ - Add undocumented holdGC method on relay store @MoOx
199
+
200
+ ### beta.22
201
+
202
+ - Fix locations for `%relay.deferredComponent` so jump-to-definition, hover etc works as expected (pointing to the dynamically imported module rather than what the PPX produces).
203
+ - Add links for `Operation` module in `Query`, `Mutation`, `Subscription` and `Fragment` ([XiNiHa](https://github.com/XiNiHa))
204
+
205
+ ### beta.21
206
+
207
+ - Support formatting commented out operations in the CLI ([reck753](https://github.com/reck753)).
208
+ - Support `@rescriptRelayIgnoreUnused` directive on fragment definitions to insert annotations that makes `reanalyze` consider all fields in the fragment used, even if they aren't.
209
+ - Support `@rescriptRelayAllowUnsafeEnum` directive on fields selecting enums, which will ignore safety measures for enums, meaning you won't need to add a catch all clause, etc. It'll essentially output the enum as an _input_ enum (as desribed in the docs).
210
+
211
+ ### beta.20
212
+
213
+ - Fix enums appearing in `@raw_response_type` (local query updates, optimistic responses) to be input enums.
214
+
215
+ ### beta.19
216
+
217
+ - Fix top level node interface issue.
218
+
219
+ ### beta.18
220
+
221
+ - Fix `useTransition` bindings, where `startTransition` broke after going to React 18. Kudos to [Emilios1995](https://github.com/Emilios1995) for researching and finding the issue!
222
+
223
+ ### beta.17
224
+
225
+ - Upgrade to stable React 18
226
+
227
+ ### beta.16
228
+
229
+ - Fix bug that caused issues when using unions in optimistic responses and `commitLocalPayload`.
230
+ - Add support for experimental [Relay Resolvers](https://relay.dev/docs/next/guides/relay-resolvers). Undocumented so far, but looking at the [test](https://github.com/zth/rescript-relay/blob/master/packages/rescript-relay/__tests__/Test_relayResolvers.res) and [definition file](https://github.com/zth/rescript-relay/blob/master/packages/rescript-relay/__tests__/TestRelayUserResolver.res) should give you a hint of how it works.
231
+
232
+ ### beta.15
233
+
234
+ - Fixes for input objects.
235
+
236
+ ### beta.14
237
+
238
+ - Fixes a few issues introduced in `beta.13`.
239
+ - The list of disallowed field names has been adapted to ReScript. This means that _some of your variable prop names might be renamed_. Check out the Breaking Changes section above for details.
240
+
241
+ ### beta.13
242
+
243
+ - `refetchVariables` now works as intended with regards to supplying only the variables you want _changed_ when refetching, as [detailed under `variables` here](https://relay.dev/docs/next/api-reference/use-refetchable-fragment/#return-value). Check out the [docs](https://rescript-relay-documentation.vercel.app/docs/refetching-and-loading-more-data#makerefetchvariables).
244
+ - Make all object makers inlined. This should improve bundle size some.
245
+ - Support more Linux versions in CI (like the images Vercel uses).
246
+
247
+ ### beta.12
248
+
249
+ - Make CLI work with `relay.config.cjs`.
250
+
251
+ ### beta.11
252
+
253
+ - Another batch of experimental stuff... Nothing new in this version compared to `beta.9`.
254
+
255
+ ### beta.10
256
+
257
+ - Sneaking out some experimental stuff... Nothing new in this version compared to `beta.9`.
258
+
259
+ ### beta.9
260
+
261
+ - `recordSourceRecords` is now typed as `Js.Json.t` rather than being abstract.
262
+ - The field name of the `id` field of the `Node` interface is now configurable via `schemaConfig: {nodeInterfaceIdField: "idNameHere"}`.
263
+
264
+ ### beta.8
265
+
266
+ - More fixes for conversion instructions in variables and input objects.
267
+ - Project now works in `"type": "module"` mode in `package.json` (kudos [cometkim](https://github.com/cometkim))
268
+
269
+ ### beta.7
270
+
271
+ - Full support for `reanalyze` as all false positive dead code results from generated code are now suppressed.
272
+ - Bindings for `requiredFieldLogger` for logging when missing fields are encountered (kudos [Emilios1995](https://github.com/Emilios1995)).
273
+ - Fix bug with conversion instructions in variables with input instructions.
274
+
275
+ ### beta.6
276
+
277
+ - Fix wrong enum type being printed in input objects
278
+ - Fix `__typename` not being automatically selected (and by that forcing a manual select) in some cases, even though it's not supposed to be required to select manually anymore
279
+
280
+ ### beta.5
281
+
282
+ - Generate helpers for moving between unsafe enums coming from the server, and safe enums. Also, provide a "fromString" function for each enum used, that can be used to turn any string into your enum.
283
+ - Suppress dead code warnings _in most places_ when running `reanalyze` on a `rescript-relay` code base. Still a few things left to fix, that requires changes to reanalyze. But this should be much better than before.
284
+
285
+ ### beta.4
286
+
287
+ - Revert JSON.parse micro optimization experiment.
288
+
289
+ ### beta.3
290
+
291
+ - Fix issue with duplicate keys being printed in the conversion instructions.
292
+ - Get rid of the need of nullability conversion instructions, and infer them instead.
293
+
294
+ ### beta.2
295
+
296
+ - Fix issue with recursive input objects not being converted correctly.
25
297
 
26
298
  # 0.23.0
27
299
 
28
300
  _[Here's a commit showing a project being upgraded to this version](https://github.com/zth/rescript-relay/commit/6e96dfafaec918b1d4e9519d3fcbf5e5c46be6c0)_
29
301
 
30
- Finally, a new release! This brings the Relay version to 12, and the React version to 18 (in rc.0 at the time of writing). This release has a few breaking changes which are necessary as we're slowly approaching version 1.0.0 of RescriptRelay. Check the new "Migrations" section below for a few scripts you can run to help the migration.
302
+ Finally, a new release! This brings the Relay version to 12, and the React version to 18 (in rc.1 at the time of writing). This release has a few breaking changes which are necessary as we're slowly approaching version 1.0.0 of RescriptRelay. Check the new "Migrations" section below for a few scripts you can run to help the migration.
31
303
 
32
304
  ## Upgrade versions
33
305
 
package/README.md CHANGED
@@ -6,11 +6,11 @@ Use Relay with ReScript.
6
6
 
7
7
  ## Getting started
8
8
 
9
- > Are you using version `>= 0.13.0` and ReScript syntax with VSCode? Make sure you install our [decicated VSCode extension](https://marketplace.visualstudio.com/items?itemName=GabrielNordeborn.vscode-rescript-relay). Note: It only works with ReScript syntax.
9
+ > Are you using version `>= 0.13.0` and ReScript syntax with VSCode? Make sure you install our [dedicated VSCode extension](https://marketplace.visualstudio.com/items?itemName=GabrielNordeborn.vscode-rescript-relay). Note: It only works with ReScript syntax.
10
10
 
11
11
  Check out the [documentation](https://rescript-relay-documentation.vercel.app).
12
12
 
13
- Also, check out the [changelog](CHANGELOG.md) - things will continue change some between versions (including breaking changes, although we'll try and keep them to a minimum) as we iterate and reach a stable version.
13
+ Also, check out the [changelog](CHANGELOG.md) - things will continue to change between versions (including breaking changes, although we'll try and keep them to a minimum) as we iterate and reach a stable version.
14
14
 
15
15
  ## What it looks like
16
16
 
@@ -18,15 +18,13 @@ Your components define what data they need through `%relay()`.
18
18
 
19
19
  ```rescript
20
20
  /* Avatar.res */
21
- module UserFragment = %relay(
22
- `
21
+ module UserFragment = %relay(`
23
22
  fragment Avatar_user on User {
24
23
  firstName
25
24
  lastName
26
25
  avatarUrl
27
26
  }
28
- `
29
- )
27
+ `)
30
28
 
31
29
  @react.component
32
30
  let make = (~user) => {
@@ -52,16 +50,14 @@ Hooks to use your fragments are autogenerated for you. The hook needs a _fragmen
52
50
 
53
51
  ```rescript
54
52
  /* UserProfile.res */
55
- module UserFragment = %relay(
56
- `
53
+ module UserFragment = %relay(`
57
54
  fragment UserProfile_user on User {
58
55
  firstName
59
56
  lastName
60
57
  friendCount
61
58
  ...Avatar_user
62
59
  }
63
- `
64
- )
60
+ `)
65
61
 
66
62
  @react.component
67
63
  let make = (~user) => {