Skip to content

Latest commit

 

History

History
109 lines (65 loc) · 2.6 KB

CHANGELOG.md

File metadata and controls

109 lines (65 loc) · 2.6 KB

Change Log

All notable changes to this project will be documented in this file.

3.2.0 - 2024-10-01

  • Add arePathsEqual option and make the default one more aware of URL encodings and semantics.

3.1.4 - 2022-12-23

  • Add transformPathInActions option to complement existing pathFromRoutesToWindow and pathFromWindowToRoutes.

3.1.3 - 2022-11-23

  • Fix it really.

3.1.2 - 2022-11-23

  • Fix bug where we didn't take urlOptions into account when history and location weren't explicitly passed.

3.1.1 - 2022-09-18

  • Add ActiveA tag
  • Pass newLocation to RouterBeforeUnloadInterceptor

3.1.0 - 2022-09-18

  • Works without needing to run resetContext({plugins:[routerPlugin()]}) explicitly

3.0.1 - 2022-06-10

  • Add beforeUnload builder. @benjackwhite

3.0.0 - 2022-05-12

  • Kea v3 support

1.0.7 - 2022-01-25

  • Add currentLocation selector to router, which contains both search and searchParams unlike location that doesn't contain the params.
  • Add previousLocation as the 5th argument to urlToAction functions.

1.0.6 - 2021-11-07

  • Add lastMethod value to easily check if the back button was pressed (POP) or not (PUSH or REPLACE).

1.0.5 - 2021-10-21

  • Pass the payload of the router.actions.locationChagned action as the 4th parameter to urlToAction.

1.0.4 - 2021-10-19

  • Change build from rollup to tsc

1.0.3 - 2021-10-19

  • Fix package.json paths.

1.0.2 - 2021-07-13

  • Fix combineUrl util's type's fix

1.0.1 - 2021-07-13

  • Fix combineUrl util's type

1.0.0 - 2021-07-01

  • This library is stable enough, bumping to 1.0! 🎉
  • Add option to return { replace: true } as the 4th array element from actionToUrl, which will replace the last location in the stack instead of pushing a new one.

0.5.3 - 2021-04-28

  • Add <A href='/url'>text</A> tag which hijacks onClick and delegates the rest to an <a> tag.

0.5.2 - 2020-10-27

  • Adds urlPatternOptions to routerPlugin options. Use the following to match emails in url segments:
routerPlugin({
  urlPatternOptions: {
    segmentValueCharset: 'a-zA-Z0-9-_~ %.@', // adds '@' to default
  },
}),

0.5.1 - 2020-10-27

  • Fix type issues

0.5.0 - 2020-10-27

  • Requires Kea 2.2.1 to work
  • Added types

0.4.0 - 2020-06-15

  • Works with passing objects ({}) to actionsToUrl and urlToActions. Passing functions (() => ({})) no longer strictly needed.

0.3.0 - 2020-05-07

  • Support for url parameters

0.1.2 - 2020-03-25

Changed

  • Don't change the URL if actionToUrl returns undefined

0.1.1 - 2017-09-29

Changed

  • First version