Skip to content

Releases: collegevine/purescript-elmish

v0.3.0

23 Dec 21:07
Compare
Choose a tag to compare

0.3.0

  • migrated to Spago

0.2.2

Changed

  • we now make sure that commands (aka effects) yielded by an update call
    actually run asynchronously

0.2.1

Added

  • defaultMain - a convenience entry point for the simplest use case - a single
    bundle embedded in a single HTML file.

v0.2.0

30 Jul 15:28
Compare
Choose a tag to compare

Changed

  • Breaking: The signature of Transition now allows effects to produce
    zero, one, or multiple messages, instead of exactly one as before. This is
    achieved by making each effect take a message-dispatching callback rather than
    monadically returning a message as before.
  • Breaking: fork now requires MonadEffect.

Added

  • Convenience smart constructor transition, which has the same signature as
    the Transition data constructor used to have before this change.
  • forks - like fork (see v0.1.4), but allows the effect to produce zero,
    one, or multiple messages by way of taking a callback rather than returning a
    message.
  • forkVoid - like fork, but the effect does not produce any messages.
  • forkMaybe - like fork, but the effect may or may not produce a message.

Removed

  • Breaking: removed the Elmish.Test module. Now that the type of
    Transition no longer pretends to be pure (i.e. contains mention of
    Effect), the testing support can no longer work in the pure StateT, and
    will have to be rewritten on top of Effect, with a mutable cell to
    accumulate messages. However, since we're not actually using testing support
    (yet?), I have decided to deprioritize this.

v0.1.6

08 Jun 15:17
Compare
Choose a tag to compare

Added

  • Support for SSR (server-side rendering) via Elmish.Boot.boot. This breaks
    pre-existing Elmish.Boot users (see "Removed").

Removed

  • Breaking: The contents of Elmish.Boot - BootResult, boot, and
    boot'. Replaced and subsumed by server-side rendering support (see "Added").

Changed

  • Breaking: Elmish.React.reactMount renamed to render to match React's
    naming.
  • wrapWithLocalState will now report errors to the console instead of
    swallowing them. This could be used by catch-all error reporters such as
    Rollbar or Airbrake.
  • Breaking: mkJsCallback remaned to jsCallback and lost its onError
    parameter. It will now report errors to the console, same as
    wrapWithLocalState. The previous version with an explicit onError
    parameter is now available as jsCallback'
  • React API is now FFIed via EffectFnX instead of FnX.

v0.1.5

08 Jun 15:17
Compare
Choose a tag to compare

Changed

  • Breaking: wrapWithLocalState no longer takes an extra
    DispatchMsgFn Unit parameter (used only for error reporting)
  • Breaking: All places that previously took a DispatchMsgFn Unit sink for
    the purpose of reporting errors only, now take a DispatchMsgFn Void instead
    to better reflect the fact that they're not going to issue messages through
    that sink
  • Upgraded to PureScript 0.13.8

Added

  • wrapWithLocalState' - a more elaborate version of wrapWithLocalState that
    takes the extra DispatchMsgFn Void parameter

v0.1.4

08 Jun 15:19
Compare
Choose a tag to compare

Added

  • Bind instance for Transition, enabling do-notation
  • fork - a convenience wrapper function for constructing effectful state
    updates in imperative-ish style
  • Reexports lmap and rmap from BiFunctor

v0.1.3

08 Jun 15:19
Compare
Choose a tag to compare

Added

  • Convenience reexports of bimap, (>$<), and (>#<)

v0.1.2

08 Jun 15:19
Compare
Choose a tag to compare

Added

  • Support HTML data attributes via _data :: Object API.

v0.1.0

08 Jun 15:19
Compare
Choose a tag to compare

Changed

v0.0.5

08 Jun 15:20
Compare
Choose a tag to compare

Removed

  • id from CommonProps

Added

  • Bifunctor, Functor, Applicative instances for Transition
  • ComponentReturnCallback - a CPS-style way of returning polymorphically typed
    components.
  • boot - a common-case app entry point: mounts a UI component to a DOM element
    with given ID.

Changed

  • construct and wrapWithLocalState now accept a DispatchMsgFn Unit instead
    of (DispatchError -> Effect Unit) for reporting view errors.
  • construct now takes the error-reporting function after execution of the
    effect, to improve composability.

Deprecated

  • pureUpdate in favor of pure

v0.0.4

08 Jun 15:20
Compare
Choose a tag to compare

Initial release