data-client

Async State Management without the Management

APACHE-2.0 License

Downloads
44.4K
Stars
1.9K
Committers
37

Bot releases are visible (Hide)

data-client - @data-client/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 69ce1f8b6b: docs: Add some more JSDoc links
  • 12c2596453: fix: Ensure Entit.key can be set in v8 browsers
  • 6c8f0be900: enhance: Include class/function in error message regarding name mangling
data-client - @rest-hooks/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • e916b88e45: Readme/package meta typo fixes
data-client - @data-client/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • e916b88e45: Readme/package meta typo fixes
data-client - @data-client/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • e916b88e45: Readme/package meta typo fixes
data-client - @data-client/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • e916b88e45: Readme/package meta typo fixes
data-client - @data-client/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 5cacc5d0cd: peerDeps compatibility with next versions
data-client - @data-client/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 5cacc5d0cd: peerDeps compatibility with next versions
data-client - @data-client/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 5cacc5d0cd: peerDeps compatibility with next versions
data-client - @data-client/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 5cacc5d0cd: peerDeps compatibility with next versions
data-client - @rest-hooks/[email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • bf141cb5a5: Removed deprecated Endpoint.optimisticUpdate -> use Endpoint.getOptimisticResponse

Patch Changes

  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [87475a0cae]
data-client - @rest-hooks/[email protected]

Published by github-actions[bot] over 1 year ago

Major Changes

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

Patch Changes

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

Published by github-actions[bot] over 1 year ago

Major Changes

  • bf141cb5a5: Removed deprecated Endpoint.optimisticUpdate -> use Endpoint.getOptimisticResponse
  • 011cc20732: Remove FetchShape compatibility.
    This removes support for the legacy hooks in 'rest-hooks' like useResource()

Patch Changes

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

Published by github-actions[bot] over 1 year ago

Major Changes

  • bf141cb5a5: Removed deprecated Endpoint.optimisticUpdate -> use Endpoint.getOptimisticResponse
  • bf141cb5a5: Deprecations:
    • controller.receive, controller.receiveError
    • RECEIVE_TYPE
    • MiddlewareAPI.controller (MiddlewareAPI is just controller itself)
      • ({controller}) => {} -> (controller) => {}
  • 54019cbd57: Remove DispatchContext, DenormalizeCacheContext (previously deprecated)
  • bf141cb5a5: NetworkManager interface changed to only support new actions
    SubscriptionManager/PollingSubscription interfaces simplified based on new actions
  • 9788090c55: Controller.fetch() returns denormalized form when Endpoint has a Schema

Minor Changes

  • 54019cbd57: Add INVALID to __INTERNAL__
  • bf141cb5a5: createFetch, createReceive, createReceiveError removed from __INTERNAL__
    These were previously deprecated.

Patch Changes

  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [54019cbd57]
  • Updated dependencies [54019cbd57]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [9788090c55]
data-client - @rest-hooks/[email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • bf141cb5a5: Removed deprecated Endpoint.optimisticUpdate -> use Endpoint.getOptimisticResponse
  • 011cc20732: Remove FetchShape compatibility.
    This removes support for the legacy hooks in 'rest-hooks' like useResource()

Patch Changes

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

Published by github-actions[bot] over 1 year ago

Major Changes

  • bf141cb5a5: Removed deprecated Endpoint.optimisticUpdate -> use Endpoint.getOptimisticResponse
  • bf141cb5a5: legacyActions were removed. use action imports directly
    New action types match previously exported newActions and have different form
    This will likely require updating any custom Managers
  • bf141cb5a5: Deprecations:
    • controller.receive, controller.receiveError
    • RECEIVE_TYPE
    • MiddlewareAPI.controller (MiddlewareAPI is just controller itself)
      • ({controller}) => {} -> (controller) => {}
  • bf141cb5a5: NetworkManager interface changed to only support new actions
    SubscriptionManager/PollingSubscription interfaces simplified based on new actions
  • bf141cb5a5: reducer -> createReducer(new Controller())
  • 9788090c55: Controller.fetch() returns denormalized form when Endpoint has a Schema
  • bf141cb5a5: resetAction requires a date
  • bf141cb5a5: state.lastReset must be number

Patch Changes

  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [9788090c55]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
data-client - @data-client/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [9788090c55]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
data-client - @data-client/[email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • bf141cb5a5: Removed deprecated Endpoint.optimisticUpdate -> use Endpoint.getOptimisticResponse

Patch Changes

  • 87475a0cae: Mark expiresAt and useIncoming as deprecated in the public interface (still fine internally)
data-client - @data-client/[email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

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

Patch Changes

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

Published by github-actions[bot] over 1 year ago

Major Changes

  • 011cc20732: Remove FetchShape compatibility.
    This removes support for the legacy hooks in 'rest-hooks' like useResource()

Patch Changes

  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [54019cbd57]
  • Updated dependencies [54019cbd57]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [9788090c55]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
data-client - @data-client/[email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • bf141cb5a5: Removed deprecated Endpoint.optimisticUpdate -> use Endpoint.getOptimisticResponse
  • bf141cb5a5: Deprecations:
    • controller.receive, controller.receiveError
    • RECEIVE_TYPE
    • MiddlewareAPI.controller (MiddlewareAPI is just controller itself)
      • ({controller}) => {} -> (controller) => {}
  • 54019cbd57: Remove DispatchContext, DenormalizeCacheContext (previously deprecated)
  • 54019cbd57: Add INVALID to __INTERNAL__
  • bf141cb5a5: createFetch, createReceive, createReceiveError removed from __INTERNAL__
    These were previously deprecated.
  • bf141cb5a5: NetworkManager interface changed to only support new actions
    SubscriptionManager/PollingSubscription interfaces simplified based on new actions
  • 9788090c55: Controller.fetch() returns denormalized form when Endpoint has a Schema

Patch Changes

  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [9788090c55]
  • Updated dependencies [bf141cb5a5]
  • Updated dependencies [bf141cb5a5]