|
3 | 3 | All notable changes to this project will be documented in this file.
|
4 | 4 | See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5 | 5 |
|
| 6 | +## [2.0.0-beta.0](https://github.com/coinbase/rest-hooks/compare/@rest-hooks/[email protected]...@rest-hooks/[email protected]) (2021-06-30) |
| 7 | + |
| 8 | + |
| 9 | +### ⚠ 💥 BREAKING CHANGES |
| 10 | + |
| 11 | +* * Importing directly from hidden files is no longer supported |
| 12 | +* Node>=12 |
| 13 | +* - Removed: SyntheticError (untriggerable since https://github.com/coinbase/rest-hooks/pull/938) |
| 14 | +- @rest-hooks/rest: 500s are 'soft', else 'hard' |
| 15 | +- PollingSubscription: any errors are 'soft' |
| 16 | +- @rest-hooks/endpoint: no default errorPolicy, therefore all errors are |
| 17 | +'hard' |
| 18 | +* Rest Hooks 4 invalidIfStale behavior completely removed |
| 19 | +* buildInferredResult removed. use inferResults instead |
| 20 | +* - fromJS() -> process() to customize init |
| 21 | +- normalize results in POJO rather than instances |
| 22 | +- FlatEntity, SimpleRecord removed (use @rest-hooks/legacy) |
| 23 | +- peerDep @rest-hooks/endpoint > 2 |
| 24 | +* - Removed exports from 'rest-hooks': NestedEntity, schemas, isEntity, Entity, Resource, SimpleResource, SchemaDetail, SchemaList, Method |
| 25 | +- use @rest-hooks/legacy, or @rest-hooks/rest instead |
| 26 | +* useError() will no longer create synthetic |
| 27 | +errors for missing entities |
| 28 | + |
| 29 | +### 🚀 Features |
| 30 | + |
| 31 | +* Add errorPolicy to endpoint options ([#971](https://github.com/coinbase/rest-hooks/issues/971)) ([836f05b](https://github.com/coinbase/rest-hooks/commit/836f05b407b5ac96c8f094e652221aa5a95300b0)) |
| 32 | +* Use 'exports' package.json member ([#955](https://github.com/coinbase/rest-hooks/issues/955)) ([7e9d39f](https://github.com/coinbase/rest-hooks/commit/7e9d39f15b4b321352ece0caddb93e2c414df8ae)) |
| 33 | + |
| 34 | + |
| 35 | +### 💅 Enhancement |
| 36 | + |
| 37 | +* Different babel targets for cjs and umd builds ([#989](https://github.com/coinbase/rest-hooks/issues/989)) ([f054814](https://github.com/coinbase/rest-hooks/commit/f05481410cf8daa2101d4dbda826e56ad10ec723)) |
| 38 | +* Entities normalize to POJO ([#940](https://github.com/coinbase/rest-hooks/issues/940)) ([75ebdfe](https://github.com/coinbase/rest-hooks/commit/75ebdfe641ccf57fca35c44a94077e4a314e44d7)) |
| 39 | +* Remove 'fallback' package.json exports ([#992](https://github.com/coinbase/rest-hooks/issues/992)) ([dc95f9d](https://github.com/coinbase/rest-hooks/commit/dc95f9dbad20d5740218c52c906596b6a3d6eae4)) |
| 40 | +* Remove buildInferredResult() ([#941](https://github.com/coinbase/rest-hooks/issues/941)) ([c137aa7](https://github.com/coinbase/rest-hooks/commit/c137aa78302541f0167c2cfd32c30b34a3ba971f)) |
| 41 | +* Remove extraneous hack for expiresAt ([#970](https://github.com/coinbase/rest-hooks/issues/970)) ([0602376](https://github.com/coinbase/rest-hooks/commit/06023760266ed572697605c45bd7e271406badd3)) |
| 42 | +* Remove Resource export from 'rest-hooks' package ([#939](https://github.com/coinbase/rest-hooks/issues/939)) ([0707920](https://github.com/coinbase/rest-hooks/commit/0707920bd9de70112b5287d101dcd4f6962f21d1)) |
| 43 | +* useError() only checks meta error ([#938](https://github.com/coinbase/rest-hooks/issues/938)) ([b08d708](https://github.com/coinbase/rest-hooks/commit/b08d708ea50170de0dd25340aec84b86a7687f48)) |
| 44 | + |
| 45 | + |
| 46 | +### 📝 Documentation |
| 47 | + |
| 48 | +* Add doc links to jsdocs ([#966](https://github.com/coinbase/rest-hooks/issues/966)) ([dc7fcfe](https://github.com/coinbase/rest-hooks/commit/dc7fcfec24c30d5f405d24ccc1828620d837ea6b)) |
| 49 | + |
| 50 | + |
| 51 | + |
6 | 52 | ### [1.5.2](https://github.com/coinbase/rest-hooks/compare/@rest-hooks/[email protected]...@rest-hooks/[email protected]) (2021-06-19)
|
7 | 53 |
|
8 | 54 | **Note:** Version bump only for package @rest-hooks/core
|
|
0 commit comments