Skip to content

Releases: programadorthi/kotlin-routing

0.0.14

28 Apr 15:36
Compare
Choose a tag to compare
0.0.14 Pre-release
Pre-release

What is new

Routing Core

To check if a route is registered before invoking it, you can use Routing.canHandleByName or Routing.canHandleByPath methods, depending on how your routing is set up. These methods help determine if a given route name or path matches any registered routes, allowing you to handle navigation appropriately. lookUpOnParent parameter helps with nested routing look up.

Routing Resources

Type-safe routing also received a support to check if a route is registered

JavaScript integration

Web applications has different history modes, specifically hash-based (/#/) and HTML5 history API. These modes facilitate handling navigation history in single-page applications (SPAs).

  1. Hash-based Routing: In hash-based routing, the URL contains a hash fragment (/#/) followed by the route. This method doesn't trigger a full page reload when navigating between routes, making it suitable for SPAs. It's compatible with older browsers and doesn't require server-side configuration.
  2. HTML5 History API: This API allows manipulating the browser history using JavaScript, enabling more natural-looking URLs without hash fragments. It's more modern and provides cleaner URLs but requires server-side configuration to handle URL requests properly.
  3. In-memory: Memory routing typically doesn't involve changing the URL and is often used in testing or scenarios where navigation doesn't need to be reflected in the browser's address bar.

Full Changelog: 0.0.13...0.0.14

0.0.13

09 Feb 16:54
Compare
Choose a tag to compare
0.0.13 Pre-release
Pre-release

What is new

  • Android Activity integration. Check android-activity sample for more details
  • Apple UIKit integration. Check ios-sample for more details

Changes

  • Core module now export better functions name and parameters to Objective-C

Full Changelog: 0.0.12...0.0.13

0.0.12

26 Jan 13:27
Compare
Choose a tag to compare
0.0.12 Pre-release
Pre-release

What is new

  • Compose Animation module to support animated routing

Changes

  • Pop result now can be caught by the Routing instead of Local Composition
  • Improvements and fixes

Full Changelog: 0.0.11...0.0.12

Version 0.0.11

16 Jan 13:56
Compare
Choose a tag to compare
Version 0.0.11 Pre-release
Pre-release
  • Removed core-stack module. Each framework/platform will use your own stack behaviors
  • Route methods simplified
  • Web Browser History support to javascript module

Full Changelog: 0.0.10...0.0.11

Version 0.0.10

13 Jan 23:48
Compare
Choose a tag to compare
Version 0.0.10 Pre-release
Pre-release

New features

Upgrades

  • Gradle 8.5
  • Kotlin 1.9.21 - to avoid API breaking changes with Voyager
  • Kotlin Serialization 1.6.2
  • Kotlin Coroutines 1.8.0-RC2
  • Ktor 3.0.0-beta-1
  • Android Gradle Plugin 8.2.1
  • KTLint 12.1.0
  • Kotlin Kover 0.7.5

Other

  • Added extension function call to Routing that easily create an application call
  • Added Kotlin Serialization to handle state restoration
  • Added support to unregister a route created using Ktor Resources
  • Added support to notify previous route when current will be popped.
  • Check commits for more

Full Changelog: 0.0.8...0.0.10

Version 0.0.9

13 Jan 17:43
Compare
Choose a tag to compare
Version 0.0.9 Pre-release
Pre-release

Avoid and jump to 0.0.10

Version 0.0.8

11 Aug 10:38
Compare
Choose a tag to compare
Version 0.0.8 Pre-release
Pre-release

Full Changelog: 0.0.7...0.0.8

Version 0.0.7

29 Jun 17:00
Compare
Choose a tag to compare
Version 0.0.7 Pre-release
Pre-release
  • Fix path compare using startsWith that was not good when child path starts with rootPath value.

Full Changelog: 0.0.6...0.0.7

Version 0.0.6

23 Jun 21:51
Compare
Choose a tag to compare
Version 0.0.6 Pre-release
Pre-release
  • Improvements to Nested Routing support
  • Convert events module to support Nested Routing

Full Changelog: 0.0.5...0.0.6

Version 0.0.5

17 Jun 03:02
Compare
Choose a tag to compare
Version 0.0.5 Pre-release
Pre-release
  • Downgrade JVM toolchains and bytecode to Java 1.8
  • Removed modules not related to routing
  • Voyager modules will be implemented on it official repo to avoid breaking changes

Full Changelog: 0.0.4...0.0.5