Skip to content

mobx-route

2.1.1

Patch Changes

2.1.0

Minor Changes

  • 233a6e1 Thanks @js2me! - added isPathMatched computed getter for Route

2.0.0

Major Changes

  • 056e6c0 Thanks @js2me! - Fix type-safety bug: Route.query.data and VirtualRoute.query.data now correctly return Record<string, string> instead of the claimed TQueryParams type.

    Breaking Change: query.data is now typed as Record<string, string> (the actual runtime type) instead of the TQueryParams generic parameter. The TQueryParams generic is still used for typing query parameters passed to open(), createUrl(), and navigation methods.

    If you previously relied on route.query.data.page being typed as number, you now need to:

    • Use QueryParam with queryParamPresets.number for per-field typed access
    • Or cast manually: Number(route.query.data.page)
  • 4833f27 Thanks @js2me! - Remove TParentRoute generic parameter from Route, RouteConfiguration, and createRoute

    • Route now has 4 generics instead of 5: TPath, TInputParams, TOutputParams, TQueryParams
    • RouteConfiguration now has 4 generics instead of 5
    • createRoute now has 4 generics instead of 5 — TQueryParams moved from 5th to 4th position
    • parent property type changed from TParentRoute to AnyRoute | null
    • AnyRoute and Infer* utility types updated to 4 generics

1.3.4

Patch Changes

  • c8b531f Thanks @js2me! - enhance typings for Route VirtualRoute -> add generic for query params (last one). It allows to add typings for query

1.3.3

Patch Changes

  • 6d25faf Thanks @js2me! - send null`undefined(first arg) toupdate()method forRoute`

1.3.2

Patch Changes

  • e76638a Thanks @js2me! - fix flicking isOpening isOpened states for path routes due to update() method call

1.3.1

Patch Changes

  • ccd432f Thanks @js2me! - add "suspense" + "fallback" props for RouteViewGroup

1.3.0

Minor Changes

  • 7e7641b Thanks @js2me! - update() method for Route

  • 7e7641b Thanks @js2me! - aded afterUpdate callback both for Route and VirtualRoute entities

  • f9ddde6 Thanks @js2me! - add withRoute mixin for reaching your view models

Patch Changes

  • 857dd24 Thanks @js2me! - fixed problem with mutation params in navigation transaction (beforeOpen scenario)

1.2.3

Patch Changes

1.2.2

Patch Changes

  • 20acaac Thanks @js2me! - fixed route view group work (otherwise should not block opening other routes)

1.2.1

Patch Changes

  • 86d653e Thanks @js2me! - fixed flicks not found route in based on all falsy isOpened\isOpening routes

1.2.0

Minor Changes

  • 0f852c3 Thanks @js2me! - all documentation update (fixed typos and mistakes)

Patch Changes

  • 0f852c3 Thanks @js2me! - added canNavigate property for RouteGroup

  • 0f852c3 Thanks @js2me! - fixed afterClose callback call for VirtualRoute

1.1.1

Patch Changes

  • 22fc7e1 Thanks @js2me! - update mobx-location-history to 9.4.0 (improved QueryParams)

1.1.0

Minor Changes

  • 5688038 Thanks @js2me! - added absolutePath property for path routes (createRoute, Route)

1.0.0

Major Changes

  • fd88b5f Thanks @js2me! - Removed getAutomatedOpenParams from VirtualRouteConfiguration. Use getAutoOpenParams instead.

  • f62dae6 Thanks @js2me! - Removed protected abortController property from Route and VirtualRoute. If you were accessing abortController directly, you now need to manage abort/cleanup yourself or use the abortSignal config option.

    • VirtualRoute.isOpened now returns false after destroy() is called
    • VirtualRoute.destroy() now also sets status to 'unknown' and explicitly disposes the reaction
    • Added react-dom as an optional peer dependency
  • 6df1753 Thanks @js2me! - First release. Removed deprecations.

    Removed the deprecated loadView API and all props that existed only to support it.

    Dropped the react-simple-loadable dependency; it was only used by loadView.

Patch Changes

0.31.0

Minor Changes

  • 408064e Thanks @js2me! - rename getAutomatedOpenParams to getAutoOpenParams (prev marks as deprecated)

Patch Changes

0.30.0

Minor Changes

  • 8a7027d Thanks @js2me! - Keep the last route params in RouteViewModel.payload after a path route is closed.

    This prevents payload and pathParams from 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

  • 0817c74 Thanks @js2me! - [internal] update dev deps to latest (+ yummies to latest)

  • 330436e Thanks @js2me! - updated documentations for Route + routeConfig

0.29.0

Minor Changes

0.28.0

Minor Changes

0.27.0

Minor Changes

Patch Changes

0.26.1

Patch Changes

0.26.0

Minor Changes

  • 7b8ed7e Thanks @js2me! - removed IRoute interface (no benefits to stay in source code)

0.25.0

Minor Changes

0.24.0

Minor Changes

0.23.5

Patch Changes

0.23.4

Patch Changes

  • c78911a Thanks @js2me! - fixed bug with open by path match ignoring (route)

0.23.3

Patch Changes

0.23.2

Patch Changes

  • be514c0 Thanks @js2me! - fixed http https links navigation using <Link /> component

0.23.1

Patch Changes

  • afdf5a4 Thanks @js2me! - fixed http https links navigation using <Link /> component

0.23.0

Minor Changes

  • 087ab33 Thanks @js2me! - make href prop is Maybe for Link component

0.22.1

Patch Changes

  • 4422689 Thanks @js2me! - fix <Link /> component for more safety process props from bad users

  • 3255c7c Thanks @js2me! - fixed beforeOpen false case handling

0.22.0

Minor Changes

  • 285385a Thanks @js2me! - add useLastOpened prop for <RouteViewGroup/>

  • cf5d5ce Thanks @js2me! - [internal] added more unit tests for virtual routes / routes

  • cf5d5ce Thanks @js2me! - BREAKING!: bump mobx-view-model peer dependency to 8.x + update yummies to 7.x (for applyObservable use)

  • bd70ebf Thanks @js2me! - added async open\close methods for virtual routes

  • bd70ebf Thanks @js2me! - realized beforeClose, afterOpen, beforeOpen lifecycle methods for virtual routes

Patch Changes

  • cf5d5ce Thanks @js2me! - [internal] added unit tests for routeConfig

0.21.0

Minor Changes

  • 14d9ff0 Thanks @js2me! - added fallbackPath parameter for cases when path-to-regexp thrown an error

  • 14d9ff0 Thanks @js2me! - safe building route urls using path-to-regexp lib

0.20.2

Patch Changes

  • 24dcc38 Thanks @js2me! - fix passing exact parameter for extending routes + update docs

0.20.1

Patch Changes

  • 3d31db2 Thanks @js2me! - fixed navigation with opening routes statements

0.20.0

Minor Changes

0.19.0

Minor Changes

  • a233d78 Thanks @js2me! - added unmount() method call for RouteViewModel when route will be closed

  • d2dfae5 Thanks @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

  • 784ad4c Thanks @js2me! - [internal] migration to mobx-location-history 9.x

0.17.0

Minor Changes

0.16.2

Patch Changes

  • 988ca41 Thanks @js2me! - try to fix bad typings for view-model section (after using zshy)

0.16.1

Patch Changes

0.16.0

Minor Changes

Patch Changes

0.15.0

Minor Changes

  • eb9ebb2 Thanks @js2me! - support 8.0.0 version of mobx-view-model

0.14.2

Patch Changes

0.14.1

Patch Changes

0.14.0

Minor Changes

  • 39a4a40 Thanks @js2me! - added formatLinkHref global route config option

  • c4a8336 Thanks @js2me! - added baseUrl override ability for createUrl

0.13.0

Minor Changes

0.12.2

Patch Changes

  • 0933b95 Thanks @js2me! - fixed navigation with passed query params in link when to is string

0.12.1

Patch Changes

0.12.0

Minor Changes

0.11.0

Minor Changes

  • a35efa0 Thanks @js2me! - ability to customize url before route open/ creating url (createUrl param)

0.10.2

Patch Changes

  • e07c69d Thanks @js2me! - fixed output params typings in extended route (receive typings from parent)

0.10.1

Patch Changes

  • 79df550 Thanks @js2me! - fixed extend() method with transfer input param typings

0.10.0

Minor Changes

Patch Changes

  • e065e8e Thanks @js2me! - fixed building url for link component with mergeQuery option

0.9.1

Patch Changes

  • fc47412 Thanks @js2me! - fixed mergeQuery option use in Link react component

  • 76e6b1e Thanks @js2me! - fixed mergeQuery option behaviour

0.9.0

Minor Changes

  • 9e8dc8e Thanks @js2me! - added mergeQuery feature to merge existed query with new one

0.8.1

Patch Changes

  • 417f9ab Thanks @js2me! - fixed Link component (external navigation with target)

0.8.0

Minor Changes

  • c317d9d Thanks @js2me! - [internal] migration from eslint to biome

  • c317d9d Thanks @js2me! - fixed RouteViewGroup typings (bug after support React 19)

0.7.0

Minor Changes