Skip to content

5.0.0

Latest

Choose a tag to compare

@balat balat released this 26 Nov 13:07
· 24 commits to master since this release
1add89b
  • Module namespace modernization
    • Public modules are now accessed as Ot.Form, Ot.Carousel,
      Ot.Popup, Ot.Spinner, ... instead of the legacy flat Ot_xxx
      prefix.
    • New ocsigen-toolkit-compat opam package (libraries
      ocsigen-toolkit-compat.server and ocsigen-toolkit-compat.client):
      provides the legacy Ot_xxx module names as include-aliases of the
      new Ot.Xxx modules, to ease migration of existing code.
  • Dependencies
    • Eliom 13 required ("eliom" {>= "13.0.0" & < "14.0.0"}), hence
      Ocsigen Server 8: all references to Eliom_xxx modules have been
      migrated to the new wrapped style (Eliom.Content.Html,
      Eliom.Service, Eliom.Client, ...).
    • js_of_ocaml >= 6.4.1 (fixes the wasm_of_ocaml runtime build with
      dune >= 3.24).
    • ocsigen-ppx-rpc >= 2.0: the widgets are preprocessed with
      --rpc-raw, whose emitted code uses the Eliom 13 module names.
    • cmdliner is no longer a dependency.
  • Ot.Icons gains a documented .eliomi exposing the Ot.Icons.S
    signature; Ot.Icons.Make is now parameterised on
    Eliom.Content.Html.T (the shared signature exposed by Eliom 13)
    instead of module type of Eliom_content.Html.F.
  • Fix untyped Js.Unsafe reads that trap ("bad cast") under
    wasm_of_ocaml (#271). Ot.Popup.disable_page_scroll read
    window.pageYOffset as an int; the value is fractional on displays
    with a device pixel ratio, so every popup opened from a scrolled
    page crashed. Same bug class fixed in Ot.Size.pageYOffset
    (innerHeight, pageYOffset) and Ot.Form (checkValidity read as a
    bool, which silently disabled client-side validation under wasm).
  • Build system
    • Use ocsigen-dune-rules to generate the dune rules of the client
      and server libraries (new opam dependency, exactly version 1.0.0,
      since each new version changes the generated rules).
    • Internal: the server library no longer links js_of_ocaml at
      runtime (uses -I include flags for type definitions, like
      Eliom), so it can be loaded via Dynlink.