rescript-relay 0.0.0-pre-498460f7 → 0.0.0-pre-e1235447
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 +16 -0
- 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-x64/relay +0 -0
- package/relay-compiler-win-x64/relay.exe +0 -0
- package/src/utils.js +12 -0
- package/src/utils.mjs +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
# master
|
|
2
2
|
|
|
3
|
+
# 1.1.0
|
|
4
|
+
|
|
5
|
+
Notable changes:
|
|
6
|
+
|
|
7
|
+
- _JSX v4 is now required_
|
|
8
|
+
- Relay and @rescript/react upgraded
|
|
9
|
+
- M1 support for the PPX (should speed up builds for anyone on an M1)
|
|
10
|
+
|
|
3
11
|
## Upgrade versions
|
|
4
12
|
|
|
5
13
|
- `react-relay` and `relay-runtime` to `>=15.0.0`
|
|
14
|
+
- `@rescript/react` to `>=0.11.0`
|
|
6
15
|
|
|
7
16
|
## Breaking changes
|
|
8
17
|
|
|
9
18
|
- 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).
|
|
10
19
|
- ReScript `>=10.1` and JSX v4 is now required.
|
|
20
|
+
- 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
|
|
11
21
|
|
|
12
22
|
## Improvements
|
|
13
23
|
|
|
@@ -18,6 +28,12 @@
|
|
|
18
28
|
|
|
19
29
|
- 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
|
|
20
30
|
|
|
31
|
+
# 1.0.5
|
|
32
|
+
|
|
33
|
+
## Bug Fixes
|
|
34
|
+
|
|
35
|
+
- Fix fairly large performance issue with runtime conversion. This should give a large speedup in certain cases.
|
|
36
|
+
|
|
21
37
|
# 1.0.4
|
|
22
38
|
|
|
23
39
|
## Improvements
|
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
|
package/src/utils.js
CHANGED
|
@@ -49,8 +49,20 @@ function traverse(
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
for (var key in currentObj) {
|
|
52
|
+
// Internal ReScript polymorphic variant representation, ignore.
|
|
52
53
|
if (key === "VAL" || key === "NAME") continue;
|
|
53
54
|
|
|
55
|
+
// Ensure we don't move into internal properties coming from Relay, with the
|
|
56
|
+
// exception of the few names allowed to start with double underscores
|
|
57
|
+
// ("__typename" and "__id"), and any Relay provided variables.
|
|
58
|
+
if (
|
|
59
|
+
key.startsWith("__") &&
|
|
60
|
+
key !== "__typename" &&
|
|
61
|
+
key !== "__id" &&
|
|
62
|
+
!key.startsWith("__relay_internal")
|
|
63
|
+
)
|
|
64
|
+
continue;
|
|
65
|
+
|
|
54
66
|
var isUnion = false;
|
|
55
67
|
var originalValue = currentObj[key];
|
|
56
68
|
|
package/src/utils.mjs
CHANGED
|
@@ -49,8 +49,20 @@ function traverse(
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
for (var key in currentObj) {
|
|
52
|
+
// Internal ReScript polymorphic variant representation, ignore.
|
|
52
53
|
if (key === "VAL" || key === "NAME") continue;
|
|
53
54
|
|
|
55
|
+
// Ensure we don't move into internal properties coming from Relay, with the
|
|
56
|
+
// exception of the few names allowed to start with double underscores
|
|
57
|
+
// ("__typename" and "__id"), and any Relay provided variables.
|
|
58
|
+
if (
|
|
59
|
+
key.startsWith("__") &&
|
|
60
|
+
key !== "__typename" &&
|
|
61
|
+
key !== "__id" &&
|
|
62
|
+
!key.startsWith("__relay_internal")
|
|
63
|
+
)
|
|
64
|
+
continue;
|
|
65
|
+
|
|
54
66
|
var isUnion = false;
|
|
55
67
|
var originalValue = currentObj[key];
|
|
56
68
|
|