{"library":"vuex-router-sync","type":"library","category":null,"description":"The `vuex-router-sync` library provides a straightforward utility to keep `vue-router`'s current route state synchronized with a `vuex` store. Its core `sync` function injects the current route object into the Vuex state, typically at `store.state.route`, enabling reactive access to route parameters, query strings, and path information directly from the store. This simplifies component logic that depends on route data, reducing the need to pass `$route` explicitly. The current stable version, 5.0.0, is compatible with `vue-router >= 3.0.0` and `vuex >= 3.0.0` and includes comprehensive TypeScript definitions. A release candidate for v6.0.0 is under development, targeting compatibility with the Vue 3 ecosystem (Vuex 4, Vue Router 4). The package has a consistent release cadence, typically aligning with major version updates of Vue's core routing and state management libraries. It differentiates itself by offering a simple, drop-in solution for a common integration pattern.","language":"javascript","status":"active","version":"5.0.0","tags":["javascript","vuex","vue-router","vue","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vuex-router-sync","imports":["import { sync } from 'vuex-router-sync';","import type { SyncOptions } from 'vuex-router-sync';","import type { VuexRouterSyncState } from 'vuex-router-sync';"]},{"cmd":"yarn add vuex-router-sync","imports":[]},{"cmd":"pnpm add vuex-router-sync","imports":[]}],"homepage":null,"github":"https://github.com/vuejs/vuex-router-sync","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vuex-router-sync","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vuex-router-sync/compatibility"}}