Skip to content

Commit

Permalink
Merge branch 'test-signals-vitest' of github.com:ngrx/platform into t…
Browse files Browse the repository at this point in the history
…est-signals-vitest
  • Loading branch information
brandonroberts committed Dec 23, 2024
2 parents ee0cdaf + f715bb0 commit dae9f8a
Show file tree
Hide file tree
Showing 37 changed files with 169 additions and 80 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<a name="19.0.0"></a>

# [19.0.0](https://github.com/ngrx/platform/compare/19.0.0-rc.0...19.0.0) (2024-12-17)

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

# [19.0.0-rc.0](https://github.com/ngrx/platform/compare/19.0.0-beta.0...19.0.0-rc.0) (2024-12-10)
Expand Down
2 changes: 1 addition & 1 deletion modules/component-store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/component-store",
"version": "19.0.0-rc.0",
"version": "19.0.0",
"description": "Reactive store for component state",
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^19.0.0-rc.0';
export const platformVersion = '^19.0.0';
2 changes: 1 addition & 1 deletion modules/component/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/component",
"version": "19.0.0-rc.0",
"version": "19.0.0",
"description": "Reactive Extensions for Angular Components",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion modules/component/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^19.0.0-rc.0';
export const platformVersion = '^19.0.0';
8 changes: 4 additions & 4 deletions modules/data/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/data",
"version": "19.0.0-rc.0",
"version": "19.0.0",
"description": "API management for NgRx",
"repository": {
"type": "git",
Expand All @@ -22,9 +22,9 @@
"peerDependencies": {
"@angular/common": "^19.0.0",
"@angular/core": "^19.0.0",
"@ngrx/store": "19.0.0-rc.0",
"@ngrx/effects": "19.0.0-rc.0",
"@ngrx/entity": "19.0.0-rc.0",
"@ngrx/store": "19.0.0",
"@ngrx/effects": "19.0.0",
"@ngrx/entity": "19.0.0",
"rxjs": "^6.5.3 || ^7.5.0"
},
"schematics": "./schematics/collection.json",
Expand Down
2 changes: 1 addition & 1 deletion modules/data/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^19.0.0-rc.0';
export const platformVersion = '^19.0.0';
4 changes: 2 additions & 2 deletions modules/effects/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/effects",
"version": "19.0.0-rc.0",
"version": "19.0.0",
"description": "Side effect model for @ngrx/store",
"repository": {
"type": "git",
Expand All @@ -22,7 +22,7 @@
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/core": "^19.0.0",
"@ngrx/store": "19.0.0-rc.0",
"@ngrx/store": "19.0.0",
"rxjs": "^6.5.3 || ^7.5.0"
},
"schematics": "./schematics/collection.json",
Expand Down
2 changes: 1 addition & 1 deletion modules/effects/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^19.0.0-rc.0';
export const platformVersion = '^19.0.0';
4 changes: 2 additions & 2 deletions modules/entity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/entity",
"version": "19.0.0-rc.0",
"version": "19.0.0",
"description": "Common utilities for entity reducers",
"repository": {
"type": "git",
Expand All @@ -21,7 +21,7 @@
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/core": "^19.0.0",
"@ngrx/store": "19.0.0-rc.0",
"@ngrx/store": "19.0.0",
"rxjs": "^6.5.3 || ^7.5.0"
},
"schematics": "./schematics/collection.json",
Expand Down
2 changes: 1 addition & 1 deletion modules/entity/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^19.0.0-rc.0';
export const platformVersion = '^19.0.0';
2 changes: 1 addition & 1 deletion modules/eslint-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/eslint-plugin",
"version": "19.0.0-rc.0",
"version": "19.0.0",
"description": "NgRx ESLint Plugin",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion modules/operators/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/operators",
"version": "19.0.0-rc.0",
"version": "19.0.0",
"description": "Shared RxJS Operators for NgRx libraries",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion modules/operators/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^19.0.0-rc.0';
export const platformVersion = '^19.0.0';
4 changes: 2 additions & 2 deletions modules/router-store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/router-store",
"version": "19.0.0-rc.0",
"version": "19.0.0",
"description": "Bindings to connect @angular/router to @ngrx/store",
"repository": {
"type": "git",
Expand All @@ -23,7 +23,7 @@
"@angular/common": "^19.0.0",
"@angular/core": "^19.0.0",
"@angular/router": "^19.0.0",
"@ngrx/store": "19.0.0-rc.0",
"@ngrx/store": "19.0.0",
"rxjs": "^6.5.3 || ^7.5.0"
},
"schematics": "./schematics/collection.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^19.0.0-rc.0';
export const platformVersion = '^19.0.0';
2 changes: 1 addition & 1 deletion modules/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^19.0.0-rc.0';
export const platformVersion = '^19.0.0';
2 changes: 1 addition & 1 deletion modules/schematics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/schematics",
"version": "19.0.0-rc.0",
"version": "19.0.0",
"description": "NgRx Schematics for Angular",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion modules/schematics/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^19.0.0-rc.0';
export const platformVersion = '^19.0.0';
2 changes: 1 addition & 1 deletion modules/signals/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/signals",
"version": "19.0.0-rc.0",
"version": "19.0.0",
"description": "Reactive Store and Set of Utilities for Angular Signals",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion modules/signals/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^19.0.0-rc.0';
export const platformVersion = '^19.0.0';
4 changes: 2 additions & 2 deletions modules/store-devtools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/store-devtools",
"version": "19.0.0-rc.0",
"version": "19.0.0",
"description": "Developer tools for @ngrx/store",
"repository": {
"type": "git",
Expand All @@ -21,7 +21,7 @@
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/core": "^19.0.0",
"@ngrx/store": "19.0.0-rc.0",
"@ngrx/store": "19.0.0",
"rxjs": "^6.5.3 || ^7.5.0"
},
"schematics": "./schematics/collection.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^19.0.0-rc.0';
export const platformVersion = '^19.0.0';
2 changes: 1 addition & 1 deletion modules/store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/store",
"version": "19.0.0-rc.0",
"version": "19.0.0",
"description": "RxJS powered Redux for Angular apps",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion modules/store/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^19.0.0-rc.0';
export const platformVersion = '^19.0.0';
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/platform",
"version": "19.0.0-rc.0",
"version": "19.0.0",
"description": "monorepo for ngrx development",
"scripts": {
"ng": "ng",
Expand Down
9 changes: 9 additions & 0 deletions projects/ngrx.io/content/guide/component-store/comparison.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<div class="alert is-helpful">

**<a href="/guide/signals"><b>NgRx Signals</b></a> is the new default.**

The NgRx team recommends using the `@ngrx/signals` library for local state management in Angular.
While ComponentStore remains supported, we encourage using `@ngrx/signals` for new projects and considering migration for existing ones.

</div>

# Comparison of ComponentStore and Store

Both ComponentStore and Store are designed to manage the state in an Angular application, however
Expand Down
9 changes: 9 additions & 0 deletions projects/ngrx.io/content/guide/component-store/effect.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<div class="alert is-helpful">

**<a href="/guide/signals"><b>NgRx Signals</b></a> is the new default.**

The NgRx team recommends using the `@ngrx/signals` library for local state management in Angular.
While ComponentStore remains supported, we encourage using `@ngrx/signals` for new projects and considering migration for existing ones.

</div>

# Effects

Effects are designed to extract any side-effects (such as Network calls) from components and
Expand Down
9 changes: 9 additions & 0 deletions projects/ngrx.io/content/guide/component-store/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<div class="alert is-helpful">

**<a href="/guide/signals"><b>NgRx Signals</b></a> is the new default.**

The NgRx team recommends using the `@ngrx/signals` library for local state management in Angular.
While ComponentStore remains supported, we encourage using `@ngrx/signals` for new projects and considering migration for existing ones.

</div>

# @ngrx/component-store

ComponentStore is a stand-alone library that helps to manage local/component state. It's an alternative to reactive push-based "Service with a Subject" approach.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<div class="alert is-helpful">

**<a href="/guide/signals"><b>NgRx Signals</b></a> is the new default.**

The NgRx team recommends using the `@ngrx/signals` library for local state management in Angular.
While ComponentStore remains supported, we encourage using `@ngrx/signals` for new projects and considering migration for existing ones.

</div>

# Initialization

ComponentStore can be initialized in 2 ways:
Expand Down
9 changes: 9 additions & 0 deletions projects/ngrx.io/content/guide/component-store/install.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<div class="alert is-helpful">

**<a href="/guide/signals"><b>NgRx Signals</b></a> is the new default.**

The NgRx team recommends using the `@ngrx/signals` library for local state management in Angular.
While ComponentStore remains supported, we encourage using `@ngrx/signals` for new projects and considering migration for existing ones.

</div>

# Installation

## Installing with `ng add`
Expand Down
9 changes: 9 additions & 0 deletions projects/ngrx.io/content/guide/component-store/lifecycle.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<div class="alert is-helpful">

**<a href="/guide/signals"><b>NgRx Signals</b></a> is the new default.**

The NgRx team recommends using the `@ngrx/signals` library for local state management in Angular.
While ComponentStore remains supported, we encourage using `@ngrx/signals` for new projects and considering migration for existing ones.

</div>

# Lifecycle

NgRx ComponentStore comes with lifecycle hooks and observables for performing tasks after the ComponentStore is initially instantiated, after the initial state is first set, and when the ComponentStore is destroyed. You can use these lifecycle hooks to set up long-running effects, wire up additional logic, and other tasks outside the constructor of the ComponentStore.
Expand Down
9 changes: 9 additions & 0 deletions projects/ngrx.io/content/guide/component-store/read.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<div class="alert is-helpful">

**<a href="/guide/signals"><b>NgRx Signals</b></a> is the new default.**

The NgRx team recommends using the `@ngrx/signals` library for local state management in Angular.
While ComponentStore remains supported, we encourage using `@ngrx/signals` for new projects and considering migration for existing ones.

</div>

# Reading state

## `select` method
Expand Down
9 changes: 9 additions & 0 deletions projects/ngrx.io/content/guide/component-store/usage.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<div class="alert is-helpful">

**<a href="/guide/signals"><b>NgRx Signals</b></a> is the new default.**

The NgRx team recommends using the `@ngrx/signals` library for local state management in Angular.
While ComponentStore remains supported, we encourage using `@ngrx/signals` for new projects and considering migration for existing ones.

</div>

# Usage

## Types of State
Expand Down
9 changes: 9 additions & 0 deletions projects/ngrx.io/content/guide/component-store/write.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<div class="alert is-helpful">

**<a href="/guide/signals"><b>NgRx Signals</b></a> is the new default.**

The NgRx team recommends using the `@ngrx/signals` library for local state management in Angular.
While ComponentStore remains supported, we encourage using `@ngrx/signals` for new projects and considering migration for existing ones.

</div>

# Updating state

ComponentStore can be updated in 3 ways:
Expand Down
2 changes: 1 addition & 1 deletion projects/ngrx.io/content/marketing/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ NgRx packages are divided into a few main categories
- [Effects](guide/effects) - Side effect model for @ngrx/store.
- [Router Store](guide/router-store) - Bindings to connect the Angular Router to @ngrx/store.
- [Entity](guide/entity) - Entity State adapter for managing record collections.
- [ComponentStore](guide/component-store) - Standalone library for managing local/component state.
- [Signals](guide/signals) - Reactive store and set of utilities for Angular Signals.
- [ComponentStore](guide/component-store) - Standalone library for managing local/component state.
- [Operators](guide/operators) - Shared RxJS operators for NgRx libraries.

### Data
Expand Down
Loading

0 comments on commit dae9f8a

Please sign in to comment.