2714 Commits

Author SHA1 Message Date
Nika
b246e0d5ed
Update broken links (#3911)
* tree-wide: update links to https://rustwasm.github.io/wasm-bindgen

https://rustwasm.github.io/wasm-bindgen -> https://wasm-bindgen.github.io/wasm-bindgen
https://rustwasm.github.io/docs/wasm-pack -> https://drager.github.io/wasm-pack/book/
https://rustwasm.github.io/wasm-pack -> https://github.com/drager/wasm-pack
2025-09-01 14:15:44 +00:00
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
Nika
1afb054e8e
website: update link to unmaintained documentation (#3909)
rustwasm.github.io/docs/wasm-bindgen -> https://wasm-bindgen.github.io/wasm-bindgen
2025-08-26 22:03:06 +09:00
Siyuan Yan
50f987d9f5
Upgrade bincode from 1.x to 2.0.0-rc.3 (#3899)
- Updated bincode dependency to 2.0.0-rc.3 in yew and yew-agent packages
- Migrated from bincode::serialize/deserialize to bincode::serde::encode_to_vec/decode_from_slice
- Updated test expectations for changed base64 encoding format
- Used 2.0.0-rc.3 to maintain MSRV compatibility with Rust 1.78.0
2025-08-22 03:57:44 +09:00
Ruslan S.
0102d62d60
Add Function Delayed Input Processing Example (#3586)
Co-authored-by: Mattuwu <syan4@ualberta.ca>
Co-authored-by: Kirill <burnytc@gmail.com>
2025-08-22 02:23:14 +09:00
Jesper Olsen
741849d892
grid logic 2 conway.rs (#3598)
Co-authored-by: Mattuwu <syan4@ualberta.ca>
2025-08-21 18:09:40 +09:00
Siyuan Yan
0f05f02bf5
deps(tokio): bump minor ver; extract workspace dep; tree-shake features (#3903) 2025-08-21 14:12:27 +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
06845fff9f
website: upgrade Docusaurus to 3.8.1 with system color mode support (#3897) 2025-08-16 15:56:32 +09:00
Siyuan Yan
26b4c51709
chore: bump indexmap from 2.8.0 to 2.10.0 (#3898) 2025-08-16 15:56:07 +09:00
Siyuan Yan
1707f03784
Add the unstable section back in .cargo/config.toml (#3896) 2025-08-13 15:27:53 +09:00
Siyuan Yan
5a1864643f
apply attributes before inserting elements into the DOM (#3892) 2025-08-12 12:03:57 +00:00
Siyuan Yan
8390db0c07
remove now stable doctest-xcompile (#3893) 2025-08-12 18:05:27 +09:00
Siyuan Yan
4ca16f95d2
rustversion 1.0.22 turns off incompatible_msrv automatically (#3889) 2025-08-10 01:31:46 +00:00
Siyuan Yan
7955547b40
fix dependency not working with rustc 1.78 (#3890) 2025-08-10 04:59:33 +09:00
Siyuan Yan
93e862b1d0
fix: hydration panic on camelCased elements (#3876)
* fix: hydration panic on camelCased elements
        via namespace-aware tag comparison
* add test for hydration involving camelCase svg

Compare tags case-insensitively for HTML elements and case-sensitively
for namespaced elements (SVG, MathML) to match browser behavior.

Use eq_ignore_ascii_case for HTML namespace comparison

* fix: suppress the incompatible_msrv lint for newer rust versions
* fix: clippy warnings

- Allow incompatible_msrv for PanicInfo type (stable since 1.81.0)
- Allow dead_code for test struct Comp
- Remove unnecessary parentheses in closure

---------

Co-authored-by: Matt "Siyuan" Yan <mattsy1999@gmail.com>
Co-authored-by: WorldSEnder <6527051+WorldSEnder@users.noreply.github.com>
2025-08-08 13:10:44 +00:00
dependabot[bot]
21f373b42d
Bump jetli/trunk-action from 0.5.0 to 0.5.1 (#3887)
Bumps [jetli/trunk-action](https://github.com/jetli/trunk-action) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/jetli/trunk-action/releases)
- [Commits](https://github.com/jetli/trunk-action/compare/v0.5.0...v0.5.1)

---
updated-dependencies:
- dependency-name: jetli/trunk-action
  dependency-version: 0.5.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-05 02:52:32 +09:00
dependabot[bot]
56abb15333
Bump actions/github-script from 6 to 7 (#3549)
Bumps [actions/github-script](https://github.com/actions/github-script) from 6 to 7.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-01 08:44:30 +09:00
dependabot[bot]
e74ef49a24
Bump image-size from 1.2.0 to 1.2.1 in /website (#3836)
Bumps [image-size](https://github.com/image-size/image-size) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/image-size/image-size/releases)
- [Commits](https://github.com/image-size/image-size/compare/v1.2.0...v1.2.1)

---
updated-dependencies:
- dependency-name: image-size
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-31 12:18:32 +09:00
dependabot[bot]
11132707f0
Bump estree-util-value-to-estree from 3.2.1 to 3.3.3 in /website (#3839)
Bumps [estree-util-value-to-estree](https://github.com/remcohaszing/estree-util-value-to-estree) from 3.2.1 to 3.3.3.
- [Release notes](https://github.com/remcohaszing/estree-util-value-to-estree/releases)
- [Commits](https://github.com/remcohaszing/estree-util-value-to-estree/compare/v3.2.1...v3.3.3)

---
updated-dependencies:
- dependency-name: estree-util-value-to-estree
  dependency-version: 3.3.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-31 12:17:52 +09:00
dependabot[bot]
6a5d149047
Bump http-proxy-middleware from 2.0.7 to 2.0.9 in /website (#3849)
Bumps [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) from 2.0.7 to 2.0.9.
- [Release notes](https://github.com/chimurai/http-proxy-middleware/releases)
- [Changelog](https://github.com/chimurai/http-proxy-middleware/blob/v2.0.9/CHANGELOG.md)
- [Commits](https://github.com/chimurai/http-proxy-middleware/compare/v2.0.7...v2.0.9)

---
updated-dependencies:
- dependency-name: http-proxy-middleware
  dependency-version: 2.0.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-24 14:07:54 +09:00
dependabot[bot]
a8e4caf6dc
Bump JamesSingleton/is-organization-member from 1.0.1 to 1.1.0 (#3851)
Bumps [JamesSingleton/is-organization-member](https://github.com/jamessingleton/is-organization-member) from 1.0.1 to 1.1.0.
- [Release notes](https://github.com/jamessingleton/is-organization-member/releases)
- [Commits](https://github.com/jamessingleton/is-organization-member/compare/1.0.1...1.1.0)

---
updated-dependencies:
- dependency-name: JamesSingleton/is-organization-member
  dependency-version: 1.1.0
  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>
2025-07-24 14:07:28 +09:00
dependabot[bot]
5ffe777150
Bump on-headers and compression in /website (#3877)
Bumps [on-headers](https://github.com/jshttp/on-headers) and [compression](https://github.com/expressjs/compression). These dependencies needed to be updated together.

Updates `on-headers` from 1.0.2 to 1.1.0
- [Release notes](https://github.com/jshttp/on-headers/releases)
- [Changelog](https://github.com/jshttp/on-headers/blob/master/HISTORY.md)
- [Commits](https://github.com/jshttp/on-headers/compare/v1.0.2...v1.1.0)

Updates `compression` from 1.7.5 to 1.8.1
- [Release notes](https://github.com/expressjs/compression/releases)
- [Changelog](https://github.com/expressjs/compression/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/compression/compare/1.7.5...v1.8.1)

---
updated-dependencies:
- dependency-name: on-headers
  dependency-version: 1.1.0
  dependency-type: indirect
- dependency-name: compression
  dependency-version: 1.8.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-24 14:03:48 +09:00
Siyuan Yan
607a6cc4b2
implement ImplicitClone for more types (#3878)
UseStateHandle, UseStateSetter, UseReducerHandle, UseReducerDispatcher
2025-07-24 13:58:31 +09:00
Tim Kurdov
f0b182d391
yew: function_component -> component (#3885) 2025-07-21 10:06:41 +09:00
Tim Kurdov
16fd8b085a
website: modernise the tutorial (#3882) 2025-07-21 04:16:16 +09:00
Techuuu
61ae2aa4ef
Update README.md (#3500)
Improved typos and documentation
2025-07-20 23:19:20 +09:00
Tim Kurdov
cf03715a66
website-test: make diff resolver use more context to avoid ambiguities (#3883) 2025-07-20 09:00:44 +09:00
Tim Kurdov
b58a8748a0
fix the docs of use_prepared_state (#3881) 2025-07-19 19:13:13 +09:00
Tim Kurdov
4f3b85e31d
website: make tutorial testable (#3879) 2025-07-19 18:49:07 +09:00
Tim Kurdov
7ff45d3198
Added a serde feature to yew (#3880) 2025-07-19 05:53:40 +09:00
Tim Kurdov
fd96a9abca
Add for-loops to html! (#3498) 2025-07-15 15:29:27 +09:00
rustfix
8945ab7856
chore: fix some minor issues in the comments (#3872)
Signed-off-by: rustfix <771054535@qq.com>
2025-07-10 15:09:30 +09:00
Siyuan Yan
b4d083ef8f
concise diagnostics for missing props (#3873) 2025-07-09 22:29:57 +09:00
gcmutator
4d08a03355
chore: remove redundant word in comment (#3868)
Signed-off-by: gcmutator <329964069@qq.com>
2025-06-17 15:34:31 +09:00
flumm
122684babe
Fix typo in test for Key (#3856)
15_u64 and 15_u128 result in a duplicate, key, so change it to 16_u128.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2025-05-21 13:54:53 +02:00
Luca Cappelletti
17cbf2f026
Vendoring gloo-workers into yew-agent, support module type web worker (#3859) 2025-05-20 12:45:46 +09:00
flumm
433a0f2eca
Avoid string copy for Key: From<String> implementation (#3858)
The macro uses `to_string().as_str()` which copies the string. Avoid
that by using `as_str()` directly on the source.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2025-05-13 12:06:17 +00:00
WorldSEnder
a86c4f847f
Fix nightly lints and various small CI issues (#3857)
* fix lint span location

`feature(proc_macro_span)` has been partially stabilized in 1.89 (currently nightly) so
use it without feature config now.

* fix various other small lints that got added over time
* use build-examples binary in size-cmp to unify build process
* adjust optimization flags to newer nightly compiler
2025-05-12 18:57:14 +02:00
Robert Schütte
718cd29eea
Introduces the FromQuery and IntoQuery traits (#3565)
* Introduces the FromQuery and IntoQuery traits

* Added documentation
2025-04-30 16:46:41 +09:00
dependabot[bot]
3b5c8910eb
Bump openssl from 0.10.71 to 0.10.72 (#3838)
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.71 to 0.10.72.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.71...openssl-v0.10.72)

---
updated-dependencies:
- dependency-name: openssl
  dependency-version: 0.10.72
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-14 12:50:06 +09:00
dependabot[bot]
8d64ce0e00
Bump tokio from 1.43.0 to 1.43.1 (#3840)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.43.0 to 1.43.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.43.0...tokio-1.43.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-version: 1.43.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-09 17:54:03 +09:00
Siyuan Yan
b0d0656261
docs: synchronize #3555 0.21 changes to Next (#3834) 2025-03-26 23:04:57 +09:00
Ishan Chawla
842dc29ddc
[Website] Grammar edit on wasm-bindgen.mdx (#3555) 2025-03-26 22:55:42 +09:00
dependabot[bot]
57b376c19b
Bump hmarr/auto-approve-action from 3 to 4 (#3615)
Bumps [hmarr/auto-approve-action](https://github.com/hmarr/auto-approve-action) from 3 to 4.
- [Release notes](https://github.com/hmarr/auto-approve-action/releases)
- [Commits](https://github.com/hmarr/auto-approve-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: hmarr/auto-approve-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-26 22:52:12 +09:00
Jurrian Fahner
57b29f20a4
Fix getting started docs for windows users (#3703)
* Add note for trunk windows bug
2025-03-26 16:28:16 +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
Moritz Hedtke
e5b2cf3611
Fix autocompletion in html macro for rust-analyzer (#3829) 2025-03-26 03:57:28 +09:00
Siyuan Yan
cd32e17b1f
chore: bump deps (#3832) 2025-03-26 00:53:55 +09:00
Nashwan Azhari
572f595621
docs: update tutorial placeholder image generator. (#3830)
Signed-off-by: Nashwan Azhari <aznashwan@icloud.com>
2025-03-25 13:25:23 +09:00