93 Commits

Author SHA1 Message Date
Justin Starry
6cc4449aec
Prepare v0.12 release (#953) 2020-02-16 16:13:28 +08:00
leo-lb
12da2b5119
Implement more of FetchOptions (#602)
* Implement more of FetchOptions

Add referrer, referrer_policy and integrity

* Pass options to Request constructor instead of fetch

* Derive Debug on ReferrerPolicy and Referrer

* WIP: Add tests

* Add tests for referrer and redirect

* Add FetchService `integrity` field test

* Add FetchService `integrity` field fail test and refactor

* Add FetchService `referrer_policy` field tests

Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
2020-02-13 18:02:25 +08:00
Clifford T. Matthews
287f0d60bb Expose the formatting macros. (#883)
This allows users to create their own encoding wrappers.

The provided documentation uses real-life examples from within yew.
This commit also fixes a minor oversight, where use of the
text_format_is_an_error macro required the end-user to explicitly use
the text_format macro instead of simply bringing it in itself.
2020-01-20 07:20:10 +08:00
Clifford T. Matthews
ffadafe0c2 Removes CborPacked. (#873)
In serde_cbor 0.9, the helper function to_vec_packed created the smallest
CBOR representation of data.  When serde_cbor 0.10 was introduced, that
function was left in place and the documentation for it didn't change, but
its behavior did.  Specifically, enum variants that carry data would no
longer have the variant encoded efficiently; instead it was encoded as a
String.  As such, using to_vec_packed is not the way to get a compact
representation if your data contains enums which carry data.

Since there hasn't been a yew release yet that has CBorPacked in it,
this commit removes CborPacked.
2020-01-19 12:12:56 +08:00
daxpedda
1f4c415eac Switch from failure to anyhow and thiserror. (#863)
* Switch to `anyhow` and `thiserror`.

* Fix doc tests.

* Fix fmt.

* Some polish.
2020-01-15 21:55:09 +08:00
dependabot-preview[bot]
a4423122de Update serde_cbor requirement from 0.10.2 to 0.11.1 (#869)
Updates the requirements on [serde_cbor](https://github.com/pyfisch/cbor) to permit the latest version.
- [Release notes](https://github.com/pyfisch/cbor/releases)
- [Commits](https://github.com/pyfisch/cbor/compare/v0.10.2...v0.11.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-15 19:08:08 +08:00
Justin Starry
99220f542f
Update wasm-bindgen and fix cargo config (#853)
* Update wasm-bindgen and fix cargo config

* clippy
2020-01-08 15:08:32 +08:00
Clifford T. Matthews
5d27094370 Implements CborPacked, a more compressed variant of CBOR. (#849) 2020-01-07 12:17:34 +08:00
Justin Starry
88ea0ab145
Update Cargo.toml 2020-01-07 09:55:27 +08:00
Justin Starry
8a4684fcf2
Bump wasm-bindgen version from 0.2.56 to 0.2.57 (#848) 2020-01-07 09:16:18 +08:00
Justin Starry
09cc6c5f3d Bump version to v0.11.1 2020-01-06 21:16:47 +08:00
Justin Starry
b15493c4ee
Prep v0.11 release (#846)
* Update changelog for v0.11 release

* Bump version to v0.11
2020-01-06 17:55:52 +08:00
dependabot-preview[bot]
d1e881cd43 Update rustversion requirement from 0.1 to 1.0 (#815)
Updates the requirements on [rustversion](https://github.com/dtolnay/rustversion) to permit the latest version.
- [Release notes](https://github.com/dtolnay/rustversion/releases)
- [Commits](https://github.com/dtolnay/rustversion/compare/0.1.0...1.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-26 15:34:11 -06:00
dependabot-preview[bot]
75c93a889a Update http requirement from 0.1 to 0.2 (#814)
Updates the requirements on [http](https://github.com/hyperium/http) to permit the latest version.
- [Release notes](https://github.com/hyperium/http/releases)
- [Changelog](https://github.com/hyperium/http/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/http/compare/v0.1.0...v0.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-26 14:37:19 -06:00
Justin Starry
8df15fdef8
Update wasm-bindgen to 0.2.56 (#821) 2019-12-24 11:46:14 -06:00
dependabot-preview[bot]
f24dc2ee3c Update ryu requirement from =1.0.0 to =1.0.2 (#811)
* Update ryu requirement from =1.0.0 to =1.0.2

Updates the requirements on [ryu](https://github.com/dtolnay/ryu) to permit the latest version.
- [Release notes](https://github.com/dtolnay/ryu/releases)
- [Commits](https://github.com/dtolnay/ryu/compare/1.0.0...1.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Update Cargo.toml

Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
2019-12-24 10:41:13 -06:00
dependabot-preview[bot]
72ca3bb700 Update rmp-serde requirement from 0.13.7 to 0.14.0 (#810)
Updates the requirements on [rmp-serde](https://github.com/3Hren/msgpack-rust) to permit the latest version.
- [Release notes](https://github.com/3Hren/msgpack-rust/releases)
- [Commits](https://github.com/3Hren/msgpack-rust/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-15 13:49:00 -05:00
dependabot-preview[bot]
631995a33a Update serde_cbor requirement from 0.9.0 to 0.10.2 (#809)
Updates the requirements on [serde_cbor](https://github.com/pyfisch/cbor) to permit the latest version.
- [Release notes](https://github.com/pyfisch/cbor/releases)
- [Commits](https://github.com/pyfisch/cbor/compare/v0.9.0...v0.10.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-15 13:48:46 -05:00
dependabot-preview[bot]
5d5a9534c7 Update toml requirement from 0.4 to 0.5 (#808)
Updates the requirements on [toml](https://github.com/alexcrichton/toml-rs) to permit the latest version.
- [Release notes](https://github.com/alexcrichton/toml-rs/releases)
- [Commits](https://github.com/alexcrichton/toml-rs/compare/0.4.0...0.5.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-15 13:48:22 -05:00
Justin Starry
60cbcf4746
Add bincode format and make bincode an optional dependency (#806) 2019-12-14 21:41:13 -05:00
Justin Starry
1218c1de33
Update wasm-bindgen (#753) 2019-11-23 16:51:16 -05:00
Maxim Vorobjov
f6af516e95 Allow to compile to wasi target without wasm_bindgen (#746)
* allow to compile to wasi without wasm-bindgen

* allow to compile to wasm32-wasi without wasm_bindgen
2019-11-18 13:32:13 -05:00
Justin Starry
7c959a5396
Bump yew from 0.10 to 0.10.1 (#737) 2019-11-11 00:58:44 -05:00
Henry Zimmerman
1c54ab1784 Add a default-enabled feature gate for agents and services (#684)
* Add a default-enabled feature gate for agents and services

* cargo fmt

* change feature name for agent support from agents to agent
2019-11-10 21:52:56 -05:00
Henry Zimmerman
f60e533de4 Add send_future to ComponentLink (#717)
* bump wasm-bindgen to 0.2.51 (#681)

* upgrade wasm-bindgen to 0.2.51

* Run macro tests on beta and update readme

* Update README.md

* Update .travis.yml

* implement send_future

* cargo fmt

* add todo question

* static dispatch on Error in future

* Add framework for example using futures

* add a basic future to indicate that futures work

* change example to fetch markdown instead of just resolving a string

* remove unnneded import

* Force users to handle errors in their future

* Force users to handle errors in their future

* cleanup and introduction of FetchState

* respond to feedback

* update comment

* fix cargo.toml dependency issues
2019-11-10 21:16:29 -05:00
Justin Starry
6ba83fc061
Update min rust version to 1.39.0 (#730)
* Update min rustc to 1.39.0

* Bump wasm-bindgen to 0.2.54

* always install wasm-bindgen-cli
2019-11-10 20:19:34 -05:00
Justin Starry
6fdf17757f Use wasm32-unknown-unknown as the default build target (#702)
* Use wasm32-unknown-unknown as the default build target

* Print rustup installed targets

* Add doc_test alias
2019-10-14 15:05:51 -04:00
Justin Starry
322a1f9236
Fix travis (#711)
* Rework travis cache and fix cargo-update

* Split examples out of main workspace
2019-10-14 15:05:14 -04:00
Justin Starry
34c47edb31
Pin ryu dependency to 1.0.0 for emscripten targets (#703) 2019-10-12 23:16:54 -04:00
Justin Starry
0c6b9d32f8
Bump wasm bindgen to 0.2.50 (#695)
* Bump wasm-bindgen to 0.2.50

* Update Cargo.toml

* Update Cargo.toml
2019-10-11 10:49:55 -04:00
Justin Starry
4f31997968
Bump stdweb to 0.4.20 (#694) 2019-10-11 00:09:55 -04:00
Cameron Taggart
c24ee3e6e1 bump to stdweb 0.4.19 (#683) 2019-10-07 12:44:08 -04:00
Justin Starry
afb832d4b8
Bump version to v0.10.0 (#662) 2019-09-27 11:15:40 -04:00
bors[bot]
24d39f97e3
Merge #589
589: Allow components to accept children elements r=jstarry a=jstarry

Fixes: https://github.com/yewstack/yew/issues/537

#### Terminology
- (B) Base component that renders components nested inside each other
- (P) Parent component that has a `children` property and can render those children
- (C) Child component that is nested inside parent and included inside the Parent's `children`

#### Todo
- [x] Add example for nested components
- [x] Support arbitrary html nested inside component tags
- [x] Support nested components inside component tags
- [x] Allow modifying & accessing (C) props when rendering (P)
- [x] Allow filtering (C) components when rendering (P)
- [x] Children prop be required or optional
- [x] Clean up nested component example
- [x] Fix parser for generic component type
- [x] Write tests
- [x] Update documentation and README
- [x] ~~Investigate passing required properties from (P) -> (C)~~
- [x] ~~Allow sending messages from (C) -> (B)~~


Co-authored-by: Justin Starry <jstarry@users.noreply.github.com>
2019-09-10 14:53:24 +00:00
Denis Kolodin
c4fa17004b Change org to YewStack 2019-09-01 00:02:24 +09:00
Justin Starry
0e78f7aafb Update example 2019-08-25 16:53:14 -04:00
Justin Starry
a7e251cdb0 First pass at component children 2019-08-25 00:10:57 -04:00
Justin Starry
c9d5c70af0 Bump version to 0.9.0 2019-08-10 19:48:21 -04:00
bors[bot]
16695a2ec5 Merge #424
424: Preserve ordering of classes r=jstarry a=charvp

This should fix #393.

I didn't add functionality that preserves uniqueness of classes, since `classList.add` will do that for us.

Co-authored-by: Charlotte Van Petegem <charlotte@vanpetegem.me>
2019-08-03 15:14:05 +00:00
Justin Starry
00ac8edc58 Fix CI wasm tests 2019-08-03 08:50:29 -04:00
Charlotte Van Petegem
7a14e2a2c5 Incorporate review comments 2019-08-03 09:59:31 +02:00
Denis Kolodin
b861a1452f Add Justin Starry to authors list 2019-08-01 08:44:00 +09:00
Justin Starry
d8ca45e9dd Bump version to 0.8.0 2019-07-19 10:44:03 -04:00
Justin Starry
43e101d201 Update macro docs and set macro version in yew cargo.toml 2019-07-18 08:38:26 -04:00
Justin Starry
5a9490de70 Only enable macro test for rust 1.36 and later 2019-07-16 08:40:34 -04:00
Justin Starry
af45d91f05 Remove macro-impl crate 2019-07-15 10:06:43 -04:00
Justin Starry
a21767398f Remove yew-shared crate 2019-07-14 22:47:29 -04:00
Justin Starry
3963dc3dea Remove old html macro, default to new proc macro 2019-07-02 14:38:35 -04:00
Justin Starry
042a956a92
Merge branch 'master' into wasm-bindgen 2019-06-30 14:00:00 -04:00
Justin Starry
bd7f4be4a5 Support building wasm targets without cargo-web using wasm-bindgen 2019-06-29 10:23:52 -04:00