Skip to content

Commit 84a8cd6

Browse files
committed
v.0.4.0 release
1 parent d162ffe commit 84a8cd6

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,17 @@
44
- `ElContainer`, imported in prelude, renamed to `View`. (Breaking)
55
- Internal refactor of `El`: Now wrapped in `Node`, along with
66
`Empty` and `Text`. Creation macros return `Node(Element)`. (Breaking)
7+
- Changed the way special attributes like `disabled`, `autofocus`, and
8+
`checked` are handled (Breaking)
9+
- `MessageMapper` now accepts closures
10+
- `Orders` is a trait now instead of a struct. (Breaking)
11+
- Significant changes to MessageMapper
12+
- Orders has new methods, `clone_app` and `msg_mapper` which can allow access to app instance.
713
- Added more SVG element macros
814
- Several minor bux fixes
15+
- Examples updated to reflect these changes
16+
- Improvements to Fetch API, especially regarding error handling
17+
and deserialization
918

1019
## v0.3.7
1120
- `routes` now accepts `Url` instead of `&Url` (Breaking)
@@ -31,6 +40,8 @@ especially for animations
3140
- Styles no longer implicitly add `px`. Added `unit!` macro in its place
3241
- `Map` can now be used directly in elements, without needing to annotate type and collect
3342
(ie for child `Elements`, and `Listener`s)
43+
- Significant changes to MessageMapper
44+
- Orders hs new methods, `clone_app` and `msg_mapper` that allow access to app instance.
3445
- Fixed a bug where `empty` elements at the top-level were rendering in the wrong order
3546
- Added an `empty!` macro, which is similar to `seed::empty`
3647
- Attributes and style now retain order

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ And cargo-make: `cargo install --force cargo-make`
2626

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

@@ -122,7 +122,7 @@ enum Msg {
122122
}
123123

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

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

193193
## Building and running
194194

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

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

0 commit comments

Comments
 (0)