diff --git a/dune-project b/dune-project index 19fde5d..fbe7f39 100644 --- a/dune-project +++ b/dune-project @@ -75,7 +75,7 @@ (uri (>= 4.4.0)) (pure-html - (>= 3.9.5)) + (>= 3.10.0)) (base64 (>= 3.5.1)) (datalog diff --git a/flake.lock b/flake.lock index c79841f..54ddc69 100644 --- a/flake.lock +++ b/flake.lock @@ -70,11 +70,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1739866667, - "narHash": "sha256-EO1ygNKZlsAC9avfcwHkKGMsmipUk1Uc0TbrEZpkn64=", + "lastModified": 1743095683, + "narHash": "sha256-gWd4urRoLRe8GLVC/3rYRae1h+xfQzt09xOfb0PaHSk=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "73cf49b8ad837ade2de76f87eb53fc85ed5d4680", + "rev": "5e5402ecbcb27af32284d4a62553c019a3a49ea6", "type": "github" }, "original": { @@ -99,11 +99,11 @@ "opam2json": "opam2json" }, "locked": { - "lastModified": 1735755465, - "narHash": "sha256-ajcHT7JaqHWHy7cd2STB4TuQzCRf7sEfTH0waklOMB4=", + "lastModified": 1741156005, + "narHash": "sha256-JBPvXe5g1V2xpmPVMlf5CP5+T1E+TCK73lqeqV89EJE=", "owner": "tweag", "repo": "opam-nix", - "rev": "6e6a1ac0203c3595c1ffac129d9ac32d8f7989c1", + "rev": "e71936b31658f0b039a7d26b0c9c7a461d949ba4", "type": "github" }, "original": { @@ -131,11 +131,11 @@ "opam-repository": { "flake": false, "locked": { - "lastModified": 1736717043, - "narHash": "sha256-90ByPlg2h0mvdOfHJAsp/PPcf3JmwLVSw4jx/Cz8PgU=", + "lastModified": 1743193860, + "narHash": "sha256-nuss395vu6kN4IKRLviyPztBgeD/tBYIp3x66GQpLK0=", "owner": "ocaml", "repo": "opam-repository", - "rev": "8e8ee268048d2d5e2963654e1bdaf866d59a5598", + "rev": "a8a89f62d8abd2a9f0cbb04826bfec1ef6b563e7", "type": "github" }, "original": { diff --git a/forester.opam b/forester.opam index 8533786..e0e3381 100644 --- a/forester.opam +++ b/forester.opam @@ -29,7 +29,7 @@ depends: [ "repr" {>= "0.7.0"} "ppx_repr" {>= "0.7.0"} "uri" {>= "4.4.0"} - "pure-html" {>= "3.9.5"} + "pure-html" {>= "3.10.0"} "base64" {>= "3.5.1"} "datalog" {>= "0.7"} "cid" {>= "0.1.0"} diff --git a/lib/compiler/test/dune b/lib/compiler/test/dune index fd3c4a9..2bc7504 100644 --- a/lib/compiler/test/dune +++ b/lib/compiler/test/dune @@ -24,6 +24,7 @@ fmt lsp logs + logs.fmt yuujinchou ocamlgraph forester.test diff --git a/lib/frontend/Htmx_client.ml b/lib/frontend/Htmx_client.ml index 7a5ca91..af81e61 100644 --- a/lib/frontend/Htmx_client.ml +++ b/lib/frontend/Htmx_client.ml @@ -391,11 +391,10 @@ and render_transclusion transclusion = span [ Hx.trigger "load"; - Hx.get "/trees%s" (URI.path_string href); + Hx.get "/trees/%s" (URI.path_string href); Hx.target "this"; Hx.swap "outerHTML"; - (* TODO: Update dream-html: https://github.com/yawaramin/dream-html/commit/2f358cc25ef34a590937b1f1e2740141ad06efa9 *) - attr (Format.asprintf "data-hx-headers='%s'" headers) + Hx.headers "%s" headers; ] [txt "transclusion: %s" (Format.asprintf "%a" URI.pp href)] ] diff --git a/lib/language_server/test/dune b/lib/language_server/test/dune index d1e8efe..5a23291 100644 --- a/lib/language_server/test/dune +++ b/lib/language_server/test/dune @@ -27,6 +27,7 @@ algaeff fmt logs + logs.fmt eio eio_main eio.core