Socket
Socket
Sign inDemoInstall

react-router-redux

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router-redux - npm Package Compare versions

Comparing version 4.0.2 to 4.0.4

dist/ReactRouterRedux.js

12

CHANGELOG.md

@@ -1,3 +0,11 @@

## [4.0.0](https://github.com/reactjs/react-router-redux/compare/3.0.0...4.0.0)
## [4.0.2](https://github.com/reactjs/react-router-redux/compare/v4.0.1...v4.0.2)
- Calling routerReducer() with no args crashes. [#350](https://github.com/reactjs/react-router-redux/pull/350)
## [4.0.1](https://github.com/reactjs/react-router-redux/compare/v4.0.0...v4.0.1)
- Fix IE8 compatbility. [#344](https://github.com/reactjs/react-router-redux/pull/344)
## [4.0.0](https://github.com/reactjs/react-router-redux/compare/3.0.0...v4.0.0)
This is a big breaking release, but the last one for the foreseeable future. The scope of this library has changed, so please re-evaluate its usefulness to you. You may not need it and this is ok!

@@ -7,3 +15,3 @@

The provided action creators and middleware are now separate from the history<->state syncing function. For the vast majority of cases, using action creators to trigger navigation is obsoleted by React Router's [new history singletons](https://github.com/rackt/react-router/blob/master/upgrade-guides/v2.0.0.md#history-singletons-provided) provided in 2.0. Building this functionality in by default and coupling it to our history syncing logic no longer makes sense.
The provided action creators and middleware are now separate from the history<->state syncing function. For the vast majority of cases, using action creators to trigger navigation is obsoleted by React Router's [new history singletons](https://github.com/reactjs/react-router/blob/master/upgrade-guides/v2.0.0.md#history-singletons-provided) provided in 2.0. Building this functionality in by default and coupling it to our history syncing logic no longer makes sense.

@@ -10,0 +18,0 @@ We now sync by enhancing the history instance to listen for navigation events and dispatch those into the store. The enhanced history has its `listen` method overridden to respond to store changes, rather than directly to navigation events. When this history is provided to `<Router>`, the router will listen to it and receive these store changes. This means if we time travel with the store, the router will receive those store changes and update based on the location in the store, instead of what the browser says. Normal navigation events (hitting your browser back/forward buttons, telling a history singleton to `push` a location) flow through the history's listener like normal, so all the usual stuff works A-OK.

8

package.json
{
"name": "react-router-redux",
"version": "4.0.2",
"version": "4.0.4",
"description": "Ruthlessly simple bindings to keep react-router and redux in sync",

@@ -8,2 +8,3 @@ "main": "lib/index",

"*.md",
"dist",
"LICENSE",

@@ -20,3 +21,6 @@ "lib",

"scripts": {
"build": "mkdir -p lib && babel ./src -d lib",
"build": "npm run build:commonjs & npm run build:umd & npm run build:umd:min",
"build:commonjs": "mkdir -p lib && babel ./src -d lib",
"build:umd": "webpack dist/ReactRouterRedux.js",
"build:umd:min": "NODE_ENV=production webpack dist/ReactRouterRedux.min.js",
"lint": "eslint examples src test",

@@ -23,0 +27,0 @@ "test": "npm run lint && npm run test:node && npm run test:browser",

@@ -87,3 +87,3 @@ # react-router-redux

1. Provide your own reducer function that will receive actions of type `LOCATION_CHANGE` and return the payload merged into state.
2. Pass a selector to access the payload state via the `selectLocationState` option on `syncHistoryWithStore`.
2. Pass a selector to access the payload state and convert it to a JS object via the `selectLocationState` option on `syncHistoryWithStore`.

@@ -90,0 +90,0 @@ These two hooks will allow you to store the state that this library uses in whatever format or wrapper you would like.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc