Releases: bitbldr/sprocket
v2.0.0
This release includes several API improvements, most notably to how messages are dispatched from an update function. Instead of returning a tuple with the updated model and list of commands #(Model, List(Cmd))
the update function simply returns the updated model but now provides a Dispatcher(Msg)
function which can be used to dispatch messages to the reducer for message chaining and async operations. Please refer to the updated hex docs and sprocket guide for the new reducer pattern https://sprocket.live/state-management.
The top-level sprocket API has also been refactored to only include items relevant and useful to a typical sprocket component and all runtime-specific items have been moved to the sprocket/runtime
module. This was done to limit the imports required when defining a component. Most developers likely will never interact directly use these runtime functions and instead would use a bridge library appropriate to their web framework, e.g. sprocket_mist
https://github.com/bitbldr/sprocket_mist so it doesn't make much sense for these to live in the top-level sprocket module.
v1.0.0
Full Changelog: v0.4.2...v1.0.0
v0.4.2
- Fix an issue with hooks where update was not updating the
el
reference to latest - Update versioning method so that now client
sprocket-js
library will track the same minor version as the server library. When there are breaking changes between client and server libraries, both will bump their minor version number ensuring that the same minor versions will be compatible with each other. Patch versions can diverge so that a bug fix can be issued to one library without forcing the other to unnecessarily publish a new version.
Full Changelog: v0.4.1...v0.4.2
v0.4.1
What's Changed
- Improve reconnections and refactor client hooks by @eliknebel in #12
Full Changelog: v0.4.0...v0.4.1
v0.4.0
What's Changed
- Replace handler hook with element_id based approach by @eliknebel in #11
- Improve automatic reconnection handling and update client connect API
Full Changelog: v0.3.2...v0.4.0
v0.3.2
What's Changed
- Update deps and fix deprecation warnings by @twfarland in #9
New Contributors
- @twfarland made their first contribution in #9
Full Changelog: v0.3.1...v0.3.2
v0.3.1
- Process reducer commands asynchronously
- Add stronger unique typings
- Refactor reducer module and other code quality improvements
Full Changelog: v0.3.0...v0.3.1
v0.3.0
- Add Elm-like
List(Cmd(msg))
side-effect support to Reducers - Add more comprehensive set of event handlers and refactor events from attributes into separate module
- Update to latest gleam version
Full Changelog: v0.2.5...v0.3.0
v0.2.5
- Fix an issue with script and style elements where the body was being html encoded
- Add support for attributes on raw elements
- Update gleam to version 1.4.1
- Update stdlib to 0.39
Full Changelog: v0.2.4...v0.2.5