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
useLazyRead
export topackage.json
.
Completely revamped Typesaurus with a new API and new features. Follow this guide to learn how it works.
- Fixed
useInfiniteQuery
behavior 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.
useGet
anduseOnGet
now 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
undefined
while previously it would stay as is until the new data is fetched.
- BREAKING: Rename
reactopod
andpreactopod
to@typesaurus/react
and@typesaurus/preact
.
- Add functions:
useGetMany
useOnGetMany
- Fixed the Preact package.
- Added functions:
useInfiniteQuery
useInfiniteScroll
useAll
useOnAll
-
BREAKING:
reactopod
now only supports React. -
Get rid of webpack warning during compilation.
- Publish separate
preactopod
package for Preact.
- Make Reactopod work both with React and Preact.
- Added functions:
useGet
useOnGet
useQuery
useOnQuery