v0.4.0
Pre-releaseWhat's Changed
- feat: Add shallow routing by @webJose in #27
- feat!: Major navigation improvements by @webJose in #32
- chore: Update demo after navigation improvements by @webJose in #33
- feat: Update build script to correctly add component README contents to .d.ts files by @webJose in #34
- chore: Clean things up after navigation feature by @webJose in #35
- feat: Enable the use of clsx through ActiveState.class (via the activeState component prop) by @webJose in #36
Other Changes
- chore: Minor demo updates by @webJose in #37
- feat: Add CI/CD by @webJose in #38
- docs: Add diagram explaining general mechanisms by @webJose in #39
Full Changelog: v0.3.0...v0.4.0
Navigation Has Been Re-worked!
This might or might not break your current code. See #25 to understand the main objective of this release.
In a nutshell, HREF support was a bit too flaky around the preservation of URL components (query strings and hashes). Furthermore, the rules that applied to HREF's for the Link component weren't the same than the rules that applied for Location.navigate(). Furthermore, the overloads for the latter were a bit confusing.
Now all navigation is powered by the same logic, whose main driver is the (exported) function calculateHref(). This function has actually enabled the Link component to accurately generate the correct URL preview when the mouse hovers over the rendered HTML anchor element.
The online documentation has also been updated.