439 Commits

Author SHA1 Message Date
Muhammad Hamza
5e823e729d
Prepare for 0.21 release (#3412)
* Update CHANGELOG

Changelog run: https://github.com/yewstack/yew/actions/runs/6283917852/job/17064800916

* docusaurus docs:version 0.21

* migration guide

* blog post

* prettier

* make website warnings go away

* make GA work

* Apply suggestions from code review

* Apply suggestion from review

Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>

* prettier

---------

Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>
2023-09-29 19:10:07 +09:00
Tim Kurdov
30e2d548ef
Added a note about using suspension (#3410)
* added a note about implementing suspending hooks

* fixed formatting

* extracted part of the note into a danger block

* added :::

* added spaces
2023-09-23 23:00:35 +09:00
RazaGR
5bab22da4a
Add neovim configuration to docs (#3400)
* add neovim configuration doc

add neovim configuration documentation to setup with lazy.vim plugin.

* prettier

---------

Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2023-09-23 18:15:40 +05:00
Imbus
0c802f80ea
Documentation changes related to context code snippets (#3396) 2023-09-23 22:03:48 +09:00
Tim Kurdov
a2786b1e14
Improve Context API docs (#3409)
* improved context API docs, added example of struct component context producer

* forgot to commit that oops
2023-09-23 14:56:06 +02:00
Daniel Sousa
954b0ec7b9
Correct minor mistakes in website (#3405)
* Remove whitespace in website tutorial

* Update index.mdx

Remove whitespace in tutorial.

* Add more information to website.

Changes to be committed:
	modified:   website/docs/tutorial/index.mdx
	modified:   website/versioned_docs/version-0.20/getting-started/build-a-sample-app.mdx
	modified:   website/versioned_docs/version-0.20/tutorial/index.mdx

* Remove error: doctest failed, to rerun pass `-p website-test --doc`

Changes to be committed:
	modified:   website/docs/migration-guides/yew/from-0_18_0-to-0_19_0.mdx

* Correction of minor mistakes in website.

Changes to be committed:
	modified:   website/docs/getting-started/build-a-sample-app.mdx
	modified:   website/docs/tutorial/index.mdx
	modified:   website/versioned_docs/version-0.20/getting-started/build-a-sample-app.mdx
	modified:   website/versioned_docs/version-0.20/tutorial/index.mdx

* Run Prettier
Changes to be committed:
	new file:   package-lock.json
	modified:   website/docs/tutorial/index.mdx
	modified:   website/package-lock.json
	modified:   website/package.json
	modified:   website/versioned_docs/version-0.20/getting-started/build-a-sample-app.mdx
2023-09-23 17:48:22 +05:00
Pouriya
2cbe6cee8a
feat: support arrays for Classes/classes!() (#3393)
* feat: support arrays for Classes/classes!()

* style: update
2023-09-23 21:38:59 +09:00
Connor King
7706bcf3a3
Say something about trunk serve at the top (#3394)
* Say something about `trunk serve` at the top

I was following this guide and did `cargo run` instead of `trunk serve` and was very confused

* Remove blank line

to make Prettier happy
2023-09-23 21:35:33 +09:00
Daniel Sousa
b71dbfe17e
Fix failing doc test in migration guide (#3404)
* Remove error: doctest failed, to rerun pass `-p website-test --doc` (#3404)

Changes to be committed:
	modified:   website/docs/migration-guides/yew/from-0_18_0-to-0_19_0.mdx
2023-09-23 17:34:11 +05:00
Daniel Sousa
e249128f12
Remove whitespace in website tutorial (#3402)
* Remove whitespace in website tutorial

* Update index.mdx

Remove whitespace in tutorial.
2023-09-21 17:30:20 +05:00
Sahil Upasane
6b9d1964eb
Link to tailwind trunk example to CSS docs (#3384)
* Update css.mdx

Added how to use tailwind css with yew

* Added how to use tailwind css with trunk on website docs

* ran prettier

* minor fix
2023-09-02 18:36:30 +09:00
Sahra
d469d4dcbe
Typo fix (#3389) 2023-09-02 18:34:31 +09:00
Muhammad Hamza
42e1890f03
Update signature of use_prepared_state/use_transitive_state (#3376)
* Update signature of use_prepared_state

* Update signature of use_transitive_state

* Migration guide + example

* bless trybuild tests

* please fmt

* there's one usage here as well

* use_prepared_state_with_suspension needs updates

* updated tests
2023-08-19 21:58:36 +09:00
Muhammad Hamza
41d42fb89d
Make signature of use_future_with consistent (#3372) 2023-08-15 20:32:27 +09:00
Muhammad Hamza
e59edde1d0
Warn about mismatched DOM in SSR docs (#3377)
Fixes: #2684
2023-08-14 22:46:05 +09:00
Muhammad Hamza
05fc4cc819
Suspense example with struct component (#3375)
* Add example for struct component context consumer

* Replace untested docs example with one from examples dir

Fixes #3351
2023-08-14 21:09:38 +09:00
Kaede Hoshikawa
d803df9336
Update documentation around Children (#3297)
* Update Children to use Html.

* Fix website.

* Update website/docs/advanced-topics/children.mdx

* add further reading section

---------

Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2023-08-05 18:33:23 +05:00
dependabot[bot]
f8ae717818
Bump word-wrap from 1.2.3 to 1.2.4 in /website (#3353)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-29 22:07:38 +09:00
dependabot[bot]
5f29043a2d
Bump semver from 5.7.1 to 5.7.2 in /website (#3348)
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-29 22:07:23 +09:00
dependabot[bot]
912a303faf
Bump @tsconfig/docusaurus from 1.0.7 to 2.0.0 in /website (#3337)
Bumps [@tsconfig/docusaurus](https://github.com/tsconfig/bases/tree/HEAD/bases) from 1.0.7 to 2.0.0.
- [Commits](https://github.com/tsconfig/bases/commits/HEAD/bases)

---
updated-dependencies:
- dependency-name: "@tsconfig/docusaurus"
  dependency-type: direct:development
  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>
2023-07-29 22:06:36 +09:00
dependabot[bot]
472fe4c8ae
Bump @svgr/webpack from 6.5.1 to 8.0.1 in /website (#3336)
Bumps [@svgr/webpack](https://github.com/gregberge/svgr) from 6.5.1 to 8.0.1.
- [Release notes](https://github.com/gregberge/svgr/releases)
- [Changelog](https://github.com/gregberge/svgr/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gregberge/svgr/compare/v6.5.1...v8.0.1)

---
updated-dependencies:
- dependency-name: "@svgr/webpack"
  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>
2023-07-29 22:06:18 +09:00
dependabot[bot]
24e92846cf
Bump prettier from 2.8.4 to 2.8.8 in /website (#3335)
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.4 to 2.8.8.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.4...2.8.8)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  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>
2023-07-29 22:06:03 +09:00
dependabot[bot]
dbb551d182
Bump @docusaurus/theme-classic from 2.4.0 to 2.4.1 in /website (#3333)
Bumps [@docusaurus/theme-classic](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-theme-classic) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v2.4.1/packages/docusaurus-theme-classic)

---
updated-dependencies:
- dependency-name: "@docusaurus/theme-classic"
  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>
2023-07-29 22:05:48 +09: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
ErnestoZ
b33214efc1
Update web-sys.mdx, typo: JavaSciprt -> JavaScript (#3314) 2023-07-01 01:34:17 +00:00
Kaede Hoshikawa
71b0f206a1
Allow any type to be used as Children (take 2) (#3289)
* Partially copy useful implementation.

* Adjust conversion.

* Temporary fix iterator.

* Add ToString implementation.

* Add Renderable trait.

* Make Macro tests pass.

* Add tests for render_prop as Children.

* Update benchmark and Children used in yew packages.

* Selective suppress lints.

* Rollback unintentional rollback.

* Fix rustfmt.

* Remove unneeded implementation.

* Update Comment.

* Rollback more changes.

* Rollback more changes.

* Fix website.

* Fix documentation tests.

* Add prelude.

* Fix test.

* Blanket Implementation for &'_ T for Renderable types.

* Implement Renderable for &str.

* Update signature.

* Update children to Html in examples.

* Remove unnecessary dereferencing.

* Rollback nested_list example.

* Fix comment.

* Convert to Pattern Matching.

* Add tracing issue.

* Rename Renderable to ToHtml.

* Move ToHtml to yew::html.

* Convert more to match pattern.
2023-06-11 15:33:39 +05:00
Valentin Golev
b9990e8410
An experiment macro to automatically derive Properties structs from args for Yew components. (#3275)
* Update properties.mdx

* Update awesome.md

* prettier'
2023-06-01 23:30:39 +09:00
dependabot[bot]
3852d2c0af
Bump @docusaurus/plugin-google-analytics from 2.4.0 to 2.4.1 in /website (#3280)
Bumps [@docusaurus/plugin-google-analytics](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-plugin-google-analytics) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v2.4.1/packages/docusaurus-plugin-google-analytics)

---
updated-dependencies:
- dependency-name: "@docusaurus/plugin-google-analytics"
  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>
2023-06-01 17:00:42 +05:00
Herrington Darkholme
2c4ea6071b
doc: use a more friendly link to codemod tool (#3266) 2023-05-12 03:18:43 +00:00
Elia Perantoni
f89fb7878b
Added Spaceman to awesome.md (#3207) 2023-04-03 19:55:02 +03:00
Arniu Tseng
6f4cdf2802
Pass hook dependencies as the first function argument (#2861)
* Add use_effect_with

* Fix doc

* Add NeverEq

* Save as deps-and-runner

* remove with_deps

* fix other use_effect_with_deps

* add migration guide

* fix website

* fix doc test

* return use_effect_base

* fix docs

* fmt

* fix doc tests

* noeq

* use_callback

* finsihing touches

* fmt

* nighly fmt

* fix mistake

---------

Co-authored-by: Julius Lungys <32368314+voidpumpkin@users.noreply.github.com>
2023-04-03 19:15:11 +03:00
Kaede Hoshikawa
36aaecc430
Update Dependencies with Breaking Changes (#3204)
* Update axum.

* Update base64.

* Update NPM Dependencies.

* Update Translations.

* Make sure all docusaurus dependencies are with the same version.
2023-04-03 00:16:33 +09:00
dependabot[bot]
ecd80d981e
Bump @docusaurus/plugin-client-redirects from 2.3.1 to 2.4.0 in /website (#3196)
Bumps [@docusaurus/plugin-client-redirects](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-plugin-client-redirects) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v2.4.0/packages/docusaurus-plugin-client-redirects)

---
updated-dependencies:
- dependency-name: "@docusaurus/plugin-client-redirects"
  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-01 18:19:21 +03:00
dependabot[bot]
616d7978f7
Bump @docusaurus/plugin-content-docs from 2.3.1 to 2.4.0 in /website (#3197)
Bumps [@docusaurus/plugin-content-docs](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-plugin-content-docs) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v2.4.0/packages/docusaurus-plugin-content-docs)

---
updated-dependencies:
- dependency-name: "@docusaurus/plugin-content-docs"
  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-01 18:05:32 +03:00
dependabot[bot]
2c695f258c
Bump @typescript-eslint/eslint-plugin from 5.50.0 to 5.57.0 in /website (#3199)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.50.0 to 5.57.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.57.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  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-01 11:09:18 +03:00
dependabot[bot]
a6fdff7717
Bump @docusaurus/plugin-content-pages from 2.3.1 to 2.4.0 in /website (#3200)
Bumps [@docusaurus/plugin-content-pages](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-plugin-content-pages) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v2.4.0/packages/docusaurus-plugin-content-pages)

---
updated-dependencies:
- dependency-name: "@docusaurus/plugin-content-pages"
  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-01 10:57:32 +03:00
dependabot[bot]
e6a8e53d4b
Bump @tsconfig/docusaurus from 1.0.6 to 1.0.7 in /website (#3201)
Bumps [@tsconfig/docusaurus](https://github.com/tsconfig/bases/tree/HEAD/bases) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/tsconfig/bases/releases)
- [Commits](https://github.com/tsconfig/bases/commits/HEAD/bases)

---
updated-dependencies:
- dependency-name: "@tsconfig/docusaurus"
  dependency-type: direct:development
  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>
2023-04-01 10:46:59 +03:00
Pavlo Myroniuk
c5324aff62
Fix div prop name in css.mdx (#3185)
* Fix div prop name in css.mdx
* Fix div prop name in yew/website/docs/concepts/basic-web-technologies/css.mdx

`styles` is a not existing property in the `div` component. Changed it to `style`
2023-03-28 19:41:14 +09:00
dependabot[bot]
ba7463cd19
Bump webpack from 5.75.0 to 5.76.1 in /website (#3164)
Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.76.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.76.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-17 21:00:30 +09:00
Ruslan S
ad630a987c
Updated tutorial to indicate wasm32 dependencies compatibility (#3150)
That might be obvious for some, but it took me a few hours to figure out that `sqlx` is actually not `wasm32` compatible.
Funny enough, `cargo build` was working just fine, but `trunk serve` was failing with a very misleading error about `openssl`.
Maybe one day that small note will save a few hours to someone else
2023-03-17 21:00:00 +09:00
Pratul Kalia
68bf1b7a8f
Add macige to awesome.md (#3156)
Macige is a CI workflow generator specifically for mobile app development.
2023-03-17 16:24:36 +05:00
dependabot[bot]
62dbfdf250
Bump prettier from 2.8.3 to 2.8.4 in /website (#3135) 2023-03-05 10:08:22 +09:00
dependabot[bot]
9cd869198f
Bump @docusaurus/theme-classic from 2.1.0 to 2.3.1 in /website (#3134) 2023-03-05 10:08:01 +09:00
dependabot[bot]
51a26cffc1
Bump @typescript-eslint/parser from 5.50.0 to 5.54.0 in /website (#3131) 2023-03-05 10:07:32 +09:00
dependabot[bot]
016fb7378b
Bump @docusaurus/plugin-client-redirects from 2.2.0 to 2.3.1 in /website (#3132) 2023-03-05 09:03:47 +09:00
dependabot[bot]
2deb2332c7
Bump @docusaurus/plugin-content-docs from 2.2.0 to 2.3.1 in /website (#3133) 2023-03-05 07:08:23 +09:00
Colin Woodbury
48daf52986
Fix spelling in guides (#3109)
These are a few minor mistakes I noticed while going through the tutorial.
2023-03-04 22:34:42 +05:00
Kaede Hoshikawa
ffc2db0b5a
Fix website workflow (#3110)
* Fix fmt.

* Update dependencies.

* Add translation.

* Update dependencies.
2023-03-04 22:32:30 +05:00
TechTheAwesome
47b60ec7a2
Add link to the rust-yew vscode plugin to the yew docs (#3116)
* ADD rust-yew to devel docs

* ADD rust-yew to` v0.20 `docs

* FIX run prettier format

* Add community maintained notice and re-formatting
2023-02-22 18:19:11 +01:00
Pavlo Myroniuk
263c1242d2
Fix typo in custom-hooks.mdx (#3094)
Removed duplicated `as as`
2023-02-02 20:01:45 +09:00