v0.5.0
This release introduces some important breaking changes and improvements to the router.
Change logs
- Router configuration use now the
Optional
pattern. - Three new methods have been introduced to the Router type for working with routing trees. These methods are marked as EXPERIMENTAL and are likely to change in future releases.
- Tree: Atomically loads and returns the currently in-use routing tree.
- Swap: Atomically replaces the currently in-use routing tree with a provided new tree, and returns the previous tree.
- Use: Atomically replaces the currently in-use routing tree with a provided new tree.
- The new Tree API allows to take control of the internal
sync.Mutex
for advanced usage. - Rework of the
Lookup
function to improve performance. - Rename the
Match
function forHas
.
PR
- RFC consistent view update & tree swapping by @tigerwill90 in #8
Full Changelog: v0.4.0...v0.5.0