Socket
Socket
Sign inDemoInstall

@ngrx/component-store

Package Overview
Dependencies
5
Maintainers
4
Versions
74
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1345
8Next

17.0.0

Diff

Changelog

Source

17.0.0 (2023-11-20)

Bug Fixes

  • data: DefaultDataService getAll httpOptions fix + test (#4134) (213e4c9)
  • signals: remove state checks for better DX (#4124) (5749543)

Features

  • signals: provide ability to use interface as state type (#4133) (9c8304a)

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

brandonroberts
published 17.0.0-rc.0 •

Changelog

Source

17.0.0-rc.0 (2023-11-10)

Features

  • signals: add getState function (#4118) (79b0708)
  • signals: add entities subpackage (#4090) (f01bcd1)
  • store-devtools: add migration for connectInZone (#4106) (73fda59)
  • store-devtools: change connectOutsideZone to be 'true' by default (#4103) (d3b4db0), closes #4093

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

brandonroberts
published 17.0.0-beta.0 •

Changelog

Source

17.0.0-beta.0 (2023-10-30)

Bug Fixes

  • entity: set correct return type for getSelectors signature with parent selector (#4074) (b3b571e)
  • signals: do not create nested signals for STATE_SIGNAL property (#4062) (71a9d7f)
  • signals: improve state type and add type tests (#4064) (10c93ed), closes #4065

Features

BREAKING CHANGES

  • component: The LetModule is removed in favor of the standalone LetDirective.

BEFORE:

import { LetModule } from '@ngrx/component';

@NgModule({ imports: [ // ... other imports LetModule, ], }) export class MyFeatureModule {}

AFTER:

import { LetDirective } from '@ngrx/component';

@NgModule({ imports: [ // ... other imports LetDirective, ], }) export class MyFeatureModule {}

  • component: The PushModule is deprecated in favor of the standalone PushPipe.

BEFORE:

import { PushModule } from '@ngrx/component';

@NgModule({
  imports: [
    // ... other imports
    PushModule,
  ],
})
export class MyFeatureModule {}

AFTER:

import { Component } from '@angular/core';
import { PushPipe } from '@ngrx/component';

@Component({
  // ... other metadata
  standalone: true,
  imports: [
    // ... other imports
    PushPipe,
  ],
})
export class MyStandaloneComponent {}
  • entity: Selectors returned by the adapter.getSelectors signature that accepts a parent selector are strongly typed.

BEFORE:

const {
  selectIds, // type: (state: object) => string[] | number[]
  selectEntities, // type: (state: object) => Dictionary<Book>
  selectAll, // type: (state: object) => Book[]
  selectTotal, // type: (state: object) => number
} = adapter.getSelectors(selectBooksState);

AFTER:

const {
  selectIds, // type: MemoizedSelector<object, string[] | number[]>
  selectEntities, // type: MemoizedSelector<object, Dictionary<Book>>
  selectAll, // type: MemoizedSelector<object, Book[]>
  selectTotal, // type: MemoizedSelector<object, number>
} = adapter.getSelectors(selectBooksState);
  • The minimum required version of Angular has been updated

BEFORE:

The minimum required version of Angular is 16.x

AFTER:

The minimum required version of Angular is 17.x

<a name="16.3.0"></a>

brandonroberts
published 16.3.0 •

Changelog

Source

16.3.0 (2023-10-03)

Bug Fixes

Features

<a name="16.2.0"></a>

brandonroberts
published 16.2.0 •

Changelog

Source

16.2.0 (2023-08-07)

Bug Fixes

  • data: make DataServiceError extend from Error (#3988) (0b98a65)
  • effects: register functional effects from object without prototype (#3984) (1879cc9), closes #3972
  • eslint-plugin: fix prefer-contact-latest-from rule to detect inject (#3946) (2efd805)
  • eslint-plugin: prefix-selectors-with-select suggestion (#3959) (27f09df)
  • eslint-plugin: support inject for no-typed-global-store rule (#3951) (d3e84d8)
  • eslint-plugin: support inject for use-consistent-global-store-name rule (#3983) (caa74ff)
  • store-devtools: resolve memory leak when devtools are destroyed (#3965) (644f0b6)

Features

  • eslint-plugin: include docs URL in lint message (#3944) (a1576de)
  • schematics: add entity generation as part of feature schematic (#3850) (19ebb0a)
  • store-devtools: provide the ability to connect extension outside of Angular zone (#3970) (1ee80e5), closes #3839

<a name="16.1.0"></a>

brandonroberts
published 16.1.0 •

Changelog

Source

16.1.0 (2023-07-06)

Bug Fixes

  • eslint: fix inject function based injection not detecting store (#3936) (8a5884d), closes #3834
  • eslint: updater-explicit-return-type not applied when inheritance (#3928) (41a5076)

Features

  • component-store: added custom equal option in select (#3933) (c4b5cc5)

<a name="16.0.1"></a>

brandonroberts
published 16.0.1 •

Changelog

Source

16.0.1 (2023-06-01)

Bug Fixes

  • component: untrack subscription in ngrxPush pipe (#3918) (a1688e4)
  • ngrx.io: preserve sidenav width for larger menu items (#3923) (ef73714)

<a name="16.0.0"></a>

brandonroberts
published 16.0.0 •

Changelog

Source

16.0.0 (2023-05-09)

Bug Fixes

  • component-store: use default equality function for selectSignal (#3884) (5843e7f)
  • store: add Signal equal function for immutable object comparison (#3883) (634fdcb)
  • store: move Angular Signal interop into State service (#3879) (8cb5795), closes #3869
  • store-devtools: add state signal to StateObservable (#3889) (ad6e14a)

Features

  • add ng add support for standalone config to NgRx packages (#3881) (58508e3)
  • component: add migration for LetModule and PushModule (#3872) (5f07eda)
  • component: make LetDirective and PushPipe standalone (#3826) (985d80c), closes #3804
  • store: add support of standalone API for ng add store (#3874) (7aec84d)

<a name="16.0.0-rc.1"></a>

brandonroberts
published 16.0.0-rc.1 •

Changelog

Source

16.0.0-rc.1 (2023-05-09)

Bug Fixes

  • component-store: use default equality function for selectSignal (#3884) (5843e7f)
  • store: add Signal equal function for immutable object comparison (#3883) (634fdcb)
  • store: move Angular Signal interop into State service (#3879) (8cb5795), closes #3869

Features

  • add ng add support for standalone config to NgRx packages (#3881) (58508e3)
  • component: add migration for LetModule and PushModule (#3872) (5f07eda)
  • component: make LetDirective and PushPipe standalone (#3826) (985d80c), closes #3804
  • store: add support of standalone API for ng add store (#3874) (7aec84d)

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

brandonroberts
published 16.0.0-rc.0 •

Changelog

Source

16.0.0-rc.0 (2023-05-04)

Bug Fixes

  • data: make non-optimistic add command entity partial (#3859) (93ee1db)

Features

  • component-store: add selectSignal options (503e9d8)
  • component-store: add selectSignal signature that combines provided signals (#3863) (07ba3fa)
  • store: add selectSignal options (0a13c4d)

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc