Socket
Socket
Sign inDemoInstall

@ngrx/effects

Package Overview
Dependencies
Maintainers
4
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngrx/effects - npm Package Versions

1
15

14.0.0-rc.0

Diff

Changelog

Source

14.0.0-rc.0 (2022-06-08)

Code Refactoring

  • router-store: change name for full router state serializer (#3430) (d443f50), closes #3416

Features

  • component: add separate modules for PushPipe and LetDirective (#3449) (eacc4b4), closes #3341
  • component: deprecate ReactiveComponentModule (#3451) (b4dd2c8)
  • eslint-plugin: improve install flow (#3447) (8ddaf60)
  • schematics: use schematicCollections instead of defaultCollection (#3441) (5abf828), closes #3383

BREAKING CHANGES

  • router-store: The full router state serializer has been renamed.

BEFORE:

The full router state serializer is named DefaultRouterStateSerializer

AFTER:

The full router state serializer is named FullRouterStateSerializer. A migration is provided to rename the export in affected projects.

<a name="14.0.0-beta.0"></a>

brandonroberts
published 14.0.0-beta.0 •

Changelog

Source

14.0.0-beta.0 (2022-05-30)

Bug Fixes

  • store: rename template literal to string literal for createActionGroup (#3426) (7d08db1)

Features

Performance Improvements

  • component: reset state / trigger CD only if necessary (#3328) (f5b055b)

BREAKING CHANGES

    1. The context of LetDirective is strongly typed when null or undefined is passed as input.

BEFORE:

<p *ngrxLet="null as n">{{ n }}</p>
<p *ngrxLet="undefined as u">{{ u }}</p>
  • The type of n is any.
  • The type of u is any.

AFTER:

<p *ngrxLet="null as n">{{ n }}</p>
<p *ngrxLet="undefined as u">{{ u }}</p>
  • The type of n is null.
  • The type of u is undefined.
  • schematics: BEFORE:

Creating actions, reducers, and effects is possible without using the creator syntax is possible.

AFTER:

  • All schematics use the non-creator syntax to scaffold the code.
  • The option --creators (and -c) is removed from the schematic options.
  • The skipTests option is removed while generating actions.
  • Minimum version of Angular has been updated

BEFORE:

Minimum version of Angular was 13.x

AFTER:

Minimum version of Angular is 14.x

  • component: The native local rendering strategy is replaced by global in zone-less mode for better performance.

BEFORE:

The change detection is triggered via changeDetectorRef.detectChanges in zone-less mode.

AFTER:

The change detection is triggered via ɵmarkDirty in zone-less mode.

  • component: The $error property from LetDirective's view context is a thrown error or undefined instead of true/false.

BEFORE:

<p *ngrxLet="obs$; $error as e">{{ e }}</p>
  • e will be true when obs$ emits error event.
  • e will be false when obs$ emits next/complete event.

AFTER:

<p *ngrxLet="obs$; $error as e">{{ e }}</p>
  • e will be thrown error when obs$ emits error event.
  • e will be undefined when obs$ emits next/complete event.

<a name="13.1.0"></a>

brandonroberts
published 13.2.0 •

brandonroberts
published 13.1.0 •

Changelog

Source

13.1.0 (2022-03-28)

Bug Fixes

  • component-store: memoization not working when passing selectors directly to select (#3356) (38bce88)
  • entity: add default options to entity adapter when undefined is passed (#3287) (17fe494)
  • store: add explicit overloads for createSelector (#3354) (2f82101), closes #3268

Features

  • data: add ability to configure trailing slashes (#3357) (56aedfd)
  • store-devtools: add REDUX_DEVTOOLS_EXTENSION injection token to public API (#3338) (b55b0e4)

<a name="13.0.2"></a>

brandonroberts
published 13.0.2 •

Changelog

Source

13.0.2 (2021-12-07)

Bug Fixes

<a name="13.0.1"></a>

brandonroberts
published 13.0.1 •

Changelog

Source

13.0.1 (2021-11-17)

Bug Fixes

  • store: add migration for create selector generics (#3237) (5d97a11)

<a name="13.0.0"></a>

brandonroberts
published 13.0.0 •

Changelog

Source

13.0.0 (2021-11-16)

<a name="13.0.0-rc.0"></a>

brandonroberts
published 13.0.0-rc.0 •

Changelog

Source

13.0.0-rc.0 (2021-11-11)

Bug Fixes

Features

BREAKING CHANGES

  • store: When manually specifying the generic arguments, you have to specify the selector's list of selector return values.

BEFORE:

createSelector<Story[], Story[], Story[][]>;

AFTER:

//        needs to be a tuple 👇
createSelector<Story[], [Story[]], Story[][]>;
  • data: Now both the getWithQuery and getAll methods are consistent and do set loaded property to true on dispatching their success actions respectively.

BEFORE:

The getWithQuery method would not set the loaded property to true upon success

AFTER:

The getWithQuery method sets the loaded property to true upon success

<a name="13.0.0-beta.0"></a>

brandonroberts
published 13.0.0-beta.0 •

Changelog

Source

13.0.0-beta.0 (2021-11-04)

Bug Fixes

  • component: remove class-level generic from PushPipe (#3127) (548c72c), closes #3114
  • store: infer initial store state properly with metareducers (#3102) (d003b85), closes #3007
  • store: remove store config from forFeature signature with slice (#3218) (b1a64dd), closes #3216

build

Features

  • effects: move createEffect migration to ng-update migration (#3074) (5974913)
  • store: add createFeatureSelector migration (#3214) (62334f9)
  • store: provide better TS errors for action creator props (#3060) (5ed3c3d), closes #2892

BREAKING CHANGES

  • The minimum version required for Angular and RxJS has been updated

BEFORE:

Angular 12.x is the minimum version RxJS 6.5.x is the minimum required version

AFTER:

Angular 13.0.0-RC.0 is the minimum version RxJS 7.4.x is the minimum required version

  • store: The StoreConfig argument is removed from the StoreModule.forFeature signature with FeatureSlice.

BEFORE:

The StoreModule.forFeature signature with FeatureSlice has StoreConfig as the second input argument, but the configuration isn't registered if passed.

AFTER:

The StoreModule.forFeature signature with FeatureSlice no longer has StoreConfig as the second input argument.

  • store: initialState needs to match the interface of the store/feature.

BEFORE:

Missing properties were valid

StoreModule.forRoot(reducers, {
  initialState: { notExisting: 3 },
  metaReducers: [metaReducer],
});

AFTER:

A type error is produced for initialState that does not match the store/feature

StoreModule.forRoot(reducers, {
  initialState: { notExisting: 3 },
  metaReducers: [metaReducer],
});
  • component: PushPipe no longer has a class-level generic type parameter.

BEFORE:

Use of PushPipe outside of component templates required a generic

AFTER:

Use of PushPipe outside of component templates no longer requires a generic

  • store: Types for props outside an action creator is more strictly checked

BEFORE:

Usage of props outside of an action creator with invalid types was allowed

AFTER:

Usage of props outside of an action creator now breaks for invalid types

  • effects: The create-effect-migration migration is removed

BEFORE:

The Effect decorator removal and migration are done manually through schematics.

AFTER:

The Effect decorator removal and migration are performed automatically on upgrade to version 13 of NgRx Effects.

<a name="12.5.1"></a>

brandonroberts
published 12.5.1 •

Changelog

Source

12.5.1 (2021-10-25)

Bug Fixes

<a name="12.5.0"></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