Skip to content

Comments

[new release] melange-webapi (0.22.0)#29028

Merged
jmid merged 3 commits intoocaml:masterfrom
anmonteiro:release-melange-webapi-0.22.0
Dec 14, 2025
Merged

[new release] melange-webapi (0.22.0)#29028
jmid merged 3 commits intoocaml:masterfrom
anmonteiro:release-melange-webapi-0.22.0

Conversation

@anmonteiro
Copy link
Contributor

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)
Copy link
Member

@jmid jmid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Member

@jmid jmid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@anmonteiro
Copy link
Contributor Author

maintenance intent PR: melange-community/melange-webapi#30

@jmid
Copy link
Member

jmid commented Dec 14, 2025

Thanks! 🙏

@jmid jmid removed the question label Dec 14, 2025
@jmid jmid merged commit 5f1451a into ocaml:master Dec 14, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants