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 - @rest-hooks/[email protected]

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

Patch Changes

  • 82de0b66dd: Set Collection key in constructor
  • 03dda411e7: Non-nested Collections will infer
  • 03dda411e7: Update createCollectionFilter's collectionKey type to reflect values are always strings
data-client - @rest-hooks/[email protected]

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

Patch Changes

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

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

Patch Changes

  • 03dda411e7: Non-nested Collections will infer
  • 03dda411e7: Update createCollectionFilter's collectionKey type to reflect values are always strings
  • Updated dependencies [82de0b66dd]
  • Updated dependencies [03dda411e7]
  • Updated dependencies [03dda411e7]
data-client - @rest-hooks/[email protected]

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

Patch Changes

  • b356a8df7e: Improve loose null typing
  • 3f3413060a: Collections now have a default argsKey
  • 880fce3411: Disallow non-object when all path members are optional
  • 880fce3411: Simplify ParamFetch<> type algorithm
  • Updated dependencies [3f3413060a]
data-client - @rest-hooks/[email protected]

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

Patch Changes

  • 3f3413060a: Collections now have a default argsKey
  • Updated dependencies [3f3413060a]
data-client - @rest-hooks/[email protected]

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

Patch Changes

  • 3f3413060a: Collections now have a default argsKey
data-client - @rest-hooks/[email protected]

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

Patch Changes

  • d4aa8bdbdb: fix: Another type exports fix
  • Updated dependencies [d4aa8bdbdb]
data-client - @rest-hooks/[email protected]

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

Patch Changes

  • d4aa8bdbdb: fix: Another type exports fix
data-client - @rest-hooks/[email protected]

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

Patch Changes

  • 498c5c197f: Update normalizr version
  • Updated dependencies [498c5c197f]
data-client - @rest-hooks/[email protected]

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

Patch Changes

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

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

Patch Changes

  • 498c5c197f: Update normalizr version
data-client - @rest-hooks/[email protected]

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

Patch Changes

  • c01a884942: fix: Use schema.cacheWith for special case cache variance
data-client - @rest-hooks/[email protected]

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

Patch Changes

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

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

Patch Changes

  • e7aab4063e: fix: TypeScript 'cannot be named without reference' by adding type exports
  • e7aab4063e: Collections match schemas on interfaces, rather than realized types
  • c01a884942: fix: Collection should expose .cacehWith to vary cache on its Entity
data-client - @rest-hooks/[email protected]

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

Patch Changes

  • e7aab4063e: fix: TypeScript 'cannot be named without reference' by adding type exports
  • e7aab4063e: Collections match schemas on interfaces, rather than realized types
  • e7aab4063e: Use Invalidate instead of Delete in /new/createResource (same thing, diff name)
  • Updated dependencies [e7aab4063e]
  • Updated dependencies [e7aab4063e]
  • Updated dependencies [c01a884942]
data-client - @rest-hooks/[email protected]

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

Minor Changes

  • e00fd0516c: Values() removes deleted members like Array
  • 7910c901e7: Add INVALID symbol
  • e00fd0516c: Add schema.denormalizeOnly optimized path for normalizr 11+
  • 7910c901e7: Add schema.Invalidate (new name for Delete)

Patch Changes

  • 93f103e3af: Values members are skipped if they are falsy
  • Updated dependencies [e00fd0516c]
  • Updated dependencies [a005bd06af]
  • Updated dependencies [93f103e3af]
  • Updated dependencies [68a5944091]
  • Updated dependencies [93a08592c6]
  • Updated dependencies [93a08592c6]
  • Updated dependencies [0c7ca6310d]
  • Updated dependencies [a005bd06af]
  • Updated dependencies [7910c901e7]
  • Updated dependencies [93a08592c6]
  • Updated dependencies [e00fd0516c]
  • Updated dependencies [7910c901e7]
data-client - @rest-hooks/[email protected]

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

Minor Changes

  • 93a08592c6: Added RestEndpoint.paginated('cursor').
    Place the name of the pagination field instead of writing a function
  • e00fd0516c: Values() removes deleted members like Array
  • 93a08592c6: Add RestEndpoint collections extenders: push/unshift/assign/insert
  • 93a08592c6: Support using args[] during normalization/denormalization
  • 93a08592c6: Entity.pk() has a fourth argument: args[]
  • 93a08592c6: Add next/createResource: Uses Collections and has more options from RestEndpoint
    Migration PR of examples is a good example of how to migrate
  • 7910c901e7: Add INVALID symbol
  • 93a08592c6: Add Collections - entities but for Arrays or Values
  • e00fd0516c: Add schema.denormalizeOnly optimized path for normalizr 11+
  • 7910c901e7: Add schema.Invalidate (new name for Delete)

Patch Changes

  • 67e9eae3ac: Use type widening in RestEndpoint and createResource constructors for non-generics
  • 93f103e3af: Values members are skipped if they are falsy
  • Updated dependencies [e00fd0516c]
  • Updated dependencies [a005bd06af]
  • Updated dependencies [93f103e3af]
  • Updated dependencies [68a5944091]
  • Updated dependencies [93a08592c6]
  • Updated dependencies [93a08592c6]
  • Updated dependencies [0c7ca6310d]
  • Updated dependencies [a005bd06af]
  • Updated dependencies [7910c901e7]
  • Updated dependencies [93a08592c6]
  • Updated dependencies [e00fd0516c]
  • Updated dependencies [7910c901e7]
data-client - @rest-hooks/[email protected]

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

Minor Changes

  • 93a08592c6: Support Collections
  • 68a5944091: Add Entity.mergeMeta()
  • 93a08592c6: Support using args[] during normalization/denormalization
  • 0c7ca6310d: Rework Controller to use simplified denoramlize
  • e00fd0516c: Support schemas with denormalizeOnly (3.8+)

Patch Changes

  • 6bd94947f3: Simplified null args path for ctrl.getResponse()
  • 93f103e3af: Fully denormalize even when pk cannot be computed
  • 62f8b11188: Improve entity expiry calc performance in getResponse()
  • Updated dependencies [93a08592c6]
  • Updated dependencies [e00fd0516c]
  • Updated dependencies [0c7ca6310d]
  • Updated dependencies [93a08592c6]
  • Updated dependencies [68a5944091]
  • Updated dependencies [93a08592c6]
  • Updated dependencies [9178a553cb]
  • Updated dependencies [93a08592c6]
  • Updated dependencies [93f103e3af]
  • Updated dependencies [7910c901e7]
  • Updated dependencies [e00fd0516c]
  • Updated dependencies [0c7ca6310d]
  • Updated dependencies [68a5944091]
  • Updated dependencies [a005bd06af]
  • Updated dependencies [e75312c7ee]
data-client - @rest-hooks/[email protected]

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

Minor Changes

  • e00fd0516c: Values() removes deleted members like Array
  • a005bd06af: Invalidate/Delete support normalizr 11 lifecycles (required for 12?)
  • 68a5944091: Add Entity.mergeMeta()
  • 93a08592c6: Support using args[] during normalization/denormalization
  • 93a08592c6: Entity.pk() has a fourth argument: args[]
  • 0c7ca6310d: Entity.infer() supports new usage
  • 7910c901e7: Add INVALID symbol
  • 93a08592c6: Add Collections - entities but for Arrays or Values
  • e00fd0516c: Add schema.denormalizeOnly optimized path for normalizr 11+
  • 7910c901e7: Add schema.Invalidate (new name for Delete)

Patch Changes

  • 93f103e3af: Values members are skipped if they are falsy
  • a005bd06af: mergeMeta -> mergeMetaWithStore() for consistent naming
data-client - @rest-hooks/[email protected]

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

Major Changes

  • 93a08592c6: normalize/denormalize both take args array
  • e00fd0516c: denormalize() returns a symbol if invalid, otherwise the value
  • e00fd0516c: denormalizeCached returns { data, paths }
  • 0c7ca6310d: denormalize is now non-cached version.
    Use denormalizeCached for previous functionality.
  • 68a5944091: Require fetchedAt in meta

Minor Changes

  • 0c7ca6310d: Add validateInference()
  • 93a08592c6: Support Collections
  • 68a5944091: Add Entity.mergeMeta()
  • 93a08592c6: Support using args[] during normalization/denormalization
  • 93a08592c6: Entity.pk() has a fourth argument: args[]
  • 7910c901e7: Support schemas without denormalizeOnly and no denormalize method

Patch Changes

  • 9178a553cb: Improve normalize performance
  • 93f103e3af: Fully denormalize even when pk cannot be computed
  • a005bd06af: mergeMeta -> mergeMetaWithStore() for consistent naming
  • e75312c7ee: fix: Remove empty entity path from denormalize