10000 Releases · bitbldr/sprocket · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Releases: bitbldr/sprocket

v2.0.0

03 May 16:55
fedb4c4
Compare
Choose a tag to compare

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

10 Mar 00:08
8b98ed5
Compare
Choose a tag to compare

Full Changelog: v0.4.2...v1.0.0

v0.4.2

17 Jan 03:20
82cfbf0
Compare
Choose a tag to compare
  • 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

14 Jan 04:20
47a1af4
Compare
Choose a tag to compare

What's Changed

  • Improve reconnections and refactor client hooks by @eliknebel in #12

Full Changelog: v0.4.0...v0.4.1

v0.4.0

12 Jan 05:30
741ab72
Compare
Choose a tag to compare

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

05 Dec 00:19
aaa6754
Compare
Choose a tag to compare

What's Changed

  • Update deps and fix deprecation warnings by @twfarland in #9

New Contributors

Full Changelog: v0.3.1...v0.3.2

v0.3.1

12 Nov 00:00
2ec564d
Compare
Choose a tag to compare
  • 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

03 Nov 21:56
845f053
Compare
Choose a tag to compare
  • 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

15 Aug 01:22
2a92814
Compare
Choose a tag to compare
  • 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

v0.2.4

20 Jun 02:39
676ac56
Compare
Choose a tag to compare
  • Update to latest Gleam version 1.2
  • Add the ability to initialize component props from the client connect function. No longer uses query params but sends props through websocket JOIN handshake
0