Skip to content

Commit 9731c24

Browse files
Jon Ristajrista
authored andcommitted
fix(operators): restore missing many alts
fix(effects): restore missing many alts fix(service): restire issinbg many alts fix(api): move api rollup into index, re-export index from public_api
1 parent 930a5e3 commit 9731c24

28 files changed

+1078
-480
lines changed

CHANGELOG.md

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,38 @@
1+
<a name="0.1.1"></a>
2+
3+
# [0.1.1](https://github.com/briebug/ngrx-auto-entity/compare/0.1.0...0.1.1) Beta (2019-06-20)
4+
5+
### Bug Fixes
6+
7+
- **operators:** Restore missing operators for `many` alts of: Load, Create, Replace, Delete
8+
- **effects:** Restore missing effects for `many` alts of: Load, Create, Replace, Delete
9+
- **service:** Restore missing service methods for `many` alts of: Load, Create, Replace, Delete
10+
- **api:** Move AOT-compatible export bundle into `index.ts`, re-export index from `public_api.ts`, to improve auto-import functionality in IDEs
11+
12+
### Testing
13+
14+
- **reducer:** Add additional test cases for `many` alts
15+
16+
### Broken Features !!
17+
18+
- **features:** Feature state via `buildFeatureState` will not function at runtime due to issues locating lazy module `Injector` instances
19+
120
<a name="0.1.0"></a>
221

3-
# [0.1.0](https://github.com/briebug/ngrx-auto-entity/compare/0.0.15...0.1.0) Alpha (2019-05-23)
22+
# [0.1.0](https://github.com/briebug/ngrx-auto-entity/compare/0.0.15...0.1.0) Beta (2019-05-23)
423

524
### Features
625

7-
- **util:** Added pre-fabricated facades to buildState utilities
8-
- **util:** Added pre-fabricated reducer to buildState utilities
26+
- **util:** Added pre-fabricated facades to `buildState` utilities
27+
- **util:** Added pre-fabricated reducer to `buildState` utilities
928

1029
<a name="0.0.15"></a>
1130

1231
# [0.0.15](https://github.com/briebug/ngrx-auto-entity/compare/0.0.13...0.0.15) Alpha (2019-02-20)
1332

1433
### Bug Fixes
1534

16-
- **actions:** Fixed incorrect action type for SelectByKey action
35+
- **actions:** Fixed incorrect action type for `SelectByKey` action
1736

1837
### Breaking Changes !!
1938

@@ -22,11 +41,11 @@
2241

2342
### Features
2443

25-
- **actions:** Added LoadMany action to retrieve many, but not all, entities
26-
- **actions:** Added CreateMany action to bulk create many entities at once
27-
- **actions:** Added DeleteMany action to bulk delete many entities at once
28-
- **actions:** Added ReplaceMany action to bulk replace (PUT) many entities at once
29-
- **selectors:** Added currentEntityKey selector to retrieve just the key of current entity
44+
- **actions:** Added `LoadMany` action to retrieve many, but not all, entities
45+
- **actions:** Added `CreateMany` action to bulk create many entities at once
46+
- **actions:** Added `DeleteMany` action to bulk delete many entities at once
47+
- **actions:** Added `ReplaceMany` action to bulk replace (PUT) many entities at once
48+
- **selectors:** Added `currentEntityKey` selector to retrieve just the key of current entity
3049
- **util:** Added utility functions to retrieve entity key from decorated models
3150

3251
<a name="0.0.13"></a>
@@ -35,7 +54,7 @@
3554

3655
### Features
3756

38-
- **actions:** Added UpdateMany action to update (PATCH) many, but not all, entities
57+
- **actions:** Added `UpdateMany` action to update (PATCH) many, but not all, entities
3958

4059
<a name="0.0.12"></a>
4160

package-lock.json

Lines changed: 20 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"@ngrx/store-devtools": "^6.1.2",
5656
"@types/jest": "^23.3.14",
5757
"@types/node": "~10.9.4",
58-
"codelyzer": "~4.2.1",
58+
"codelyzer": "~4.5.0",
5959
"concurrently": "^3.6.1",
6060
"faker": "^4.1.0",
6161
"husky": "^0.14.3",

projects/ngrx-auto-entity/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"version": "0.1.0",
2+
"version": "0.1.1",
33
"name": "@briebug/ngrx-auto-entity",
4-
"description": "An automatic entity action library for NgRX",
4+
"description": "Automatic Entity State and Facades for NgRx. Simplifying reactive state!",
55
"keywords": [
66
"ngrx",
77
"state",
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
/*
2+
* Public API Surface of ngrx-auto-entity
3+
*/
4+
5+
export {
6+
buildFeatureState,
7+
buildState,
8+
IEntityDictionary,
9+
IEntityState,
10+
IModelState,
11+
ISelectorMap,
12+
ITModelClass
13+
} from './lib/util';
14+
15+
export {
16+
IPage,
17+
Page,
18+
IFirstLastRange,
19+
IRangeInfo,
20+
ISkipTakeRange,
21+
IStartEndRange,
22+
Range,
23+
RangeValue,
24+
IPageInfo
25+
} from './lib/models';
26+
27+
export {
28+
ofEntityType,
29+
ofEntityAction,
30+
IEntityInfo,
31+
EntityActions,
32+
EntityAction,
33+
EntityActionTypes,
34+
Load,
35+
LoadFailure,
36+
LoadSuccess,
37+
LoadAll,
38+
LoadAllFailure,
39+
LoadAllSuccess,
40+
LoadMany,
41+
LoadManyFailure,
42+
LoadManySuccess,
43+
LoadPage,
44+
LoadPageFailure,
45+
LoadPageSuccess,
46+
LoadRange,
47+
LoadRangeFailure,
48+
LoadRangeSuccess,
49+
CreateFailure,
50+
CreateSuccess,
51+
Create,
52+
CreateMany,
53+
CreateManyFailure,
54+
CreateManySuccess,
55+
Update,
56+
UpdateSuccess,
57+
UpdateFailure,
58+
UpdateMany,
59+
UpdateManySuccess,
60+
UpdateManyFailure,
61+
Replace,
62+
ReplaceFailure,
63+
ReplaceSuccess,
64+
ReplaceMany,
65+
ReplaceManyFailure,
66+
ReplaceManySuccess,
67+
Delete,
68+
DeleteFailure,
69+
DeleteSuccess,
70+
DeleteMany,
71+
DeleteManyFailure,
72+
DeleteManySuccess,
73+
Select,
74+
SelectByKey,
75+
Selected,
76+
Deselect,
77+
Deselected
78+
} from './lib/actions';
79+
80+
export { Key, getKey, getKeyFromModel, getKeyNames, getKeyNamesFromModel, checkKeyName } from './lib/decorators';
81+
82+
export { EntityOperators } from './lib/operators';
83+
84+
export { autoEntityReducer, autoEntityMetaReducer, stateNameFromAction } from './lib/reducer';
85+
86+
export {
87+
NgrxAutoEntityService,
88+
IEntityWithRangeInfo,
89+
IEntityWithPageInfo,
90+
IEntityRangeRef,
91+
IEntityPageRef,
92+
IEntityError,
93+
IAutoEntityService,
94+
IEntityRef
95+
} from './lib/service';
96+
97+
export {
98+
LoadEffects,
99+
LoadEffect,
100+
LoadAllEffect,
101+
LoadManyEffect,
102+
LoadPageEffect,
103+
LoadRangeEffect,
104+
CUDEffects,
105+
CreateEffect,
106+
CreateManyEffect,
107+
UpdateEffect,
108+
UpdateManyEffect,
109+
ReplaceEffect,
110+
ReplaceManyEffect,
111+
DeleteEffect,
112+
DeleteManyEffect,
113+
EntityEffects
114+
} from './lib/effects.default';
115+
116+
export { NgrxAutoEntityModule } from './lib/module';

0 commit comments

Comments
 (0)