CHANGES:
- Support
Sys.opaque_identityto turn off optimizations
(#1276) - Upgrade the Melange JS parser to Flow
v0.266.0
(#1380) - Add
[@mel.spread]inexternals to spread polymorphic variants with
payloads (#1404) - melange.ppx: improve the inference of
@mel.asin polymorphic variant
arguments toexternals, allow to mix ints and strings in the different
variant branches (#1418) - Fix code generation bug when assigning functions to variables
(#1429) - Allow
@mel.intpolymorphic variants inexternals to carry payload
(#1419) - support null variants @mel.as in mixed @mel.unwrap
(#1442) melc: exit when--modulesis passed instead of proceeding to compile
(#1478)- Optimize file reading / writing in Melange
(#1457,
#1459) - add
-cmi-filefor flag compatibility with upstream OCaml
(#1488) - code generation: inline more binary operations
(#1526) - code generation: fix wrong optimization related to option unnesting
(#1530) - code generation: omit undefined argument on foo () unit application
(#1538) - code generation: omit undefined trailing arguments when generating
JavaScript, e.g. those that are optionally labeled don't become explicitly
undefinedin the JavaScript output
(#1564) - BREAKING(runtime): consolidate functions in
Js.Dateto account for the recent
improvement in code generation related to omitting trailing undefined
arguments (#1597) - BREAKING(ppx): Remove
[@@deriving abstract]in favor of:[@@deriving jsProperties]derives a JS object creation function that
can generate a JS object with optional keys (when using[@mel.optiona])[@@deriving getSet]derives getter / setter functions for the JS object
derived by the underlying record.[@@deriving abstract]had been deprecated since Melange 5 (in
#979), and has now been
removed in #1624
- runtime: support more functions in
Stdlib.Float
(#1625) - Upgrade the Melange JS parser to Flow
v0.288.0
(#1627) - runtime: add more functions to
Js.Arraymodule
(#1635) - core: update reserved keywords list to account for new browser additions
(#1644) - ppx: disallow empty
%rawexpressions, which would cause syntax errors in
code generation (#1651) - ppx: support all valid
Longidents in string interpolation
(#1653)