Changelog
3.3.4
Fixes:
use
directives (2146, 2147).foo(~Foo.a)
becoming foo(~Fooa=Foo.a)
(2136).<div> ...c</div>
correctly (2137).module type of
(2175).Improvements:
Changelog
3.3.3
bs.obj
(2123).foo[(bar + 1)]
to foo[bar + 1]
(2110).fun
in parentheses when necessary (2033).Changelog
3.3.2
Big release! No breaking change. Big shout out to @anmonteiro and @iwanKaramazow!
Major:
|.
now got a Reason sugar, ->
, with better precedence support than the former (1999, 2078, 2092, 2082, 2087, 2055)....
spread errors for everything (1973).foo##bar[baz]
, foo->bar^##baz
and other precedences (2050, 2055, 2044, 2044).Others:
Js.t({foo: bar})
(2074).M.[]
(2043).let x=-.1;
and others (1945).Changelog
3.1.0
foo |> map(_, addOne) |> filter(_, isEven)
(1804).[@bs] foo(bar, baz)
is now foo(. bar, baz)
. Same for declaration (1803, 1832).<Foo bar=<Baz />>
, <div><span></span></div>
(1745, 1762).let%foo a = 1
(1703)!Changelog
3.0.2
Some((x: string))
can now be Some(x: string)
(1576).fun
for functions (1588).Changelog
3.0.0
Our biggest release! Please see our blog post on https://reasonml.github.io/blog/2017/10/27/reason3.html.
Summary: this is, practically speaking, a non-breaking change. You can mix and match two projects with different syntax versions in BuckleScript 2 (which just got release too! Go check), and they'll Just Work (tm).
To upgrade your own project, we've released a script, https://github.com/reasonml/upgradeSyntaxFrom2To3
Improvements:
==
, &&
, >
and the rest (1380, 1386, etc.).Js.t {. foo: bar}
now formats to {. "foo": bar}
, just like its value counterpart ([%bs.obj {foo: 1}]
to {"foo": bar}
.[@foo]
, [@@foo]
and [@@@foo]
are now unified into [@foo]
and placed in front instead of at the back.!
is now the logical negation. It was not
previously.!
. Now it's a postfix ^
.++
instead of the old ^
.{M.x, y}
is {M.x: x, y: y}
.{}
like in JS.==
, match
, method
).::foo
back to ~foo
, just like for OCaml.refmt.js
, with public API. See README.md
.refmt
native public API too.Breaking Changes:
--use-stdin
and --is-interface-pp
option from refmt; they've been deprecated for a long time nowreup
, etc.reactjs_jsx_ppx.ml
. You've all been on reactjs_jsx_ppx_2.ml
for a long time now.external
declaration's labels.Deprecated:
--add-printers
option from refmt; we'll have a better strategy soon.