@greenlabs/ppx-spice 0.3.0 → 0.3.1
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
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 0.3.1
|
|
4
|
+
|
|
5
|
+
- Fixes [#107](https://github.com/green-labs/ppx_spice/issues/107) Arrays being reversed by Spice.arrayFromJson
|
|
6
|
+
|
|
3
7
|
## 0.3.0
|
|
4
8
|
|
|
5
9
|
- BREAKING: changes to support rescript v12, will now generate codecs that use Stdlib instead of Js or Belt.
|
package/README.md
CHANGED
|
@@ -130,6 +130,7 @@ Read our [Guide with examples](docs/GUIDE.md)
|
|
|
130
130
|
|
|
131
131
|
| Compiler | Ppx_spice | Note |
|
|
132
132
|
| ------------- | --------------------- | ----------------------------- |
|
|
133
|
+
| v12 | v0.3.0 >= | |
|
|
133
134
|
| v12-alpha.14 | v0.2.9 >= | Bigint.fromFloat type changed |
|
|
134
135
|
| v12-alpha.5 | v0.2.8 | Curried mode deprecated |
|
|
135
136
|
| v12-alpha.4 | v0.2.7 >= && > v0.2.2 | |
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@greenlabs/ppx-spice",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"packageManager": "yarn@1.22.22",
|
|
5
5
|
"description": "ReScript PPX which generate JSON (de)serializer",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,4 +23,4 @@
|
|
|
23
23
|
"@changesets/cli": "^2.26.2",
|
|
24
24
|
"rescript": "^12.0.0"
|
|
25
25
|
}
|
|
26
|
-
}
|
|
26
|
+
}
|
package/ppx-osx.exe
CHANGED
|
Binary file
|
package/ppx-windows.exe
CHANGED
|
Binary file
|
package/src/rescript/Spice.res
CHANGED
|
@@ -81,7 +81,10 @@ let arrayFromJson = (decoder, json) =>
|
|
|
81
81
|
| (_, Error({path} as error)) =>
|
|
82
82
|
Error({...error, path: "[" ++ (Int.toString(i) ++ ("]" ++ path))})
|
|
83
83
|
|
|
84
|
-
| (Ok(prev), Ok(newVal)) =>
|
|
84
|
+
| (Ok(prev), Ok(newVal)) => {
|
|
85
|
+
Array.push(prev, newVal)
|
|
86
|
+
Ok(prev)
|
|
87
|
+
}
|
|
85
88
|
}
|
|
86
89
|
)
|
|
87
90
|
|