Skip to content

Releases: bvaughn/suspense

0.0.23

16 Mar 14:01
Compare
Choose a tag to compare
  • Rewrote deferred internals to wrap a Promise and implement the full Promise API rather than PromiseLike.

0.0.22

08 Mar 17:27
Compare
Choose a tag to compare
  • Fixed type definition for internal ResolvedRecordData structure.

0.0.21

08 Mar 17:27
Compare
Choose a tag to compare
  • Fix bug where createCache subscribers were not notified after evict or evictAll.
  • Renamed STATUS_NOT_STARTED ("not-started") status to STATUS_NOT_FOUND ("not-found") for better semantics.
  • Exposed/exported some of the lower-level record utilities for creating custom cache types.

0.0.20

08 Mar 17:27
Compare
Choose a tag to compare
  • Fixed type definition for createStreamingCache StreamingCacheLoadOptions param.

0.0.19

08 Mar 17:27
Compare
Choose a tag to compare
  • Updated createStreamingCache to support non-array types (e.g. string) as well.
  • Renamed useStreamingValues to useStreamingValue.

0.0.18

07 Mar 19:09
Compare
Choose a tag to compare
  • Fixed some edge case garbage collection bugs when WeakRefs are used to store values.

0.0.17

07 Mar 19:09
Compare
Choose a tag to compare
  • Renamed useCacheValue to useImperativeCacheValue to make it clearer that the hook is an escape hatch.

0.0.16

07 Mar 19:09
Compare
Choose a tag to compare
  • Add useCacheValue hook for loading values using the imperative cache API rather than Suspense.

0.0.15

06 Mar 22:11
Compare
Choose a tag to compare
  • Removed Thenable in favor of built-in PromiseLike since it works better with async/await types
  • Replaced isThenable with isPromiseLike

0.0.14

06 Mar 22:11
Compare
Choose a tag to compare
  • Renamed fetchSuspense to read and fetchAsync to readAsync