github melange-re/melange 6.0.0-51

latest releases: 6.0.0-54, 6.0.0-53, 6.0.0-52...
11 hours ago

CHANGES:

  • Support Sys.opaque_identity to turn off optimizations
    (#1276)
  • Upgrade the Melange JS parser to Flow
    v0.266.0

    (#1380)
  • Add [@mel.spread] in externals to spread polymorphic variants with
    payloads (#1404)
  • melange.ppx: improve the inference of @mel.as in polymorphic variant
    arguments to externals, allow to mix ints and strings in the different
    variant branches (#1418)
  • Fix code generation bug when assigning functions to variables
    (#1429)
  • Allow @mel.int polymorphic variants in externals to carry payload
    (#1419)
  • support null variants @mel.as in mixed @mel.unwrap
    (#1442)
  • melc: exit when --modules is passed instead of proceeding to compile
    (#1478)
  • Optimize file reading / writing in Melange
    (#1457,
    #1459)
  • add -cmi-file for 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
    undefined in the JavaScript output
    (#1564)
  • BREAKING(runtime): consolidate functions in Js.Date to 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.Array module
    (#1635)
  • core: update reserved keywords list to account for new browser additions
    (#1644)
  • ppx: disallow empty %raw expressions, which would cause syntax errors in
    code generation (#1651)
  • ppx: support all valid Longidents in string interpolation
    (#1653)

Don't miss a new melange release

NewReleases is sending notifications on new releases.