github melange-re/melange 1.0.0-alpha.1

latest releases: 4.0.0-52, 4.0.0-51, 4.0.0-414...
pre-release12 months ago

CHANGES:

  • melange: print an error message if $MELANGELIB is set to a directory that
    doesn't exist (#449)
  • melange: fix bug where --bs-module-name didn't always affect generated JS
    file casing (#446)
  • melange: fix bug where -o output.js didn't always write a JavaScript file
    (#454)
  • melange: remove the -bs-read-cmi flag in favor of the builtin
    -intf-suffix flag, standard in OCaml
    (#458,
    #460)
  • melange: return an actionable error message when no output is specified
    with -impl / -intf
    (#465,
    #466)
  • melange: use Object.prototype.hasOwnProperty in the Caml_obj runtime
    (#469)
  • melange: transform
    NonEscapeCharacter
    correctly in JS strings (those written using {js|string here|js})
    (#469)
  • melange: define MELANGE conditional compilation variable
    (#472)
  • melange: Make Pervasives exactly match the Stdlib behavior
    (#476)
  • melange: fix unbound error when trying to use Printexc.exn_slot_id
    (#482)
  • melange: fix codegen issue accessing a nested module path that is also
    included (#487)
  • melange: preserve the correct command-line order for load path directories
    (#492)
  • melange: respect the -nostdlib option; don't add stdlib / runtime to the
    load path in that case
    (#496)
  • melange: build the Melange runtime / stdlib / runtime tests with the dune
    integration (#493). Thus
    melange now requires Dune 3.8.
  • melange: allow shadowing sub-modules of Stdlib in user projects
    (#512)
  • melange, reactjs-jsx-ppx: introduce a reactjs-jsx-ppx package, remove its
    dependency from melange
    (#517)
  • melange: remove the --bs-jsx <version> flag from melc now that
    reactjs-jsx-ppx is a separate package
    (#525)
  • melange: add melpp executable to preprocess #if conditionals with the
    melange parser (#539)
  • mel: delete the mel package. The dune integration is now the only
    officially supported workflow for orchestrating melange builds
    (#546)
  • melange: Extract melange.ppx from the melange package. This preprocessing
    step interprets extensions such as %bs.obj, %bs.raw, %bs.re, etc.
    (#534)
  • melange: allow installing melange in more OCaml versions and compiler
    switches. Melange now migrates binary AST to the version it understands
    (#548)
  • melange: don't run anonymous args function from
    [@@@bs.config {flags = [| ... |]}] attributes
    (#554)
  • melange: add --preamble flag to add a preamble to emitted JS. An example is
    "use client"; in React Server Components, which needs to appear before
    imports (#545,
    #574)
  • melange: turn off warning 20 (ignore-extra-argument) by default. This
    warning is rarely useful in Melange due to false positives when invoking
    functions defined with %bs.raw
    (#488,
    #576)

Don't miss a new melange release

NewReleases is sending notifications on new releases.