Skip to content

Releases: collegevine/purescript-elmish

v0.13.0

29 Jul 14:57
Compare
Choose a tag to compare
  • ReactElement is now a full Monoid with empty as identity and append
    creating React.Fragment elements.
  • Breaking: module Elmish.React.DOM has been removed and its contents
    moved to Elmish.React.
  • Breaking: module Elmish.Trace has been removed. Its sole export has been
    part of the standard debug library for a while now.
  • Fixed a bug with readForeign and nested Nullables: reading [1,"foo",2]
    as Nullable (Array Int) would complain that the second element is bogus
    (which is true) and incorrectly state that the expected type was Nullable Int.

v0.12.0

29 Jul 14:59
b43eb3c
Compare
Choose a tag to compare
  • Fixed a bug that allowed ComponentDef to be captured in closures for a long
    time, which could lead to using stale values in complex scenarios where
    ComponentDef is not constant, but depends on arguments. See #83.
  • Breaking: Changed the order of arguments of bindComponent

v0.11.4

29 Jul 14:59
Compare
Choose a tag to compare
  • quasiBind, hush, and subscribe' functions for subscriptions to enable
    creating more complicated subscriptions from primitive ones.

v0.11.1

29 Jul 14:59
Compare
Choose a tag to compare
  • it is no longer possible to dispatch messages after unmounting.

v0.11.0

29 Jul 14:59
Compare
Choose a tag to compare
  • support for subscriptions - see the Elmish.Subscription module.
  • Breaking: forks's parameter now takes a record of { dispatch, onStop }
    instead of just a naked dispatch function. This change is in support of
    subscriptions.

v0.10.1

29 Jul 14:58
Compare
Choose a tag to compare
  • Upgraded to PureScript 0.15.13
  • Breaking: CanReceiveFromJavaScript.validateForeignType method no longer
    takes a Proxy as first parameter, relying instead on visible type
    applications.

v0.10.0

19 Jul 16:23
Compare
Choose a tag to compare
  • type parameters of readForeign and readForeign' can now be specified via
    visible type application, a new feature in PureScript 0.15.10 #74

v0.9.1

30 Dec 02:45
Compare
Choose a tag to compare

v0.5.8

03 Mar 18:11
Compare
Choose a tag to compare

Changes

  • Breaking: Removed the whole Elmish.JsCallback module. All use sites should convert to EffectFnN. #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 to ComponentDef', Transition renamed to Transition'. Added ComponentDef as type alias for ComponentDef' Aff, Transition as type alias for Transition' Aff. #48
  • Added CanReceiveFromJavaScript (Object a) instance for any a and a specialized CanReceiveFromJavaScript (Array Foreign) instance as an optimization. #47
  • Breaking: readForeign' - a new function that's like readForeign, but returns error information on failure. The breaking part is that CanReceiveFromJavaScript class had to be modified to afford that. #45
  • Breaking: Dispatch vastly simplified, it's now basically just an msg -> Effect Unit function. Consequently, many functions that were supporting the complexity have been removed, including issueMsg, issueError, cmapMaybe, dispatchMsgFn, ignoreMsg. Operator aliases <| and <?| added for handle and handleMaybe 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

Internal improvements

  • Integration tests powered by enzyme #49
  • Migrated to PureScript 0.14 #31

v0.3.2

27 Jan 21:11
Compare
Choose a tag to compare

0.3.2

  • Transition is now a Monad

0.3.1

  • migrated to GitHub Actions