Skip to content

Releases: danielr18/connected-next-router

5.0.0

04 Nov 16:38
Compare
Choose a tag to compare

Breaking Changes

  • The initial state will be initialized empty if the initial URL is not provided. When using the hook version of next-redux-wrapper, the make store function doesn't receive the URL (See kirill-konshin/next-redux-wrapper#554)

    {
            pathname: '',
            search: '',
            hash: '',
            href: '',
     }
    

    If the initial URL is not provided when creating the store, the location can be set after hydration like this:

      const {store, props} = reduxWrapper.useWrappedStore(rest);
      
      useEffect(() => {
        Router.ready(() => {
          store.dispatch(onLocationChanged(locationFromUrl(Router.asPath)));
        });
      }, [store]);

Changes

  • Adds support for Next.js 13 or newer
  • Add support for next-redux-wrapper 8

4.2.0

11 Sep 22:25
Compare
Choose a tag to compare
  • Add react 18 as peer dependency

4.1.1

14 May 16:01
Compare
Choose a tag to compare

Changes

  • Added exports for action and state types #88

Credits

Thanks @JoshuaKGoldberg for helping!

4.0.1

24 Nov 21:59
Compare
Choose a tag to compare

Changes

  • Add missing returns in middleware
  • Sync location state on hash changes

4.0.0

15 Nov 04:14
Compare
Choose a tag to compare

Breaking Changes

  • Removed history action from Redux location state. This was added to keep compatibilty with connected-react-router, but the implementation was hacky and was the typical cause of breaks with Next.js upgrades.

Changes

  • Adds support for Next.js 10 or newer
  • Ensures the Redux location state and Next router state are in sync on page load

3.1.0

24 Jun 05:54
Compare
Choose a tag to compare

Changes

  • Fixed support for early Next.js 9 versions (#47).

3.0.1

24 May 18:45
Compare
Choose a tag to compare

Changes

  • Refactored with Typescript
  • Reduced library size by using hooks
  • Supports Next.js 9

1.0.2

12 Jun 16:52
Compare
Choose a tag to compare

Changes

  • Fix beforePopState for Next.js 8.1

0.0.7

12 Jun 16:51
Compare
Choose a tag to compare

Changes

  • Fix beforePopState for Next.js 8.1

1.0.1

04 Mar 00:44
Compare
Choose a tag to compare

Changes

  • Support Next.js 8