diff --git a/README.md b/README.md index a16902f..e0c0201 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Package Version](https://img.shields.io/hexpm/v/off_topic)](https://hex.pm/packages/off_topic) [![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/off_topic/) -This is an experimtal (in design not implementation) [Lustre](https://lustre.build) runtime extension, +This is an experimental (in design not implementation) [Lustre](https://lustre.build) runtime extension, adding so-called subscriptions. Subscriptions are at their core effects with a cleanup function. If you know React, Vue, or Svelte, you can think of them as `useEffect` or `watch` calls. `off_topic` lets you define your active subscriptions diff --git a/gleam.toml b/gleam.toml index a142def..e4ea112 100644 --- a/gleam.toml +++ b/gleam.toml @@ -1,14 +1,14 @@ name = "off_topic" -version = "1.0.0" +version = "1.0.0-rc1" target = "javascript" # Fill out these fields if you intend to generate HTML documentation or publish # your project to the Hex package manager. # -# description = "" -# licences = ["Apache-2.0"] -# repository = { type = "github", user = "", repo = "" } -# links = [{ title = "Website", href = "" }] +description = "Declarative subscriptions for Lustre" +licences = ["BSD-2-Clause"] +repository = { type = "gitlab", user = "arkandos", repo = "off_topic" } +links = [{ title = "Lustre", href = "https://lustre.build" }] # # For a full reference of all the available options, you can have a look at # https://gleam.run/writing-gleam/gleam-toml/. diff --git a/src/off_topic/internal/runtime.gleam b/src/off_topic/internal/runtime.gleam index 07b7cc0..d0d8d69 100644 --- a/src/off_topic/internal/runtime.gleam +++ b/src/off_topic/internal/runtime.gleam @@ -442,7 +442,7 @@ pub fn update( subscriptions: fn(model) -> Subscription(message), update: fn(model, message) -> #(model, Effect(message)), ) -> #(Model(model, message), Effect(Message(message))) { - case echo message { + case message { GotAppMessage(message:) -> to_app(model, model.state, message, subscriptions, update)