Skip to content

Releases: atlassian-labs/react-resource-router

v0.20.0

21 Jun 02:50
Compare
Choose a tag to compare

New features

  • Dependent resources: It allows relationships between resources that exist in some well defined list,
    such as the route resources list. For more details, please see README.md. #153

Improvements & bug fixes

  • Bump eventsource from 1.1.0 to 1.1.1. #154
  • Bump nanoid from 3.1.21 to 3.3.3. #148

v0.19.3

31 May 00:33
Compare
Choose a tag to compare

Improvements & bug fixes

  • Fix some inconsistencies and update the doc. #152

v0.19.2

28 Apr 06:25
Compare
Choose a tag to compare

Improvements & bug fixes

  • Changes the TypeScript typings for ResourceStoreContext to be an empty interface instead of an any typed type, so that consumers of the library can do a module declaration to extend the ResourceStoreContext to type their own code. #142
  • Compile typescript with isolatedModules to remove types from runtime code. #147

v0.19.1

17 Mar 03:58
Compare
Choose a tag to compare

Improvements & bug fixes

  • Upgrade url-parse from ^1.5.6 to ^1.5.10 #138
  • Use url-parse instead of window.URL for better compatibility #140

v0.19.0

18 Feb 01:44
Compare
Choose a tag to compare

Breaking changes

  • Treat null as valid resource data. #107

New features

Flowtype fixes

Bug fixes

  • Ensure prefetching resources are not prematurely cleared. #115
  • Ensure Links with preload do not trigger fetch request for resources on current route. #125

v0.18.1

24 Aug 23:42
Compare
Choose a tag to compare

Bug fixes

  • Fix delete resource potentially erroring when resource cache was not created

v0.18.0

04 Aug 07:01
Compare
Choose a tag to compare

New features

  • Resources can now be limited by both expiration time and count. The new option for createResource, maxCache, allows consumers to defined how many resources can be kept in the cache. Once the threshold limit is reached, a Least Recently used resource gets deleted, making space for the new requested resource of the same type.

Bug fixes

  • Removed enabled field from exported types as was never implemented
  • Fixed Flow type for update resource callback

v0.17.0

30 Apr 02:39
Compare
Choose a tag to compare

New features

  • Router.requestResources now accepts a timeout option to skip waiting for resources that take to long to fetch
  • Add node 16 support

Type fixes

  • Add generics for typing resource data in Flow types
  • Expose useResource type in TS
  • Fixed type for Link component in TS and Flow

v0.16.2

14 Apr 07:31
Compare
Choose a tag to compare

Improvements & bug fixes

  • Expose isGlobal in Router and MemoryRouter to support scoped and local routers (useful for tests)
  • Fix missing exported types, missing props and TS types for getDataLoader

v0.16.0

01 Feb 00:43
Compare
Choose a tag to compare

New features

  • Add Link prefetch prop with hover|mount support
  • Add onPrefetch Router prop that is triggered when prefetch happens to enable other side effects to be triggered