Skip to content

Releases: bluwy/svelte-router

v0.5.0

09 Sep 17:03
Compare
Choose a tag to compare

Added

  • Use location API for hash navigation (#15)

v0.4.1

31 Jan 02:48
Compare
Choose a tag to compare
Release v0.4.1

v0.4.0

30 Jan 14:40
Compare
Choose a tag to compare

Fixed

  • Don't remount component when enter nested routes

Known issues

  • Transitions may not work well between routes (especially if dynamically imported)

v0.3.2

11 Oct 07:10
Compare
Choose a tag to compare

Fixed

  • Keep navigate and createLink reference when initializing router

v0.3.1

21 Sep 16:45
Compare
Choose a tag to compare

Added

  • Support component dynamic import

v0.3.0

04 Sep 13:53
Compare
Choose a tag to compare

Added

  • Improve component typing

Changed

  • route only update if url change
  • Replace initRouter with initHashRouter and initPathRouter to improve tree-shaking

Removed

  • Remove RedirectOption type export

v0.2.1

01 Sep 08:50
Compare
Choose a tag to compare

Fixed

  • <Link /> will work properly with special key clicks, e.g. ctrl-click

v0.2.0

30 Aug 06:55
Compare
Choose a tag to compare

Added

  • Add createLink function to enable custom link creation
  • Format URL on page load

Changed

  • Rename history mode to path
  • All router options need to be defined
  • All public APIs, except for route, will now throw an error if called before initRouter
  • initRouter will throw an error if called more than once
  • LocationInput's path, search and hash will treat empty string as undefined

Removed

  • Remove link action, use createLink instead

Fixed

  • Fix synchronous redirect rendering

v0.1.2

26 Aug 15:21
Compare
Choose a tag to compare

Fixed

  • Route store is always defined even before initRouter
  • navigate will not throw error if called before initRouter
  • Fix base path detection

v0.1.1

25 Aug 15:42
Compare
Choose a tag to compare

Fixed

  • Fix unexpected slot "default" warning