Skip to content

[new release] Melange 5.1.0 #27674

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2025

Conversation

anmonteiro
Copy link
Contributor

  • Update JS reserved keywords (#1338)
  • Remove errors for bs.* and non-namespaced attributes (#1348)
    • These attributes haven't been supported since Melange v4, and deprecated
      before that
    • erroring on e.g. attributes like @as prevents e.g. universal libraries
      that want to use PPXes supporting @as with native semantics.
  • remove @mel.splice error (#1350)
    • @mel.splice has been removed in earlier Melange versions and it has
      been producing errors for the last 2 versions. Since ecosystem libraries
      have been keeping up to date with Melange versions, after this change, it
      will be silently ignored.
  • allow @mel.as "constant" and @mel.this to coexist -- marking the constant argument as the instance / self argument
    (#1353)
  • JS generation: improve indentation of new blocks (#1360)
  • JS generation: improve indentation of blocks with array/string/char accesses (#1361)
  • runtime: improve the runtime for exceptions / extensible variants to account
    for sharing extensions across contexts (#1326)
    • This change moves the exception runtime from a global counter to a
      counter per module. This impacts calls to Printexc.exn_slot_id and
      Printexc.exn_slot_name, which would previously return the global
      identifier at exception creation, and will now return the module-local
      runtime identifier.
  • build: fix Melange build on dune profiles other than dev / release (#1365)
  • core, runtime: optimize throwing errors in Melange, fix re-throwing regression and throwing JS values (#1362)
  • runtime: add Js.Fetch module with types for fetch in JS (#1343)
  • runtime: add Js.ReadableStream module to unify around its type in community libraries (#1344)
  • runtime: add Js.WritableStream (#1367)

@mseri
Copy link
Member

mseri commented Mar 26, 2025

Thanks

@mseri mseri merged commit 8aa5b9b into ocaml:master Mar 26, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants