Skip to content

@ntucker ntucker released this Nov 2, 2019 · 140 commits to master since this release

💥 Breaking Change

  • [breaking] useRetrieve() no longer takes a body 0908967
  • [breaking] Force all attributes as readonly on SimpleResource #169
  • [breaking] useSubscription() with params being null is considered 'inactive' #166
  • [breaking] Remove useResultCache() in favor of useCache() 2af0ce5
  • [breaking] useCache, useResource now include entire response #164
  • [docs][breaking] No longer recommend explicitly specifying fetchShape return types db3dc43
  • [breaking] pk() type should be string | number | undefined #163
  • [breaking] RequestOptions -> FetchOptions #162
    • SimpleResource.getRequestOptions() -> SimpleResource.getFetchOptions()
  • [breaking] ReadShape and MutateShape fetch resolves to object | string | number | boolean #161
  • [breaking] useFetcher() now takes params before body #160
    • Also ReadShape<> now no longer takes a body. However, DeleteShape<> does, but it defaults to undefined.
  • [breaking] Make middleware async - enabling execution after commit #139

💅 Enhancement

  • [enhance] Reduce memory usage and simplify types #167

📦 Package

  • [pkg] Types and dev 6ff88c5
  • [pkg] test against React 16.11 e04b655
  • [pkg] Dev minor bumps: babel, eslint, nock, rollup 3edab0d

🏠 Internal

  • [internal] Update all local packages and re-enable yarn security scan #168
  • [internal] Get rid of outdated comments in useRetrieve() 06a3769

🐛 Bug Fix

  • [fix] useFetcher's UpdateFunction - existing results can be undefined dcd3051

📝 Documentation

  • [docs] Readme phrasing a1ebfdc
  • [docs] Add 2.2 announcement blog 8944572
  • [docs] Add SWR terminology to explain default caching policy 54be082
  • [docs] Link to normalizr fork 783b51e
  • [docs] Website design tweaks 65bd4e4
  • [docs] Add mention of concurrent mode support to readme 9aaeb89
  • [docs] New preview video for website 059a1ba
  • [docs] Fix useResource link on useResourceLegacy page 63d2e02
Assets 2
You can’t perform that action at this time.