4.0.0
版本发布时间: 2018-03-30 22:47:50
ocsigen/lwt最新发布版本:5.7.0(2023-08-23 15:03:39)
Breaking
These changes were announced in Lwt 3.1.0 and Lwt 3.2.0. See #453 about smooth upgrade paths.
- Delete package
lwt.ppx
. The PPX syntax is in packagelwt_ppx
since Lwt 3.2.0 (#338). - Remove
>>
syntax from the PPX (#495). - Delete modules
Lwt_log
,Lwt_daemon
,Lwt_log_core
, and packagelwt.log
. These are in packagelwt_log
since Lwt 3.2.0, but it is recommended to useLogs_lwt
from the logs library instead (#484, initiated Hannes Mehnert). - Delete package
lwt.preemptive
. It is an alias forlwt.unix
since Lwt 3.2.0 (#487). - Delete package
lwt.syntax
. The Camlp4 syntax is in packagelwt_camlp4
since Lwt 3.2.0 (#370). - Delete module
Lwt_chan
, a predecessor ofLwt_io
(#441). - Delete package
lwt.simple-top
, a predecessor ofutop
(#371). - Make resolvers (
Lwt.u
) contravariant (#458).
Planned to break in 5.0.0
-
Lwt.pick
will raiseInvalid_argument
on the empty list, instead of returning a forever-pending promise. Also applies toLwt.choose
,Lwt.npick
,Lwt.nchoose
, andLwt.nchoose_split
(#562, Tim Reinke, prompted Hezekiah Carty). - Remove translation of
[%lwt ...]
toLwt.catch
from the PPX (#527). - Remove
-no-debug
option from the PPX (#528). - Remove
Lwt_log
support from the PPX (#520).
Bugs fixed
-
Lwt_io.file_length
now fails withEISDIR
when used on a directory (#563, requested Cedric Cellier). -
Lwt_react.E.limit
andLwt_react.S.limit
now working more correctly (#566, @Freyr666).
Miscellaneous
- Documentation improvements (#561, Jason Evans).