Skip to content

Releases: Nlcke/gouter

v0.12.1

21 Jun 01:18

Choose a tag to compare

Native:

  • add reverseNextReplaceAnimation function which may be used before replaceFocusedState to change animation direction

v0.12.0

21 May 01:52

Choose a tag to compare

State:

  • simplified and doesn't contain stateKeys and focusKeys anymore which is good for serialization and logs
  • has updated focus system which uses new withFocus method instead of overloaded focus one
  • Config type becomes GouterConfig
  • Listener type becomes GouterListener
  • focusedIndex param added to constructor to improve serialization support
  • treats root states as focused
  • new setFocusedIndex method to make stack state focused via it's index
  • new clone method creates full copy
  • if state is already used in some stack it will be cloned for other stack

Navigation:

  • getNavigation function refactored to GouterNavigation class with auto bound methods and better description
  • new getFocusedState method to receive innermost focused state in root state
  • new replaceFocusedState method to replace innermost focused state in root state
  • fix create method to use provided stack param and accept new focusedIndex param
  • fix blockers to start checks from innermost focused state

Linking:

  • getLinking function refactored to GouterLinking class with auto bound methods and better description

Navigators:

  • optional parameters for each navigator
  • rewritten for new focus system

Native:

  • almost everything is made from scratch for reanimated module support and enhanced performance
  • many props and types are renamed to better convey the meaning
  • new hooks: useGouterState, useIsFocused, useIsStale, useIsRootFocused, useIsRootStale
  • new functions to animate screen components: getAnimatedValues, getReanimatedValues
  • native example is adopted for updated module and uses separate files for screens and configs

Other:

  • total README rewrite
  • better generated docs
  • jest is configured for tests

v0.11.0

19 May 19:28

Choose a tag to compare

Changes:

  • fix focus system bugs for rare edge cases
  • add replace and remove to GouterState methods

v0.10.0

19 May 19:22

Choose a tag to compare

The main change is new architecture where state and linking is separated from navigation. This is for performance and usability improvements.

Changes:

  • add GouterState which is separate class with own methods to handle state updates
  • add getNavigation function to create navigation methods using predefined routes
  • add getLinking function to create url decode/encode methods using predefined routes
  • refactor GouterNative and navigators and update native example for new architecture
  • add stateSettings and stackSettings to GouterNative screens' options.
  • add separate file with typedoc settings

v0.9.2

19 May 19:05

Choose a tag to compare

Changes:

  • add missing root state update on goTo

v0.9.1

05 Jan 23:06

Choose a tag to compare

Main changes:

  • add shouldGoTo and shouldGoBack fields to routes
  • optimize state builders
  • remove obsolette onExit option from navigators
  • computable stack settings for gouter/native
  • better types for gouter/native

v0.9.0

27 Dec 02:36

Choose a tag to compare

So many changes:

  • completely new structure to describe routes in more readable way
  • path-to-regexp package replaced by own better suited encode/decode implementation
  • better types like State, Routes, Config etc
  • go replaced by batch for better readability and more complex scenarios
  • enhanced goTo uses keys from new route field keygen
  • improved navigators
  • updated example to latest React Native
  • source code is better organized using class methods

v0.8.1

25 May 18:51

Choose a tag to compare

First release on github