NgRx Auto-Entity: Simplifying Reactive State
Bug fix release! We apologize for any inconvenience the v0.3.0 release may have caused. We introduced
a correlation Id into our actions, and relied on uuidv4
to handle their generation. Turned out, uuidv4
just recently went through a breaking change, and the default import was removed. This caused problems,
dependent upon which version of uuidv4 was used by the application using ngrx-ae.
We have replaced uuidv4 with internal code. Fast, small uuid function acquired from the following gist:
https://gist.github.com/LeverOne/1308368
This release adds the correlationId
property (defaulting to uuid()
) to EntityAction
which should help in tracking correlated actions.
Correlated actions are usually sets of request/success/failure actions, such as Create
, CreateSuccess
, and CreateFailure
.
correlationId
property to EntityAction
for tracking correlated actions.package.json
as a dependencyThis release resolves two issues with multiple-entity deselections due to bugs in the reduction of deselectMany and deselectAll.
This release add new actions (and related effects, reducers, selectors & facade features) for edit and change tracking as well as adding more entities to the current set selection.
Edit
, Change
, EndEdit
actions and related functionalityselectMore
and selectMoreByKeys
actions and related functionalityThis release focuses on reducing the intrinsic package size and total package+dependency size of the library. Total library size is now ~10k or so smaller than before. Third party dependency on changeCase, which included a lot of casing functionality this library did not directly require, has been removed in favor of integrated case conversion code. Further size optimizations may be made possible in the future with some additional internal restructuring.
For the most compatibility with future internal (but otherwise non-breaking) changes, make sure you are importing from @briebug/ngrx-auto-entity and not from child paths within the library!
buildSelectorMap
utility functionbuildFacade
utility functionThis version introduces some fundamental changes to how NgRx Auto-Entity is initialized, additional features and functionality, as well as some breaking changes to facade properties. Many of these changes further reduce the already minimal boilerplate with Auto-Entity.
Extensive documentation, examples and a proper quickstart guide have been added to our GitBook.
This release involves a major update to the minimum required Angular and NgRx versions. In order to leverage updated functionality from both libraries, as well as begin phasing in improved use of TypeScript, both platforms have been updated to the 8.x versions. We apologize for any inconvenience this may cause, however we do believe the changes and future improvements allowed by making this change will be welcome.
ExtraEffects
class containing selection and clearing related effectsNgrxAutoEntityModule
will now automatically provide autoEntityMetaReducer
in META_REDUCERS
NgrxAutoEntityModule
will now automatically provide EntityEffects
and ExtraEffects
.forRoot(()
or .forFeature()
as appropriate to import module.forRootNoEntityEffects()
can be used instead of .forRoot()
to disable auto-provisioning of entity effects (keeps extra effects).forRootNoEffects()
can be used instead of .forRoot()
to disable auto-provisioning of all effects.forRoot()
and .forFeature()
calls on NgrxAutoEntityModule
to fix broken support for lazy loaded modulesNgrxAutoEntityService
to support aggregate Injector tree so that models/entity services in lazy loaded modules will be found by root entity serviceinterface ITModelType<TModel>
to a type IModelType<TModel>
to better conform to TypeScript best practices.forRoot()
or .forFeature()
many
alts of: Load, Create, Replace, Deletemany
alts of: Load, Create, Replace, Deletemany
alts of: Load, Create, Replace, Deleteindex.ts
, re-export index from public_api.ts
, to improve auto-import functionality in IDEsmany
altsbuildFeatureState
will not function at runtime due to issues locating lazy module Injector
instances