Socket
Socket
Sign inDemoInstall

ng2-redux

Package Overview
Dependencies
9
Maintainers
3
Versions
119
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2345
12Next

5.1.2

Diff

e-schultz
published 3.3.11 •

e-schultz
published 3.3.10 •

Changelog

Source

3.3.10

Fixes

Applied fix addressing #309 - select function called even if state does not change.

e-schultz
published 5.1.1 •

Changelog

Source

5.1.1

sethdavenport
published 5.1.0 •

Changelog

Source

5.1.0

Features

You can now get an observable to the root state by passing no arguments to ngRedux.select:

private this.rootState$: Observable<IAppState>;

constructor(ngRedux: NgRedux) {
  this.rootState$ = ngRedux.select();
}

Changes

ngRedux.dispatch() has been tweaked to always run in the Angular zone. This should prevent unexpected weirdness when dispatching from callbacks to 3rd-party libraries. See #259 for further discussion.

Misc.

  • Refactored the example app a bit to split out the different selector demos instead of lumping most of them into the counter component.
  • Miscellaneous documentation updates.
sethdavenport
published 5.1.0-alpha.1 •

sethdavenport
published 5.1.0-alpha.0 •

sethdavenport
published 5.0.0 •

Changelog

Source

5.0.0

  • Fix for the ERROR in NgReduxModule is not an NgModule error thrown by Angular CLI.
  • Remove deprecations.
  • Breaking changes associated with Angular 2.4+.

Breaking Changes

  • Minimum Angular peer dependency is now 2.4.0
  • Removed support for the connect pattern: it's simply not a good fit for Angular. You should be using the select pattern now.
  • Remove deprecated constructor arg for NgRedux.
  • Minimum Angular peer dependency is now 2.4.0
  • NgReduxModule.forRoot is no more. Now just import NgReduxModule directly.
Old Way:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { NgReduxModule } from 'ng2-redux';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    NgReduxModule.forRoot(),
    BrowserModule,
  ],
  providers: [],
  bootstrap: [AppComponent]
})
class AppModule {
  // etc.
}
New Way:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { NgReduxModule } from 'ng2-redux';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    NgReduxModule,
    BrowserModule,
  ],
  providers: [],
  bootstrap: [AppComponent]
})
class AppModule {
  // etc.
}
sethdavenport
published 5.0.0-beta.2 •

sethdavenport
published 5.0.0-alpha.3 •

2345
12Next
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc