mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
1.2 KiB
1.2 KiB
Changelog
0.5 - unreleased
Breaking changes
- Context requirement removed. Not necessary to use
Component<CTX>type parameter. Instead of a context a link to an environment provided withComponent::createcall. All examples had changed.
New features
-
Added
Agents concept. Agents are separate activities which you could run in the same thread or in a separate thread. There isContextkind of agent that spawn context entities as many as you want and you have to interact with a context by a messages. To join an agent useWorker::bridgemethod and pass a link of component's environment to it. -
Added three types of agents:
Context- spawns once per thread,Job- spawns for every bridge,Public- spawns an agent in a separate thread (it uses Web Workers API under the hood). -
Added
<Component: with props />rule to set a whole struct as a properties of a component. -
All services reexported in
yew::servicesmoudle.
Bug fixes
- Bug with emscripten target
RuntimeError: index out of bounds(#220) fixed with a new scheduler.