Releases: xxfast/Decompose-Router
Releases · xxfast/Decompose-Router
0.9.0
What's Changed
- Add new inline rememberRouter variants by @xxfast in #101
- Add inline variant for rememberOnRoute by @xxfast in #104
Breaking Changes ⚠️
rememberRouter
with type parameter is now deprecated, and will be removed in the next release.
- val router: Router<Screen> = rememberRouter(type = Screen::class) { listOf(List) }
+ val router: Router<Screen> = rememberRouter { listOf(List) }
rememberOnRoute
with type parameter is now deprecated, and will be removed in the next release.
- val viewModel: ViewModel = rememberOnRoute(type = ViewModel::class) { ViewModel() }
+ val viewModel: ViewModel = rememberOnRoute { ViewModel() }
RouterContext
is now the receiver of therememberOnRoute
'sblock
- val viewModel: ViewModel = rememberOnRoute { context: RouterContext -> ViewModel(context) }
+ val viewModel: ViewModel = rememberOnRoute { ViewModel(this) }
Full Changelog: 0.8.0...0.9.0
0.8.0
0.7.0
0.6.0
0.5.1
What's Changed
- Add default router context for ios targets by @xxfast in #65
- Add default router context for js target by @xxfast in #66
- Update Readme with new desktop configuration by @GabriellCosta in #73
- Add missing default router context and lifecycle extensions for ios target by @xxfast in #74
New Contributors
- @GabriellCosta made their first contribution in #73
Full Changelog: 0.5.0...0.5.1
0.5.0
What's Changed
- Add test cases to illustrate the nested routing issue by @xxfast in #56
- Wrap ComponentContext with RouterContext by @arkivanov in #59
- Bump com.google.android.horologist:horologist-compose-layout from 0.4.12 to 0.5.7 by @dependabot in #61
- Refactor router api to mirror decompose api by @xxfast in #62
New Contributors
- @arkivanov made their first contribution in #59
Breaking changes! ⚠️
rememberRouter
will now take in the initial stack as a lambda to mirror decompose's api
- val router: Router<Screen> = rememberRouter(stack = listOf(List))
+ val router: Router<Screen> = rememberRouter { listOf(List) }
- A root
RouterContext
will needed to be provided instead of a rootDefaultComponentContext
- val rootComponentContext: DefaultComponentContext = defaultComponentContext()
+ val rootRouterContext: RouterContext = defaultRouterContext()
- CompositionLocalProvider(LocalComponentContext provides rootComponentContext) {
+ CompositionLocalProvider(LocalRouterContext provides rootRouterContext) {
Full Changelog: 0.4.0...0.5.0
0.4.0
What's Changed
- Bump decompose from 2.1.0-compose-experimental-alpha-03 to 2.1.0-compose-experimental-alpha-05 by @dependabot in #33
- Fix remove simpleName for the key as it fails with proguard on Android by @xxfast in #34
- Bump com.google.android.horologist:horologist-compose-layout from 0.4.11 to 0.4.12 by @dependabot in #35
- Bump dependencies for kotlin 1.9 and compose-multiplatform 1.5.0 by @xxfast in #45
Full Changelog: 0.3.0...0.4.0
0.3.0
What's Changed
- Bump com.google.android.horologist:horologist-compose-layout from 0.4.6 to 0.4.7 by @dependabot in #12
- Fix README screen configuration declarations by @xxfast in #15
- Bump com.android.tools.build:gradle from 8.0.1 to 8.0.2 by @dependabot in #19
- Bump com.google.android.horologist:horologist-compose-layout from 0.4.7 to 0.4.8 by @dependabot in #18
- Bump wear-compose from 1.2.0-alpha10 to 1.2.0-beta01 by @dependabot in #17
- Bump androidx.activity:activity-compose from 1.7.1 to 1.7.2 by @dependabot in #16
- Bump decompose from 2.0.0-compose-experimental-alpha-02 to 2.1.0-compose-experimental-alpha-01 by @dependabot in #22
- Bump org.jetbrains.dokka from 1.8.10 to 1.8.20 by @dependabot in #24
- Bump wear-compose from 1.2.0-beta01 to 1.2.0-beta02 by @dependabot in #25
- Bump org.jetbrains.kotlinx.binary-compatibility-validator from 0.13.1 to 0.13.2 by @dependabot in #27
- Bump decompose from 2.1.0-compose-experimental-alpha-02 to 2.1.0-compose-experimental-alpha-03 by @dependabot in #31
- Bump com.google.android.horologist:horologist-compose-layout from 0.4.8 to 0.4.11 by @dependabot in #30
- Bump wear-compose from 1.2.0-beta02 to 1.3.0-alpha01 by @dependabot in #29
- Bump org.jetbrains.kotlin:kotlin-gradle-plugin from 1.8.21 to 1.8.22 by @dependabot in #26
Full Changelog: 0.2.1...0.3.0
0.2.1
0.2.0
What's Changed
- Add android instrumentation test cases by @xxfast in #4
- Refactor rename rememberViewModel to be architecture agnostic by @xxfast in #5
- Bring down minSdk to 21 by @xxfast in #7
- Bump wear-compose from 1.2.0-alpha09 to 1.2.0-alpha10 by @dependabot in #8
- Bump com.google.android.horologist:horologist-compose-layout from 0.4.4 to 0.4.6 by @dependabot in #9
- Fix rememberOnRoute to take in key if needed by @xxfast in #10
New Contributors
- @xxfast made their first contribution in #4
- @dependabot made their first contribution in #8
Warning Breaking Changes!
rememberViewModel
renamed torememberOnRoute
Full Changelog: 0.1.0...0.2.0