Skip to content

Releases: atlassian-labs/react-resource-router

v0.13.0

23 Sep 04:59
Compare
Choose a tag to compare

New features

  • New useQueryParam(param: string) hook to get and set a query string parameter. Returns [value: string | undefined, setParam: (v: string) => undefined]
  • New usePathParam(param: string) hook to get and se a path parameter. Returns [value: string | undefined, setParam: (v: string) => undefined]

Bug fixes

  • createResource and useResource now return handle the correct type for data in Typescript

v0.12.1

20 Aug 00:26
Compare
Choose a tag to compare

New features

  • Add /utils package entry point to have access to matchRoute, findRouterContext and few more

v0.12.0

19 Aug 23:04
Compare
Choose a tag to compare

Breaking changes

  • useResource returns an object now instead of an array with a object inside
  • getRouteContext utility has been renamed findRouterContext
  • RouterStoreContext type has been renamed RouterContext

New features

  • useResource now accepts a routerContext option to manipulate resources and resource keys independently from current location
  • new createRouterContext utility

Bug fixes

  • Fix types to be compatible with Typescript v3.7+

Patch to include the compatible version of TypeScript as a peer dependency

12 Jun 06:54
Compare
Choose a tag to compare

At this time, create-react-app's TypeScript template uses a version of the typescript package which is incompatible with the library. This patch adds the correct version as a peer dependency so that consumers are warned of this at install time.

Patch to fix bug where TS types were being exported from the built esm module

11 Jun 05:03
Compare
Choose a tag to compare

This release fixes a bug that was causing plain JS projects using the library to blow up. Types are now exported using the export type keyword.

v0.11.2

08 Jun 06:40
Compare
Choose a tag to compare
  • Add logo and fix badges

Patch to include @babel/plugin-transform-runtime

05 Jun 01:05
Compare
Choose a tag to compare

This patch release ensures that @babel/plugin-transform-runtime is included in the core suite of babel plugins used to build the library. This will prevent errors in environments that do not support async/await natively.