mobx-route
2.1.1
Patch Changes
2.1.0
Minor Changes
2.0.0
Major Changes
056e6c0Thanks @js2me! - Fix type-safety bug:Route.query.dataandVirtualRoute.query.datanow correctly returnRecord<string, string>instead of the claimedTQueryParamstype.Breaking Change:
query.datais now typed asRecord<string, string>(the actual runtime type) instead of theTQueryParamsgeneric parameter. TheTQueryParamsgeneric is still used for typing query parameters passed toopen(),createUrl(), and navigation methods.If you previously relied on
route.query.data.pagebeing typed asnumber, you now need to:- Use
QueryParamwithqueryParamPresets.numberfor per-field typed access - Or cast manually:
Number(route.query.data.page)
- Use
4833f27Thanks @js2me! - RemoveTParentRoutegeneric parameter fromRoute,RouteConfiguration, andcreateRouteRoutenow has 4 generics instead of 5:TPath, TInputParams, TOutputParams, TQueryParamsRouteConfigurationnow has 4 generics instead of 5createRoutenow has 4 generics instead of 5 —TQueryParamsmoved from 5th to 4th positionparentproperty type changed fromTParentRoutetoAnyRoute | nullAnyRouteandInfer*utility types updated to 4 generics
1.3.4
Patch Changes
c8b531fThanks @js2me! - enhance typings forRouteVirtualRoute-> add generic for query params (last one). It allows to add typings for query
1.3.3
Patch Changes
1.3.2
Patch Changes
e76638aThanks @js2me! - fix flicking isOpening isOpened states for path routes due toupdate()method call
1.3.1
Patch Changes
1.3.0
Minor Changes
7e7641bThanks @js2me! - adedafterUpdatecallback both forRouteandVirtualRouteentitiesf9ddde6Thanks @js2me! - addwithRoutemixin for reaching your view models
Patch Changes
857dd24Thanks @js2me! - fixed problem with mutation params in navigation transaction (beforeOpen scenario)
1.2.3
Patch Changes
1.2.2
Patch Changes
20acaacThanks @js2me! - fixed route view group work (otherwise should not block opening other routes)
1.2.1
Patch Changes
86d653eThanks @js2me! - fixed flicks not found route in based on all falsy isOpened\isOpening routes
1.2.0
Minor Changes
Patch Changes
0f852c3Thanks @js2me! - addedcanNavigateproperty forRouteGroup0f852c3Thanks @js2me! - fixedafterClosecallback call forVirtualRoute
1.1.1
Patch Changes
1.1.0
Minor Changes
1.0.0
Major Changes
fd88b5fThanks @js2me! - RemovedgetAutomatedOpenParamsfromVirtualRouteConfiguration. UsegetAutoOpenParamsinstead.f62dae6Thanks @js2me! - Removedprotected abortControllerproperty fromRouteandVirtualRoute. If you were accessingabortControllerdirectly, you now need to manage abort/cleanup yourself or use theabortSignalconfig option.VirtualRoute.isOpenednow returnsfalseafterdestroy()is calledVirtualRoute.destroy()now also sets status to'unknown'and explicitly disposes the reaction- Added
react-domas an optional peer dependency
6df1753Thanks @js2me! - First release. Removed deprecations.Removed the deprecated
loadViewAPI and all props that existed only to support it.Dropped the
react-simple-loadabledependency; it was only used byloadView.
Patch Changes
0.31.0
Minor Changes
408064eThanks @js2me! - renamegetAutomatedOpenParamstogetAutoOpenParams(prev marks as deprecated)
Patch Changes
0.30.0
Minor Changes
8a7027dThanks @js2me! - Keep the last route params inRouteViewModel.payloadafter a path route is closed.This prevents
payloadandpathParamsfrom resetting to an empty object when navigation moves to another route, so view models can still access the most recent path params.
0.29.1
Patch Changes
0817c74Thanks @js2me! - [internal] update dev deps to latest (+ yummies to latest)330436eThanks @js2me! - updated documentations for Route + routeConfig
0.29.0
Minor Changes
0.28.0
Minor Changes
0.27.0
Minor Changes
caff007Thanks @js2me! - update documentation for all projectcaff007Thanks @js2me! - added more unit tests for react componentscaff007Thanks @js2me! - renamecreateRouteGroup->groupRoutes
Patch Changes
0.26.1
Patch Changes
0.26.0
Minor Changes
0.25.0
Minor Changes
0.24.0
Minor Changes
0.23.5
Patch Changes
0.23.4
Patch Changes
0.23.3
Patch Changes
0.23.2
Patch Changes
0.23.1
Patch Changes
0.23.0
Minor Changes
0.22.1
Patch Changes
4422689Thanks @js2me! - fix<Link />component for more safety process props from bad users3255c7cThanks @js2me! - fixedbeforeOpenfalsecase handling
0.22.0
Minor Changes
285385aThanks @js2me! - adduseLastOpenedprop for<RouteViewGroup/>cf5d5ceThanks @js2me! - [internal] added more unit tests for virtual routes / routescf5d5ceThanks @js2me! - BREAKING!: bumpmobx-view-modelpeer dependency to 8.x + update yummies to 7.x (forapplyObservableuse)bd70ebfThanks @js2me! - added async open\close methods for virtual routesbd70ebfThanks @js2me! - realized beforeClose, afterOpen, beforeOpen lifecycle methods for virtual routes
Patch Changes
0.21.0
Minor Changes
14d9ff0Thanks @js2me! - addedfallbackPathparameter for cases whenpath-to-regexpthrown an error14d9ff0Thanks @js2me! - safe building route urls usingpath-to-regexplib
0.20.2
Patch Changes
0.20.1
Patch Changes
0.20.0
Minor Changes
0.19.0
Minor Changes
a233d78Thanks @js2me! - addedunmount()method call forRouteViewModelwhen route will be closedd2dfae5Thanks @js2me! - modified matcher path regexp for parent routes (when /a/b route is opened then /a route should be opened too)
Patch Changes
0.18.0
Minor Changes
0.17.0
Minor Changes
0.16.2
Patch Changes
0.16.1
Patch Changes
0.16.0
Minor Changes
Patch Changes
0.15.0
Minor Changes
0.14.2
Patch Changes
0.14.1
Patch Changes
570d002Thanks @js2me! - [internal] use unified biome config30ca924Thanks @js2me! - updatemobx-location-historyto latest
0.14.0
Minor Changes
39a4a40Thanks @js2me! - addedformatLinkHrefglobal route config optionc4a8336Thanks @js2me! - added baseUrl override ability forcreateUrl
0.13.0
Minor Changes
0.12.2
Patch Changes
0.12.1
Patch Changes
0.12.0
Minor Changes
0.11.0
Minor Changes
0.10.2
Patch Changes
e07c69dThanks @js2me! - fixed output params typings in extended route (receive typings from parent)
0.10.1
Patch Changes
0.10.0
Minor Changes
Patch Changes
0.9.1
Patch Changes
0.9.0
Minor Changes
0.8.1
Patch Changes
0.8.0
Minor Changes
c317d9dThanks @js2me! - [internal] migration from eslint to biomec317d9dThanks @js2me! - fixedRouteViewGrouptypings (bug after support React 19)
