* 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>
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.
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.
* 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
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>
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>