From e8fe90880aedc2eb0877c3e2ffa3bc81a8f37acb Mon Sep 17 00:00:00 2001 From: Brandon Roberts Date: Tue, 10 Dec 2024 07:43:51 -0600 Subject: [PATCH] chore: release 19.0.0-rc.0 --- CHANGELOG.md | 57 +++++++++++++++++++ modules/component-store/package.json | 2 +- .../schematics-core/utility/libs-version.ts | 2 +- modules/component/package.json | 2 +- .../schematics-core/utility/libs-version.ts | 2 +- modules/data/package.json | 8 +-- .../schematics-core/utility/libs-version.ts | 2 +- modules/effects/package.json | 4 +- .../schematics-core/utility/libs-version.ts | 2 +- modules/entity/package.json | 4 +- .../schematics-core/utility/libs-version.ts | 2 +- modules/eslint-plugin/package.json | 2 +- modules/operators/package.json | 2 +- .../schematics-core/utility/libs-version.ts | 2 +- modules/router-store/package.json | 4 +- .../schematics-core/utility/libs-version.ts | 2 +- .../schematics-core/utility/libs-version.ts | 2 +- modules/schematics/package.json | 2 +- .../schematics-core/utility/libs-version.ts | 2 +- modules/signals/package.json | 2 +- .../schematics-core/utility/libs-version.ts | 2 +- modules/store-devtools/package.json | 4 +- .../schematics-core/utility/libs-version.ts | 2 +- modules/store/package.json | 2 +- .../schematics-core/utility/libs-version.ts | 2 +- package.json | 2 +- 26 files changed, 89 insertions(+), 32 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77d1fc23cc..5b46a4181a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,60 @@ + + +# [19.0.0-rc.0](https://github.com/ngrx/platform/compare/19.0.0-beta.0...19.0.0-rc.0) (2024-12-10) + +### Bug Fixes + +- **eslint-plugin:** support ESM modudule syntax (.mjs) ([e2f35c8](https://github.com/ngrx/platform/commit/e2f35c8)) +- **signals:** create deep signals for custom class instances ([#4614](https://github.com/ngrx/platform/issues/4614)) ([4d34dc4](https://github.com/ngrx/platform/commit/4d34dc4)), closes [#4604](https://github.com/ngrx/platform/issues/4604) + +### Features + +- **eslint-plugin:** add new rule require-super-ondestroy ([#4611](https://github.com/ngrx/platform/issues/4611)) ([2ac4372](https://github.com/ngrx/platform/commit/2ac4372)), closes [#4505](https://github.com/ngrx/platform/issues/4505) +- **signals:** add `signalMethod` ([#4597](https://github.com/ngrx/platform/issues/4597)) ([bdd1d3e](https://github.com/ngrx/platform/commit/bdd1d3e)), closes [#4581](https://github.com/ngrx/platform/issues/4581) +- **signals:** add `withProps` base feature ([#4607](https://github.com/ngrx/platform/issues/4607)) ([e626082](https://github.com/ngrx/platform/commit/e626082)) +- **signals:** add migration for `withProps` ([#4612](https://github.com/ngrx/platform/issues/4612)) ([5f803d0](https://github.com/ngrx/platform/commit/5f803d0)), closes [#4608](https://github.com/ngrx/platform/issues/4608) +- **store:** enable dispatching actions on signal changes ([#4600](https://github.com/ngrx/platform/issues/4600)) ([2528d39](https://github.com/ngrx/platform/commit/2528d39)), closes [#4537](https://github.com/ngrx/platform/issues/4537) + +### BREAKING CHANGES + +- **signals:** - The `computed` property in `SignalStoreFeatureResult` type is renamed to `props`. + +* The `EntityComputed` and `NamedEntityComputed` types in the `entities` plugin are renamed to `EntityProps` and `NamedEntityProps`. + +BEFORE: + +```ts +import { computed, Signal } from '@angular/core'; +import { signalStoreFeature, SignalStoreFeature, type, withComputed } from '@ngrx/signals'; +import { EntityComputed } from '@ngrx/signals/entities'; + +export function withTotalEntities(): SignalStoreFeature<{ state: {}; computed: EntityComputed; methods: {} }, { state: {}; computed: { total: Signal }; methods: {} }> { + return signalStoreFeature( + { computed: type>() }, + withComputed(({ entities }) => ({ + total: computed(() => entities().length), + })) + ); +} +``` + +AFTER: + +```ts +import { computed, Signal } from '@angular/core'; +import { signalStoreFeature, SignalStoreFeature, type, withComputed } from '@ngrx/signals'; +import { EntityProps } from '@ngrx/signals/entities'; + +export function withTotalEntities(): SignalStoreFeature<{ state: {}; props: EntityProps; methods: {} }, { state: {}; props: { total: Signal }; methods: {} }> { + return signalStoreFeature( + { props: type>() }, + withComputed(({ entities }) => ({ + total: computed(() => entities().length), + })) + ); +} +``` + # [19.0.0-beta.0"](https://github.com/ngrx/platform/compare/18.1.1...19.0.0-beta.0") (2024-11-20) diff --git a/modules/component-store/package.json b/modules/component-store/package.json index fa9a9e6af7..d7ccb80601 100644 --- a/modules/component-store/package.json +++ b/modules/component-store/package.json @@ -1,6 +1,6 @@ { "name": "@ngrx/component-store", - "version": "19.0.0-beta.0", + "version": "19.0.0-rc.0", "description": "Reactive store for component state", "repository": { "type": "git", diff --git a/modules/component-store/schematics-core/utility/libs-version.ts b/modules/component-store/schematics-core/utility/libs-version.ts index c4372f6136..7e5449b5f1 100644 --- a/modules/component-store/schematics-core/utility/libs-version.ts +++ b/modules/component-store/schematics-core/utility/libs-version.ts @@ -1 +1 @@ -export const platformVersion = '^19.0.0-beta.0'; +export const platformVersion = '^19.0.0-rc.0'; diff --git a/modules/component/package.json b/modules/component/package.json index 4f69a5f633..b328b65fd6 100644 --- a/modules/component/package.json +++ b/modules/component/package.json @@ -1,6 +1,6 @@ { "name": "@ngrx/component", - "version": "19.0.0-beta.0", + "version": "19.0.0-rc.0", "description": "Reactive Extensions for Angular Components", "repository": { "type": "git", diff --git a/modules/component/schematics-core/utility/libs-version.ts b/modules/component/schematics-core/utility/libs-version.ts index c4372f6136..7e5449b5f1 100644 --- a/modules/component/schematics-core/utility/libs-version.ts +++ b/modules/component/schematics-core/utility/libs-version.ts @@ -1 +1 @@ -export const platformVersion = '^19.0.0-beta.0'; +export const platformVersion = '^19.0.0-rc.0'; diff --git a/modules/data/package.json b/modules/data/package.json index 4c3d5c61eb..e1650e7afc 100644 --- a/modules/data/package.json +++ b/modules/data/package.json @@ -1,6 +1,6 @@ { "name": "@ngrx/data", - "version": "19.0.0-beta.0", + "version": "19.0.0-rc.0", "description": "API management for NgRx", "repository": { "type": "git", @@ -22,9 +22,9 @@ "peerDependencies": { "@angular/common": "^19.0.0", "@angular/core": "^19.0.0", - "@ngrx/store": "19.0.0-beta.0", - "@ngrx/effects": "19.0.0-beta.0", - "@ngrx/entity": "19.0.0-beta.0", + "@ngrx/store": "19.0.0-rc.0", + "@ngrx/effects": "19.0.0-rc.0", + "@ngrx/entity": "19.0.0-rc.0", "rxjs": "^6.5.3 || ^7.5.0" }, "schematics": "./schematics/collection.json", diff --git a/modules/data/schematics-core/utility/libs-version.ts b/modules/data/schematics-core/utility/libs-version.ts index c4372f6136..7e5449b5f1 100644 --- a/modules/data/schematics-core/utility/libs-version.ts +++ b/modules/data/schematics-core/utility/libs-version.ts @@ -1 +1 @@ -export const platformVersion = '^19.0.0-beta.0'; +export const platformVersion = '^19.0.0-rc.0'; diff --git a/modules/effects/package.json b/modules/effects/package.json index cb3926a840..76549c4791 100644 --- a/modules/effects/package.json +++ b/modules/effects/package.json @@ -1,6 +1,6 @@ { "name": "@ngrx/effects", - "version": "19.0.0-beta.0", + "version": "19.0.0-rc.0", "description": "Side effect model for @ngrx/store", "repository": { "type": "git", @@ -22,7 +22,7 @@ "homepage": "https://github.com/ngrx/platform#readme", "peerDependencies": { "@angular/core": "^19.0.0", - "@ngrx/store": "19.0.0-beta.0", + "@ngrx/store": "19.0.0-rc.0", "rxjs": "^6.5.3 || ^7.5.0" }, "schematics": "./schematics/collection.json", diff --git a/modules/effects/schematics-core/utility/libs-version.ts b/modules/effects/schematics-core/utility/libs-version.ts index c4372f6136..7e5449b5f1 100644 --- a/modules/effects/schematics-core/utility/libs-version.ts +++ b/modules/effects/schematics-core/utility/libs-version.ts @@ -1 +1 @@ -export const platformVersion = '^19.0.0-beta.0'; +export const platformVersion = '^19.0.0-rc.0'; diff --git a/modules/entity/package.json b/modules/entity/package.json index 8c22189dcb..77d8d1cee7 100644 --- a/modules/entity/package.json +++ b/modules/entity/package.json @@ -1,6 +1,6 @@ { "name": "@ngrx/entity", - "version": "19.0.0-beta.0", + "version": "19.0.0-rc.0", "description": "Common utilities for entity reducers", "repository": { "type": "git", @@ -21,7 +21,7 @@ "homepage": "https://github.com/ngrx/platform#readme", "peerDependencies": { "@angular/core": "^19.0.0", - "@ngrx/store": "19.0.0-beta.0", + "@ngrx/store": "19.0.0-rc.0", "rxjs": "^6.5.3 || ^7.5.0" }, "schematics": "./schematics/collection.json", diff --git a/modules/entity/schematics-core/utility/libs-version.ts b/modules/entity/schematics-core/utility/libs-version.ts index c4372f6136..7e5449b5f1 100644 --- a/modules/entity/schematics-core/utility/libs-version.ts +++ b/modules/entity/schematics-core/utility/libs-version.ts @@ -1 +1 @@ -export const platformVersion = '^19.0.0-beta.0'; +export const platformVersion = '^19.0.0-rc.0'; diff --git a/modules/eslint-plugin/package.json b/modules/eslint-plugin/package.json index 0d72570ed1..6d15bf4e95 100644 --- a/modules/eslint-plugin/package.json +++ b/modules/eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@ngrx/eslint-plugin", - "version": "19.0.0-beta.0", + "version": "19.0.0-rc.0", "description": "NgRx ESLint Plugin", "repository": { "type": "git", diff --git a/modules/operators/package.json b/modules/operators/package.json index 5c0e500ba3..5065c5d33c 100644 --- a/modules/operators/package.json +++ b/modules/operators/package.json @@ -1,6 +1,6 @@ { "name": "@ngrx/operators", - "version": "19.0.0-beta.0", + "version": "19.0.0-rc.0", "description": "Shared RxJS Operators for NgRx libraries", "repository": { "type": "git", diff --git a/modules/operators/schematics-core/utility/libs-version.ts b/modules/operators/schematics-core/utility/libs-version.ts index c4372f6136..7e5449b5f1 100644 --- a/modules/operators/schematics-core/utility/libs-version.ts +++ b/modules/operators/schematics-core/utility/libs-version.ts @@ -1 +1 @@ -export const platformVersion = '^19.0.0-beta.0'; +export const platformVersion = '^19.0.0-rc.0'; diff --git a/modules/router-store/package.json b/modules/router-store/package.json index ef3a5929c7..3de620369c 100644 --- a/modules/router-store/package.json +++ b/modules/router-store/package.json @@ -1,6 +1,6 @@ { "name": "@ngrx/router-store", - "version": "19.0.0-beta.0", + "version": "19.0.0-rc.0", "description": "Bindings to connect @angular/router to @ngrx/store", "repository": { "type": "git", @@ -23,7 +23,7 @@ "@angular/common": "^19.0.0", "@angular/core": "^19.0.0", "@angular/router": "^19.0.0", - "@ngrx/store": "19.0.0-beta.0", + "@ngrx/store": "19.0.0-rc.0", "rxjs": "^6.5.3 || ^7.5.0" }, "schematics": "./schematics/collection.json", diff --git a/modules/router-store/schematics-core/utility/libs-version.ts b/modules/router-store/schematics-core/utility/libs-version.ts index c4372f6136..7e5449b5f1 100644 --- a/modules/router-store/schematics-core/utility/libs-version.ts +++ b/modules/router-store/schematics-core/utility/libs-version.ts @@ -1 +1 @@ -export const platformVersion = '^19.0.0-beta.0'; +export const platformVersion = '^19.0.0-rc.0'; diff --git a/modules/schematics-core/utility/libs-version.ts b/modules/schematics-core/utility/libs-version.ts index c4372f6136..7e5449b5f1 100644 --- a/modules/schematics-core/utility/libs-version.ts +++ b/modules/schematics-core/utility/libs-version.ts @@ -1 +1 @@ -export const platformVersion = '^19.0.0-beta.0'; +export const platformVersion = '^19.0.0-rc.0'; diff --git a/modules/schematics/package.json b/modules/schematics/package.json index 74dda764a9..741201bb38 100644 --- a/modules/schematics/package.json +++ b/modules/schematics/package.json @@ -1,6 +1,6 @@ { "name": "@ngrx/schematics", - "version": "19.0.0-beta.0", + "version": "19.0.0-rc.0", "description": "NgRx Schematics for Angular", "repository": { "type": "git", diff --git a/modules/schematics/schematics-core/utility/libs-version.ts b/modules/schematics/schematics-core/utility/libs-version.ts index c4372f6136..7e5449b5f1 100644 --- a/modules/schematics/schematics-core/utility/libs-version.ts +++ b/modules/schematics/schematics-core/utility/libs-version.ts @@ -1 +1 @@ -export const platformVersion = '^19.0.0-beta.0'; +export const platformVersion = '^19.0.0-rc.0'; diff --git a/modules/signals/package.json b/modules/signals/package.json index 218e489bf7..3b68f991a6 100644 --- a/modules/signals/package.json +++ b/modules/signals/package.json @@ -1,6 +1,6 @@ { "name": "@ngrx/signals", - "version": "19.0.0-beta.0", + "version": "19.0.0-rc.0", "description": "Reactive Store and Set of Utilities for Angular Signals", "repository": { "type": "git", diff --git a/modules/signals/schematics-core/utility/libs-version.ts b/modules/signals/schematics-core/utility/libs-version.ts index c4372f6136..7e5449b5f1 100644 --- a/modules/signals/schematics-core/utility/libs-version.ts +++ b/modules/signals/schematics-core/utility/libs-version.ts @@ -1 +1 @@ -export const platformVersion = '^19.0.0-beta.0'; +export const platformVersion = '^19.0.0-rc.0'; diff --git a/modules/store-devtools/package.json b/modules/store-devtools/package.json index d680937f25..73923df7e3 100644 --- a/modules/store-devtools/package.json +++ b/modules/store-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@ngrx/store-devtools", - "version": "19.0.0-beta.0", + "version": "19.0.0-rc.0", "description": "Developer tools for @ngrx/store", "repository": { "type": "git", @@ -21,7 +21,7 @@ "homepage": "https://github.com/ngrx/platform#readme", "peerDependencies": { "@angular/core": "^19.0.0", - "@ngrx/store": "19.0.0-beta.0", + "@ngrx/store": "19.0.0-rc.0", "rxjs": "^6.5.3 || ^7.5.0" }, "schematics": "./schematics/collection.json", diff --git a/modules/store-devtools/schematics-core/utility/libs-version.ts b/modules/store-devtools/schematics-core/utility/libs-version.ts index c4372f6136..7e5449b5f1 100644 --- a/modules/store-devtools/schematics-core/utility/libs-version.ts +++ b/modules/store-devtools/schematics-core/utility/libs-version.ts @@ -1 +1 @@ -export const platformVersion = '^19.0.0-beta.0'; +export const platformVersion = '^19.0.0-rc.0'; diff --git a/modules/store/package.json b/modules/store/package.json index 84f6aa3a87..6cd9d18c97 100644 --- a/modules/store/package.json +++ b/modules/store/package.json @@ -1,6 +1,6 @@ { "name": "@ngrx/store", - "version": "19.0.0-beta.0", + "version": "19.0.0-rc.0", "description": "RxJS powered Redux for Angular apps", "repository": { "type": "git", diff --git a/modules/store/schematics-core/utility/libs-version.ts b/modules/store/schematics-core/utility/libs-version.ts index c4372f6136..7e5449b5f1 100644 --- a/modules/store/schematics-core/utility/libs-version.ts +++ b/modules/store/schematics-core/utility/libs-version.ts @@ -1 +1 @@ -export const platformVersion = '^19.0.0-beta.0'; +export const platformVersion = '^19.0.0-rc.0'; diff --git a/package.json b/package.json index 43bc2268cb..0a741be35a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ngrx/platform", - "version": "19.0.0-beta.0", + "version": "19.0.0-rc.0", "description": "monorepo for ngrx development", "scripts": { "ng": "ng",