Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@briebug/ngrx-auto-entity

Package Overview
Dependencies
Maintainers
4
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@briebug/ngrx-auto-entity - npm Package Versions

1
57

0.2.2

Diff

Changelog

Source

0.2.2 Beta (2019-08-07)

This 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!

Package

  • dependencies: Remove direct dependency on changeCase, integrate functionality

Features

  • utils: Added a new buildSelectorMap utility function
  • utils: Added a new buildFacade utility function

Cleanup

  • operators: Reduce duplication of code by pulling out error handling to function
  • utils: Reduce duplication of code by pulling out selector map creation to function
  • actions: Reduce duplication of code by moving common lines to EntityAction base type
  • actions: Reduce duplication of code by moving entity action type checking into function

<a name="0.2.1"></a>

jrista
published 0.2.1 •

Changelog

Source

0.2.1 Beta (2019-07-28)

Bug Fixes

  • service: Remove legacy reference to Ramda

<a name="0.2.0"></a>

jrista
published 0.2.0 •

Changelog

Source

0.2.0 Beta (2019-07-25)

This 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.

Documentation

Extensive documentation, examples and a proper quickstart guide have been added to our GitBook.

Platform Update

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.

  • angular: The required version of @angular has been bumped up to 8.0
  • ngrx: The required version of @ngrx has been bumped uop to 8.0

Features

  • actions: Added multiple entity selection and deselection actions
  • effects: Added new ExtraEffects class containing selection and clearing related effects
  • operators: Added new operators to handle selection and clearing related actions
  • reducer: Updated meta reducer to handle new multiple entity selection and deselection
  • facade: Updated facade base class to include support for multiple entity selections
  • module: NgrxAutoEntityModule will now automatically provide autoEntityMetaReducer in META_REDUCERS
  • module: NgrxAutoEntityModule will now automatically provide EntityEffects and ExtraEffects
  • module Must now call .forRoot(() or .forFeature() as appropriate to import module
  • module: A new .forRootNoEntityEffects() can be used instead of .forRoot() to disable auto-provisioning of entity effects (keeps extra effects)
  • module: A new .forRootNoEffects() can be used instead of .forRoot() to disable auto-provisioning of all effects

Bug Fixes

  • module: Implemented .forRoot() and .forFeature() calls on NgrxAutoEntityModule to fix broken support for lazy loaded modules
  • effects: Added missing effects for select/deselect actions to dispatch selected/deselected counterparts
  • service: Updated NgrxAutoEntityService to support aggregate Injector tree so that models/entity services in lazy loaded modules will be found by root entity service
  • util: Changed interface ITModelType<TModel> to a type IModelType<TModel> to better conform to TypeScript best practices

Breaking Changes !!

  • facade: Updated facade base class to include a $ postfix on all streaming properties

<a name="0.1.1"></a>

jrista
published 0.1.1 •

Changelog

Source

0.1.1 Beta (2019-06-20)

Bug Fixes

  • operators: Restore missing operators for many alts of: Load, Create, Replace, Delete
  • effects: Restore missing effects for many alts of: Load, Create, Replace, Delete
  • service: Restore missing service methods for many alts of: Load, Create, Replace, Delete
  • api: Move AOT-compatible export bundle into index.ts, re-export index from public_api.ts, to improve auto-import functionality in IDEs

Testing

  • reducer: Add additional test cases for many alts

Broken Features !!

  • features: Feature state via buildFeatureState will not function at runtime due to issues locating lazy module Injector instances

<a name="0.1.0"></a>

jrista
published 0.1.0 •

Changelog

Source

0.1.0 Beta (2019-05-23)

Features

  • util: Added pre-fabricated facades to buildState utilities
  • util: Added pre-fabricated reducer to buildState utilities

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

jrista
published 0.0.15 •

Changelog

Source

0.0.15 Alpha (2019-02-20)

Bug Fixes

  • actions: Fixed incorrect action type for SelectByKey action

Breaking Changes !!

  • paging: Changed IEntityPageRef<TModel>'s .page property from number to IPageInfo
  • paging: Changed currentPage state from number to IPageInfo

Features

  • actions: Added LoadMany action to retrieve many, but not all, entities
  • actions: Added CreateMany action to bulk create many entities at once
  • actions: Added DeleteMany action to bulk delete many entities at once
  • actions: Added ReplaceMany action to bulk replace (PUT) many entities at once
  • selectors: Added currentEntityKey selector to retrieve just the key of current entity
  • util: Added utility functions to retrieve entity key from decorated models

<a name="0.0.13"></a>

jrista
published 0.0.13 •

Changelog

Source

0.0.13 Alpha (2018-11-04)

Features

  • actions: Added UpdateMany action to update (PATCH) many, but not all, entities

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

jrista
published 0.0.12 •

Changelog

Source

0.0.12 Alpha (2018-10-16)

Bug Fixes

  • reducer: Fixed reducer so that single entity loads "merge" into existing entities and ids state

<a name="0.0.11"></a>

jrista
published 0.0.11 •

Changelog

Source

0.0.11 Alpha (2018-09-27)

Bug Fixes

  • reducer: Added spreads for original entityState when reducing loads (so we don't lose other state)

<a name="0.0.10"></a>

jrista
published 0.0.10 •

Changelog

Source

0.0.10 Alpha (2018-09-25)

Bug Fixes

  • errors: Enhanced error reporting top eliminate undefined exceptions in browser console

<a name="0.0.9"></a>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc