Releases: Nlcke/gouter
Releases · Nlcke/gouter
v0.12.1
v0.12.0
State:
- simplified and doesn't contain stateKeys and focusKeys anymore which is good for serialization and logs
- has updated focus system which uses new
withFocusmethod instead of overloadedfocusone Configtype becomesGouterConfigListenertype becomesGouterListenerfocusedIndexparam added to constructor to improve serialization support- treats root states as focused
- new
setFocusedIndexmethod to make stack state focused via it's index - new
clonemethod creates full copy - if state is already used in some stack it will be cloned for other stack
Navigation:
getNavigationfunction refactored toGouterNavigationclass with auto bound methods and better description- new
getFocusedStatemethod to receive innermost focused state in root state - new
replaceFocusedStatemethod to replace innermost focused state in root state - fix
createmethod to use provided stack param and accept newfocusedIndexparam - fix
blockers to start checks from innermost focused state
Linking:
getLinkingfunction refactored toGouterLinkingclass 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
v0.10.0
The main change is new architecture where state and linking is separated from navigation. This is for performance and usability improvements.
Changes:
- add
GouterStatewhich is separate class with own methods to handle state updates - add
getNavigationfunction to create navigation methods using predefined routes - add
getLinkingfunction to create url decode/encode methods using predefined routes - refactor
GouterNativeand navigators and update native example for new architecture - add
stateSettingsandstackSettingsto GouterNative screens' options. - add separate file with typedoc settings
v0.9.2
v0.9.1
v0.9.0
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
goreplaced bybatchfor better readability and more complex scenarios- enhanced
goTouses keys from new route fieldkeygen - improved navigators
- updated example to latest React Native
- source code is better organized using class methods