Justin Starry
aedce8bfbc
Implement PartialEq for ChildrenRenderer ( #916 )
2020-02-04 20:16:42 +08:00
Justin Starry
ee4792c7f6
Fix ResizeTask drop ( #915 )
2020-02-03 09:52:28 +08:00
Justin Starry
3dca0c7758
Fix component rendering process ( #913 )
...
* wip
* Fix component rendering process
2020-02-02 23:12:45 +08:00
Justin Starry
c422a5ed1b
Fix clippy warnings ( #912 )
2020-02-02 15:45:09 +08:00
Jonas Platte
063c25472e
Simplify yew-macro a bit ( #902 )
...
* yew-macro: Simplify Properties validation
* Fix most clippy warnings
2020-01-29 22:18:01 +08:00
Leo Ribeiro
d1180c0369
fix native_worker.js 404 error ( #900 )
...
* fix native_worker.js 404 error
* fix contribute link
* drops contribute link
2020-01-28 10:56:53 +08:00
Konstantin Matsiushonok
5629f37b57
fix(task): remove cancel method from Task trait( #884 ) ( #899 )
...
In order to avoid misuse It was decided to remove `cancel` from `Task` trait
and delegate such logic to `Drop`.
2020-01-28 08:12:56 +08:00
Clifford T. Matthews
a42cca35a6
Allow binary-only and text-only websocket connects ( #389 ) ( #851 )
...
This allows the various formats (e.g., CBOR) that can't be converted
in or out of Text to be used in a websocket by specifying you want to
use a binary-only connection. A text-only connection is provided for
symmetry.
2020-01-27 10:17:47 +08:00
Justin Starry
38f4054f97
Move tests ( #897 )
2020-01-26 17:36:16 +08:00
Justin Starry
d4868b0e58
Install wasm-bindgen-cli if it does not exist on CI ( #894 )
2020-01-24 18:07:42 +08:00
Peter Mezei
b4bd3f1054
Update README.md ( #890 )
...
Agent example updated
2020-01-22 18:05:24 +08:00
Justin Starry
79b94645b6
Update issue templates
2020-01-22 15:38:11 +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
AlephAlpha
6e63014d57
Add default value for properties (takes a function instead of an expression) ( #881 )
...
* Add `default` value for properties
* Default values specified by paths instead of exprs
* Fix misleading error message
* Remove confusing Option
2020-01-20 00:21:32 +08:00
AlephAlpha
3195b50d12
Add Transformer impls to handle handle Option<T> properties ( #878 )
...
* Add Transformer impls to handle handle Option<T> properties
* Add test
* More tests
2020-01-19 21:39:08 +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
jess
1abef04207
Added financial contributors to the README ( #880 )
2020-01-18 11:12:59 +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
f3f52906e8
Remove default build target because it breaks trybuild tests ( #876 )
2020-01-15 19:07:49 +08:00
Justin Starry
3d7bad917c
Improve html! "for" iterable ergonomics ( #875 )
...
* Improve html! iteratable ergonomics
* feedback
2020-01-15 17:57:25 +08:00
AlephAlpha
e38ed00ae1
Fix names of touch event listeners ( #872 )
2020-01-14 22:04:57 +08:00
dependabot-preview[bot]
943d2ca093
Update autocfg requirement from 0.1.3 to 1.0.0 ( #860 )
...
Updates the requirements on [autocfg](https://github.com/cuviper/autocfg ) to permit the latest version.
- [Release notes](https://github.com/cuviper/autocfg/releases )
- [Commits](https://github.com/cuviper/autocfg/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-09 16:53:44 +08:00
Clifford T. Matthews
ba66c3eb75
Allow binary-only formats (e.g., CBOR) with websockets ( #389 ) ( #847 )
...
This allows the various formats that can't be converted in or out of
Text to be used in the callback that a websocket will use. It also
supports the packed version of CBOR.
Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
2020-01-09 10:28:43 +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
5361f51981
Update Cargo.toml
2020-01-07 09:57:43 +08:00
Justin Starry
88ea0ab145
Update Cargo.toml
2020-01-07 09:55:27 +08:00
Justin Starry
a8c383d932
Update FUNDING.yml
2020-01-07 09:28:05 +08:00
Justin Starry
bad5302412
Update FUNDING.yml
2020-01-07 09:24:56 +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
0.11.0
2020-01-06 17:55:52 +08:00
Konstantin Itskov
f18eca1860
Add html_nested! macro to support nested iterable children access ( #843 )
...
* Revert "Revert "Improve nested html! expansion by unwrapping VNodes (#820 )" (#842 )"
This reverts commit 70862a46
* Add minor fix to VList to conform with #820
* Add unittest for the regression bug #839
* Resolve #839 regression issue introduced by #820
* wip
* Revert "Resolve #839 regression issue introduced by #820 "
This reverts commit 34dc935821cb32526c3085505649c0d70b163a13.
* Use explicit html_nested
* Remove NodeSeq from prelude
* Clean up tests
* Add list and tag tests
* Revert vtag children change
Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
2020-01-06 17:27:47 +08:00
Matt Hoyt
c7c9dcd31b
Fix handling of boolean attributes ( #840 )
...
* Updated so boolean attributes are either there or not.
Issue #394
* Ran cargo fmt.
* Updated to remove checked and selected special handling.
* Update the attribute list to match what mdn says.
Removed deceprated attributes.
* Added back the checked special handling.
2020-01-05 20:17:06 -08:00
Konstantin Itskov
fb17517e40
Remove redundant class string is_empty checks ( #844 )
2020-01-05 17:48:51 -08:00
Christian Göhring
f32aa7e498
Corrected table head tag example ( #845 )
...
Tag::TableHead should correspond to <th> and not <tr>
2020-01-05 17:09:18 -08:00
daxpedda
eaf5125018
Fix js_callback example. ( #838 )
...
* Fix `js_callback` example.
- Add `#[allow(unused_imports)]` for `js` macro.
- Add `self.link.callback` to `oninput`.
* Fix missing type annotation.
2020-01-04 13:38:13 -05:00
Justin Starry
70862a46a1
Revert "Improve nested html! expansion by unwrapping VNodes ( #820 )" ( #842 )
...
This reverts commit a900fbee496d1140b424bcb2f1c91402d20eca2b.
2020-01-04 13:35:50 -05:00
Justin Starry
f7313348f6
Fix generic component tags in html macro ( #837 )
2019-12-31 00:03:02 -05:00
Fabian Würfl
ccddb50ccc
Fix file upload example ( #833 )
2019-12-29 19:33:53 -06:00
Justin Starry
fe0e69bc33
Update issue templates
2019-12-29 20:33:15 -05:00
Konstantin Itskov
a900fbee49
Improve nested html! expansion by unwrapping VNodes ( #820 )
...
* Improve nested html! expansion by omitting VNodes
* Add unittest and fix child node expansion
* Fix existing unittests and check backward compat
* Fix rebase conflicts
* Parse expression
* Fix clippy
Co-authored-by: Justin Starry <justin.starry@icloud.com>
2019-12-28 22:27:23 -06:00
Justin Starry
b801d4fbf9
Improve macro error message for unexpected close tag ( #831 )
2019-12-28 21:27:13 -06:00
Justin Starry
33351f3e2a
Use stable rust in CI for rustfmt and clippy ( #829 )
2019-12-28 21:08:30 -06:00
Justin Starry
cc0be53382
Update issue templates
2019-12-28 21:07:28 -06:00
Justin Starry
84a9ed0e09
Make virtual dom cloneable ( #786 )
2019-12-28 20:53:29 -06:00
Justin Starry
3ffde502a7
Enable emscripten in CI for rustc 1.39.0 ( #828 )
2019-12-28 18:03:39 -06: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
Justin Starry
88374c7993
Remove unnecessary macro test helper ( #825 )
2019-12-26 15:05:31 -06:00