Skip to content

Releases: melange-re/melange

0.3.1

16 Nov 22:58
db4e70c
Compare
Choose a tag to compare

CHANGES:

  • Disable warning 69 (unused-field in record) for the private record
    generated by the bs.deriving attribute
    (#414)
  • Disable warning 20 (ignored-extra-argument) when applying
    foo##fn arg1 arg2
    (#416):
    • in cases such as external x : < .. > Js.t = "", the typechecker doesn't
      know the arity of the function, even though Melange will emit an uncurried
      function call.
  • Disable warning 61 (unboxable-type-in-prim-decl) in external declarations
    (#415):
    • Melange externals are substantially different from OCaml externals. This
      warning doesn't make sense in a JS runtime.
  • melc: introduce --bs-module-name flag to specify the original file name for
    the current compilation unit
    (#413)
    • Dune's namespacing implementation generates modules such as
      lib__Original_name. Passing --bs-module-name original_name allows
      melange to issue correct import / require statements to the unmangled
      JS file names.

0.3.0

06 Nov 21:51
Compare
Choose a tag to compare

CHANGES:

  • [melange] Introduce 2 explicit modes of JavaScript compilation:
    • "Batch compilation": produces .cmj and .js files at the same time (this
      is the previous behavior -- using --bs-package-output MODULE_SYSTEM:REL_PATH:JS_EXTENSION)
    • "Separate emission": produces only .cmj files with --bs-stop-after-cmj --bs-package-output REL_PATH_ONLY, and allows emitting JavaScript files
      separately, with --bs-module-type MODULE_SYSTEM -o TARGET_FILE.JS_EXTENSION
      (#384)
  • [mel]: Fix mel build --watch exiting after the first change
    (#401)
  • [melange]: Remove dependency on reason. Reason syntax users should install reason from their preferred package manager instead, and Melange / Dune will
    find it in $PATH (#409)
  • [melange]: Remove dependency on napkin (the ReScript syntax parser). Users
    that depend on libraries written in ReScript syntax should install the mel
    package and Melange / Dune will find the rescript_syntax binary in $PATH
    (#411)

0.2.0

24 Oct 23:41
Compare
Choose a tag to compare

CHANGES:

  • Initial release supporting OCaml 4.14.