From 8dd8d37e3d77128022cd997ad92c9fc66e54af92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Fri, 12 Jul 2019 03:39:09 +0200 Subject: [PATCH] Fix `README` --- CHANGELOG.md | 7 ++++++- README.md | 4 ++++ elm.json | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fba911..e315ab8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [8.0.1] - 2019-07-12 +### Fixed +- `README` example. The new `error` attribute was missing. + ## [8.0.0] - 2019-07-12 ### Added - `Success` variant to `Form.View.State`. By default, it can be styled using the @@ -173,7 +177,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added - Initial release. -[Unreleased]: https://github.com/hecrj/composable-form/compare/8.0.0...HEAD +[Unreleased]: https://github.com/hecrj/composable-form/compare/8.0.1...HEAD +[8.0.1]: https://github.com/hecrj/composable-form/compare/8.0.0...8.0.1 [8.0.0]: https://github.com/hecrj/composable-form/compare/7.1.0...8.0.0 [7.1.0]: https://github.com/hecrj/composable-form/compare/7.0.2...7.1.0 [7.0.2]: https://github.com/hecrj/composable-form/compare/7.0.1...7.0.2 diff --git a/README.md b/README.md index 5d03455..082f147 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ form = { parser = EmailAddress.parse , value = .email , update = \value values -> { values | email = value } + , error = always Nothing , attributes = { label = "E-Mail" , placeholder = "some@email.com" @@ -51,6 +52,7 @@ form = { parser = Ok , value = .password , update = \value values -> { values | password = value } + , error = always Nothing , attributes = { label = "Password" , placeholder = "Your password" @@ -62,6 +64,7 @@ form = { parser = Ok , value = .rememberMe , update = \value values -> { values | rememberMe = value } + , error = always Nothing , attributes = { label = "Remember me" } } @@ -70,6 +73,7 @@ form = |> Form.append emailField |> Form.append passwordField |> Form.append rememberMeCheckbox + ``` Read the [`Form` module documentation][form-docs] to understand how this code works. diff --git a/elm.json b/elm.json index 7b7d139..40ee6d9 100644 --- a/elm.json +++ b/elm.json @@ -3,7 +3,7 @@ "name": "hecrj/composable-form", "summary": "Build type-safe composable forms in Elm", "license": "BSD-3-Clause", - "version": "8.0.0", + "version": "8.0.1", "exposed-modules": [ "Form", "Form.View",