[new release] melange-webapi (0.22.0)#29028
Merged
jmid merged 3 commits intoocaml:masterfrom Dec 14, 2025
Merged
Conversation
CHANGES: * `(re_export melange.dom)` by @swrup (melange-community/melange-webapi#17) * fix: `Webapi__Dom__Document.asHtmlDocument` by @davesnx (melange-community/melange-webapi#20) * port `@mel.send.pipe` to `@mel.send` + `@mel.this` by @anmonteiro (melange-community/melange-webapi#23) * build on Melange 6 / OCaml 5.4 by @anmonteiro (melange-community/melange-webapi#27)
jmid
reviewed
Dec 8, 2025
Member
jmid
left a comment
There was a problem hiding this comment.
Thanks!
There's a lower bound issue:
https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/f828de796bae00cbe533570bec03dc60720a9bd9/variant/compilers,4.14,melange-webapi.0.22.0,lower-bounds
=== downgrade 18 packages
- downgrade cmdliner 2.1.0 to 1.3.0 [required by melange]
- downgrade cppo 1.8.0 to 1.6.1 [required by melange]
- downgrade dune 3.20.2 to 3.15.3 [required by melange-webapi]
- downgrade dune-build-info 3.20.2 to 2.9.3 [uses dune]
- downgrade fix 20250919 to 20130611 [uses ocamlfind]
- downgrade melange 5.1.0-414 to 5.0.0-414 [required by melange-webapi]
- downgrade melange-fetch 0.2.0 to 0.1.0 [required by melange-webapi]
- downgrade menhir 20250912 to 20201214 [uses dune]
- downgrade menhirLib 20250912 to 20201214 [uses dune]
- downgrade menhirSdk 20250912 to 20201214 [uses dune]
- downgrade merlin-extend 0.6.2 to 0.6 [uses dune]
- downgrade ocaml-compiler-libs v0.12.4 to v0.11.0 [uses jbuilder]
- downgrade ocamlfind 1.9.8 to 1.9.1 [required by base-bytes]
- downgrade ppx_derivers 1.2.1 to 1.0 [required by reason]
- downgrade ppxlib 0.35.0 to 0.31.0 [uses dune]
- downgrade reason 3.15.0 to 3.10.0 [required by melange-webapi]
- downgrade sexplib0 v0.17.0 to v0.12.0 [uses dune]
- downgrade stdlib-shims 0.3.0 to 0.1.0 [uses dune]
[...]
#=== ERROR while compiling melange-webapi.0.22.0 ==============================#
# context 2.5.0 | linux/x86_64 | ocaml-base-compiler.4.14.2 | pinned(https://github.com/melange-community/melange-webapi/releases/download/0.22.0/melange-webapi-0.22.0.tbz)
# path ~/.opam/4.14/.opam-switch/build/melange-webapi.0.22.0
# command ~/.opam/opam-init/hooks/sandbox.sh build dune build -p melange-webapi -j 71 @install
# exit-code 1
# env-file ~/.opam/log/melange-webapi-7-47f9a5.env
# output-file ~/.opam/log/melange-webapi-7-47f9a5.out
### output ###
# (cd _build/.sandbox/ec59979f73bef553bc3962f254350435/default && .ppx/9b08511fbad9c15355a1e1f8e80934bc/ppx.exe --cookie 'library-name="webapi"' -o src/Webapi/Dom/Webapi__Dom__Element.re.pp.ml --impl src/Webapi/Dom/Webapi__Dom__Element.re.ml -corrected-suffix .ppx-corrected -diff-cmd - -dump-ast)
# File "src/Webapi/Dom/Webapi__Dom__Element.re", lines 61-65, characters 2-18:
# Error: `[@mel.send]`'s first argument must not be a constant
# (cd _build/.sandbox/f77f0d5c35fa92d7c5a21aecc3730d8b/default && .ppx/9b08511fbad9c15355a1e1f8e80934bc/ppx.exe --cookie 'library-name="webapi"' -o src/Webapi/Dom/Webapi__Dom__GlobalEventHandlers.re.pp.ml --impl src/Webapi/Dom/Webapi__Dom__GlobalEventHandlers.re.ml -corrected-suffix .ppx-corrected -diff-cmd - -dump-ast)
# File "src/Webapi/Dom/Webapi__Dom__GlobalEventHandlers.re", lines 5-9, characters 2-22:
# Error: `[@mel.send]`'s first argument must not be a constant
# (cd _build/.sandbox/17efb21cd1221a422e6fb9b46931478d/default && .ppx/9b08511fbad9c15355a1e1f8e80934bc/ppx.exe --cookie 'library-name="webapi"' -o src/Webapi/Dom/Webapi__Dom__EventTarget.re.pp.ml --impl src/Webapi/Dom/Webapi__Dom__EventTarget.re.ml -corrected-suffix .ppx-corrected -diff-cmd - -dump-ast)
# File "src/Webapi/Dom/Webapi__Dom__EventTarget.re", lines 67-74, characters 2-22:
# Error: `[@mel.send]`'s first argument must not be a constant
# (cd _build/.sandbox/ae7c47c276af28f1d723d0fc7d313e61/default && .ppx/9b08511fbad9c15355a1e1f8e80934bc/ppx.exe --cookie 'library-name="webapi"' -o src/Webapi/Dom/Webapi__Dom__HtmlElement.re.pp.ml --impl src/Webapi/Dom/Webapi__Dom__HtmlElement.re.ml -corrected-suffix .ppx-corrected -diff-cmd - -dump-ast)
# File "src/Webapi/Dom/Webapi__Dom__HtmlElement.re", lines 101-108, characters 2-11:
# Error: `[@mel.send]`'s first argument must not be a constant
# (cd _build/.sandbox/a328c91c18e4efeeb32dfaaa648f296a/default && .ppx/9b08511fbad9c15355a1e1f8e80934bc/ppx.exe --cookie 'library-name="webapi"' -o src/Webapi/Dom/Webapi__Dom__Location.re.pp.ml --impl src/Webapi/Dom/Webapi__Dom__Location.re.ml -corrected-suffix .ppx-corrected -diff-cmd - -dump-ast)
# File "src/Webapi/Dom/Webapi__Dom__Location.re", lines 28-30, characters 0-10:
# Error: `[@mel.send]`'s first argument must not be a constant
# (cd _build/.sandbox/7442c66b722681dcc7bd6f68a8499989/default && .ppx/9b08511fbad9c15355a1e1f8e80934bc/ppx.exe --cookie 'library-name="webapi"' -o src/Webapi/Dom/Webapi__Dom__Node.re.pp.ml --impl src/Webapi/Dom/Webapi__Dom__Node.re.ml -corrected-suffix .ppx-corrected -diff-cmd - -dump-ast)
# File "src/Webapi/Dom/Webapi__Dom__Node.re", lines 44-47, characters 2-15:
# Error: `[@mel.send]`'s first argument must not be a constant
# (cd _build/.sandbox/0f48089bd12062c63fd816d019399773/default && .ppx/9b08511fbad9c15355a1e1f8e80934bc/ppx.exe --cookie 'library-name="webapi"' -o src/Webapi/Dom/Webapi__Dom__Range.re.pp.ml --impl src/Webapi/Dom/Webapi__Dom__Range.re.ml -corrected-suffix .ppx-corrected -diff-cmd - -dump-ast)
# File "src/Webapi/Dom/Webapi__Dom__Range.re", lines 37-39, characters 0-12:
# Error: `[@mel.send]`'s first argument must not be a constant
# (cd _build/.sandbox/330eea0d6c16b98ba76696f2b4e28300/default && .ppx/9b08511fbad9c15355a1e1f8e80934bc/ppx.exe --cookie 'library-name="webapi"' -o src/Webapi/Dom/Webapi__Dom__Window.re.pp.ml --impl src/Webapi/Dom/Webapi__Dom__Window.re.ml -corrected-suffix .ppx-corrected -diff-cmd - -dump-ast)
# File "src/Webapi/Dom/Webapi__Dom__Window.re", lines 150-158, characters 2-22:
# Error: `[@mel.send]`'s first argument must not be a constant
jmid
approved these changes
Dec 13, 2025
Member
jmid
left a comment
There was a problem hiding this comment.
Thanks!
CI is now only failing due to network issues (and a single opam-2.0 failure), so LGTM 👍
Would you consider adding an x-maintenance-intent entry?
https://github.com/ocaml/opam-repository/blob/master/governance/policies/archiving.md
Contributor
Author
|
maintenance intent PR: melange-community/melange-webapi#30 |
Member
|
Thanks! 🙏 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Melange bindings to the DOM
CHANGES:
(re_export melange.dom)by @swrup (re_export melange.dom melange-community/melange-webapi#17)Webapi__Dom__Document.asHtmlDocumentby @davesnx (Update Webapi__Dom__Document.re melange-community/melange-webapi#20)@mel.send.pipeto@mel.send+@mel.thisby @anmonteiro (melange 5: port@mel.send.pipeto@mel.send+@mel.thismelange-community/melange-webapi#23)