zhenyulin / ultimate-hot-boilerplate

πŸš€ node-react universal app boilerplate with everything on hot reload, SSR, GraphQL, Flow included
MIT License
35 stars 4 forks source link

Update connected-react-router to the latest version πŸš€ #101

Open greenkeeper[bot] opened 6 years ago

greenkeeper[bot] commented 6 years ago

The dependency connected-react-router was updated from 4.5.0 to 5.0.0.

This version is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Release Notes for v5.0.0

Breaking Change

Align public API with react-router-redux and allow various integrations (redux-loop, rematch, etc.) (@sgal in #150)

  1. In your reducer file, instead of exporting a root reducer, we need to export a function accepting history and returning a root reducer with a router key that uses connectRouter(history).
// reducers.js

import { combineReducers } from 'redux'
import { connectRouter } from 'connected-react-router'

export default (history) => combineReducers({
  router: connectRouter(history),
  ... // rest of your reducers
})
  1. In store configuration,
// configureStore.js
import { createBrowserHistory } from 'history'
import { applyMiddleware, compose, createStore } from 'redux'
import { routerMiddleware } from 'connected-react-router'
import createRootReducer from './reducers'

const history = createBrowserHistory()
const store = createStore(
  createRootReducer(history), // root reducer with router state
  initialState,
  compose(
    applyMiddleware(
      routerMiddleware(history), // for dispatching history actions
      // ... other middlewares ...
    ),
  ),
)

Enhancement

  • Expose router reducer with customized name to make it work with other libraries (redux-loop, rematch, etc) (@sgal in #150)
  • Add TypeScript definitions for immutable (@thomschke in #145)
  • Add TypeScript definitions for seamless-immutable (@Brettm12345 in #157)
  • Use string literal type for CALL_HISTORY_METHOD (@maxhawkins in #147)
  • Move redux-seamless-immutable to devDependencies (@n3tr in #167)

Bug fix

Commits

The new version differs by 27 commits.

  • 36ee67d Bump version to 5.0.0
  • 1778d76 Fix indent
  • b7cb462 Updated action types
  • 9632ab4 Merge pull request #150 from sgal/expose-router-reducer
  • 4fe57ac Merge pull request #167 from n3tr/dev-dep-redux-seamless-immutable
  • e197574 Merge pull request #163 from durasj/patch-2
  • 2728ac6 Merge pull request #162 from durasj/patch-1
  • b4ad380 Move redux-seamless-immutable to devDependencies
  • fdc3c0d Fix FAQ anchor in README.md
  • a26fec3 Fix anchor in FAQ.md
  • c4af35f Merge pull request #157 from Brettm12345/master
  • 03de99d Add typescript definitions for seamless-immutable
  • 0dcf17d Merge pull request #156 from supasate/fix-connectrouter-definition
  • b0e1c73 Fix connectRouter definition
  • b58cf89 Merge pull request #142 from lanwin/master

There are 27 commits in total.

See the full diff

FAQ and help There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).

Your Greenkeeper bot :palm_tree:

greenkeeper[bot] commented 6 years ago

Update to this version instead πŸš€

Release Notes for v5.0.1

Fixes

Commits

The new version differs by 17 commits.

  • c6aced2 Bump version
  • 298c4ad Add LocationChangeAction type to reducer
  • 56fb4bc Update README to emphasis the router key.
  • 1fa7561 Merge pull request #172 from supasate/revert-171-remove-initial-location-change
  • c6cdf33 Revert "Remove initial locationChanged action"
  • 5d98643 Merge pull request #169 from dimitriirybakov/master
  • 59430ba fix typing
  • 00aaf04 Merge pull request #171 from supasate/remove-initial-location-change
  • fe890f7 Remove initial locationChanged action
  • 6530dce Merge pull request #170 from supasate/move-history-to-peer-dependency
  • 9d386f1 Move history v4 to peer dependencies
  • d895c95 update connectRouter typing
  • 218bcbb Update TypeScript example to use latest packages
  • 4f3446f Update immutable example to use latest packages
  • d8900ab Update basic example to use the latest packages

There are 17 commits in total.

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Commits

The new version differs by 21 commits.

  • 66215b1 Merge pull request #191 from supasate/support-react-redux-v6
  • eb8b612 Update README to require react v16.4 and react-redux v6 or later
  • d822fb9 Update package versions in examples
  • 2f16aeb Update package to depend on react v16.4 and react-redux v6
  • a52f9c8 Fix example dependencies' versions
  • a1db646 remove not used variable from the examples folder (#190)
  • 53cff54 Support React Router v6
  • b7a3e02 Throw helpful error when router reducer not mounted under "router" (#175)
  • ce79c76 Merge pull request #189 from afholderman/master
  • a08f07d create and export types for routerActions so they can be imported and used in definitions
  • b197430 Deprecate travis for Node 4 and add Node 8, 10, 11
  • 9c626e3 Upgrade packages
  • 101e93a Merge pull request #182 from supasate/add-code-of-conduct-1
  • 462f0df Create CODE_OF_CONDUCT.md
  • 7772bbe Merge pull request #181 from lazarljubenovic/patch-2

There are 21 commits in total.

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Release Notes for v6.1.0

Fixes

  • Move onLocationChanged to componentDidMount to avoid side-effect in constructor (#217)Β·
  • Prevent double-rendering on initilization (#218)
  • Prevent ConnectedRouter from re-rendering on every redux store update (#208, #216)

These fixes are significantly contributed by @Annatsu, @SergeyPoluektov, @jakewies, @firec0der, @madsmadsen, and @supasate.

Feature

Commits

The new version differs by 17 commits.

  • 27bb9d5 Add doc on how to test with yarn link
  • 2301bb9 Bump version to 6.1.0
  • 2d7aad4 Prevent double-rendering on initialization
  • 61a96c8 Move onLocationChanged to componentDidMount to prevent side-effect in constructor
  • c5eebfc Add double-rendering test for immutable and seamless-immutable
  • 0866442 Merge pull request #208 from Annatsu/fix/double-rendering
  • 7b22f4d Remove location and action props from ConnectedRouter
  • 1131d79 Remove MockProvider and use redux's Provider instead
  • 5236391 Keep the same prop usage from other tests
  • e1bcf99 Create a test for non-related actions being fired
  • a97b204 Add test to count the times rendered when mounted
  • 87ed567 Output ESM build, and make module tree-shakeable (#202)
  • 68cf17a Merge pull request #207 from Annatsu/patch-1
  • 82576ea Replace Component by PureComponent to enable shallow compare
  • c212554 Fix package requirement name and grammar typo

There are 17 commits in total.

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Release Notes for v6.2.0

Fixes

Enhancements

Doc

  • Refactor examples to use configureStore to align with README (@supasate in #228)
Commits

The new version differs by 14 commits.

  • ec3c263 Bump version to 6.2.0
  • e504cd4 Bump version to v6.2.0-beta.3 to fix broken npm package
  • 3bfe29f Bump version to v6.2.0-beta.2
  • c9227f4 Update usage in README by breaking down more steps
  • 14f0846 Merge branch 'master' of github.com:supasate/connected-react-router
  • 57ca7cc Update how to use in README
  • e00edd2 fixed immutable
  • 0a04c1e Refactor examples to use configureStore
  • 9231133 Bump version 6.2.0-beta.1
  • ab7d4eb Moving store subscription back to constructor
  • e444615 Export onLocationChanged
  • 80363ae Support getHash and getSearch selectors for immutables
  • b7bc1ac Add getter Typescript type support
  • e42dab7 Create selectors to retrieve search and hash

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Release Notes for v6.2.1

Fix

Commits

The new version differs by 4 commits.

  • 600c5f7 Bump version to 6.2.1
  • 083f5c9 Merge branch 'master' of github.com:supasate/connected-react-router
  • 76a9b24 Update index.d.ts
  • 99f8d16 Bump version to 6.2.0

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Release Notes for v6.3.0

Enhancements

Fix

  • Use immutable routerMiddleware for immutable example (@Armour in #249)
Commits

The new version differs by 10 commits.

  • 0f3432c Bump verson 6.3.0
  • fd45d61 adding generics to make sure the changes are backwards compatible
  • 6f6b6da improving return types of action creators
  • 99588bd Add optional context prop type definition
  • 14e7b11 add missing semicolon and fix typo
  • d240f07 add onLocationChange method typings
  • 35fd393 Use immutable routerMiddleware
  • 3977f3b Bump version to 6.2.2
  • 357fded Fix missing store in TypeScript example
  • bb7574f Add missing typedef's for getRouter and createMatchSelector

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Release Notes for v6.3.1

Fix

Commits

The new version differs by 2 commits.

  • b9a359d Bump version to 6.3.1
  • fe7663e Fix an invalid type definition (#253)

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Commits

The new version differs by 5 commits.

  • 5d472b4 Bump version to 6.3.2
  • 4781828 Upgrade webpack to use optimizaiton config
  • 0d256a9 fix(actions): :bug: fix send isFirstRendering to onLocationChanged action (#264)
  • 80c8d32 prop-types: declare as a peer dependency (#265)
  • 71537ff Replace uglify option with new minimize options (#263)

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Release Notes for v6.4.0

Enhancement

Fixes

Documentation

Commits

The new version differs by 7 commits.

  • 273112d Bump version to 6.4.0
  • df89468 Move prop-types from peerDependencies into dependencies (#281)
  • d327b90 Add support for react-router@5.0.0 (#273)
  • 1743d23 Fix code rule example/typescript/src/App.tsx import {History} to import { History } (#289)
  • 8d49825 add isFirstRendering property to RouterState interface (#276)
  • a8e92e6 Address part of the confusions highlighted in #230 (#277)
  • d6502d3 Upgrade jest to fix travis error

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 4 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 4 years ago

Update to this version instead πŸš€