Releases: collegevine/purescript-elmish
Releases · collegevine/purescript-elmish
v0.13.0
ReactElement
is now a fullMonoid
withempty
as identity andappend
creatingReact.Fragment
elements.- Breaking: module
Elmish.React.DOM
has been removed and its contents
moved toElmish.React
. - Breaking: module
Elmish.Trace
has been removed. Its sole export has been
part of the standarddebug
library for a while now. - Fixed a bug with
readForeign
and nestedNullable
s: reading[1,"foo",2]
asNullable (Array Int)
would complain that the second element is bogus
(which is true) and incorrectly state that the expected type wasNullable Int
.
v0.12.0
v0.11.4
v0.11.1
v0.11.0
v0.10.1
v0.10.0
v0.9.1
v0.5.8
Changes
- Breaking: Removed the whole
Elmish.JsCallback
module. All use sites should convert toEffectFnN
. #53 - React props for FFI-imported components are now allowed to have a
ref
prop. This was a silly restriction. #51 - Generated React component classes now have more descriptive names. This is to help with debugging and testing. #52
- Breaking:
Aff
is now the default running monad.ComponentDef
renamed toComponentDef'
,Transition
renamed toTransition'
. AddedComponentDef
as type alias forComponentDef' Aff
,Transition
as type alias forTransition' Aff
. #48 - Added
CanReceiveFromJavaScript (Object a)
instance for anya
and a specializedCanReceiveFromJavaScript (Array Foreign)
instance as an optimization. #47 - Breaking:
readForeign'
- a new function that's likereadForeign
, but returns error information on failure. The breaking part is thatCanReceiveFromJavaScript
class had to be modified to afford that. #45 - Breaking:
Dispatch
vastly simplified, it's now basically just anmsg -> Effect Unit
function. Consequently, many functions that were supporting the complexity have been removed, includingissueMsg
,issueError
,cmapMaybe
,dispatchMsgFn
,ignoreMsg
. Operator aliases<|
and<?|
added forhandle
andhandleMaybe
respectively. #33
Bug fixes
- Fixed a bug related to maintaining state in
wrapWithLocalState
. #50 - Fixed a bug with
CanReceiveFromJavaScript (Array Foreign)
instance: it had a superfluous constraint. readForeign
for records no longer requires nullable fields to be present in the record. #45