Skip to content

Commit

Permalink
fix: defficiency in getEntityState for optional loading operators
Browse files Browse the repository at this point in the history
 * Update optional loading support utils to look in feature state if entity has feature affinity
 * Updated optional loading factories and actions to support optional props where possible
 > Moved optional loading utilities to their own code file

NAE-208
  • Loading branch information
Jon Rista committed Jan 25, 2022
1 parent 72e7d22 commit 4cbc9ac
Show file tree
Hide file tree
Showing 18 changed files with 546 additions and 69 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
<a name="0.7.2"></a>

# [0.7.2](https://github.com/briebug/ngrx-auto-entity/compare/0.7.1...0.7.2) Beta (2022-01-24)

Resolved a discrepancy in optional loading, where if the entity were a part of feature state,
and its state properties were nested underneath a feature state property on root state, the
correct entity state property could not be found.

### Bug Fixes

- **operators** Update getEntityState function to check if entity has feature affinity, and access from the appropriate feature if necessary.
- **factories** Updated optional loading factories to support optional props where possible
- **actions** Updated optional loading actions to support optional props where possible

### Internal

- **operators** Moved operator support utilities to their own code file

<a name="0.7.1"></a>

# [0.7.1](https://github.com/briebug/ngrx-auto-entity/compare/0.7.0...0.7.1) Beta (2021-11-05)
Expand Down
2 changes: 1 addition & 1 deletion projects/ngrx-auto-entity/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.7.1",
"version": "0.7.2",
"name": "@briebug/ngrx-auto-entity",
"description": "Automatic Entity State and Facades for NgRx. Simplifying reactive state!",
"license": "SEE LICENSE IN LICENSE.md",
Expand Down
3 changes: 1 addition & 2 deletions projects/ngrx-auto-entity/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ export {
* Injection Tokens
*/

export { NGRX_AUTO_ENTITY_APP_STORE } from './lib/effects/if-necessary-operators';

/*
* Common models and types referenced throughout Auto-Entity
*/
Expand Down Expand Up @@ -187,3 +185,4 @@ export {
UpsertEffect,
UpsertManyEffect
} from './lib/effects/effects-cud-discrete';
export { NGRX_AUTO_ENTITY_APP_STORE } from './lib/effects/if-necessary-operator-utils';
Loading

0 comments on commit 4cbc9ac

Please sign in to comment.