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

@ngrx/effects

Package Overview
Dependencies
Maintainers
4
Versions
144
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

9.1.2

Diff

Changelog

Source

9.1.2 (2020-05-06)

<a name="9.1.1"></a>

brandonroberts
published 9.1.1 •

Changelog

Source

9.1.1 (2020-05-05)

Bug Fixes

  • router-store: selectors should return MemoizedSelector (#2492) (39a4b91)
  • schematics: use Angular default properties when not defined (#2507) (7cd0624), closes #1036
  • store: ignore Ivy in runtime checks (#2491) (46d752f), closes #2404

<a name="9.1.0"></a>

brandonroberts
published 9.1.0 •

Changelog

Source

9.1.0 (2020-04-07)

Bug Fixes

Features

  • component: add ngrxPush pipe and ngrxLet directive to @ngrx/component package (#2046) (464073d)
  • effects: add user provided effects to EffectsModule.forFeature (#2231) (59ce3e2), closes #2232
  • schematics: export reducer directly when Ivy is enabled (#2440) (b68fa67)

<a name="9.0.0"></a>

brandonroberts
published 9.0.0 •

Changelog

Source

9.0.0 (2020-03-09)

Features

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

brandonroberts
published 9.0.0-rc.0 •

Changelog

Source

9.0.0-rc.0 (2020-03-02)

Bug Fixes

  • data: correct AppEntityServices example in ngrx data doc page (#2413) (711ba0e), closes #2280
  • example: fix a typo selectShowSidenav (#2414) (c9ebb06)

Features

<a name="9.0.0-beta.2"></a>

brandonroberts
published 9.0.0-beta.2 •

Changelog

Source

9.0.0-beta.2 (2020-02-25)

Bug Fixes

  • docs: replace duplicate link (#2399) (d4502b4)
  • effects: use source instance for ngrxOnRunEffects to retain context (#2401) (79c830c)

Features

<a name="9.0.0-beta.1"></a>

brandonroberts
published 9.0.0-beta.1 •

Changelog

Source

9.0.0-beta.1 (2020-02-18)

Bug Fixes

Features

  • effects: limit retries to 10 by default (#2376) (88124a7), closes #2303
  • store: add strictActionWithinNgZone runtime check (#2364) (4cae255), closes #2339
  • store: testing - clean up mock store and remove static property (#2361) (ee2c114)

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

brandonroberts
published 9.0.0-beta.0 •

Changelog

Source

9.0.0-beta.0 (2020-02-06)

Bug Fixes

  • data: allow additional selectors in entitySelectors$ (#2332) (900bf75)
  • effects: dispatch init action once (#2164) (a528320), closes #2106
  • effects: fix specs for ng-add tests (#2314) (98d6606)
  • schematics: migrate spec to skipTest to be in line with Angular CLI (#2253) (714ae5f), closes #2242
  • store: add not allowed check to action creator config (#2313) (f6336d5)
  • store: allow union of types in props (#2301) (33241cb)
  • store: replace Creator with ActionCreator on createAction (#2299) (fe6bfa7)

Chores

Code Refactoring

Features

  • component: initial setup (#2257) (b8a769a)
  • docs: add presskit page (#2296) (9ac1165), closes #2293
  • effects: add migration for breaking change that renames effects error handler config key (#2335) (93b4081)
  • effects: make resubscription handler overridable (#2295) (3a9ad63), closes #2294
  • entity: deprecate addAll and rename it to setAll (#2348) (27f5059), closes #2330
  • router: enabling MinimalRouterStateSerializer by default (#2326) (ba37ad8), closes #2225
  • router-store: add migration to add the default serializer (#2291) (b742a8c)
  • schematics: update creators to the default (6149753)
  • store: add default generic type to Store and MockStore (#2325) (09daeb9)
  • store: ignore actions from NgRx libraries in runtime checks (#2351) (0dabfc4)
  • update to Angular 9-rc.13 (#2345) (d7fdf7f)
  • store: add clearResult to reset a mock selector (#2270) (803295b), closes #2244
  • store: compile time errors when action creators being passed to dispatch without () (#2306) (98b74ad)
  • store: enable immutability checks by default (#2266) (1758d34), closes #2217
  • store: testing - expose MockStore provider (#2331) (ef5cd5f), closes #2328

BREAKING CHANGES

  • router: The MinimalRouterStateSerializer is enabled by default.

BEFORE:

If no router state serializer is provided through the configuration of router store, the DefaultRouterStateSerializer is used.

AFTER:

If no router state serializer is provided through the configuration of router store, the MinimalRouterStateSerializer is used.

  • effects: resubscribeOnError renamed to useEffectsErrorHandler in createEffect metadata

BEFORE:

class MyEffects {
  effect$ = createEffect(() => stream$, {
    resubscribeOnError: true, // default
  });
}

AFTER:

class MyEffects {
  effect$ = createEffect(() => stream$, {
    useEffectsErrorHandler: true, // default
  });
}
  • effects: BEFORE:

When the effect class was registered, the init action would be dispatched. If the effect was provided in multiple lazy loaded modules, the init action would be dispatched for every module.

AFTER:

The init action is only dispatched once The init action is now dispatched based on the identifier of the effect (via ngrxOnIdentifyEffects)

  • schematics: To be inline with the Angular CLI, we migrated the --spec to --skipTest. By default skipTest is false, this way you will always be provided with *.spec.ts files

BEFORE:


ng generate action User --spec

AFTER:


ng generate action User

  • store: BEFORE:

Using mockSelector.setResult(undefined) resulted in clearing the return value.

AFTER:

Using mockSelector.setResult(undefined) will set the return value of the selector to undefined. To reset the mock selector, use mockSelector.clearResult().

  • schematics: To be inline with the Angular CLI, the styleExt option has been changed to style.

BEFORE:

"@schematics/angular:component": {
      "inlineStyle": true,
      "prefix": "aio",
      "styleext": "scss"
    }
...

AFTER:

"@schematics/angular:component": {
      "inlineStyle": true,
      "prefix": "aio",
      "style": "scss"
    }
....
  • store: Immutability checks are enabled by default.

BEFORE:

Immutability checks are opt-in.

AFTER:

If state or action is mutated then there will be a run time exception thrown.

  • schematics: With this change by default the minimal setup for @ngrx/store will be generated.

BEFORE:

@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
    StoreModule.forRoot(reducers, {
      metaReducers,
      runtimeChecks: {
        strictStateImmutability: true,
        strictActionImmutability: true
      }
    }),
    .....
  ],
  providers: [],
  bootstrap: [AppComponent]
})

AFTER:

@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
    StoreModule.forRoot({})
    ....
  ],
  providers: [],
  bootstrap: [AppComponent]
})
  • schematics: BEFORE:

The create functions weren't the default to create actions, reducers and effects

AFTER:

The create functions are the default to create actions (createAction, reducers (createReducer) and effects (createEffect) To fallback to the previous generators, use

sh ng generate reducer ReducerName --creators=false

  • Libraries will depend on Angular version 9

<a name="8.6.0"></a>

brandonroberts
published 8.6.0 •

Changelog

Source

8.6.0 (2019-12-18)

Features

  • router-store: add action creator for root router actions (#2272) (f17589f), closes #2206

<a name="8.5.2"></a>

brandonroberts
published 8.5.2 •

Changelog

Source

8.5.2 (2019-11-21)

Bug Fixes

  • effects: add EffectsRootModule and EffectsFeatureModule to public API (#2273) (abe1f6b)
  • store: added noop for addFeature in MockReducerManager (#2265) (c42e444), closes #2263
  • store-devtools: escaping the safelist and blocklist strings (#2259) (e888977), closes #2228

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