Skip to content

v0.4.0

Pre-release
Pre-release

Choose a tag to compare

@webJose webJose released this 02 Sep 20:14
· 94 commits to main since this release

What'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

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.