From b6e6e513737881d15f835dcd40c304da6dfcaada Mon Sep 17 00:00:00 2001 From: bobymicroby Date: Wed, 15 May 2019 21:48:48 +0300 Subject: [PATCH] Prepare for release 2.0.0. --- CHANGELOG.md | 23 +++++++++++++++++++++++ README.md | 4 ++-- gradle.properties | 2 +- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e9cba43..b8de521 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,30 @@ Change Log +Version 2.0.0 *(15 May 2019)* +---------------------------- +Well making breaking changes just one day after official release is never good. Unless you have +a `A-ha` moment and a thing for breaking and remaking things. + +The second version of Elmo is a big step forward in writing a simpler code with less boilerplate. + +Minor changes: + +- `CommandUpdate` is renamed to `Update` and placed in it's own package `dev.boby.elmo.effect` +- `Update` is moved in it's own package`dev.boby.elmo.pure` + +Major changes: + +The `none` Command marker is removed from the old `CommandUpdate`.  The new `effect.Update`'s `update` method now has the following signature `fun update(msg: Message, model: Model): Return`  which has two type constructors : +- Pure(model) which is a type alias for Pair(model,none)  +- Effect(model,cmd) which is a type alias for Pair(model,cmd) + +So, where you previously had to write `Pair(model,update.none)` you can now write `Pure(model)` . The  benefit is that there is no more need to add one extra command and handle it as `Observable.empty()` . So this gives you less boilerplate and some minor performance improvements. + + + Version 1.0.0 *(14 May 2019)* ---------------------------- It is alive! + diff --git a/README.md b/README.md index 36bea93..f103e61 100644 --- a/README.md +++ b/README.md @@ -87,12 +87,12 @@ Just add the dependency to your project `build.gradle` file: ```groovy dependencies { - implementation 'dev.boby.elmo:elmo:x.y.z' + implementation 'dev.boby.elmo:elmo:2.y.z' } ``` -Replace `x` and `y` and `z` with the latest version number: [![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.boby.elmo/elmo/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.boby.elmo/elmo) +Replace and `y` and `z` with the latest version number: [![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.boby.elmo/elmo/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.boby.elmo/elmo) diff --git a/gradle.properties b/gradle.properties index 10b41a5..8c974a7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ GROUP=dev.boby.elmo -VERSION_NAME=2.0.0-SNAPSHOT +VERSION_NAME=2.0.0 POM_DESCRIPTION=elmo :: elm for android