hyper-fetch

โšก Fetching and realtime data exchange framework.

APACHE-2.0 License

Downloads
16K
Stars
1K
Committers
9

Bot releases are visible (Hide)

hyper-fetch - hyper-fetch-v4.0.0

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

4.0.0 (2023-05-19)

Highlights

โœจย New response interface

We have changed the structure of our response interface. Instead of an array, it now returns an object. The interface also provides additional data objects with adapter-specific data. By default, it gives you response headers.

๐Ÿ”ฎ Improved adapters

We have improved our adapters. The new interface allows for much greater configuration and extensibility. Now you can easily attach any library with any protocol you want. This comes with a next-level TypeScript interface that controls type safety.

๐ŸŽญย Mocker

Create your own responses with full support for functionalities like success/error responses, request sequences, upload/download progress, response time, and more.

๐Ÿ’Žย Request Mappers

Modify, map, or validate requests before sending them to the server.

๐Ÿš€ย Response Mappers

Modify, map, or validate responses from the server.

Other changes:

  • ๐Ÿ“กย Key mappers - In Hyper Fetch, everything is grouped by keys. Now you can provide global key generation strategies to make this process fully custom.
  • ๐ŸŽก Flattened cache of response object - This allows for better and easier interactions with the cache.
  • ๐Ÿ—บ๏ธ Added TSD TypeScript tests - We locked crucial TypeScript rules and made a solid foundation for testing our TypeScript.
  • ๐Ÿชด Added isSuccess value - This property on the response tells us whether our request was successful.
  • ๐Ÿต๏ธ Adapters new generic types - We can set custom types for request methods, options, query parameters, and additional data passed with the response.
  • ๐ŸŽธย Stringify Query Params - We added parsing of dates and nested objects in query params.
  • ๐Ÿ›ย Tons of bug fixes and tests - We had to improve many parts of the system to make it faster, better, and more customizable. We fixed many TypeScript issues and locked crucial parts with TypeScript tests. FormData fixes on the node adapter.

Bug Fixes

  • ๐Ÿ› Added setting cache onError, calling unsub each test (4a72bd7)
  • ๐Ÿ› Env fixes and promise handling improvements (0487b19)
  • ๐Ÿ› fix: Fixed ClientInstance type and adapterBindings types (c1b9a0c)
  • ๐Ÿ› Fixed typeof this -> this in Cache generic (0f0c273)
  • ๐Ÿ› Fixed types issues (0a90619)
  • ๐Ÿ› missing queryParams in ExtractUnionAdapter (54d43b5)
  • ๐Ÿ› Object parsing in query params (42520e3)
  • ๐Ÿ› Options for onValue may be undefined (94e9ea6)
  • ๐Ÿ› TS fix (a962653)
  • ๐Ÿ› ts fixes (7e1ff4c)
  • ๐Ÿ› TS quickfix (ec9d1ee)

Features

  • ๐ŸŽธ AdapterType is now a generic (14e1166)
  • ๐ŸŽธ Added adapter union extraction (6a5b8cf)
  • ๐ŸŽธ Added all firestore methods (base version) (c35efbf)
  • ๐ŸŽธ Added groupByChangeType option for firestore onSnapshot (5b7cf8e)
  • ๐ŸŽธ Added Key mapper (ba9c066)
  • ๐ŸŽธ Added merge option for setDoc (78b7d96)
  • ๐ŸŽธ Added onlyOnce option for onValue method (d5e99ed)
  • ๐ŸŽธ Added request mocker PoC (51f3036)
  • ๐ŸŽธ Added response Headers to the additional data (762b343)
  • ๐ŸŽธ Cache data structure reworked (0c16fd1)
  • ๐ŸŽธ Dispatcher storage update and new request methods (4eb1723)
  • ๐ŸŽธ firebase realtime/firestore web/admin works (d6969dd)
  • ๐ŸŽธ Firestore query constraints are working correctly (13530fd)
  • ๐ŸŽธ Handle Methods type from Adapter generic (ce0fa8f)
  • ๐ŸŽธ Handled emptyResource status for firebase (d84b018)
  • ๐ŸŽธ Improved namings (57e4285)
  • ๐ŸŽธ isSuccess param is now available in the response (c5aafc0)
  • ๐ŸŽธ mocker improvement - additionalData mock, string status (bf5d75e)
  • ๐ŸŽธ Response mapper adjustments (bab277f)
  • ๐ŸŽธ Response mapper adjustments (c45b3ae)
  • ๐ŸŽธ Setup (8e0a8f3)
  • ๐ŸŽธ Typescript improvements (8956ca2)
  • ๐ŸŽธ Working request lifecycle for firebase (9005a47)

BREAKING CHANGES

  • ๐Ÿงจ Dispatcher storage is now storing Request instead of jsons, we changed
    the way our hooks interact with bindings and adapter
  • ๐Ÿงจ Client now accepts AdapterType instead of AdapterOptionsType as a second
    generic.
hyper-fetch - hyper-fetch-v3.3.4

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

3.3.4 (2023-05-18)

Bug Fixes

hyper-fetch - hyper-fetch-v3.3.3

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

3.3.3 (2023-04-11)

Bug Fixes

  • ๐Ÿ› Clear listeners for generic cache/queue hooks (08e0c19)
hyper-fetch - hyper-fetch-v3.3.2

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

3.3.2 (2023-03-04)

Bug Fixes

  • ๐Ÿ› Isomorphic build (93aa18c)
  • ๐Ÿ› Setup the correct path to the esm (4f33581)
  • ๐Ÿ› Use esm output (d39997f)
hyper-fetch - hyper-fetch-v3.3.1

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

3.3.1 (2023-02-13)

Bug Fixes

  • ๐Ÿ› Added missing events dependency (dc8057b)
hyper-fetch - hyper-fetch-v3.3.0

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

3.3.0 (2023-02-10)

Features

  • ๐ŸŽธ Added isomorphic build distribution (ef4e3ac), closes #37 #38
hyper-fetch - hyper-fetch-v3.2.1

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

3.2.1 (2023-01-25)

Bug Fixes

  • ๐Ÿ› Fixed typescript declarations bundling (323d7d0)
hyper-fetch - hyper-fetch-v3.2.0

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

3.2.0 (2023-01-22)

Features

  • ๐ŸŽธ Added config provider (bbf8afb)
hyper-fetch - hyper-fetch-v3.1.0

Published by github-actions[bot] almost 2 years ago

3.1.0 (2022-12-29)

Bug Fixes

  • ๐Ÿ› Adapter initialization fix (fcdc98e)

Features

  • ๐ŸŽธ Improved adapter switch (cabc39c)
hyper-fetch - hyper-fetch-v3.0.1

Published by github-actions[bot] almost 2 years ago

3.0.1 (2022-12-29)

Bug Fixes

  • ๐Ÿ› Prevent missing polyfills errors (db83ea5)
hyper-fetch - hyper-fetch-v3.0.0

Published by github-actions[bot] almost 2 years ago

3.0.0 (2022-12-29)

Features

BREAKING CHANGES

  • ๐Ÿงจ Changed almost all library APIs
hyper-fetch - hyper-fetch-v2.1.0

Published by github-actions[bot] almost 2 years ago

2.1.0 (2022-12-27)

Bug Fixes

  • ๐Ÿ› Adjustments to docs and tests (07ec25e)

Features

  • ๐ŸŽธ Release of the react socket hooks (783cb59)
hyper-fetch - hyper-fetch-v2.0.0

Published by github-actions[bot] almost 2 years ago

2.0.0 (2022-12-24)

BREAKING CHANGES

  • ๐Ÿงจ Added websockets to the Hyper Fetch
hyper-fetch - hyper-fetch-v1.7.1

Published by github-actions[bot] almost 2 years ago

1.7.1 (2022-11-17)

Bug Fixes

  • ๐Ÿ› Fixed command mapped types and typescript methods (2326ee0)
hyper-fetch - hyper-fetch-v1.7.0

Published by github-actions[bot] almost 2 years ago

1.7.0 (2022-11-06)

Bug Fixes

  • ๐Ÿ› GarbageCollection update (625b71c)

Features

  • ๐ŸŽธ Added garbageCollector config to the command (91e9947)
hyper-fetch - react-hyper-fetch-v1.6.1

Published by github-actions[bot] about 2 years ago

1.6.1 (2022-10-15)

Bug Fixes

  • ๐Ÿ› Added disabled prop to the lifecycle dependencies (c0d23ef), closes #22
hyper-fetch - hyper-fetch-v1.6.1

Published by github-actions[bot] about 2 years ago

1.6.1 (2022-10-15)

Bug Fixes

  • ๐Ÿ› Added disabled prop to the lifecycle dependencies (c0d23ef), closes #22
hyper-fetch - react-hyper-fetch-v1.6.0

Published by github-actions[bot] about 2 years ago

1.6.0 (2022-10-15)

Features

  • ๐ŸŽธ Added garbage collection pause in offline mode (627a912)
hyper-fetch - hyper-fetch-v1.6.0

Published by github-actions[bot] about 2 years ago

1.6.0 (2022-10-15)

Features

  • ๐ŸŽธ Added garbage collection pause in offline mode (627a912)
hyper-fetch - react-hyper-fetch-v1.5.1

Published by github-actions[bot] about 2 years ago

1.5.1 (2022-09-22)

Bug Fixes

  • ๐Ÿ› Query params type fix (e067d30)