Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
38f4054
Move tests (#897)
jstarry Jan 26, 2020
a42cca3
Allow binary-only and text-only websocket connects (#389) (#851)
ctm Jan 27, 2020
5629f37
fix(task): remove `cancel` method from `Task` trait(#884) (#899)
kakoc Jan 28, 2020
d1180c0
fix native_worker.js 404 error (#900)
leordev Jan 28, 2020
063c254
Simplify yew-macro a bit (#902)
jplatte Jan 29, 2020
c422a5e
Fix clippy warnings (#912)
jstarry Feb 2, 2020
3dca0c7
Fix component rendering process (#913)
jstarry Feb 2, 2020
ee4792c
Fix ResizeTask drop (#915)
jstarry Feb 3, 2020
aedce8b
Implement PartialEq for ChildrenRenderer (#916)
jstarry Feb 4, 2020
87f76f7
Rename NodeRef.try_into to avoid trait conflicts (#917)
jstarry Feb 4, 2020
839b793
Fix wrong order of classes when reordering or adding classes to the f…
Feb 8, 2020
12981dd
Update README.md
jstarry Feb 9, 2020
f703bdd
Clean up readme (#930)
jstarry Feb 9, 2020
bf0a6bb
Update README.md
jstarry Feb 10, 2020
1ede167
ComponentLink: Allow send_message and send_message_batch through shar…
jplatte Feb 10, 2020
12da2b5
Implement more of FetchOptions (#602)
llebout Feb 13, 2020
df14a9f
fix: link all outstanding TODO items to a ticket (#949)
Feb 15, 2020
6cc4449
Prepare v0.12 release (#953)
jstarry Feb 16, 2020
a5e74e7
Update CHANGELOG.md
jstarry Feb 16, 2020
b534a4c
Add components interaction example (#951)
Fi3 Feb 18, 2020
92aab6c
Fix contributing test instructions (#957)
captain-yossarian Feb 22, 2020
90a7cdb
Add WebGL example (#908)
mdtusz Feb 22, 2020
62a68ab
Merge commit 'Allow binary-only and text-only websocket connects (#38…
daxpedda Feb 23, 2020
6a75932
Bump rust version for macro tests (#965)
jstarry Feb 25, 2020
da9e93e
Merge commit '5629f37b575c0c0468ad867975a09d07381710db' into web-sys-…
daxpedda Feb 25, 2020
e35d5e1
Remove `Option` from most services.
daxpedda Feb 25, 2020
bd43d37
Merge commit 'd1180c0369edfc6f19f539a448e6d9bdfeb1a077' into web-sys-…
daxpedda Feb 25, 2020
05a0854
Merge commit '063c25472efcc79c017eecd73da9fbd062aa3550' into web-sys-…
daxpedda Feb 25, 2020
a2152aa
Merge commit 'c422a5ed1b4f82f986b3293c465eb825ea72a656' into web-sys-…
daxpedda Feb 25, 2020
2c6e8c7
Merge commit '3dca0c775869f5bb28e00acbba2f97d5af1aa8f5' into web-sys-…
daxpedda Feb 25, 2020
86a4a77
Merge commit 'ee4792c7f6350962afd9e605b6c1c09731ed4c9c' into web-sys-…
daxpedda Feb 25, 2020
84e2802
Remove `Option` from resize service.
daxpedda Feb 25, 2020
b0639f4
Merge commit 'aedce8bfbcdaaadc815fd4c01a65d36eb43a6ce1' into web-sys-…
daxpedda Feb 25, 2020
07da4ed
Merge commit '87f76f7736cb8c063ff291e99d43d1941c4509e4' into web-sys-…
daxpedda Feb 25, 2020
05ff2ce
Merge commit '839b793b17241783d60d4bd25acb2c41599b2081' into web-sys-…
daxpedda Feb 25, 2020
2cb6ae9
Merge commit '1ede16795a8f08975708e1808c0d528f31d5c946' into web-sys-…
daxpedda Feb 25, 2020
7019d20
Merge commit '12da2b5119abbaa17e1b2ce88740f650d035284a' into web-sys-…
daxpedda Feb 25, 2020
2ce21b7
Apply fetch changes.
daxpedda Feb 25, 2020
c69c370
Merge commit 'df14a9fc3e74c697e1e5e201f35fd177b83065ae' into web-sys-…
daxpedda Feb 25, 2020
8b7ab86
Apply reader service changes.
daxpedda Feb 25, 2020
7ebf37e
Merge commit 'a5e74e7d1dd42362abb902b13498911c269841cc' into web-sys-…
daxpedda Feb 25, 2020
2a9fb99
Merge commit 'b534a4c83a3f4dabcfa39ddf582515091a6539dd' into web-sys-…
daxpedda Feb 25, 2020
8fddbab
Merge commit '6a759329d1a5a49d062e6265b1435f8dff54c6f4' into web-sys-…
daxpedda Feb 25, 2020
4790b33
Fix `node_refs` example.
daxpedda Feb 25, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ If applicable, add screenshots to help explain your problem.

**Environment:**
- Yew version [e.g. v0.10, `master`]
- Rust version [e.g. 1.40.0]
- Rust version [e.g. 1.41.0]
- Target if relevant [e.g. `wasm32-unknown-emscripten`]
- `stdweb` / `web-sys` version [e.g. web-sys v0.3.33]
- OS: [e.g. macos]
Expand Down
2 changes: 2 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
report_todo = "Unnumbered"
report_fixme = "Unnumbered"
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Changelog

## ✨ **0.12** *(2020-02-16)*

- #### ⚡️ Features

- Improved ergonomics for `html! { for .. }`. [[@jstarry], [#875](https://github.com/yewstack/yew/pull/875)]
- Added `#[props(default = "fn_path")]` for specifying a default property value. [[@AlephAlpha], [#881](https://github.com/yewstack/yew/pull/881)]
- Exposed the macros for creating format types. [[@ctm], [#883](https://github.com/yewstack/yew/pull/883)]
- Added support for binary-only and text-only formats in `WebSocketService`. [[@ctm], [#851](https://github.com/yewstack/yew/pull/851)]
- Implemented `PartialEq` for `ChildrenRenderer` to allow `children` comparison. [[@jstarry], [#916](https://github.com/yewstack/yew/pull/916)]
- Reduced restrictions on `ComponentLink` methods to improve `Future` support. [[@jplatte], [#931](https://github.com/yewstack/yew/pull/931)]
- Added `referrer`, `referrer_policy` and `integrity` to `FetchOptions`. [[@leo-lb], [#931](https://github.com/yewstack/yew/pull/931)]

- #### 🛠 Fixes

- Fixed touch event listeners. [[@AlephAlpha], [#872](https://github.com/yewstack/yew/pull/872)]
- Fixed bad behavior when setting a `ref` on a `Component`. [[@jstarry], [#913](https://github.com/yewstack/yew/pull/913)]
- Fixed ResizeTask cancellation. [[@jstarry], [#915](https://github.com/yewstack/yew/pull/915)]

- #### 🚨 Breaking changes

- Switched from using `failure` to `anyhow` and `thiserror` for Yew errors. [[@daxpedda], [#863](https://github.com/yewstack/yew/pull/863)]
- Removed `cancel` method from `Task` trait in favor of relying on [`Drop`](https://doc.rust-lang.org/book/ch15-03-drop.html). [[@kakoc], [#899](https://github.com/yewstack/yew/pull/899)]
- Renamed `NodeRef.try_into` to `NodeRef.cast` to avoid trait conflicts. [[@jstarry], [#917](https://github.com/yewstack/yew/pull/917)]

## ✨ **0.11** *(2020-01-06)*

This release aims to lay the groundwork for Yew component libraries and clean up the API for the ever elusive 1.0 release.
Expand Down Expand Up @@ -638,19 +662,25 @@ This release introduces the concept of an `Agent`. Agents are separate activitie
## ✨ **0.1** *(2017-12-31)*

[Web Workers API]: https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API
[@AlephAlpha]: https://github.com/AlephAlpha
[@astraw]: https://github.com/astraw
[@boydjohnson]: https://github.com/boydjohnson
[@carlosdp]: https://github.com/carlosdp
[@charvp]: https://github.com/charvp
[@ctaggart]: https://github.com/ctaggart
[@ctm]: https://github.com/ctm
[@daxpedda]: https://github.com/daxpedda
[@davidkna]: https://github.com/davidkna
[@DenisKolodin]: https://github.com/DenisKolodin
[@dermetfan]: https://github.com/dermetfan
[@dunnock]: https://github.com/dunnock
[@hgzimmerman]: https://github.com/hgzimmerman
[@izissise]: https://github.com/izissise
[@jplatte]: https://github.com/jplatte
[@jstarry]: https://github.com/jstarry
[@kakoc]: https://github.com/kakoc
[@kellytk]: https://github.com/kellytk
[@leo-lb]: https://github.com/leo-lb
[@lizhaoxian]: https://github.com/lizhaoxian
[@mdtusz]: https://github.com/mdtusz
[@mrh0057]: https://github.com/mrh0057
Expand Down
48 changes: 48 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## Contribution Guide

### Setup your local development environment

#### Add the wasm target

```bash
rustup target add wasm32-unknown-unknown
```

#### Install [cargo-web]

This is an optional tool that simplifies running the examples:

```bash
cargo install cargo-web
```

> Add `--force` option to ensure you install the latest version.

[cargo-web]: https://github.com/koute/cargo-web

#### Build

```bash
cargo build --target wasm32-unknown-unknown
```

#### Test
For the tests to work one have to ensure that `wasm-bindgen-cli` is installed.
[Instructions](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/usage.html#install-the-test-runner)

Additionally a webdriver must be installed locally and configured to be on the
`PATH`. Currently supports `geckodriver`, `chromedriver`, and `safaridriver`,
although more driver support may be added! You can download these at:

* geckodriver - https://github.com/mozilla/geckodriver/releases
* chromedriver - http://chromedriver.chromium.org/downloads
* safaridriver - should be preinstalled on OSX

```bash
./ci/run_tests.sh
```
or

```bash
cargo test --target wasm32-unknown-unknown --features wasm_test
```
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yew"
version = "0.11.1"
version = "0.12.0"
edition = "2018"
authors = [
"Denis Kolodin <deniskolodin@gmail.com>",
Expand Down Expand Up @@ -44,7 +44,7 @@ thiserror = "1"
toml = { version = "0.5", optional = true }
wasm-bindgen = { version = "0.2.58", optional = true }
wasm-bindgen-futures = { version = "0.4", optional = true }
yew-macro = { version = "0.11.1", path = "crates/macro" }
yew-macro = { version = "0.12.0", path = "crates/macro" }

[dependencies.web-sys]
version = "0.3"
Expand Down Expand Up @@ -108,6 +108,8 @@ wasm-bindgen = "0.2.58"
# Changes here must be reflected in `build.rs`
[target.'cfg(all(target_arch = "wasm32", not(target_os="wasi"), not(cargo_web)))'.dev-dependencies]
wasm-bindgen-test = "0.3.4"
base64 = "0.11.0"
ssri = "5.0.0"

[target.'cfg(target_os = "emscripten")'.dependencies]
ryu = "1.0.2" # 1.0.1 breaks emscripten
Expand Down
Loading