dependabot[bot]
ca2aa2a4a6
Bump the cargo dependencies with 36 updates ( #3408 )
...
* Bump the cargo-deps group with 36 updates
Bumps the cargo-deps group with 36 updates:
| Package | From | To |
| --- | --- | --- |
| [proc-macro2](https://github.com/dtolnay/proc-macro2 ) | `1.0.63` | `1.0.67` |
| [quote](https://github.com/dtolnay/quote ) | `1.0.29` | `1.0.33` |
| [syn](https://github.com/dtolnay/syn ) | `2.0.27` | `2.0.37` |
| [rustversion](https://github.com/dtolnay/rustversion ) | `1.0.12` | `1.0.14` |
| [trybuild](https://github.com/dtolnay/trybuild ) | `1.0.80` | `1.0.85` |
| [gloo-worker](https://github.com/rustwasm/gloo ) | `0.3.0` | `0.4.0` |
| [serde](https://github.com/serde-rs/serde ) | `1.0.168` | `1.0.188` |
| [prettyplease](https://github.com/dtolnay/prettyplease ) | `0.2.12` | `0.2.15` |
| [gloo](https://github.com/rustwasm/gloo ) | `0.8.1` | `0.10.0` |
| [urlencoding](https://github.com/kornelski/rust_urlencoding ) | `2.1.2` | `2.1.3` |
| [slab](https://github.com/tokio-rs/slab ) | `0.4.8` | `0.4.9` |
| [thiserror](https://github.com/dtolnay/thiserror ) | `1.0.44` | `1.0.48` |
| [implicit-clone](https://github.com/yewstack/implicit-clone ) | `0.4.0` | `0.4.1` |
| [tokio](https://github.com/tokio-rs/tokio ) | `1.29.0` | `1.32.0` |
| [jemallocator](https://github.com/tikv/jemallocator ) | `0.5.0` | `0.5.4` |
| [average](https://github.com/vks/average ) | `0.13.1` | `0.14.1` |
| [tabled](https://github.com/zhiburt/tabled ) | `0.12.2` | `0.14.0` |
| [indicatif](https://github.com/console-rs/indicatif ) | `0.17.5` | `0.17.6` |
| [serde_json](https://github.com/serde-rs/json ) | `1.0.104` | `1.0.107` |
| [clap](https://github.com/clap-rs/clap ) | `4.3.9` | `4.4.4` |
| [anyhow](https://github.com/dtolnay/anyhow ) | `1.0.71` | `1.0.75` |
| [chrono](https://github.com/chronotope/chrono ) | `0.4.26` | `0.4.31` |
| [git2](https://github.com/rust-lang/git2-rs ) | `0.17.2` | `0.18.1` |
| [regex](https://github.com/rust-lang/regex ) | `1.8.4` | `1.9.4` |
| [reqwest](https://github.com/seanmonstar/reqwest ) | `0.11.18` | `0.11.20` |
| [semver](https://github.com/dtolnay/semver ) | `1.0.17` | `1.0.18` |
| [gloo-net](https://github.com/rustwasm/gloo ) | `0.3.0` | `0.4.0` |
| [base64](https://github.com/marshallpierce/rust-base64 ) | `0.21.2` | `0.21.4` |
| [strum_macros](https://github.com/Peternator7/strum ) | `0.25.0` | `0.25.2` |
| [log](https://github.com/rust-lang/log ) | `0.4.19` | `0.4.20` |
| [fake](https://github.com/cksac/fake-rs ) | `2.6.1` | `2.8.0` |
| [time](https://github.com/time-rs/time ) | `0.3.22` | `0.3.28` |
| [uuid](https://github.com/uuid-rs/uuid ) | `1.4.0` | `1.4.1` |
| [bytes](https://github.com/tokio-rs/bytes ) | `1.4.0` | `1.5.0` |
| [axum](https://github.com/tokio-rs/axum ) | `0.6.18` | `0.6.20` |
| [postcard](https://github.com/jamesmunns/postcard ) | `1.0.6` | `1.0.7` |
Updates `proc-macro2` from 1.0.63 to 1.0.67
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.63...1.0.67 )
Updates `quote` from 1.0.29 to 1.0.33
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.29...1.0.33 )
Updates `syn` from 2.0.27 to 2.0.37
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.27...2.0.37 )
Updates `rustversion` from 1.0.12 to 1.0.14
- [Release notes](https://github.com/dtolnay/rustversion/releases )
- [Commits](https://github.com/dtolnay/rustversion/compare/1.0.12...1.0.14 )
Updates `trybuild` from 1.0.80 to 1.0.85
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.80...1.0.85 )
Updates `gloo-worker` from 0.3.0 to 0.4.0
- [Release notes](https://github.com/rustwasm/gloo/releases )
- [Changelog](https://github.com/rustwasm/gloo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/gloo/compare/0.3.0...0.4.0 )
Updates `serde` from 1.0.168 to 1.0.188
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.168...v1.0.188 )
Updates `prettyplease` from 0.2.12 to 0.2.15
- [Release notes](https://github.com/dtolnay/prettyplease/releases )
- [Commits](https://github.com/dtolnay/prettyplease/compare/0.2.12...0.2.15 )
Updates `gloo` from 0.8.1 to 0.10.0
- [Release notes](https://github.com/rustwasm/gloo/releases )
- [Changelog](https://github.com/rustwasm/gloo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/gloo/commits )
Updates `urlencoding` from 2.1.2 to 2.1.3
- [Commits](https://github.com/kornelski/rust_urlencoding/commits )
Updates `slab` from 0.4.8 to 0.4.9
- [Release notes](https://github.com/tokio-rs/slab/releases )
- [Changelog](https://github.com/tokio-rs/slab/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/slab/compare/v0.4.8...v0.4.9 )
Updates `thiserror` from 1.0.44 to 1.0.48
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.44...1.0.48 )
Updates `implicit-clone` from 0.4.0 to 0.4.1
- [Commits](https://github.com/yewstack/implicit-clone/compare/v0.4.0...v0.4.1 )
Updates `tokio` from 1.29.0 to 1.32.0
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.29.0...tokio-1.32.0 )
Updates `jemallocator` from 0.5.0 to 0.5.4
- [Release notes](https://github.com/tikv/jemallocator/releases )
- [Changelog](https://github.com/tikv/jemallocator/blob/main/CHANGELOG.md )
- [Commits](https://github.com/tikv/jemallocator/compare/0.5.0...0.5.4 )
Updates `average` from 0.13.1 to 0.14.1
- [Commits](https://github.com/vks/average/commits )
Updates `tabled` from 0.12.2 to 0.14.0
- [Changelog](https://github.com/zhiburt/tabled/blob/master/CHANGELOG.md )
- [Commits](https://github.com/zhiburt/tabled/commits/v0.14.0 )
Updates `indicatif` from 0.17.5 to 0.17.6
- [Release notes](https://github.com/console-rs/indicatif/releases )
- [Commits](https://github.com/console-rs/indicatif/compare/0.17.5...0.17.6 )
Updates `serde_json` from 1.0.104 to 1.0.107
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.104...v1.0.107 )
Updates `clap` from 4.3.9 to 4.4.4
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.3.9...v4.4.4 )
Updates `anyhow` from 1.0.71 to 1.0.75
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.75 )
Updates `chrono` from 0.4.26 to 0.4.31
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.26...v0.4.31 )
Updates `git2` from 0.17.2 to 0.18.1
- [Changelog](https://github.com/rust-lang/git2-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/git2-rs/compare/0.17.2...git2-0.18.1 )
Updates `regex` from 1.8.4 to 1.9.4
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.8.4...1.9.4 )
Updates `reqwest` from 0.11.18 to 0.11.20
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.18...v0.11.20 )
Updates `semver` from 1.0.17 to 1.0.18
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/1.0.17...1.0.18 )
Updates `gloo-net` from 0.3.0 to 0.4.0
- [Release notes](https://github.com/rustwasm/gloo/releases )
- [Changelog](https://github.com/rustwasm/gloo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/gloo/compare/0.3.0...0.4.0 )
Updates `base64` from 0.21.2 to 0.21.4
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md )
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.21.2...v0.21.4 )
Updates `strum_macros` from 0.25.0 to 0.25.2
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Peternator7/strum/commits )
Updates `log` from 0.4.19 to 0.4.20
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.19...0.4.20 )
Updates `fake` from 2.6.1 to 2.8.0
- [Commits](https://github.com/cksac/fake-rs/commits )
Updates `time` from 0.3.22 to 0.3.28
- [Release notes](https://github.com/time-rs/time/releases )
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md )
- [Commits](https://github.com/time-rs/time/compare/v0.3.22...v0.3.28 )
Updates `uuid` from 1.4.0 to 1.4.1
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.4.0...1.4.1 )
Updates `bytes` from 1.4.0 to 1.5.0
- [Release notes](https://github.com/tokio-rs/bytes/releases )
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.4.0...v1.5.0 )
Updates `axum` from 0.6.18 to 0.6.20
- [Release notes](https://github.com/tokio-rs/axum/releases )
- [Changelog](https://github.com/tokio-rs/axum/blob/main/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/axum/compare/axum-v0.6.18...axum-v0.6.20 )
Updates `postcard` from 1.0.6 to 1.0.7
- [Release notes](https://github.com/jamesmunns/postcard/releases )
- [Changelog](https://github.com/jamesmunns/postcard/blob/main/CHANGELOG.md )
- [Commits](https://github.com/jamesmunns/postcard/compare/v1.0.6...v1.0.7 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: quote
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: rustversion
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: trybuild
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: gloo-worker
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-deps
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: prettyplease
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: gloo
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-deps
- dependency-name: urlencoding
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: slab
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: implicit-clone
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-deps
- dependency-name: jemallocator
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: average
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-deps
- dependency-name: tabled
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-deps
- dependency-name: indicatif
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-deps
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: git2
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-deps
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-deps
- dependency-name: reqwest
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: semver
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: gloo-net
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-deps
- dependency-name: base64
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: strum_macros
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: log
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: fake
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-deps
- dependency-name: time
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: bytes
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-deps
- dependency-name: axum
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
- dependency-name: postcard
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-deps
...
Signed-off-by: dependabot[bot] <support@github.com>
* bless stderr files after syn update
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2023-09-23 14:57:06 +02:00
dependabot[bot]
a85fcde100
Bump lipsum from 0.8.2 to 0.9.0 ( #3191 )
...
Bumps [lipsum](https://github.com/mgeisler/lipsum ) from 0.8.2 to 0.9.0.
- [Release notes](https://github.com/mgeisler/lipsum/releases )
- [Commits](https://github.com/mgeisler/lipsum/compare/0.8.2...0.9.0 )
---
updated-dependencies:
- dependency-name: lipsum
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-02 01:19:32 +03:00
Jedd Dryden
a53a045970
Simplified and Uniform Example Instructions ( #3113 )
...
* Add `--open` to `boids`
* Added running instructions to `contexts`
* Amended `counter` instructions
- Added `--open` flag
- Removed unnecessary instructions on how to run with `release` profile
* Amended `counter_functional` instructions
- Added `--open` flag
- Removed unnecessary instructions on how to run with `release` profile
* Amended `dyn_create_destroy_apps` instructions
- Added `--open` flag
- Removed unnecessary instructions on how to run with `release` profile
* Added running instructions to `file_upload`
* Added running instructions to `function_memory_game``
* Amended `function_router` instructions
- Amended `release` profile instructions
- Added `--open` flag
* Added running instructions to `function_todomvc`
* Added running instructions to `futures`
* Added running instructions to `game_of_life`
* Added running instructions to `immutable`
* Added running instructions to `inner_html`
* Added running instructions to `js_callback`
* Amended `keyed_list` instructions
- Added `--open` flag
- Amended `release` profile notice
* Added running instructions to `mount_point`
* Added running instructions to `nested_list`
* Added running instructions to `node_refs`
* Amended `password_strength` instructions
- Added `--open` flag
- Amended `release` profile notice
* Added running instructions to `portals`
* Amended `router` instructions
- Added `--open` flag
- Amended `release` profile notice
* Amended `simple_ssr` instructions
- Simplified wording
- Removed unnecessary notes
- Changed commands so that they should be executed from the `examples/simple_ssr` directory like every other example
* Amended `ssr_router` instructions
- Removed unnecessary notes
- Changed commands so that they should be executed from the `examples/ssr_router` directory like every other example
* Added running instructions to `suspense`
* Added running instructions to `timer`
* Added running instructions to `todo_mvc`
* Added running instructions to `two_apps`
* Added running instructions to `web_worker_fib`
* Added running instructions to `webgl`
* Amended various examples
- Simplified running instructions
- Moved running instructions to the bottom of each `README.md`
* Amended `examples/README.md` instructions
- Added `release` profile notice
- Added `--open` flag
- Removed `--release` flag
* Apply grammar suggestions from code review
Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>
* Update examples/function_router/README.md Grammar
Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>
* Add Grammar Suggestions from Review
* Apply Spelling Suggestion
Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>
---------
Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>
2023-04-02 03:19:08 +05:00
Cecile Tonglet
c7b4029e1b
Add old props to fn changed() ( #2851 )
...
* Adding old_props to fn changed()
* Change old_props type to &Self::Properties
* Update examples that use fn changed() and want old_props
* Fix tests
* Fix invalid test flags
* cargo fmt
* Oops wrong regex
* Revert change for older version
* Remove unnecessary clone
* Add migration guide
* Oh wow the test was not running xD
2022-08-31 17:10:45 +05:00
Kaede Hoshikawa
989d804947
Fix Clippy for 1.63 ( #2825 )
2022-08-12 22:16:05 +09:00
Kaede Hoshikawa
924792c002
Enable Dependabot for Examples and Tools ( #2785 )
...
* Enable dependabot for examples and tools.
* Make everything to use Gloo.
* Require features for binaries.
* Update every Friday.
2022-07-21 01:23:22 +09:00
Kaede Hoshikawa
6b89e21034
Migrate to once_cell ( #2750 )
...
* Replace lazy_static with once_cell.
* Migrate to clap v3, so 1 less lazy_static.
* Convert with `.into()`.
2022-06-24 19:32:00 +05:00
dependabot[bot]
f27bea9a37
Update lipsum requirement from =0.8.0 to 0.8.2 ( #2726 )
...
* Update lipsum requirement from =0.8.0 to =0.8.2
Updates the requirements on [lipsum](https://github.com/mgeisler/lipsum ) to permit the latest version.
- [Release notes](https://github.com/mgeisler/lipsum/releases )
- [Commits](https://github.com/mgeisler/lipsum/compare/0.8.0...0.8.2 )
---
updated-dependencies:
- dependency-name: lipsum
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* Don't pin versions
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2022-06-19 19:11:43 +05:00
WorldSEnder
e19615693e
fix: examples depending on lipsum for rust 1.56 ( #2717 )
2022-06-04 21:22:58 +09:00
Kaede Hoshikawa
00b94d0051
Make Switch to accept a closure as render function directly ( #2659 )
...
* RenderFn can be be directly Fn() now.
* Switch switch to function component.
* Make Link a function component.
* Remove non-exhaustive.
* Add migration guide.
* Update Website Docs.
* Fix CI.
* Pushing to Navigator no longer requires an owned instance.
* Fix CI.
* Fix code size.
* Further optimisation.
2022-05-06 09:56:49 +09:00
Muhammad Hamza
c28a71e78e
Use nightly for Rustfmt ( #2630 )
...
* add rustfmt.toml, use nightly in CI, update contributing docs
* run `cargo +nightly fmt`
2022-04-21 23:21:15 +05:00
WorldSEnder
daf6ec0152
Reduce size of examples ( #2601 )
...
* Reduce size of examples with this one weird trick
* oops, fixup function_router
2022-04-11 17:02:59 +05:00
Kaede Hoshikawa
8bc2212716
#[cfg(feature = "render")] and yew::Renderer (#2498 )
...
* Bring changes to this branch.
* Bring changes to this branch.
* Add feature render and renderer.
* Bring changes to this branch.
* Migrate examples to Renderer.
* Satisfy no any render.
* Satisfy ssr.
* Satisfy feature render.
* Lint feature soundness.
* Suppress tests.
* Fix pr-flow, update docs.
* Add a notice.
* Adjust visibility.
* Correctly feature gate tests.
* make test scope available under feature render.
* Fix CI.
* Fix CI.
* Restore tests module to its original place as well.
* Make bundles crate private.
* Make most bundle APIs private.
* Adjust docs.
* Adjust debug implementation.
* Replace start_app with Renderer.
* Adjust documentation.
* Remove unused lint.
* Remove start_app from docs.
* DomBundle -> ReconcileTarget.
* Adjust documentation.
* Once render, now csr.
* Fix docs as well.
2022-03-20 00:48:47 +09:00
Muhammad Hamza
f05ba4152c
Update to edition 2021 ( #2354 )
...
* cargo fix --edition
* change edition="2018" to edition="2021" in Cargo.toml
2022-01-12 16:22:00 +02:00
Allan
b3f8ca1920
Replace Model with App or MyComponent ( #2336 )
...
`Model` is ambiguous and not a user-friendly name.
Some of the newer docs are already referring to the root component as
`App`.
This PR follows this naming scheme:
- `App` for a root component
- `MyComponent` for an arbitrary component
This naming is inspired by the React docs.
i18n references were not changed. They need a larger rewrite which will
go in a separate PR.
2022-01-07 20:50:21 +05:00
Kaede Hoshikawa
d8ec50150e
Add HashRouter, basename and use gloo-history ( #2239 )
...
* Migrate to gloo-history.
* Fix docs wording.
* Add basename handling to navigator.
* Fix basename handling.
* Add lints and tests.
* Fix wording.
* Fix docs.
* Fix pr-flow.
* Fix some documentation.
* Add Navigator Kind.
* Remove history.rs
* Add documentation for navigator & Concrete Router Props.
* Update website/docs/concepts/router.md
Co-authored-by: Julius Lungys <32368314+voidpumpkin@users.noreply.github.com>
* Add docs about basename.
* Update documentation.
* Fix docs.
Co-authored-by: Julius Lungys <32368314+voidpumpkin@users.noreply.github.com>
2021-12-19 20:38:33 +05:00
Jet Li
d2857c9c4e
Fix broken links in examples ( #2252 )
...
* Fix broken links in examples
* Fix broken links in examples
* Fix broken links in examples
* Fix broken links in examples
* Fix broken links in examples
* Fix broken links in examples
2021-12-08 19:13:40 +01:00
Julius Lungys
772afca02d
Router example fix burger ( #2207 )
...
* Router example center burger
* fix burger in chrome
2021-11-27 21:51:55 +05:00
Teymour Aldridge
7e2542cbf8
Add basic lints to the HTML macro. ( #1748 )
...
* Add basic lints to the HTML macro.
* f
* Fix the examples.
* Fix nightly warning message tests.
* apply code review suggestions
* update error message
* rebase onto master
* remove unused props
* remove console log
* remove js void
* fix according to PR comments
Co-authored-by: Julius Lungys <32368314+voidpumpkin@users.noreply.github.com>
2021-11-21 19:54:49 +05:00
Kaede Hoshikawa
f43760e3ca
Update Yew Router as per #2113 ( #2118 )
...
* Add Redirect Comp.
* Fix router behaviour.
* Fix output.
* Fix pr-flow.
* Remove Redirect.
* Readd 77b46bf.
* Router Context, History and Location.
* Finish Porting.
* Add Switch, Fix example.
* Add state.
* Fix pr-flow.
* Fix pr-flow.
* Fix unstable feature for 1.49.
* Add documentation.
* Error Types & Simplify Implementation.
* Add some tests.
* Update documentation.
* Fix route outside of a Switch.
2021-11-11 13:08:42 +02:00
Muhammad Hamza
2f47b09da4
Add custom type for attribute values ( #1994 )
...
* Add custom type for attribute values
* fix tests/example
* Remove `PartialEq<String>` and it's usage
* `ReferenceCounted` -> `Rc`
* fucking fake
* please CI, just turn green
2021-11-08 18:11:22 +01:00
mc1098
0e52b88742
Update gloo dependencies in yew and examples ( #2021 )
...
Updates to using the latest stable gloo, in some cases removing
dependencies on `master` branch.
Removes `weblog` in favour of `gloo_console`, where applicable.
2021-08-29 02:13:06 +01:00
mc1098
4e974dad92
Remove ShouldRender type alias ( #2011 )
...
Remove `ShouldRender` type alias for bool. In the Component trait an
extra comment has been added to explain what the returned bool
represents.
2021-08-25 17:52:09 +02:00
Muhammad Hamza
f50c8c3cba
Components v2 (2) ( #1961 )
...
* Start rewrite
* Rc > cloning props
* fmt + rm useless file
* move props inside `Context`
* router compiles
* fix boids example
* fix counter example
* fix crm example
* fix dyn_create_destroy_apps example
* fix file_upload example
* fix futures example
* fix game_of_life example
* fix inner_html example
* fix js_callback example
* fix mount_point example
* fix keyed_list example
* fix web_gl example
* fix two_apps example
* fix todomvc example
* fix timer example
* fix store example
* fix nested_list example
* fix node_refs example
* fix pub_sub example
* fix multi_thread example
* don't call `changed` if props weren't changed
* formatting
* fix doc tests, remove neq_assign
* update router example, fix neq_assign compile errors
* fix macro/rest of doc tests
* start updating documentation
* `Component`'s documentation
* Apply suggestions from code review
Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>
* Apply suggestions from code review (part 2)
* Apply suggestions from code review (part 3)
* fix context
* clippy
* post merge fixes
Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>
2021-08-25 13:11:39 +01:00
Xavientois
c1226a2813
Add shorthand syntax for props ( #1970 )
...
* Allow shortened prop syntax
* Use new syntax where appropriate
* Apply suggestions from code review
Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>
* Add tests to hit newly added error messages
* Fix clippy lints
* Re-trigger CI
* Revert error text
Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>
2021-07-31 23:01:02 +02:00
Xavientois
4a14d0f0a4
Add requirement for braces around most props ( #1939 )
...
* Limit the properties to literals and brace-enclosed expressions
* Update examples with new syntax
* Update packages/yew-macro/src/props/prop.rs
Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>
* Fix lints and strip braces around single expressions
* Update docs with new prop syntax
* Add some test cases for new syntax
* Ensure all tests are passing
* Clean up missed code
* Update tests
* Update reverted docs
* Revert versioned docs
* Fix optional attributes paragraph
* Remove accidentally added files
* Remove accidentally added french docs
* Update packages/yew-macro/src/props/prop.rs
Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>
* Fix forgotten braces and test cases
* Revert i18n old docs
* Revert translated docs
* Remove suggested fix in favour of more succinct error message
* Update errors after rebase
* Remove files accidentally added while rebasing
* Fix merge conflicts
Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>
Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>
2021-07-18 18:54:21 +02:00
Muhammad Hamza
2412a68bee
Refactor and cleanup codebase ( #1842 )
...
* remove yew-dsl
* remove yew-components
* remove yew-services
* remove yew::format
* fix CI
* move yew::agent to yew-agent crate
* move yew-functional to yew
plus a couple of misc fixes
* move futures and neqassign out of yewtil
* move yewtil::store to yew_agent, remove yewtil
* formatting
* fix tests
* update docs
* use `rustwasm` gloo repo instead of mine
* add docs
* use rustwasm/gloo repo
* remove unused file
* fix Makefile.toml
* Fix issues after rebase
* Apply suggestions from code review (part 1)
Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>
* Apply suggestions from code review (part 2)
* move `#[function_component(_)]` tests
missed those before
* Apply suggestions from code review
Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>
Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>
2021-07-18 15:57:09 +02:00
Hamza
8fc81b47ee
Fix issues after cherry-picking
2021-06-05 23:00:58 +02:00
Simon
f17d370217
Implicit optional attributes ( #1637 )
2021-06-05 23:00:58 +02:00
Diggory Blake
2475e160fd
Fix delay when loading posts page in router example ( #1887 )
2021-05-31 00:41:11 +02:00
Muhammad Hamza
af440761ed
Rewrite router ( #1791 )
...
* rewrite router
* add support for 404 routes
* support base urls
* parse query params
* don't use js snippets lol
* cleanup code, update example
* bruh fmt
* test router
* add more tests
* wasm_test feature, CI
* Add rustdocs
* update docs on website
* use enum for routes, add derive macro for it
* fix 404 handling
* fix tests
* formatting
* update docs, little cleanup
* fix example
* misc fixes
* add routable macro tests
* document routable macro, rustfmt
* fix test, add makefile
* Replace the children based API with callback based one
* update example
* update docs
* update Cargo.toml
* clippy & fmt
* cleanup code
* apply review
* more fixes from review
* fix warnings
* replace function component with struct component, update docs
* formatting
* use `href` getter instead of reading attribute
* apply review
* use serde to parse query parameters
* use js_sys::Array for search_params + formatting
* fix doc test
* Apply suggestions from code review
Co-authored-by: Simon <simon@siku2.io>
* Update docs/concepts/router.md
apply suggestion
Co-authored-by: Simon <simon@siku2.io>
* apply review (part 2)
* use serde for parsing query
* a more modular implementation
* docs for query parameters
* fix doc
* Apply suggestions from code review
Co-authored-by: Simon <simon@siku2.io>
* fixes (from review)
* formatting
* use new functions
* not_found returns `Option<Self>`, to_route -> to_path
* Apply suggestions from code review
Co-authored-by: Simon <simon@siku2.io>
* remove PartialEq + Clone bound
* docs
* fix example
Co-authored-by: Simon <simon@siku2.io>
2021-05-17 17:39:12 +02:00
Jasper
c51ab7f094
Added missing licenses to Cargo.toml files and updated to use SPDX syntax ( #1822 )
2021-04-25 23:24:14 +02:00
Xavientois
f27e268f7e
Add support for the unit struct in Properties derive ( #1752 )
...
* Add support for the unit struct in Properties derive
* Add test to show that the code now compiles
* Fix fmt lint
2021-02-20 14:45:17 +01:00
Teymour Aldridge
b074b4b87d
Add a note explaining the need for a <base> tag. ( #1743 )
2021-02-14 23:20:05 +01:00
Teymour Aldridge
e0be985082
Replace #[to="..."] attribute with #[at="..."] attribute. ( #1717 )
...
* Replace `#[to="..."]` attribute with `#[at="..."]` attribute.
* Fix attribute formatting
* Fix spelling
2021-02-05 18:48:26 +01:00
Teymour Aldridge
aaa03374dc
Fix router example. ( #1729 )
2021-02-05 18:41:37 +01:00
Muhammad Hamza
ab76a446f1
Move yew/services to yew-services crate ( #1693 )
...
* move yew/services to yew-services crate
* fix stdweb examples
* remove services feature usage from workflow
* attempt at making CI pass
* remove unused feature
* add feature i missed during merge
* okay, it should compile now
* apply review
* fix yew-stdweb & aplease fmt
* misc fixes
Co-authored-by: Justin Starry <justin.starry@icloud.com>
2021-01-23 22:49:00 +08:00
Philip Peterson
e6a3ae7301
Move top-level crates to packages/<crate> ( #1680 )
...
* Move crates to packages/*
* Update Cargo.toml
* Update links
* Fix pull-request.yml
* Update examples Cargo.toml
* Update relative paths
* Update tests
* Fix path
2021-01-12 11:32:48 +08:00
Simon
4209fab1de
Revert "Update rand requirement from 0.7 to 0.8 ( #1682 )" ( #1684 )
...
This reverts commit 4a4a4536c4da05633f7c1b5a2e20b8325211f7fa.
2021-01-08 20:11:40 +01:00
dependabot[bot]
4a4a4536c4
Update rand requirement from 0.7 to 0.8 ( #1682 )
...
Updates the requirements on [rand](https://github.com/rust-random/rand ) to permit the latest version.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/commits/0.8.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-08 19:21:31 +01:00
dependabot[bot]
60fed58b31
Update rand requirement from 0.7 to 0.8 ( #1672 )
...
Updates the requirements on [rand](https://github.com/rust-random/rand ) to permit the latest version.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/compare/0.7.0...0.7.3 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-27 14:31:22 +08:00
Cecile Tonglet
9737fe77db
Extract Classes to a separate macro ( #1601 )
...
* Initial commit
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* Add feature flag for now
* WIP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* Add macro classes!()
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* WIP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* rustfmt
* WIP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* CLEANUP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* CLEANUP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* CLEANUP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* rustfmt
* WIP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* WIP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* WIP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* WIP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* Not sure why there is a prelude.rs file here...
* WIP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* CLEANUP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* CLEANUP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* WIP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* WIP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* Revert example changes
* WIP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* CLEANUP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* WIP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* CLEANUP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* CLEANUP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* CLEANUP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* CLEANUP
Forked at: 7e6d6c43f0aa98d78ae34654d49e1cf84d252cce
Parent branch: yewstack/master
* Revert back to e2717ae6281691f9563079ef07b56b24b6431ff1
* Put back original class behavior in html!
* Store span and use quote_spanned!
* Deprecation warning
* Better error message
* cargo fmt & fix conflict leftover oops
* Fix clippy: missing import
* What have I done
* Use Token! instead of Comma
* Apply suggestion
* Renamed HtmlClasses to Classes
* Remove clippy attribute & add dedicated tests
* Remove span from Single variant
* Spacing stuff with quote_spanned!
* Removed "use" and use path to Classes
* Some doc
* Replace Vec<Expr> with ExprTuple
* rustfmt
* Move classes to its own module
* Move tests from vtag to classes
* Update classes-fail.stderr
* Check for spaces in string literals
* Use unchecked_push for string literals
* Fixed tests
* More doc
* Tested doc in browser and make boolinator import visible
* Improve doc a tad bit
* Stuff
* Fix due to change with string literal
* Typo
* Moved classes to html
* Update macro new path for Classes
* Test fix
* Example fix
* Update classes-fail.stderr
* Fixed weird error
* Update yew/src/lib.rs
Co-authored-by: Simon <simon@siku2.io>
* Update yew/Cargo.toml
* Update yew/src/html/classes.rs
Co-authored-by: Simon <simon@siku2.io>
* Update docs/concepts/html/classes.md
Co-authored-by: Simon <simon@siku2.io>
* I blame GitHub
* Use syn::Result
* Apply suggestions
* Update yew-macro/src/classes/mod.rs
Co-authored-by: Simon <simon@siku2.io>
* Update yew-macro/tests/macro_test.rs
Co-authored-by: Simon <simon@siku2.io>
* Replaced html! by classes!
* Moved classes tests
* Renamed doc title
* Apply suggestion
* Update yew-macro/src/html_tree/html_element.rs
Co-authored-by: Simon <simon@siku2.io>
* Fixed span badly handled in macro
* no implicit prelude
* Update yew/src/lib.rs
Co-authored-by: Simon <simon@siku2.io>
* Improve documentation
* Yeah... OK
* OMG clippy
* Please squash merge and don't keep my commit messages
* Safety notice
* Change "Yew's macros" to "HTML"
* Unneeded closure
* Boxing stuff 🥊
* Indentation issue
* Removed unneeded block & removed duplicated code
* Renamed "macros" to "html_macro"
* Better span
* Doc: advice to use `classes!`
* Doc: fix error and remove one "and"
* Removed interpolated example
* Remove unnecessary tests and add test for deprecated syntax
* Link to classes!
* Update yew-macro/tests/html_macro_test.rs
Co-authored-by: Simon <simon@siku2.io>
* Renamed fail test
* Apply suggestion
* WIP
* WIP
* cargo make pr-flow passes locally, let's try again
Co-authored-by: Simon <simon@siku2.io>
2020-11-25 16:32:53 +01:00
Simon
a959796794
Update to Trunk 0.7 ( #1614 )
...
* install trunk from brew
* update examples
* prepare multi_thread (even tho it's still WIP)
2020-10-10 23:58:34 +02:00
Simon
5217ed9347
Use --public-url value in router example ( #1597 )
...
* Use --public-url value for router example
* some documentation
2020-10-02 01:11:55 +02:00
Simon
66d506e133
Update documentation for the new examples ( #1586 )
...
* fix todomvc example
* update READMEs now that we're hosting the examples
* update documentation
* add trunk template
* Improve wording
2020-09-23 03:47:28 +02:00
Simon
41af85e6c5
Host examples on Firebase ( #1582 )
...
* remove getrandom from game_of_life
I know the wasm-bindgen feature is deprecated but this is more convenient for now
and all the other examples use it this way as well.
We can update all of them in one go when rand 0.8 rolls around
* update todomvc README
* clean up yew-macro makefile
See: https://github.com/yewstack/yew/pull/1541#discussion_r488747622
* Use Firebase Hosting
2020-09-22 18:04:32 +02:00
Simon
c946b99610
Overhaul examples ( #1559 )
...
* remove old files
* update counter
* update crm example
* Add readme for counter
* update custom_components
* update webgl example
* update two_apps
* update todomvc
* mark special case multithread
* update dashboard
* update examples readme
* file_upload example
* fragments example
* futures example
* game_of_life example
* inner_html example
* js_callback example
* keyed_list example
* remove large_table
* remove minimal
* mount_point example
* I can't count apparently
* nested_list example
* node_refs example
* timer example
* store example
* pub_sub example
* rip npm_and_my_sanity
* use a title™️
* clean up multi_thread
* fix format
* boids part 1
* boids part 2
* add workflow
See: <https://github.com/siku2/yew/pull/13 >
* remove my little scratchpad again
* add boids to examples table
* runtime-generated list in nested_list example
* update workflow
* first batch of yewtil examples
* clippy "futures"
* remove old yew-router examples
* add a new router example to the main examples
* remove remaining yewtil examples
* more progress
* update for testing purposes
* author list
* improve content generation
* revert this mistake
I thought it would be great to use `unimplemented!()` in case the component doesn't have any properties.
This helps avoid the mistake of forgetting to update the change method when adding props later on.
What I didn't consider is that just because the props are () that doesn't mean that Yew isn't going to call it...
So yeah, it's still a good idea for update, but certainly not for change.
* missed a few
* turn router switch example into test
* seems to be working
* make it possible to host the router example on a sub-path
* create a 404 file for SPA
* remove the three examples and update table
* remove the 404 file because it isn't working anyway
* fix small router issue relating to the sub-path hack
2020-09-22 00:17:48 +02:00