Skip to content

Commit

Permalink
v.0.4.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
David-OConnor committed Jul 28, 2019
1 parent d162ffe commit 84a8cd6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@
- `ElContainer`, imported in prelude, renamed to `View`. (Breaking)
- Internal refactor of `El`: Now wrapped in `Node`, along with
`Empty` and `Text`. Creation macros return `Node(Element)`. (Breaking)
- Changed the way special attributes like `disabled`, `autofocus`, and
`checked` are handled (Breaking)
- `MessageMapper` now accepts closures
- `Orders` is a trait now instead of a struct. (Breaking)
- Significant changes to MessageMapper
- Orders has new methods, `clone_app` and `msg_mapper` which can allow access to app instance.
- Added more SVG element macros
- Several minor bux fixes
- Examples updated to reflect these changes
- Improvements to Fetch API, especially regarding error handling
and deserialization

## v0.3.7
- `routes` now accepts `Url` instead of `&Url` (Breaking)
Expand All @@ -31,6 +40,8 @@ especially for animations
- Styles no longer implicitly add `px`. Added `unit!` macro in its place
- `Map` can now be used directly in elements, without needing to annotate type and collect
(ie for child `Elements`, and `Listener`s)
- Significant changes to MessageMapper
- Orders hs new methods, `clone_app` and `msg_mapper` that allow access to app instance.
- Fixed a bug where `empty` elements at the top-level were rendering in the wrong order
- Added an `empty!` macro, which is similar to `seed::empty`
- Attributes and style now retain order
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ And cargo-make: `cargo install --force cargo-make`

To start, clone [the quickstart repo](https://github.com/David-OConnor/seed-quickstart):
`git clone https://github.com/david-oconnor/seed-quickstart.git`,
run `cargo make all` in a terminal to build the app, and `cargo make serve` to start a dev server
run `cargo make build` in a terminal to build the app, and `cargo make serve` to start a dev server
on `127.0.0.0:8000`. If you'd like the compiler automatically check and recompile when you
make changes, run `cargo make watch` instead of `cargo make all`.

Expand Down Expand Up @@ -122,7 +122,7 @@ enum Msg {
}

/// How we update the model
fn update(msg: Msg, model: &mut Model, _orders: &mut impl Orders<Msg>) {
fn update(msg: Msg, model: &mut Model, _orders: &mut Orders<Msg>) {
match msg {
Msg::Increment => model.count += 1,
Msg::Decrement => model.count -= 1,
Expand Down Expand Up @@ -182,7 +182,7 @@ fn view(model: &Model) -> impl View<Msg> {

#[wasm_bindgen(start)]
pub fn render() {
seed::App::build(|_,_| Model::default(), update, view)
seed::App::build(Model::default(), update, view)
.finish()
.run();
}
Expand All @@ -192,7 +192,7 @@ For a truly minimimal example, see [lib.rs in the quickstart repo](https://githu

## Building and running

To build your app, run `cargo make all`, and to host on a dev server, run `cargo make serve`.
To build your app, run `cargo make build`, and to host on a dev server, run `cargo make serve`.

For a more robust starting setup, check out Martin Kavik's [seed-quickstart-webpack repo](https://github.com/MartinKavik/seed-quickstart-webpack).

Expand Down

0 comments on commit 84a8cd6

Please # to comment.