Breaking changes:
Simplified API with renamed functions:
create_key() → new_key()with_binding → with_key_bound_towithout_binding → with_key_unboundset_storage_provider → set_current_storageStorage type changed from first-class module to record:
type storage = (module STORAGE)Storage.t record typeKey type simplified:
type 'a key = int * 'a Hmap.keytype 'a key = 'a Hmap.keyMigration guide:
(* Old code *)
let k = Ctx.create_key () in
Ctx.set_storage_provider (Ambient_context_lwt.storage ()) ;
Ctx.with_binding k "value" @@ fun () -> ...
(* New code *)
let k = Ctx.new_key () in
Ctx.set_current_storage Ambient_context_lwt.storage ;
Ctx.with_key_bound_to k "value" @@ fun () -> ...re-release after github broke the release archive, this time using dune-release to avoid it in the future