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

@ngrx/router-store

Package Overview
Dependencies
Maintainers
4
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngrx/router-store - npm Package Versions

1
1213

4.0.0

Diff

Changelog

Source

4.0.0 (2017-07-18)

Bug Fixes

  • build: Fixed deployment of latest master as commit (#18) (5d0ecf9)
  • build: Get tests running for each project (c4a1054)
  • build: Limit concurrency for lerna bootstrap (7e7a7d8)
  • Devtools: Removed SHOULD_INSTRUMENT token used to eagerly inject providers (#57) (b90df34)
  • Effects: Start child effects after running root effects (#43) (931adb1)
  • Effects: Use Actions generic type for the return of the ofType operator (d176a11)
  • Example: Fix Book State interface parent (#90) (6982952)
  • example-app: Suppress StoreDevtoolsConfig compiler warning (8804156)
  • omit: Strengthen the type checking of the omit utility function (3982038)
  • router-store: NavigationCancel and NavigationError creates a cycle when used with routerReducer (a085730), closes #68
  • Store: Exported initial state tokens (#65) (4b27b6d)
  • Store: pass all required arguments to projector (#74) (9b82b3a)
  • Store: Remove parameter destructuring for strict mode (#33) (#77) (c9d6a45)
  • Store: Removed readonly from type (#72) (68274c9)
  • StoreDevtools: Type InjectionToken for AOT compilation (e21d688)

Code Refactoring

  • Effects: Simplified AP, added better error reporting and effects stream control (015107f)

Features

  • build: Updated build pipeline for modules (68bd9df)
  • Effects: Ensure effects are only subscribed to once (089abdc)
  • Effects: Introduce new Effects testing module (#70) (7dbb571)
  • router-store: Added action types (#47) (1f67cb3), closes #44
  • store: Add 'createSelector' and 'createFeatureSelector' utils (#10) (41758b1)
  • Store: Allow initial state function for AoT compatibility (#59) (1a166ec), closes #51
  • Store: Allow parent modules to provide reducers with tokens (#36) (069b12f), closes #34
  • Store: Simplify API for adding meta-reducers (#87) (d2295c7)

BREAKING CHANGES

  • Effects: Effects API for registering effects has been updated to allow for multiple classes to be provided.

BEFORE:

@NgModule({
  imports: [EffectsModule.run(SourceA), EffectsModule.run(SourceB)],
})
export class AppModule {}

AFTER:

@NgModule({
  imports: [EffectsModule.forRoot([SourceA, SourceB, SourceC])],
})
export class AppModule {}

@NgModule({
  imports: [EffectsModule.forFeature([FeatureSourceA, FeatureSourceB, FeatureSourceC])],
})
export class SomeFeatureModule {}
brandonroberts
published 1.2.6 •

mikeryan52
published 1.2.5 •

mikeryan52
published 1.2.4 •

mikeryan52
published 1.2.3 •

mikeryan52
published 1.2.2 •

mikeryan52
published 1.2.1 •

mikeryan52
published 1.1.0 •

Changelog

Source

11.1.1 (2021-04-20)

Bug Fixes

Features

<a name="11.1.0"></a>

mikeryan52
published 1.0.0 •

Changelog

Source

11.0.1 (2021-02-15)

Bug Fixes

<a name="11.0.0"></a>

mikeryan52
published 0.0.1 •

Changelog

Source

11.0.0-beta.0 (2021-01-05)

Bug Fixes

  • update Angular peer dependencies to version 11 (#2843) (f63d281), closes #2842
  • component: add schematic assets to ng-package.json (9598527), closes #2819
  • component-store: add schematic assets to ng-package.json (0e3b52d), closes #2819
  • component-store: adjust updater to accept partials (#2765) (b54b9b6), closes #2754
  • router-store: ingore slash when comparing routes (#2834) (cad3f60), closes #2829 #1781
  • schematics: add schematics to devDependencies (#2784) (daf1889)
  • store: add noop for all methods in MockReducerManager (#2777) (a489b48), closes #2776
  • store: correct types for SelectorFactoryConfig (#2752) (aa9bf1a)

Code Refactoring

  • use consistent naming of injection tokens across packages (#2737) (e02d0d4)

Features

  • component-store: add patchState method (#2788) (ecedadb)
  • component-store: add tapResponse operator (#2763) (d1873c9)
  • component-store: allow more than 4 selects (#2841) (7c29320)
  • effects: add support for provideMockActions outside of the TestBed (#2762) (c47114c)
  • effects: allow usage of empty forRoot array multiple times (#2774) (5219ff5)
  • entity: remove addAll (#2783) (93a4754)
  • router-store: add selectParamFromRouterState selector (#2771) (3a1f359), closes #2758
  • router-store: Add urlAfterRedirects (#2775) (14553f6)
  • store: add object-style StoreModule.forFeature overload (#2821) (17571e5), closes #2809
  • store: add support for provideMockStore outside of the TestBed (#2759) (1650582), closes #2745

Performance Improvements

  • router-store: optimize selectQueryParams, selectQueryParam and selectFragment selectors (#2764) (918f184)

BREAKING CHANGES

  • router-store: Router-store selectors for query params and fragment select from the root router state node. This could potentially break unit tests, but is functionally equivalent to the current behavior at runtime.

BEFORE:

selectQueryParams - returns query params from the last router state node selectQueryParam - returns a query param from the last router state node selectFragment - returns the fragment from the last router state node

AFTER:

selectQueryParams - returns query params from routerState.root selectQueryParam - returns a query param from routerState.root selectFragment - returns the fragment from routerState.root

  • Angular peer dependency versions are bumped to latest major (11)

BEFORE:

Minimum Angular peer dependency version is ^10.0.0

AFTER:

Minimum Angular peer dependency version is ^11.0.0

  • entity: To overwrite the entities, we previously used the addAll method but the method name was confusing.

BEFORE:

adapter.addAll(action.entities, state);

AFTER:

The new method name setAll describes the intention better.

adapter.setAll(action.entities, state);
  • refactor(data): use the setAll adapter method
  • The initial state Injection Token for @ngrx/component-store has been renamed

BEFORE:

Injection Token is initialStateToken

AFTER:

Injection Token is INITIAL_STATE_TOKEN

<a name="10.0.1"></a>

1
1213
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