{"_id":"@superwf/mobx-react-router","_rev":"8-4a33a2983b7175e9bedd0462fa334ebc","name":"@superwf/mobx-react-router","dist-tags":{"latest":"7.4.0"},"versions":{"6.0.0":{"name":"@superwf/mobx-react-router","description":"Keep your MobX state in sync with react-router","main":"lib/index.js","version":"6.0.0","unpkg":"dist/mobx-react-router.js","browser":"dist/mobx-react-router.js","types":"./module/index.d.ts","module":"./module/index.js","scripts":{"lint":"eslint src/*.ts __test__/*.{j,t}s","test":"npm run lint && jest","test-watch":"jest --watch","clean":"rimraf {dist,module,lib} -f","build:rollup":"cross-env NODE_ENV=production npx rollup -c rollup.config.js","build:module":"cross-env NODE_ENV=production tsc -p tsconfig.declaration.json","build":"npm run build:rollup && npm run build:module","prepublishOnly":"npm run clean && npm run lint && npm run test && npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"jest":{"collectCoverage":true,"coverageDirectory":"./__test__/coverage","transform":{"^.+\\.(js|jsx|mjs|ts|tsx)$":"<rootDir>/node_modules/babel-jest"},"moduleFileExtensions":["js","jsx","node","ts","tsx","json"],"roots":["__test__"]},"repository":{"type":"git","url":"git+https://github.com/superwf/mobx-react-router.git"},"keywords":["react","react-router","routing","router","mobx","state","store"],"author":{"name":"Ali Sheehan-Dare - @im_alisd"},"license":"MIT","bugs":{"url":"https://github.com/alisd23/mobx-react-router/issues"},"homepage":"https://github.com/alisd23/mobx-react-router#readme","devDependencies":{"@babel/core":"^7.4.0","@babel/plugin-proposal-class-properties":"^7.4.0","@babel/plugin-proposal-decorators":"^7.4.0","@babel/preset-env":"^7.4.2","@babel/preset-react":"^7.0.0","@rollup/plugin-babel":"^5.2.1","@rollup/plugin-commonjs":"^16.0.0","@rollup/plugin-node-resolve":"^10.0.0","@types/react-router":"^4.0.2","@typescript-eslint/eslint-plugin":"^4.6.1","@typescript-eslint/parser":"^4.6.1","babel-eslint":"^10.1.0","babel-jest":"^26.6.3","babel-loader":"^8.0.5","babel-polyfill":"^6.26.0","babel-preset-react-app":"^10.0.0","cross-env":"^3.0.0","eslint":"^7.12.1","eslint-config-standard":"^16.0.1","eslint-config-standard-react":"^11.0.1","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.21.5","eslint-plugin-standard":"^4.0.2","jest":"^26.6.3","mobx":"^6.0.3","react":"^17.0.1","react-router":"^5.0.0","rimraf":"^2.5.4","rollup":"^2.33.1","rollup-plugin-terser":"^7.0.2","semantic-release":"^4.3.5","ts-node":"^9.0.0","typescript":"^4.0.5","webpack":"^4.29.6","webpack-cli":"^3.3.0"},"peerDependencies":{"mobx":"^5.0.0 || ^6.0.0","react-router":"^5.0.0 || ^6.0.0"},"dependencies":{"mobx-react-lite":"^3.0.1"},"gitHead":"a2cdf3ba01cf32670e7b22fe50780c8078b77fb2","_id":"@superwf/mobx-react-router@6.0.0","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-SfDTtIo4rocAfc1wgnSkmxj7kwxSG3yEVGHdNumsk5FsNIunKQZ8mGSSf7FZ8Nqtx3NWSkgOB5X/NH6+IhkifA==","shasum":"5652fe3ddf9e782fcbfbf14236a823ef87107e61","tarball":"https://registry.npmjs.org/@superwf/mobx-react-router/-/mobx-react-router-6.0.0.tgz","fileCount":21,"unpackedSize":42533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfqKq0CRA9TVsSAnZWagAA1IoP/3Qn08bNuP+/f0GsJVsB\nLDQtoBABpapQvC3tYDgU30yl2RVXGCl+GLW+Iqg8AnZ4DLkGMOMLGDv9A761\naymno7ysQObDes701gU28PYkjTBJ040KydwM8/c5BC7PIFaFRYA8b5ByznLH\nvopCp9GSu7wMjj+kzc6NA65+iYztGkQp4jtwovskH6ifFnhg2jjVagVYdDAz\nNPb62pd9Y2JapqEAg/gwHQNSSLNXkd+J1tjMFLDWVJtjFG59o8CzK32TQ4EM\nV41V1LABXaLCPvmOrshQCL2uShWYf7CtsDO1Z89pYwnAbAEudFctH2uwLXll\n2FTVZLfan2KMZlSouM2q3EpzkuYWGmpDmG5t5S5GMpJff5dJqonOjMjBWYLQ\nWuHd8qUiFKqUKAYxEi7BDKKYvjtVRIdUYtwXtZ30pyhywTxtCh5s24EDQj7e\nGnbBKTaMQyxnHExD0SSZwURPZ/clJlEB6I90osVyI46TFzFFwHGE8T88AfZg\niVMa3Xp3i/UxhZBEnlk3kIqJ0Os3pg2Ob5vfkNYb0PI2zJg42HRinHi23myB\nu6eJFWoiyY9DODM3Erbd7olts1syT/XSdlljsGCTtKLnee88LG4pKd0pFynb\nA3gC8Z4983tjHts397X/1NSoqPANDoEFB1BLvumlblNjJ+YjOt4709CDTXPd\nj2ru\r\n=SYCt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDkUJc9L3yufu09pLGAdihlM/Y5HpgxCnByZBFw+NJToAiEAot1ZTIU3kfUwwU0B8SsmTlDiFI+O9r0X4bSrm5HOBkc="}]},"_npmUser":{"name":"superwf","email":"superwf@126.com"},"directories":{},"maintainers":[{"name":"superwf","email":"superwf@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mobx-react-router_6.0.0_1604889267852_0.02675674635569192"},"_hasShrinkwrap":false},"7.0.0":{"name":"@superwf/mobx-react-router","description":"Keep your MobX state in sync with react-router","main":"lib/index.js","version":"7.0.0","unpkg":"dist/mobx-react-router.js","browser":"dist/mobx-react-router.js","types":"./module/index.d.ts","module":"./module/index.js","scripts":{"lint":"eslint src/*.ts __test__/*.{j,t}s","test":"jest","test-watch":"jest --watch","clean":"rimraf {dist,module,lib} -f","build:rollup":"cross-env NODE_ENV=production npx rollup -c rollup.config.js","build:module":"cross-env NODE_ENV=production tsc -p tsconfig.declaration.json","build":"npm run build:rollup && npm run build:module","prepublishOnly":"npm run clean && npm run lint && npm run test && npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/superwf/mobx-react-router.git"},"keywords":["react","react-router","routing","router","mobx","state","store"],"author":{"name":"Ali Sheehan-Dare - @im_alisd"},"license":"MIT","bugs":{"url":"https://github.com/alisd23/mobx-react-router/issues"},"homepage":"https://github.com/alisd23/mobx-react-router#readme","devDependencies":{"@babel/core":"^7.4.0","@babel/plugin-proposal-class-properties":"^7.4.0","@babel/plugin-proposal-decorators":"^7.4.0","@babel/preset-env":"^7.4.2","@babel/preset-react":"^7.0.0","@rollup/plugin-babel":"^5.2.1","@rollup/plugin-commonjs":"^16.0.0","@rollup/plugin-node-resolve":"^10.0.0","@types/jest":"^27.0.1","@typescript-eslint/eslint-plugin":"^4.6.1","@typescript-eslint/parser":"^4.6.1","babel-eslint":"^10.1.0","babel-jest":"^26.6.3","babel-loader":"^8.0.5","babel-polyfill":"^6.26.0","babel-preset-react-app":"^10.0.0","cross-env":"^3.0.0","eslint":"^7.12.1","eslint-config-standard":"^16.0.1","eslint-config-standard-react":"^11.0.1","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.21.5","eslint-plugin-standard":"^4.0.2","jest":"^27.0.6","mobx-react-lite":"^3.0.0","react":"^17.0.1","rimraf":"^2.5.4","rollup":"^2.33.1","rollup-plugin-terser":"^7.0.2","semantic-release":"^4.3.5","ts-node":"^9.0.0","typescript":"^4.3.5","webpack":"^4.29.6","webpack-cli":"^3.3.0"},"peerDependencies":{"mobx":"^6.0.0"},"dependencies":{"history":"^5.0.1","mobx":"^6.3.2"},"gitHead":"dbe3fe0dcc62bbfc83d0c403784aca52660b053f","_id":"@superwf/mobx-react-router@7.0.0","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-2ruEK1WjcexNf+bjAVH+y7mNoreizh4RFaSdAS1bKSeTeuvT0zaLwLJLVJJ4VvNfERH1Kl//OlsJlvn/9Wtdxg==","shasum":"ef9685198f1954bc030388b25b47c70b0840e8bc","tarball":"https://registry.npmjs.org/@superwf/mobx-react-router/-/mobx-react-router-7.0.0.tgz","fileCount":15,"unpackedSize":44435,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhG5qqCRA9TVsSAnZWagAAYjcQAJKRgigZrirwWcAK/h+3\nE4P7KVbFqp0pQm2ZT5BDDR/xGHbe7hWArZT8PXEK7ESiGKItpSPKr5JQ2i/n\npAVynPVkQJ5rjQ8n4RDz/MOmbPm+ZZ6Vkz2my+7FZzU+DhbPRKXYoCFV4wjC\n+xKDU5XPHzfpW+AiRjYUoUXd4bjFEuPRqGjExN83sD+2YKPfoUGA2pwS8UZF\nA1gDikXDdbjZkgUFeYb7244pbZRkeW88OK8TVdq4oJVzTV+k+ceURpXaycbH\nn4g7OdePDB52dtFWdWaE2DjBiMyjY3HwBx8Y/D6tT3qzIzvUnm++/hMS7Sdt\nO4UNYs0gACt3Fp6gHgD3P8vu+f2onVDaznGx++7QWiXc/V8bnd3vZXT4u10C\nk/ZMJnHZHLEvzlk9OLtxatQlwJw7oWA1Pg+3rZMkJVbafeDkUNYPcL32ptb0\n/Elrj0Q+LCN+2UBtexC7dMId/lvNCufo6KGdfW8Mlv+B3/r9kBl1+5uYjGxj\nPjoOLgNz1tmA14LwX7pcAYYH2SgLWpSxeOXcAEk3SRuFSURrAeo9IZWQDCxm\npWO7+8JuEO4YrxtKbMERntcPxV6qBYzJnSr5qYmJdVs1ipwzmg+jkrnxvZnY\nNFgGn/kiXZCW2iIYq/GlqC/G7CNWLuwVgM81kQFoi8pEQjzw/MR2LvSZSYTT\nH0Rn\r\n=LNNF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID47kGfG4H7Bm7prKHc37iW2tAPg3CYVWAP1BIOOY6jrAiAX5C/VLPdTBEGS5Egr0qQ1ku9wK/V7mUCcozfYz/N9sw=="}]},"_npmUser":{"name":"superwf","email":"superwf@126.com"},"directories":{},"maintainers":[{"name":"superwf","email":"superwf@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mobx-react-router_7.0.0_1629199018442_0.41619678883938893"},"_hasShrinkwrap":false},"7.0.1":{"name":"@superwf/mobx-react-router","description":"Keep your MobX state in sync with react-router","main":"lib/index.js","version":"7.0.1","unpkg":"dist/mobx-react-router.js","browser":"dist/mobx-react-router.js","types":"./module/index.d.ts","module":"./module/index.js","scripts":{"lint":"eslint src/*.ts __test__/*.{j,t}s","test":"jest","test-watch":"jest --watch","clean":"rimraf {dist,module,lib} -f","build:rollup":"cross-env NODE_ENV=production npx rollup -c rollup.config.js","build:module":"cross-env NODE_ENV=production tsc -p tsconfig.declaration.json","build":"npm run build:rollup && npm run build:module","prepublishOnly":"npm run clean && npm run lint && npm run test && npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/superwf/mobx-react-router.git"},"keywords":["react","react-router","routing","router","mobx","state","store"],"author":{"name":"Ali Sheehan-Dare - @im_alisd"},"license":"MIT","bugs":{"url":"https://github.com/alisd23/mobx-react-router/issues"},"homepage":"https://github.com/alisd23/mobx-react-router#readme","devDependencies":{"@babel/core":"^7.4.0","@babel/plugin-proposal-class-properties":"^7.4.0","@babel/plugin-proposal-decorators":"^7.4.0","@babel/preset-env":"^7.4.2","@babel/preset-react":"^7.0.0","@rollup/plugin-babel":"^5.2.1","@rollup/plugin-commonjs":"^16.0.0","@rollup/plugin-node-resolve":"^10.0.0","@types/jest":"^27.0.1","@typescript-eslint/eslint-plugin":"^4.29.2","@typescript-eslint/parser":"^4.29.2","babel-eslint":"^10.1.0","babel-jest":"^26.6.3","babel-loader":"^8.0.5","babel-polyfill":"^6.26.0","babel-preset-react-app":"^10.0.0","cross-env":"^3.0.0","eslint":"^7.32.0","eslint-config-standard":"^16.0.1","eslint-config-standard-react":"^11.0.1","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.21.5","eslint-plugin-standard":"^4.0.2","jest":"^27.0.6","mobx-react-lite":"^3.0.0","react":"^17.0.1","rimraf":"^2.5.4","rollup":"^2.33.1","rollup-plugin-terser":"^7.0.2","semantic-release":"^4.3.5","ts-node":"^9.0.0","typescript":"^4.3.5","webpack":"^4.29.6","webpack-cli":"^3.3.0"},"peerDependencies":{"mobx":"^6.0.0"},"dependencies":{"history":"^5.0.1","mobx":"^6.3.2"},"gitHead":"dbe3fe0dcc62bbfc83d0c403784aca52660b053f","_id":"@superwf/mobx-react-router@7.0.1","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-IGdnpYpcfRhLbUfvmllbU2afGPTr0S10QrnXcjWLUVJ0FZZYISJ25lqoChzPDlqqPlPV3RDlNWgHSOt1GCy6Cg==","shasum":"888dc3f50a268b517ac7fb869263546b99fa96cb","tarball":"https://registry.npmjs.org/@superwf/mobx-react-router/-/mobx-react-router-7.0.1.tgz","fileCount":15,"unpackedSize":44451,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhG6OxCRA9TVsSAnZWagAA9VAP/3ufnNKNxb8bkuz4VElL\nTOIkmaVYJfKB4itbTXdkcPXre7l546dlhbehYGZueYd+KZfEW75cbsT7GQIf\nENaqTuLRYzyc4IANLeKjg2HGIQatADtAmSuJlMCfpmq5vqzFqUReh01zerG0\nTMFlSceYk1tNs4MuFQysVh5LXsGZNd7e0bnN/jATNfMbOref8oq990WX5xA5\ntnOKfq3OUHV+8gkJoeJJSc46oZuDwLn96CXdLlC5nLGcQPU0kGIvCDvwFYh3\nxNR2s8TLaWTPsQE4KLsqnOYpmOMasYv0W23xxJWIfUSBDztY1KbI7tonfUmh\njfYWZR5Hp/JoAwy/6JAMMB4Dj/mrVbanZQO0syME0am2A0PpjTv8hU1GqX2v\nRXlWfHu5HAIXRs0eLCm9PXBGL0mSQpuuBTiMZ/Ki9H6kGo6A3+8bEKnwQTA1\nVcl/fcQKNL790No4mKb0ABaYFrQ2XOo3k9SnPU2WPs6Jvpf9NNEC++QfqxUN\nw6ubihhI+LZ5p3d5tJ52FrUqqhYRwKVY6cSPpWQ717wzUPUfMUlq+W0EhdxE\nGT7bphkog07VquV915/ck+NJCIcKz+Ewl9Qc4alYiSUyE4ui5ubziVC518dE\ndJk0Ne0e5jz7CYnN23N5geLgO0DBVyBcwbaTv8Bi09wQZASunnZMEocAPcme\nGzBm\r\n=Vm67\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBLoxLBUMGVBmaa4VeYW9iX9lmjexouY9PCyXJQK4FxYAiEAh30CAIq43uW3jQuJ2xScEaCAoDmT1jjj9EXnE0UhZv8="}]},"_npmUser":{"name":"superwf","email":"superwf@126.com"},"directories":{},"maintainers":[{"name":"superwf","email":"superwf@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mobx-react-router_7.0.1_1629201329543_0.08364017700437798"},"_hasShrinkwrap":false},"7.1.0":{"name":"@superwf/mobx-react-router","description":"Keep your MobX state in sync with react-router","main":"lib/index.js","version":"7.1.0","unpkg":"dist/mobx-react-router.js","browser":"dist/mobx-react-router.js","types":"./module/index.d.ts","module":"./module/index.js","scripts":{"lint":"eslint src/*.ts","test":"jest","test-watch":"jest --watch","clean":"rimraf {dist,module,lib} -f","build:rollup":"cross-env NODE_ENV=production npx rollup -c rollup.config.js","build:module":"cross-env NODE_ENV=production tsc -p tsconfig.declaration.json","build":"npm run build:rollup && npm run build:module","prepublishOnly":"npm run clean && npm run lint && npm run test && npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/superwf/mobx-react-router.git"},"keywords":["react","react-router","routing","router","mobx","state","store"],"author":{"name":"Ali Sheehan-Dare - @im_alisd"},"license":"MIT","bugs":{"url":"https://github.com/superwf/mobx-react-router/issues"},"homepage":"https://github.com/superwf/mobx-react-router#readme","devDependencies":{"@babel/core":"^7.4.0","@babel/plugin-proposal-class-properties":"^7.4.0","@babel/plugin-proposal-decorators":"^7.4.0","@babel/preset-env":"^7.4.2","@babel/preset-react":"^7.0.0","@rollup/plugin-babel":"^5.2.1","@rollup/plugin-commonjs":"^16.0.0","@rollup/plugin-node-resolve":"^10.0.0","@types/jest":"^27.0.1","@types/react-router-dom":"^5.1.8","@typescript-eslint/eslint-plugin":"^4.29.2","@typescript-eslint/parser":"^4.29.2","babel-eslint":"^10.1.0","babel-jest":"^26.6.3","babel-loader":"^8.0.5","babel-polyfill":"^6.26.0","babel-preset-react-app":"^10.0.0","cross-env":"^3.0.0","eslint":"^7.32.0","eslint-config-airbnb-base":"^14.2.1","eslint-config-prettier":"^8.3.0","eslint-config-standard":"^16.0.1","eslint-config-standard-react":"^11.0.1","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.4.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.21.5","eslint-plugin-standard":"^4.0.2","jest":"^27.0.6","mobx-react-lite":"^3.0.0","prettier":"^2.3.2","react":"^17.0.1","rimraf":"^2.5.4","rollup":"^2.33.1","rollup-plugin-terser":"^7.0.2","semantic-release":"^4.3.5","ts-node":"^9.0.0","typescript":"^4.3.5","webpack":"^4.29.6","webpack-cli":"^3.3.0"},"peerDependencies":{"mobx":"^6.0.0"},"dependencies":{"history":"^5.0.1","mobx":"^6.3.2","path-to-regexp":"^6.2.0"},"gitHead":"b10a54ea33bcb6ccf946f7a239bf4ba5b9ed4e15","_id":"@superwf/mobx-react-router@7.1.0","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-bnn4pTEEhB/XvSf5Dck4dDzn3AiDexmgI8w63aC8YDb1bcnIkwdXuPUXmGkhbN1zHGxPHpKLkXgVVsHwBFwPbw==","shasum":"a75c64306d67badb76ba2cf04d5232092194b741","tarball":"https://registry.npmjs.org/@superwf/mobx-react-router/-/mobx-react-router-7.1.0.tgz","fileCount":15,"unpackedSize":159162,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHg/8CRA9TVsSAnZWagAAXFcP/31sRCh1cYB+Z1T4jQJA\n88Wco1WRth2a2o5L+XxzzyxwnkcPdgNF4XyEqo0bvB50U3mFc153rSeHnh8G\nA28G8DhQb1vHRtsYJSlfy3JQe1Lkta0XxTd1f9omGpAXbW5NT/OQDP6n+bta\nNmpwk8xS/+97mTtD/u6Bh57aQKULbuVmxLBuqY2dliqc+viW43Ri1XkE+44c\nluKsfkI62N//QOE/HW/+iqY2wtFm4rjnkIDzBthpdntYHt3hMwChSmIS/Dzs\n8lPyfm7Ruy+60yGD2P8SDzQupifxc2M1X5ObOn4Ogp3afdJ2mk2bqvc5CVY5\nZMTVVraNNYIYDLQ+eVnM003Jq2QaCVpv44a1E656/CC3OfBGcH8hz8HZIl4k\nYmCp82/q2RW0/vv0rCy4oLtJ4dGzjfTXTFOVdcLDgMA9bamOJ/moxv+T33uK\nXYMF7PCe0CgcMLK4uvOPHgiKh3M+KH4kz4WD0oX/sVwHvYdWrl/Zq945NlYe\nFxteWIJ4ehFKiceo6JIKz/CMBu3Tnm7bbsyP5GvgaA46fIdJFfEQvHtMC3BB\n/0oneNiAx95re7j6LCloDJYwuGwr+oyyTOz/KY7ugzTxG/pH9ja6ss+Les9T\nR8wgm9jXJhp8zzy04rpK/SdbyBARbHhTqqjAsi9WzE+gqzpBKGyUcJw8uDj1\nVYbw\r\n=pVir\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTXZFuqGBMj2SO6X8SnzN83zTsfPmTLlPudT1E6RaFZQIgUbwmnNtWCrEEEzkE0alQBs9SkGrE5/j76x/7S9dMXok="}]},"_npmUser":{"name":"superwf","email":"superwf@126.com"},"directories":{},"maintainers":[{"name":"superwf","email":"superwf@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mobx-react-router_7.1.0_1629360124468_0.6353910748549387"},"_hasShrinkwrap":false},"7.2.0":{"name":"@superwf/mobx-react-router","description":"Keep your MobX state in sync with react-router","main":"lib/index.js","version":"7.2.0","unpkg":"dist/mobx-react-router.js","browser":"dist/mobx-react-router.js","types":"./module/index.d.ts","module":"./module/index.js","scripts":{"lint":"eslint src/*.ts","test":"jest","test-watch":"jest --watch","clean":"rimraf {dist,module,lib} -f","build:rollup":"cross-env NODE_ENV=production npx rollup -c rollup.config.js","build:module":"cross-env NODE_ENV=production tsc -p tsconfig.declaration.json","build":"npm run build:rollup && npm run build:module","prepublishOnly":"npm run clean && npm run lint && npm run test && npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/superwf/mobx-react-router.git"},"keywords":["react","react-router","routing","router","mobx","state","store"],"author":{"name":"Ali Sheehan-Dare - @im_alisd"},"license":"MIT","bugs":{"url":"https://github.com/superwf/mobx-react-router/issues"},"homepage":"https://github.com/superwf/mobx-react-router#readme","devDependencies":{"@babel/core":"^7.4.0","@babel/plugin-proposal-class-properties":"^7.4.0","@babel/plugin-proposal-decorators":"^7.4.0","@babel/preset-env":"^7.4.2","@babel/preset-react":"^7.0.0","@rollup/plugin-babel":"^5.2.1","@rollup/plugin-commonjs":"^16.0.0","@rollup/plugin-node-resolve":"^10.0.0","@types/jest":"^27.0.1","@types/react-router-dom":"^5.1.8","@typescript-eslint/eslint-plugin":"^4.29.2","@typescript-eslint/parser":"^4.29.2","babel-eslint":"^10.1.0","babel-jest":"^26.6.3","babel-loader":"^8.0.5","babel-polyfill":"^6.26.0","babel-preset-react-app":"^10.0.0","cross-env":"^3.0.0","eslint":"^7.32.0","eslint-config-airbnb-base":"^14.2.1","eslint-config-prettier":"^8.3.0","eslint-config-standard":"^16.0.1","eslint-config-standard-react":"^11.0.1","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.4.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.21.5","eslint-plugin-standard":"^4.0.2","jest":"^27.0.6","mobx-react-lite":"^3.0.0","prettier":"^2.3.2","react":"^17.0.1","rimraf":"^2.5.4","rollup":"^2.33.1","rollup-plugin-terser":"^7.0.2","semantic-release":"^4.3.5","ts-node":"^9.0.0","typescript":"^4.3.5","webpack":"^4.29.6","webpack-cli":"^3.3.0"},"peerDependencies":{"mobx":"^6.0.0"},"dependencies":{"history":"^5.0.1","mobx":"^6.3.2","path-to-regexp":"^6.2.0"},"gitHead":"597368f53b19a5db66d4d595f3202f6b56c17703","_id":"@superwf/mobx-react-router@7.2.0","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-USUVJVn5eVEUu0WnwkF1IkZMJJQxA5jklq9hsbleIcP/IHKsvTZGfxFNn44KdS39bICt3LEXUGnLPJ6oKoCZ8A==","shasum":"e995aeb0a2cd1ed1dadb25e38a73b0c9d3caecf8","tarball":"https://registry.npmjs.org/@superwf/mobx-react-router/-/mobx-react-router-7.2.0.tgz","fileCount":15,"unpackedSize":162927,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLJ82CRA9TVsSAnZWagAAy7kP/24ORKEH93wwsJP6qDNk\nWXn6/i8rLeVcbP3AlXomwvPAP1IbLwxqUvMbjgyZxHzl4vuML5YyOdFDEX13\nAPCnirKFmtDMvGXMsnfLRLcmy6S+Uf5wFmTPpOQMSj1ywL7ze/43dkO0lhzI\n0wwkmm4g3aJhp3OkMRfV+u1vmLYVyWjN3JSMegEArwGR/41R57GUE8KWBWeq\n88RG94M77Y7Js7G1OOsz3TfUTIijXyTbqix3oOGRpmMueJjBc4O/vRkni5VC\nrxCmZmrFA9ADrCVEUKdlmSZ4i+plLlO8NnuvI0jLcPnvLNTBSTojmUCTpiB4\nMwV9n8UXBSPItGuZNnRasiSVJTaY5D322Ot2Vp227rzlwXJtavVp6nFuCLae\nQlsTwdak29jtzr9OKcjBxbDJSzPCahqyeTzUsYAnEVUZYz20wWHgj69YRSHN\npESDuoe754lJsxz22dt1pXzEXbwBy+W9D1G7jYalNQJKBlo9MXJkQKDi1UPh\nttHv3c/WrsneTckxXm9OZeOTVcUrm15eEJ2ziZ+n4/tdLJAf5SpkOdbV2X0K\n0y9UV2VOBD4AiMRGEmPLvV4l+Ral3f+LJvtogcpTIZpjhfC/jKfrIYYU8mW+\nrVK7NchTbD5OdtJUblLVBtEIdKxsfdKCiQr0NaMWEHIdkGpSx1yafeljGMfw\ntwsO\r\n=MLgq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHj88pwpfapnjWDyWUSpBcMDaH53ZrrEY4z0klm5J6uGAiEA7kFKJd0HZ5eSI2Q+WcZ6aCHaiEjVlnKqy5VAhTLmfXg="}]},"_npmUser":{"name":"superwf","email":"superwf@126.com"},"directories":{},"maintainers":[{"name":"superwf","email":"superwf@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mobx-react-router_7.2.0_1630314294293_0.42939535291187636"},"_hasShrinkwrap":false},"7.3.0":{"name":"@superwf/mobx-react-router","description":"Keep your MobX state in sync with react-router","main":"lib/index.js","version":"7.3.0","unpkg":"dist/mobx-react-router.js","browser":"dist/mobx-react-router.js","types":"./type/index.d.ts","module":"./type/index.js","scripts":{"lint":"eslint src/*.ts","test":"jest","test-watch":"jest --watch","badge":"jest-coverage-badges output ./badge","clean":"rimraf {dist,type,lib} -f","build":"cross-env NODE_ENV=production npx rollup -c rollup.config.js","declaration":"cross-env NODE_ENV=production tsc -p tsconfig.declaration.json && eslint --fix type/*.ts --quiet","prepublishOnly":"yarn clean && yarn lint && yarn test && yarn build && yarn declaration && yarn standard-version"},"repository":{"type":"git","url":"git+https://github.com/superwf/mobx-react-router.git"},"keywords":["react","react-router","routing","router","mobx","state","store"],"authors":["Ali Sheehan-Dare - @im_alisd","superwf@gmail.com"],"license":"MIT","bugs":{"url":"https://github.com/superwf/mobx-react-router/issues"},"homepage":"https://github.com/superwf/mobx-react-router#readme","devDependencies":{"@babel/core":"^7.4.0","@babel/plugin-proposal-class-properties":"^7.4.0","@babel/plugin-proposal-decorators":"^7.4.0","@babel/preset-env":"^7.4.2","@babel/preset-react":"^7.0.0","@rollup/plugin-babel":"^5.2.1","@rollup/plugin-commonjs":"^16.0.0","@rollup/plugin-node-resolve":"^10.0.0","@types/jest":"^27.0.1","@types/react-router-dom":"^5.1.8","@typescript-eslint/eslint-plugin":"^4.29.2","@typescript-eslint/parser":"^4.29.2","babel-eslint":"^10.1.0","babel-jest":"^26.6.3","babel-loader":"^8.0.5","babel-polyfill":"^6.26.0","babel-preset-react-app":"^10.0.0","cross-env":"^3.0.0","eslint":"^7.32.0","eslint-config-airbnb-base":"^14.2.1","eslint-config-prettier":"^8.3.0","eslint-config-standard":"^16.0.1","eslint-config-standard-react":"^11.0.1","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.4.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.21.5","eslint-plugin-standard":"^4.0.2","history":"^5.0.1","jest":"^27.0.6","jest-coverage-badges":"^1.1.2","mobx":"^6.3.2","mobx-react-lite":"^3.0.0","path-to-regexp":"^6.2.0","prettier":"^2.3.2","react":"^17.0.1","rimraf":"^2.5.4","rollup":"^2.33.1","rollup-plugin-terser":"^7.0.2","standard-version":"^9.3.1","ts-node":"^9.0.0","typescript":"^4.3.5","webpack":"^4.29.6","webpack-cli":"^3.3.0"},"peerDependencies":{"history":">=5","mobx":">=6","path-to-regexp":">=6"},"dependencies":{},"gitHead":"1577942a250993f1344322e679ff2a549bb11ef2","_id":"@superwf/mobx-react-router@7.3.0","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-M6TaG3P6RX6b5CsvZTGXKyJmYbs9BGidt4ytvv7HDyoVzVrFZUFBWnEM+Kt4q0WrKUmFkj1MhH+pLm7dxsyMDw==","shasum":"1ca98470a794e3b85431dcd63553fdb1bd69dde7","tarball":"https://registry.npmjs.org/@superwf/mobx-react-router/-/mobx-react-router-7.3.0.tgz","fileCount":12,"unpackedSize":189853,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDue5NPoBIt5iNy3gR82dUQ5Fzq6zI3DVUYDvJZvBJZUAiEA+WTbRPt2xklZEWcsKGYCxH1h8fog7I+kC2Y/5A2pVnI="}]},"_npmUser":{"name":"superwf","email":"superwf@126.com"},"directories":{},"maintainers":[{"name":"superwf","email":"superwf@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mobx-react-router_7.3.0_1631879932913_0.8483166272610523"},"_hasShrinkwrap":false},"7.3.1":{"name":"@superwf/mobx-react-router","description":"Keep your MobX state in sync with react-router","main":"lib/index.js","version":"7.3.1","unpkg":"dist/mobx-react-router.js","browser":"dist/mobx-react-router.js","types":"./type/index.d.ts","module":"./type/index.js","scripts":{"lint":"eslint src/*.ts","test":"jest","test-watch":"jest --watch","badge":"jest-coverage-badges output ./badge","clean":"rimraf {dist,type,lib,type} -f","build":"cross-env NODE_ENV=production npx rollup -c rollup.config.js","declaration":"cross-env NODE_ENV=production tsc -p tsconfig.declaration.json && eslint --fix type/*.ts --quiet","prepublishOnly":"yarn clean && yarn lint && yarn test && yarn build && yarn declaration && yarn standard-version"},"repository":{"type":"git","url":"git+https://github.com/superwf/mobx-react-router.git"},"keywords":["react","react-router","routing","router","mobx","state","store"],"authors":["Ali Sheehan-Dare - @im_alisd","superwf@gmail.com"],"license":"MIT","bugs":{"url":"https://github.com/superwf/mobx-react-router/issues"},"homepage":"https://github.com/superwf/mobx-react-router#readme","devDependencies":{"@babel/core":"^7.4.0","@babel/plugin-proposal-class-properties":"^7.4.0","@babel/plugin-proposal-decorators":"^7.4.0","@babel/preset-env":"^7.4.2","@babel/preset-react":"^7.0.0","@rollup/plugin-babel":"^5.2.1","@rollup/plugin-commonjs":"^16.0.0","@rollup/plugin-node-resolve":"^10.0.0","@types/jest":"^27.0.1","@types/react-router-dom":"^5.1.8","@typescript-eslint/eslint-plugin":"^4.29.2","@typescript-eslint/parser":"^4.29.2","babel-eslint":"^10.1.0","babel-jest":"^26.6.3","babel-loader":"^8.0.5","babel-polyfill":"^6.26.0","babel-preset-react-app":"^10.0.0","cross-env":"^3.0.0","eslint":"^7.32.0","eslint-config-airbnb-base":"^14.2.1","eslint-config-prettier":"^8.3.0","eslint-config-standard":"^16.0.1","eslint-config-standard-react":"^11.0.1","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.4.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.21.5","eslint-plugin-standard":"^4.0.2","history":"^5.0.1","jest":"^27.0.6","jest-coverage-badges":"^1.1.2","mobx":"^6.3.2","mobx-react-lite":"^3.0.0","path-to-regexp":"^6.2.0","prettier":"^2.3.2","react":"^17.0.1","rimraf":"^2.5.4","rollup":"^2.33.1","rollup-plugin-terser":"^7.0.2","standard-version":"^9.3.1","ts-node":"^9.0.0","typescript":"^4.3.5","webpack":"^4.29.6","webpack-cli":"^3.3.0"},"peerDependencies":{"history":">=5","mobx":">=6","path-to-regexp":">=6"},"dependencies":{},"gitHead":"7c15500e894339ed50bbbabfb13816eb2eb51a0a","_id":"@superwf/mobx-react-router@7.3.1","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-YA1BxOPTkHUCMeR140vYZ/CEQew05sLv9glWPTiWc3BCAiAlyh5Fo32pNc7CQS4XhR14DVfF9kDyY//+d3MtNA==","shasum":"22e9e104a28736b3755bac44d0bcf20ebfce86a4","tarball":"https://registry.npmjs.org/@superwf/mobx-react-router/-/mobx-react-router-7.3.1.tgz","fileCount":13,"unpackedSize":191372,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG72tANoVEtO78U9iVUSCdNGRiwaq9cwB+hl7svps1ziAiEAl6SvXHCiAljbnNH7nYoNAKG7Z005H8srZtOHtPnBQPc="}]},"_npmUser":{"name":"superwf","email":"superwf@126.com"},"directories":{},"maintainers":[{"name":"superwf","email":"superwf@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mobx-react-router_7.3.1_1632393425572_0.13183705247200272"},"_hasShrinkwrap":false},"7.4.0":{"name":"@superwf/mobx-react-router","description":"Keep your MobX state in sync with react-router","main":"lib/index.js","version":"7.4.0","unpkg":"dist/mobx-react-router.js","browser":"dist/mobx-react-router.js","types":"./type/index.d.ts","module":"./module/index.js","scripts":{"lint":"eslint src/*.ts","test":"jest","test-watch":"jest --watch","badge":"jest-coverage-badges output ./badge","clean":"rimraf {dist,type,lib,type} -f","build":"cross-env NODE_ENV=production npx rollup -c rollup.config.js","declaration":"cross-env NODE_ENV=production tsc -p tsconfig.declaration.json && eslint --fix type/*.ts --quiet","prepublishOnly":"yarn clean && yarn lint && yarn test && yarn build && yarn declaration && yarn standard-version"},"repository":{"type":"git","url":"git+https://github.com/superwf/mobx-react-router.git"},"keywords":["react","react-router","routing","router","mobx","state","store"],"authors":["Ali Sheehan-Dare - @im_alisd","superwf@gmail.com"],"license":"MIT","bugs":{"url":"https://github.com/superwf/mobx-react-router/issues"},"homepage":"https://github.com/superwf/mobx-react-router#readme","devDependencies":{"@babel/core":"^7.4.0","@babel/plugin-proposal-class-properties":"^7.4.0","@babel/plugin-proposal-decorators":"^7.4.0","@babel/preset-env":"^7.4.2","@babel/preset-react":"^7.0.0","@rollup/plugin-babel":"^5.2.1","@rollup/plugin-commonjs":"^16.0.0","@rollup/plugin-node-resolve":"^10.0.0","@types/jest":"^27.0.1","@types/react-router-dom":"^5.1.8","@typescript-eslint/eslint-plugin":"^5.4.0","@typescript-eslint/parser":"^5.4.0","babel-eslint":"^10.1.0","babel-jest":"^26.6.3","babel-loader":"^8.0.5","babel-polyfill":"^6.26.0","babel-preset-react-app":"^10.0.0","cross-env":"^3.0.0","eslint":"^7.32.0","eslint-config-airbnb-base":"^14.2.1","eslint-config-prettier":"^8.3.0","eslint-config-standard":"^16.0.1","eslint-config-standard-react":"^11.0.1","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.4.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.21.5","eslint-plugin-standard":"^4.0.2","history":"^5.0.1","jest":"^27.0.6","jest-coverage-badges":"^1.1.2","mobx":"^6.3.2","mobx-react-lite":"^3.0.0","path-to-regexp":"^6.2.0","prettier":"^2.3.2","react":"^17.0.1","rimraf":"^2.5.4","rollup":"^2.33.1","rollup-plugin-terser":"^7.0.2","standard-version":"^9.3.1","ts-node":"^9.0.0","typescript":"^4.5.2","webpack":"^4.29.6","webpack-cli":"^3.3.0"},"peerDependencies":{"history":">=5","mobx":">=6","path-to-regexp":">=6"},"publishConfig":{"registry":"https://registry.npmjs.org"},"dependencies":{},"gitHead":"2b1cc9f3b5711c9bc7f9b61dde0948454f7624ba","_id":"@superwf/mobx-react-router@7.4.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-3Mq3p1mTJPYpDkYzAzhFLBCPqP528pHyu2V3UFSwcGGPUiFqFFmz31RIRYFHF13anQ2joxwrSllKZj0NiLMFpw==","shasum":"e1d9fa75d9335ee8cd15755242c7716feba174d5","tarball":"https://registry.npmjs.org/@superwf/mobx-react-router/-/mobx-react-router-7.4.0.tgz","fileCount":12,"unpackedSize":189685,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhneCUCRA9TVsSAnZWagAAMUMP/iqYVlo6LJGDovBjN7Aw\nS2LGYMyyxNrMlIuyKKLWGDFcDu8ZZJHIkCIg52JnstX1ne1ndN7XGVwA3ipL\nvTs07yV/JRBy+GTTmUIg3SIqH4dqW227LPJOolm8hPnnwR/u4CF2sGJXSpdG\nEnCkZstkyaoPaODrKjehLCnvqS/iu+xZ0mQJNdxOJLtw+QXLwu0Ha4RpmH3M\nRw7IxPPPxWugLkoTSQaHdP4btrRLpFu4JSwWyphPtTEL+fnv8WOyVTmbjs7d\nHLt89E9Nex4Owwl13aRPyh8DqVe7ck/IjmGeL8xcGgw0aBqjMOKQNucRCbzM\nZtwmsVox/8Q5WHTCF43lrtZakJ1hxa5u+zdsM9UlwvUiwNnTpuzGw3dR++dg\nGeSjeEfYPtcu/2EyEuJdx0XRAM63aYmbE8+HAMRtreI9BRQ4MPtnCkLZUbv8\nXgnhEyZ5k/X1rZLvvosnLo4MYSjQF+CVEB5UbDf/7vH8X+7dRp3hyjNrJVMZ\nv6L7b5+NsfixoTB3kpOzC7P5uTM5UJdwLZIYJBU5R0jIXckM9z2W4goDr2xk\nzqg64rPRMp3uvmBU4nAqpxXuTecgz4I7HPGm1OO2z/38Eg1UpF34eAF5amMd\nD8fYKR6p84BCMuDscmUEXSG1IhJCvuuSFl8x6ZvN5ys1+9yqU52zZCcZo+yJ\nwYIT\r\n=2XTr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICSfkJwNzl+j1sGTLQXJk/wgj5GzhQnm2klxvAzdUnYTAiEA+5Zq6+pqDvGy5KYYzVEvhVG5f5umFrwgm3Kg4r3OB4Y="}]},"_npmUser":{"name":"superwf","email":"superwf@126.com"},"directories":{},"maintainers":[{"name":"superwf","email":"superwf@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mobx-react-router_7.4.0_1637736595927_0.7049603969863814"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-09T02:34:27.816Z","6.0.0":"2020-11-09T02:34:27.963Z","modified":"2022-04-07T03:23:27.658Z","7.0.0":"2021-08-17T11:16:58.570Z","7.0.1":"2021-08-17T11:55:29.706Z","7.1.0":"2021-08-19T08:02:04.636Z","7.2.0":"2021-08-30T09:04:54.470Z","7.3.0":"2021-09-17T11:58:53.059Z","7.3.1":"2021-09-23T10:37:05.698Z","7.4.0":"2021-11-24T06:49:56.116Z"},"maintainers":[{"name":"superwf","email":"superwf@126.com"}],"description":"Keep your MobX state in sync with react-router","homepage":"https://github.com/superwf/mobx-react-router#readme","keywords":["react","react-router","routing","router","mobx","state","store"],"repository":{"type":"git","url":"git+https://github.com/superwf/mobx-react-router.git"},"bugs":{"url":"https://github.com/superwf/mobx-react-router/issues"},"license":"MIT","readme":"# mobx-react-router\n\n- [mobx-react-router](#mobx-react-router)\n  - [Overview](#overview)\n  - [Upgrade Note](#upgrade-note)\n  - [Installation](#installation)\n  - [Example](#example)\n  - [CDN](#cdn)\n  - [API](#api)\n    - [RouterStore constructor](#routerstore-constructor)\n    - [Instance properties](#instance-properties)\n    - [Instance methods](#instance-methods)\n\n## Overview\n\nKeep your MobX state in sync with react-router via a `RouterStore`.\n\nRouter location state is **observable**, so any references to it in `MobX`\n\ncomponents will cause the component to re-render when the location changes.\n\nThis repo is forked from alisd23/mobx-react-router.\n\nTotally rewrite with typescript and has type definition together.\n\nTested 🥳\n\n![Statements](./badge/badge-statements.svg)\n\n![Branches](./badge/badge-branches.svg)\n\n![Functions](./badge/badge-functions.svg)\n\n![Lines](./badge/badge-lines.svg)\n\n## Upgrade note\n\n💡 **Note** 2021-8-16 update to v7 for compatible with history v5, mobx v6, react-router v5 and path-to-regexp v6\n\nSince `History` upgrade to V5, its api changed a lot.\n\nSo please [**READ API**](#api) part again even you have used mobx-react-router.\n\n💡 **Note** if you need to work woth old version react-router and history, install v6 by `npm install --save @superwf/mobx-react-router@6.0.0`\n\n## Installation\n\n```sh\nnpm install --save @superwf/mobx-react-router\n```\n\n## Example\n\nComplete code here: [example](https://github.com/superwf/mobx-react-router-example)\n\n`router.js`\n\n```javascript\nimport { createBrowserHistory } from 'history'\nimport { RouterStore } from '@superwf/mobx-react-router'\n\nconst browserHistory = createBrowserHistory()\nexport const router = new RouterStore(browserHistory)\n```\n\n`index.js`\n\n```javascript\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport { Router } from 'react-router'\nimport App from './App'\nimport { router } from './router'\n\nReactDOM.render(\n  <Router history={router.history}>\n    <App />\n  </Router>\n  document.getElementById('root')\n)\n```\n\n`App.js`\n\n```javascript\nimport React, { Component } from 'react'\nimport { observer } from 'mobx-react-lite'\nimport { router } from './router'\n\nexport const App = observer(() => {\n  const { location, push, back } = router\n  return (\n    <div>\n      <span>Current pathname: {location.pathname}</span>\n      <button onClick={() => push('/test')}>go to \"/test\"</button>\n      <button onClick={back}>Go Back</button>\n    </div>\n  )\n})\n```\n\n## CDN\n\n- Global var mode mode. Global variable name: `window.MobxReactRouter`\n\n`<script type=\"javascript\" src=\"https://unpkg.com/@superwf/mobx-react-router@latest/dist/mobx-react-router.min.js\"></script>`\n\n- Es module mode.\n\n```javascript\nimport { RouterStore } from 'https://unpkg.com/@superwf/mobx-react-router/module/index.js'\n```\n\n## API\n\n### RouterStore constructor\n\nparam: `history` - A variant of a history object, usually `browserHistory`\n\n```javascript\nconst browserHistory = createBrowserHistory()\n// or hashHistory or memoryHistory\nconst router = new RouterStore(browserHistory)\n```\n\n### Instance properties\n\nA **RouterStore** instance has the following properties:\n\n- **history** - raw [history API](https://github.com/mjackson/history#properties) object\n- `state` (*observable*) - sync with history state, type as below.\n\n```javascript\n{ action: history.action, location: history.location }\n```\n\n- **location** (*observable*, *readonly*) - sync with history location\n\n```javascript\nrouter.push('/test1')\nrouter.location.pathname // '/test1'\n```\n\n- **history** the history instance from constructor. Use it as your will, do not update it.\n\n- **pathList** string[], observable, used to match `pathValue`. **Do not** use it directly unless you absolutely know your purpose.\n\n- **query** url search object format.\n\n```javascript\nrouter.push('/abc?a=1&b=2')\nrouter.query // { a: '1', b: '2' }\nrouter.push('/abc?id=1&id=2')\nrouter.query // { id: ['1', '2'] }\n```\n\n- **hashValue** hash string without `#`.\n\n```javascript\nrouter.push('/abc#xxx')\nrouter.hashValue // 'xxx'\n```\n\n- **pathValue** extract path parameter to object type, need `pathList` work together.\n\n```javascript\nrouter.appendPathList('/user/:name')\nrouter.push('/user/xxx')\nrouter.hashValue // 'xxx'\n```\n\n### Instance methods\n\n- **stopSyncWithHistory**, stop sync with history any more, once stoped, can not start again.\n\n```javascript\nrouter.push('/test1')\nrouter.location.pathname // '/test1'\nrouter.stopSyncWithHistory()\nrouter.push('/test2') // not sync any more\nrouter.location.pathname // '/test1'\n```\n\n- **subscribe(*listener*) and unsubscribe()**\n\nSubscribes to any changes in the store's `location` observable,\nand run the listener at once with current history state.\n**Returns** an unsubscribe function which destroys the listener\n\n```javascript\nconst stopListen = router.subscribe(({ location }) => console.log(location.pathname))\nrouter.push('/test1') // output '/test1'\nstopListen()\nrouter.push('/test2') // no output any more\n```\n\n- **appendPathList**, **prependPathList**\n\nAppend or prepend new paths to `pathList` property,\n\n💡 **Note** path in pathList **order** is important, first matched path will return the `pathValue` result.\n\nUse `prependPathList` for some `path` which has high priority.\n\n```javascript\nrouter.appendPathList('/user/:name')\nrouter.push('/user/rock') // match \"/user/:name\"\nrouter.pathValue // now get a path param: { name: 'rock' }\n```\n\nThe following methods bind to the history instance, for more detail read here: [history methods](https://github.com/remix-run/history/blob/main/docs/navigation.md):\n\n- **push**\n- **replace**\n- **go**\n- **back**\n- **forward**\n- **subscribe**\n","readmeFilename":"README.md"}