Socket
Socket
Sign inDemoInstall

@ngrx/component-store

Package Overview
Dependencies
4
Maintainers
4
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
234567Next

18.0.0-beta.1

Diff

brandonroberts
published 18.0.0-beta.0 •

Changelog

Source

18.0.0-beta.0 (2024-05-20)

Bug Fixes

  • eslint-plugin: add as devDependency via ng add (#4343) (4fe7b7f)
  • schematics: set correct default value type (#4307) (51034e6)

Features

  • component-store: add migrator for tapResponse (#4321) (0ae21c9), closes #4261
  • effects: add migrator for concatLatestFrom (#4311) (d264c56), closes #4262
  • operators: add mapResponse (#4302) (c460920), closes #4230
  • store: add TypedAction migration (#4325) (f76a401)
  • upgrade Angular dependencies to v18 pre-release versions (#4308) (62f3971)
  • store: merge Action and TypedAction intefaces (#4318) (c8bde71)

BREAKING CHANGES

  • The minimum required version of Angular has been updated

BEFORE:

The minimum required version of Angular is 17.x

AFTER:

The minimum required version of Angular is 18.x

  • store: The Action and TypedAction interfaces are merged into one interface.

BEFORE:

There was a separation between the Action and TypedAction interfaces.

AFTER:

The Action interface accepts a generic type parameter that represents the payload type (defaults to string). The TypedAction interface is removed.

<a name="17.2.0"></a>

brandonroberts
published 17.2.0 •

Changelog

Source

17.2.0 (2024-04-11)

Bug Fixes

Features

  • component-store: deprecate tapResponse export (#4259) (a5958a0)
  • effects: deprecate concatLatestFrom export (#4260) (79674b7)

<a name="17.1.1"></a>

brandonroberts
published 17.1.1 •

Changelog

Source

17.1.1 (2024-02-21)

Bug Fixes

  • signals: add StateSignal to the public API (#4247) (3d45e5a)
  • signals: correctly infer the type of methods with generics (#4249) (70517ea)
  • signals: run rxMethod outside of reactive context (#4224) (3a691d9)
  • store-devtools: replace direct with indirect eval (#4216) (1df0eb5), closes #4213

Performance Improvements

  • signals: avoid creating unnecessary objects in excludeKeys (#4240) (b90da9d)
  • signals: avoid unecessary observable conversions in rxMethod (#4219) (fa45d92)

<a name="17.1.0"></a>

brandonroberts
published 17.1.0 •

Changelog

Source

17.1.0 (2024-01-16)

Bug Fixes

  • eslint-plugin: only report main pipe violations (#4169) (970514e)
  • signals: run onDestroy outside of injection context (#4200) (e21df19)

Features

<a name="17.0.1"></a>

brandonroberts
published 17.0.1 •

Changelog

Source

17.0.1 (2023-11-27)

Bug Fixes

  • signals: allow using signalStore and signalState in TS libs (#4152) (ecc247c)
  • signals: define deep signals as configurable properties (#4147) (890ca5b)

<a name="17.0.0"></a>

brandonroberts
published 17.0.0 •

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

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

234567Next
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