From 68fbcee863bdc148daf65ef57eab9a5e6f65b5b8 Mon Sep 17 00:00:00 2001 From: Spiros Eliopoulos Date: Sun, 26 Apr 2020 13:04:18 -0400 Subject: [PATCH] jsoo-deprecation: require jsoo >= 3.5.0 Fix deprecation warning related to Lwt_js_events. --- dispatch-js.opam | 2 +- js/dispatch_js.ml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dispatch-js.opam b/dispatch-js.opam index c9707ea..8d48bf1 100644 --- a/dispatch-js.opam +++ b/dispatch-js.opam @@ -8,7 +8,7 @@ depends: [ "ocaml" {>= "4.03.0"} "dune" {build & >= "1.0"} "dispatch" {>="0.4.0"} - "js_of_ocaml-lwt" {>="3.3.0" & < "3.5.0"} + "js_of_ocaml-lwt" {>= "3.5.0"} "result" ] build: [ diff --git a/js/dispatch_js.ml b/js/dispatch_js.ml index 2031061..c400233 100644 --- a/js/dispatch_js.ml +++ b/js/dispatch_js.ml @@ -1,6 +1,7 @@ open Lwt open Result open Js_of_ocaml +module Lwt_js_events = Js_of_ocaml_lwt.Lwt_js_events let dispatch_on_fragment ?on_failure ?(default="/") routes = let dispatch = Dispatch.dispatch routes in