Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ranile committed Sep 23, 2023
1 parent 0553d82 commit bf745ea
Show file tree
Hide file tree
Showing 3 changed files with 176 additions and 181 deletions.
20 changes: 10 additions & 10 deletions website/blog/2023-09-23-release-0-21.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ html! {

Yew 0.21 brings a complete rewrite of `yew-agent`. This streamlines and simplifies the way workers operate. Here's what you need to know:

- **Unification of PublicWorker and PrivateWorker:** We've brought PublicWorker and PrivateWorker together, creating a single, consistent worker type that's easier to work with.
- **Unification of PublicWorker and PrivateWorker:** We've brought PublicWorker and PrivateWorker together, creating a single, consistent worker type that's easier to work with.

- **Introducing WorkerSpawner:** Say goodbye to the old `Worker::bridge()` method. Now, you can use the WorkerSpawner with a builder pattern to spawn workers. It's a more intuitive way to create workers, and it always spawns a new one.
- **Introducing WorkerSpawner:** Say goodbye to the old `Worker::bridge()` method. Now, you can use the WorkerSpawner with a builder pattern to spawn workers. It's a more intuitive way to create workers, and it always spawns a new one.

- **WorkerLink to WorkerScope:** We've removed WorkerLink in favor of WorkerScope. This change simplifies the worker architecture, making it more straightforward to manage and maintain.
- **WorkerLink to WorkerScope:** We've removed WorkerLink in favor of WorkerScope. This change simplifies the worker architecture, making it more straightforward to manage and maintain.

- **WorkerBridge::fork():** For those who relied on PublicWorker functionality, we've introduced WorkerBridge::fork(). It allows you to "fork" the bridge with a different callback and HandlerId.
- **WorkerBridge::fork():** For those who relied on PublicWorker functionality, we've introduced WorkerBridge::fork(). It allows you to "fork" the bridge with a different callback and HandlerId.

There are two types of agents to be used, depending upon the situation:

- **Oneshot Agent:** Designed for scenarios where you expect a single input and a single output for each agent.
- **Oneshot Agent:** Designed for scenarios where you expect a single input and a single output for each agent.

- **Reactor Agent:** Ideal for situations where multiple inputs and multiple outputs are needed for each agent.
- **Reactor Agent:** Ideal for situations where multiple inputs and multiple outputs are needed for each agent.

Learn more in [documentation of yew-agent](https://docs.rs/yew-agent/latest/yew_agent/)

Expand All @@ -67,13 +67,13 @@ The Yew project thrives on community involvement, and we welcome contributors wi

Here are some areas where you can contribute:

- **Code Contributions:** If you're passionate about web development with Rust, consider contributing code to Yew. Whether it's fixing bugs, adding new features, or improving documentation, your code can help make Yew even better.
- **Code Contributions:** If you're passionate about web development with Rust, consider contributing code to Yew. Whether it's fixing bugs, adding new features, or improving documentation, your code can help make Yew even better.

- **Documentation:** Clear and comprehensive documentation is vital for any project's success. You can contribute by improving documentation, writing tutorials, or creating examples that help others understand and use Yew effectively.
- **Documentation:** Clear and comprehensive documentation is vital for any project's success. You can contribute by improving documentation, writing tutorials, or creating examples that help others understand and use Yew effectively.

- **Testing and Bug Reporting:** Testing Yew and reporting bugs you encounter is a valuable contribution. Your feedback helps us identify and fix issues, ensuring a more stable framework for everyone.
- **Testing and Bug Reporting:** Testing Yew and reporting bugs you encounter is a valuable contribution. Your feedback helps us identify and fix issues, ensuring a more stable framework for everyone.

- **Community Support:** Join discussions, chat rooms (we have our own Discord and Matrix!), or social media to assist other developers using Yew. Sharing your knowledge and helping others solve problems is a fantastic way to contribute.
- **Community Support:** Join discussions, chat rooms (we have our own Discord and Matrix!), or social media to assist other developers using Yew. Sharing your knowledge and helping others solve problems is a fantastic way to contribute.

Contributing to open-source projects like Yew is not only a way to give back to the community but also an excellent opportunity to learn, collaborate, and enhance your skills.

Expand Down
330 changes: 165 additions & 165 deletions website/versioned_sidebars/version-0.21-sidebars.json
Original file line number Diff line number Diff line change
@@ -1,180 +1,180 @@
{
"docs": [
{
"type": "category",
"label": "Getting Started",
"link": {
"type": "doc",
"id": "getting-started/introduction"
},
"items": [
"getting-started/build-a-sample-app",
"getting-started/examples",
"getting-started/editor-setup"
]
},
{
"type": "category",
"label": "Concepts",
"link": {
"type": "generated-index",
"title": "Yew concepts",
"description": "Learn about the important Yew concepts!"
},
"items": [
"docs": [
{
"type": "category",
"label": "Using Basic Web Technologies In Yew",
"link": {
"type": "generated-index",
"title": "Yew's Take on Basic Web Technologies",
"description": "Yew centrally operates on the idea of keeping everything that a reusable piece of UI may needin one place - rust files, while also keeping the underlying technology accessible where necessary. Explore further to fully grasp what we mean by these statements:"
},
"items": [
"concepts/basic-web-technologies/html",
"concepts/basic-web-technologies/css",
"concepts/basic-web-technologies/js",
"concepts/basic-web-technologies/wasm-bindgen",
"concepts/basic-web-technologies/web-sys"
]
},
{
"type": "category",
"label": "Components",
"link": {
"type": "doc",
"id": "concepts/function-components/introduction"
},
"items": [
"concepts/function-components/properties",
"concepts/function-components/callbacks",
"concepts/function-components/children",
"concepts/function-components/pure-components",
{
"type": "category",
"label": "Hooks",
"link": {
"type": "category",
"label": "Getting Started",
"link": {
"type": "doc",
"id": "concepts/function-components/hooks/introduction"
},
"items": [
"concepts/function-components/hooks/custom-hooks"
]
"id": "getting-started/introduction"
},
"concepts/function-components/node-refs",
"concepts/function-components/state",
"concepts/function-components/communication",
"concepts/function-components/generics"
]
"items": [
"getting-started/build-a-sample-app",
"getting-started/examples",
"getting-started/editor-setup"
]
},
{
"type": "category",
"label": "HTML",
"link": {
"type": "doc",
"id": "concepts/html/introduction"
},
"items": [
"concepts/html/components",
"concepts/html/elements",
"concepts/html/events",
"concepts/html/classes",
"concepts/html/fragments",
"concepts/html/lists",
"concepts/html/literals-and-expressions",
"concepts/html/conditional-rendering"
]
"type": "category",
"label": "Concepts",
"link": {
"type": "generated-index",
"title": "Yew concepts",
"description": "Learn about the important Yew concepts!"
},
"items": [
{
"type": "category",
"label": "Using Basic Web Technologies In Yew",
"link": {
"type": "generated-index",
"title": "Yew's Take on Basic Web Technologies",
"description": "Yew centrally operates on the idea of keeping everything that a reusable piece of UI may needin one place - rust files, while also keeping the underlying technology accessible where necessary. Explore further to fully grasp what we mean by these statements:"
},
"items": [
"concepts/basic-web-technologies/html",
"concepts/basic-web-technologies/css",
"concepts/basic-web-technologies/js",
"concepts/basic-web-technologies/wasm-bindgen",
"concepts/basic-web-technologies/web-sys"
]
},
{
"type": "category",
"label": "Components",
"link": {
"type": "doc",
"id": "concepts/function-components/introduction"
},
"items": [
"concepts/function-components/properties",
"concepts/function-components/callbacks",
"concepts/function-components/children",
"concepts/function-components/pure-components",
{
"type": "category",
"label": "Hooks",
"link": {
"type": "doc",
"id": "concepts/function-components/hooks/introduction"
},
"items": [
"concepts/function-components/hooks/custom-hooks"
]
},
"concepts/function-components/node-refs",
"concepts/function-components/state",
"concepts/function-components/communication",
"concepts/function-components/generics"
]
},
{
"type": "category",
"label": "HTML",
"link": {
"type": "doc",
"id": "concepts/html/introduction"
},
"items": [
"concepts/html/components",
"concepts/html/elements",
"concepts/html/events",
"concepts/html/classes",
"concepts/html/fragments",
"concepts/html/lists",
"concepts/html/literals-and-expressions",
"concepts/html/conditional-rendering"
]
},
"concepts/agents",
"concepts/contexts",
"concepts/router",
"concepts/suspense"
]
},
"concepts/agents",
"concepts/contexts",
"concepts/router",
"concepts/suspense"
]
},
{
"type": "category",
"label": "Advanced topics",
"link": {
"type": "generated-index",
"title": "Advanced topics",
"description": "Learn about the advanced topics and inner workings of Yew!"
},
"items": [
"advanced-topics/how-it-works",
{
"type": "category",
"label": "Struct Components",
"link": {
"type": "doc",
"id": "advanced-topics/struct-components/introduction"
},
"items": [
"advanced-topics/struct-components/hoc",
"advanced-topics/struct-components/lifecycle",
"advanced-topics/struct-components/scope",
"advanced-topics/struct-components/callbacks",
"advanced-topics/struct-components/properties",
"advanced-topics/struct-components/refs"
]
"type": "category",
"label": "Advanced topics",
"link": {
"type": "generated-index",
"title": "Advanced topics",
"description": "Learn about the advanced topics and inner workings of Yew!"
},
"items": [
"advanced-topics/how-it-works",
{
"type": "category",
"label": "Struct Components",
"link": {
"type": "doc",
"id": "advanced-topics/struct-components/introduction"
},
"items": [
"advanced-topics/struct-components/hoc",
"advanced-topics/struct-components/lifecycle",
"advanced-topics/struct-components/scope",
"advanced-topics/struct-components/callbacks",
"advanced-topics/struct-components/properties",
"advanced-topics/struct-components/refs"
]
},
"advanced-topics/children",
"advanced-topics/optimizations",
"advanced-topics/portals",
"advanced-topics/server-side-rendering",
"advanced-topics/immutable"
]
},
"advanced-topics/children",
"advanced-topics/optimizations",
"advanced-topics/portals",
"advanced-topics/server-side-rendering",
"advanced-topics/immutable"
]
},
{
"type": "category",
"label": "More",
"link": {
"type": "generated-index",
"title": "Miscellaneous"
},
"items": [
"more/debugging",
"more/deployment",
"more/css",
"more/testing",
"more/roadmap"
]
},
{
"type": "category",
"label": "Migration guides",
"items": [
{
"type": "category",
"label": "yew",
"items": [
"migration-guides/yew/from-0_20_0-to-0_21_0",
"migration-guides/yew/from-0_19_0-to-0_20_0",
"migration-guides/yew/from-0_18_0-to-0_19_0"
]
"type": "category",
"label": "More",
"link": {
"type": "generated-index",
"title": "Miscellaneous"
},
"items": [
"more/debugging",
"more/deployment",
"more/css",
"more/testing",
"more/roadmap"
]
},
{
"type": "category",
"label": "yew-agent",
"items": [
"migration-guides/yew-agent/from-0_1_0-to-0_2_0",
"migration-guides/yew-agent/from-0_0_0-to-0_1_0"
]
},
"type": "category",
"label": "Migration guides",
"items": [
{
"type": "category",
"label": "yew",
"items": [
"migration-guides/yew/from-0_20_0-to-0_21_0",
"migration-guides/yew/from-0_19_0-to-0_20_0",
"migration-guides/yew/from-0_18_0-to-0_19_0"
]
},
{
"type": "category",
"label": "yew-agent",
"items": [
"migration-guides/yew-agent/from-0_1_0-to-0_2_0",
"migration-guides/yew-agent/from-0_0_0-to-0_1_0"
]
},
{
"type": "category",
"label": "yew-router",
"items": [
"migration-guides/yew-router/from-0_16_0-to-0_17_0",
"migration-guides/yew-router/from-0_15_0-to-0_16_0"
]
}
]
}
],
"api": [
{
"type": "category",
"label": "yew-router",
"items": [
"migration-guides/yew-router/from-0_16_0-to-0_17_0",
"migration-guides/yew-router/from-0_15_0-to-0_16_0"
]
"type": "autogenerated",
"dirName": "tutorial"
}
]
}
],
"api": [
{
"type": "autogenerated",
"dirName": "tutorial"
}
]
]
}
7 changes: 1 addition & 6 deletions website/versions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
[
"0.21",
"0.20",
"0.19.0",
"0.18.0"
]
["0.21", "0.20", "0.19.0", "0.18.0"]

0 comments on commit bf745ea

Please sign in to comment.