Cecile Tonglet
b00721954a
Better ImplicitClone ergnomics ( #3508 )
...
* Use cheap-to-clone types more
* Use IArray in NodeSeq & add IntoPropValue for &AttrValue
* Add function get_mut() on VChild to make things easier
* Use AttrValue in timer_functional example
* fix VList PartialEq
* extract implicit-clone as workspace dep and bump to 0.5.1
* docs: advocate using IArray and IMap instead of Vec and HashMap
* docs: AI translation for lifecycles.mdx in Japanese and simplified Chinese
---------
Co-authored-by: Mattuwu <syan4@ualberta.ca>
2025-08-27 15:21:50 +09:00
Siyuan Yan
5f919bd185
bump MSRV to 1.84.0 and use resolver 3 ( #3900 )
2025-08-20 20:25:08 +09:00
Siyuan Yan
b4d083ef8f
concise diagnostics for missing props ( #3873 )
2025-07-09 22:29:57 +09:00
Siyuan Yan
4a28de483a
Only rewrite async closure for rust version before 1.85.0 ( #3831 )
...
* use_prepared_state with unit type is unlikely usage
---------
Co-authored-by: Matt "Siyuan" Yan <mattsy1999@gmail.com>
2025-03-26 16:02:55 +09:00
Tim Kurdov
0091679779
Make <textarea> a void element ( #3465 )
...
* made <textarea> a void element
* added defaultvalue special attr to <textarea>
* updated error message when trying to pass children to textarea
* updated docs, fixed formatting
* fixed hydration test
* fixed suspense test
* fixed heading in docs
* fixed clippy warnings
* fixed SSR, added SSR test for precedence of value over defaultvalue
* fixing wasm-bindgen-test screwups & replacing deprecated function use
2025-02-20 18:13:07 +00:00
Elina
b8d3e21ca0
Raise MSRV to 1.76 ( #3693 )
...
* raise msrv to 1.76
* remove older impls
* bless trybuild tests
* Update packages/yew/src/scheduler.rs
2024-08-03 16:09:34 +05:00
Elina
37e668b19b
Fix CI for 1.80 ( #3691 )
...
* fix rust 1.80 lints
* attempt to fix benchmark ci
2024-07-25 20:33:14 +05:00
Tim Kurdov
753bafefdd
Remove the dependency on boolinator ( #3420 )
...
* removed boolinator from dependencies of yew-macro
* removed boolinator from the dependencies of tools/website-test
* fixed formatting
* removed a lint fix
2023-09-29 20:33:24 +09:00
GitHub Action
4c3bcdc692
(cargo-release) version {{crate_name}}-v{{version}}
2023-09-29 11:04:56 +00:00
dependabot[bot]
4023c88c39
Bump indexmap from 1.9.3 to 2.0.0 ( #3322 )
...
* Bump indexmap from 1.9.3 to 2.0.0
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.9.3 to 2.0.0.
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/bluss/indexmap/compare/1.9.3...2.0.0 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Update dependency minimum version
* clippy
* Bump MSRV to 1.64
* more clippy
* Update action that fails (probably outdated)
* Bump implicit-clone to 0.3.8
* Forgot to bump MSRV in some places
* Forgot to update setup-chromedriver in one place
* Bump implicit-clone to 0.4.0
* Update stderr files
* clippy
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Cecile Tonglet <cecile.tonglet@cecton.com>
2023-07-29 22:00:53 +09:00
Muhammad Hamza
cc9dd0271e
Update dependencies ( #3171 )
...
* Update to syn 2
* bless macro outputs
* update prettyplease
* fix review + update lockfile
2023-03-28 19:41:55 +09:00
GitHub Action
1bbe75ec9b
(cargo-release) version {{crate_name}}-v{{version}}
2022-11-25 18:28:11 +05:00
Muhammad Hamza
9e0d7966bc
Make Yew lints opt-in ( #2882 )
...
* Add compiler flag for Yew lints
* Use --cfg yew_lints in CI
* Remove lints feature
* bless the fail.stderr
* Fix CI
2022-09-25 21:54:24 +09:00
Muhammad Hamza
a4e70914ac
Convert nightly from a feature flag to a compiler flag ( #2827 )
...
* `nightly_yew` compiler flag instead of `nightly` feature
* update ci
* update ci: 2
* fmt & nightly_yew for examples
* update size-cmp too
2022-08-15 04:03:45 +09:00
Kaede Hoshikawa
7f5eb3890c
Streamed SSR Response ( #2697 )
...
* yew::platform?
* Stream Response.
* Migrate example
* Remove old implementation.
* Remove extra implementation.
* Prefer String instead of Cow.
* Fix MSRV.
* Fix trybuild.
* Optimise Memory Allocation.
* More optimisation.
* BufWriter.
* Fix tests.
* Optimise BufWriter.
* Remove more allocations.
* Allow setting of buffer capacity.
* Fix capacity size.
* Fix capacity size.
* Remove unneeded const notation.
* Fix macro tests.
* Slightly optimises BufWriter committing logic.
* Optimise Implementation.
* Move BufWriter to a separate file.
* Additional Implementation Note.
* Adjust API so it matches `std::channel::mpsc::channel`.
* Fix feature soundness.
* Make a compatibility layer on channels.
* Fix clippy.
* Fix feature soundness.
* Fix CI.
* Inlining.
* Add documentation.
* Punctuation.
* Switch to tokio channel.
* Remvoe pin-project.
* Fix feature soundness.
* Typo.
* Move io to platform.
* Tokio does not compile.
* Fix workflow.
* Restore wrongly removed docs.
* Does tokio work?
* Switch back to tokio.
* Remove pin-project.
* Use cargo resolver 2.
* Add panic notice.
* Update documentation.
* Properties does not have to be send.
* Fix capacity checking as pointed in the review.
* Implementation order.
* Update note.
2022-07-01 14:26:12 +05: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
Muhammad Hamza
54de041981
Nightly features ( #2743 )
...
* Nightly features
* Tests
* Fix tests
* Don't invent new syntax
* Do not impl Fn for UseReducerHandle
* Simplify UseForceUpdateHandle
* Manually specify clippy features
* Revert "Simplify UseForceUpdateHandle"
This reverts commit 761dbb0f8bb7c280054d55dcc724f08604ee4ece.
* `UseForceUpdateHandle`
* fmt
2022-06-24 19:21:02 +05:00
Muhammad Hamza
526ecb975e
Increase MSRV to 1.56.1 ( #2740 )
2022-06-19 18:45:52 +05:00
WorldSEnder
1d579a8bf4
Rework a bunch of cfg(feature) flags to be more principled ( #2666 )
...
* rework a bunch of feature flags to be more principled
* fixup of Collectable
* silence clippy
* unfix Mountable trait
leads to bundle size increase, so stick to the optimized version
* use required-features for function_router
* use --all-features in various places
* disable tokio dependency on wasm tests again
* add some #[inline] annotations
* merge one more feature annotations
* fixup: remove a line connected to trace_hydration
2022-05-07 21:17:47 +05:00
Kaede Hoshikawa
485a1b8c4a
Function Components & Hooks V2 ( #2401 )
...
* Make a use_hook hook with the new Hook trait.
* Implement Lifetime.
* Rewrites function signature.
* Only apply lifetime if there're other lifetimes.
* Cleanup signature rewrite logic.
* Rewrite hook body.
* Port some built-in hooks.
* Finish porting all built-in hooks.
* Port tests.
* Fix tests.
* Migrate to macro-based hooks.
* Fix HookContext, add tests on non-possible locations.
* Fix stderr for trybuild.
* Add 1 more test case.
* Adjust doc location.
* Pretty print hook signature.
* Fix Items & std::ops::Fn*.
* Add use_memo.
* Optimise Implementation of hooks.
* Use Box to capture function value only.
* Detect whether needs boxing.
* Add args if boxing not needed.
* Enforce hook number.
* Deduplicate use_effect.
* Optimise Implementation.
* Update documentation.
* Fix website test. Strip BoxedHook implementation from it.
* Allow doc string.
* Workaround doc tests.
* Optimise codebase & documentation.
* Fix website test.
* Reduce implementation complexity.
* Destructor is no more.
* Documentation and macros.
* Reduce heap allocation and hook complexity.
* Remove Queue as well.
* Prefer Generics.
* Fix typo.
* Remove more allocations.
* Add comments.
* Remove outdated comment.
* Bare Function Pointer for better code size.
2022-01-28 11:51:37 +02: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
Muhammad Hamza
b456636111
Bump minimal supported rust version (MSRV) to 1.56 ( #2334 )
...
* Bump MSRV to 1.54
* add rust version to Cargo.toml
* update macro test stderr
* 1.56 go brrrr
* 1.56 go brrrr: part 2 electric boogaloo
2022-01-06 19:32:48 +02:00
GitHub Action
4d96d3d87d
(cargo-release) version yew-macro-v0.19.3
2021-12-11 19:44:22 +00:00
Julius Lungys
457e98682d
Fix failed release ( #2261 )
...
* Revert "(cargo-release) version yew-v0.19.2"
This reverts commit feb45d81bc4ac7f5c6966622cb87286a1fa46d4e.
* (cargo-release) version yew-macro-v0.19.2
* remove publish = false
2021-12-11 21:31:34 +02:00
Cecile Tonglet
63eb95ca44
(cargo-release) version yew-macro-v0.19.1
2021-12-07 19:23:47 +01:00
Julius Lungys
d3d4b1dae6
(cargo-release) version yew-macro-v0.19.0 ( #2245 )
2021-12-06 15:33:32 +01: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
mc1098
adb3fcfce1
Update dependencies ( #2064 )
...
General review of dependencies, removing ones that are not used and
bumping up minor versions to avoid breakage.
Consistent use of caret so that we use the most recent minor/patch
version of a dependency when building Yew crates.
2021-09-19 11:14:08 +02:00
Cecile Tonglet
e1f539a085
(cargo-release) version 0.18.0
2021-06-05 23:00:58 +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
Philip Peterson
5fc4387dc5
Rip out stdweb ( #1697 )
...
* feat: Remove usage of stdweb
* Cleanup Cargo.toml
* yew-services fixes
* fix doc test
Co-authored-by: Justin Starry <justin.starry@icloud.com>
2021-01-24 00:14:15 +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