All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning. This change log follows the format documented in Keep a CHANGELOG.
-
Fixed the adapter imports in the ESM version.
-
Added the
useLazyReadexport topackage.json.
Completely revamped Typesaurus with a new API and new features. Follow this guide to learn how it works.
- Fixed
useInfiniteQuerybehavior when the collection or query are changing. Before, the previous result would not be cleared.
- BREAKING: The hooks now return a tuple where the result is the first item, and the second is an object with loading and error states.
useGetanduseOnGetnow accept references (i.e.useGet(user.ref)).
- BREAKING: When using with ESM-enabled bundler, you should transpile
node_modules. TypeScript preserves many modern languages features when it compiles to ESM code. So if you have to support older browsers, use Babel to process the dependencies code.
- Added ESM version of the code that enables tree-shaking.
- BREAKING: Now, when query or collection is changed, hook state resets to
undefinedwhile previously it would stay as is until the new data is fetched.
- BREAKING: Rename
reactopodandpreactopodto@typesaurus/reactand@typesaurus/preact.
- Add functions:
useGetManyuseOnGetMany
- Fixed the Preact package.
- Added functions:
useInfiniteQueryuseInfiniteScrolluseAlluseOnAll
-
BREAKING:
reactopodnow only supports React. -
Get rid of webpack warning during compilation.
- Publish separate
preactopodpackage for Preact.
- Make Reactopod work both with React and Preact.
- Added functions:
useGetuseOnGetuseQueryuseOnQuery