@typesaurus/react
Version:
React Hooks for Typesaurus, type-safe Firestore ODM
109 lines (61 loc) • 2.39 kB
Markdown
# Changelog
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].
[semantic versioning]: http://semver.org/
[keep a changelog]: http://keepachangelog.com/
## v6.0.1 - 2024-01-29
### Fixed
- Fixed the adapter imports in the ESM version.
- Added the `useLazyRead` export to `package.json`.
## v6.0.0 - 2024-01-28
Completely revamped Typesaurus with a new API and new features. [Follow this guide to learn how it works](https://typesaurus.com/get-started/).
## v4.0.1 - 2020-12-08
### Fixed
- Fixed `useInfiniteQuery` behavior when the collection or query are changing. Before, the previous result would not be cleared.
## v4.0.0 - 2020-09-06
### Changed
- **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.
### Added
- `useGet` and `useOnGet` now accept references (i.e. `useGet(user.ref)`).
## v3.0.0 - 2020-04-17
### Changed
- **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
- Added ESM version of the code that enables tree-shaking.
## v2.0.0 - 2020-04-10
### Changed
- **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.
## v1.0.0 - 2020-02-20
### Changed
- **BREAKING**: Rename `reactopod` and `preactopod` to `@typesaurus/react` and `@typesaurus/preact`.
### Added
- Add functions:
- `useGetMany`
- `useOnGetMany`
## v0.4.2 - 2020-01-27
### Fixed
- Fixed the Preact package.
## v0.4.0 - 2020-01-27
### Added
- Added functions:
- `useInfiniteQuery`
- `useInfiniteScroll`
- `useAll`
- `useOnAll`
## v0.3.0 - 2020-01-15
### Changed
- **BREAKING**: `reactopod` now only supports React.
- Get rid of webpack warning during compilation.
### Added
- Publish separate `preactopod` package for Preact.
## v0.2.0 - 2020-01-14
### Changed
- Make Reactopod work both with React and Preact.
## v0.1.0 - 2020-01-13
### Added
- Added functions:
- `useGet`
- `useOnGet`
- `useQuery`
- `useOnQuery`