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

@ngrx/schematics

Package Overview
Dependencies
Maintainers
4
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngrx/schematics - npm Package Versions

1
13

8.0.0-rc.0

Diff

Changelog

Source

8.0.0-rc.0 (2019-05-30)

Bug Fixes

  • update signature for createSelectorFactory and createSelector to return a MemoizedSelector (#1883) (8b31da7)
  • store: adjust mock store to handle selectors with props (#1878) (a7ded00), closes #1864 #1873

Features

  • effects: resubscribe to effects on error (#1881) (71137e5)
  • example: add examples of effects not based on the Actions stream (#1845) (3454e70), closes #1830
  • router-store: add routerState config option (#1847) (d874cfc), closes #1834
  • router-store: add selectors for router state (#1874) (21c67cc), closes #1854
  • store: split immutibility checks in state and action checks (#1894) (c59c211)

Reverts

BREAKING CHANGES

  • effects: Prior to introduction of automatic resubscriptions on errors, all effects had effectively {resubscribeOnError: false} behavior. For the rare cases when this is still wanted please add {resubscribeOnError: false} to the effect metadata.

BEFORE:

login$ = createEffect(() =>
  this.actions$.pipe(
    ofType(LoginPageActions.login),
    mapToAction(
      // Happy path callback
      (action) => this.authService.login(action.credentials).pipe(map((user) => AuthApiActions.loginSuccess({ user }))),
      // error callback
      (error) => AuthApiActions.loginFailure({ error })
    )
  )
);

AFTER:

login$ = createEffect(
  () =>
    this.actions$.pipe(
      ofType(LoginPageActions.login),
      mapToAction(
        // Happy path callback
        (action) => this.authService.login(action.credentials).pipe(map((user) => AuthApiActions.loginSuccess({ user }))),
        // error callback
        (error) => AuthApiActions.loginFailure({ error })
      )
      // Errors are handled and it is safe to disable resubscription
    ),
  { resubscribeOnError: false }
);
  • The return type of the createSelectorFactory and createSelector is now a MemoizedSelector instead of a Selector

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

brandonroberts
published 8.0.0-beta.2 •

Changelog

Source

8.0.0-beta.2 (2019-05-15)

Bug Fixes

Features

  • effects: add mapToAction operator (#1822) (1ff986f), closes #1224
  • store: add option to mock selectors in MockStoreConfig (#1836) (070228c), closes #1827
  • store: expand createReducer type signature to support up to ten action creators (#1803) (63e4926)
  • store: warn when same action is registered (#1801) (ecda5f7), closes #1758

Reverts

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

brandonroberts
published 8.0.0-beta.1 •

Changelog

Source

8.0.0-beta.1 (2019-04-24)

Features

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

brandonroberts
published 8.0.0-beta.0 •

Changelog

Source

8.0.0-beta.0 (2019-04-17)

Bug Fixes

  • effects: add the export of EffectMetadata (#1720) (214316f)
  • example: handle possible undefined results from Dictionary (#1745) (861b0cb), closes #1735
  • schematics: check for empty name when using store schematic for feature states (#1659) (#1666) (3b9b890)
  • store: add the missing bracket in immutability meta-reducer (#1721) (56f8a59)
  • Store: selector with only a projector (#1579) (da1ec80), closes #1558
  • StoreDevTools: rename action list filters (#1589) (5581826), closes #1557

Code Refactoring

Features

BREAKING CHANGES

  • entity: Dictionary could be producing undefined but previous typings were not explicit about it.
  • Store: Internal functions and tokens are removed from the public API
  • router-store: usage of forRoot is now required for StoreRouterConnectingModule

BEFORE:

@NgModule({
  imports: [StoreRouterConnectingModule],
})
export class AppModule {}

AFTER:

@NgModule({
  imports: [StoreRouterConnectingModule.forRoot()],
})
export class AppModule {}
  • Store: Selectors with only a projector function aren't valid anymore. This change will make the usage more consistent.

BEFORE:

const getTodosById = createSelector((state: TodoAppSchema, id: number) => state.todos.find((p) => p.id === id));

AFTER:

const getTodosById = createSelector(
  (state: TodoAppSchema) => state.todos,
  (todos: Todo[], id: number) => todos.find((p) => p.id === id)
);
  • StoreDevTools: actionsWhitelist is renamed to actionsSafelist actionsBlacklist is renamed to actionsBlocklist

BEFORE:

StoreDevtoolsModule.instrument({
  actionsWhitelist: ['...'],
  actionsBlacklist: ['...'],
});

AFTER:

StoreDevtoolsModule.instrument({
  actionsSafelist: ['...'],
  actionsBlocklist: ['...'],
});

<a name="7.4.0"></a>

brandonroberts
published 7.4.0 •

Changelog

Source

7.4.0 (2019-03-29)

Bug Fixes

Features

<a name="7.3.0"></a>

brandonroberts
published 7.3.0 •

Changelog

Source

7.3.0 (2019-02-27)

Bug Fixes

  • schematics: type actions and avoid endless loop in effect schematic (#1576) (5fbcb3c), closes #1573
  • store: deprecate signature for selector with only a projector (#1580) (e86c5f6)

Features

  • schematics: Add ng-add support with prompt for making our schematics default (#1552) (01ff157)

<a name="7.2.0"></a>

brandonroberts
published 7.2.0 •

Changelog

Source

7.2.0 (2019-01-29)

Bug Fixes

  • Entity: add schematics to bazel build (88d0ad5)
  • RouterStore: add schematics to bazel build (7465af9)
  • StoreDevTools: out of bounds when actions are filtered (#1532) (d532979), closes #1522

Features

  • schematics: add api success/failure effects/actions to ng generate feature (#1530) (e17a787)
  • schematics: bump platformVersion to ^7.0.0 per issue #1489 (#1527) (a71aa71)

<a name="7.1.0"></a>

brandonroberts
published 7.1.0 •

Changelog

Source

7.1.0 (2019-01-21)

Bug Fixes

  • store: call metareducer with the user's config initial state (#1498) (2aabe0f), closes #1464
  • store: don't call the projector function if there are no selectors and props (#1515) (e0ad3c3), closes #1501

Features

<a name="7.0.0"></a>

brandonroberts
published 7.0.0 •

Changelog

Source

7.0.0 (2018-12-20)

Features

  • Effects: add OnInitEffects interface to dispatch an action on initialization (e921cd9)
  • RouterStore: make the router store key selector generic (a30a514), closes #1457
  • schematics: add project flag support to specify apps or libs (#1477) (af39fd2), closes #1455

Reverts

  • Effects: dispatch init feature effects action on init #1305 (e9cc9ae)

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

brandonroberts
published 7.0.0-beta.1 •

Changelog

Source

7.0.0-beta.1 (2018-12-04)

Features

  • effects: add OnIdentifyEffects interface to register multiple effect instances (#1448) (b553ce7)
  • store-devtools: catch and log redux devtools errors (#1450) (4ed16cd)

<a name="7.0.0-beta.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