Skip to content

@rest-hooks/rest@7.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 04 Jul 22:40
· 1434 commits to master since this release
c05c406

Release announcement and upgrade guide

Major Changes

  • bf141cb: Removed deprecated Endpoint.optimisticUpdate -> use Endpoint.getOptimisticResponse
  • 9788090: RestEndpoint's getRequestInit and getHeaders optionally return a promise
  • 9788090: GetEndpoint and MutateEndpoint parameters changed to what NewXEndpoint was.
  • 9788090: createResource() generics changed to O extends ResourceGenerics
    This allows customizing the Resource type with body and searchParams
  • 9788090: createResource().getList uses a Collection, which .create appends to
    Remove any Endpoint.update as it is not necessary and will not work
  • 011cc20: Remove FetchShape compatibility.
    This removes support for the legacy hooks in 'rest-hooks' like useResource()

Patch Changes

  • 9788090: Fix Collection creates (like push, unshift) normalizing when no collections are in store
  • 9788090: Fix Collections handling single item with Union schema
  • Updated dependencies [bf141cb]
  • Updated dependencies [9788090]
  • Updated dependencies [9788090]
  • Updated dependencies [9788090]
  • Updated dependencies [9788090]
  • Updated dependencies [9788090]
  • Updated dependencies [9788090]
  • Updated dependencies [011cc20]
    • @data-client/rest@0.2.0