From 572ec49b0b04e3310ed71bde81546b28b34dd43d Mon Sep 17 00:00:00 2001 From: Mac Mini Date: Tue, 16 Sep 2025 07:13:53 +0200 Subject: [PATCH 1/4] refactor: normalize injection tokens to standard Angular pattern - Replace function-based tokens with standard InjectionToken instances - Update RX_STATEFUL_CONFIG to use direct token instead of function - Update RX_STATEFUL_CLIENT_CONFIG to use direct token instead of function - Update provider functions to use new tokens directly --- .../src/lib/client/config/with-config.ts | 6 +++--- .../src/lib/config/rx-stateful-config.ts | 16 ++++++++++------ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/libs/rx-stateful/experimental/src/lib/client/config/with-config.ts b/libs/rx-stateful/experimental/src/lib/client/config/with-config.ts index 81e24a1..68c9839 100644 --- a/libs/rx-stateful/experimental/src/lib/client/config/with-config.ts +++ b/libs/rx-stateful/experimental/src/lib/client/config/with-config.ts @@ -1,8 +1,8 @@ -import {inject, InjectionToken} from '@angular/core'; +import { inject, InjectionToken } from '@angular/core'; import { makeFeature } from './config-feature'; -import { Config, RX_STATEFUL_CONFIG } from '@angular-kit/rx-stateful'; +import { Config } from '@angular-kit/rx-stateful'; -export const RX_STATEFUL_CLIENT_CONFIG = () => new InjectionToken>('RX_STATEFUL_CONFIG'); +export const RX_STATEFUL_CLIENT_CONFIG = new InjectionToken>('RX_STATEFUL_CLIENT_CONFIG'); export function withConfig(config: Config) { return makeFeature('Config', [{ provide: RX_STATEFUL_CLIENT_CONFIG, useValue: config }]); diff --git a/libs/rx-stateful/src/lib/config/rx-stateful-config.ts b/libs/rx-stateful/src/lib/config/rx-stateful-config.ts index fcb913b..8d915ed 100644 --- a/libs/rx-stateful/src/lib/config/rx-stateful-config.ts +++ b/libs/rx-stateful/src/lib/config/rx-stateful-config.ts @@ -1,17 +1,21 @@ -import {InjectionToken, makeEnvironmentProviders} from '@angular/core'; +import { InjectionToken, makeEnvironmentProviders } from '@angular/core'; import { RxStatefulConfig } from '../types/types'; import { RefetchStrategy } from '../refetch-strategies/refetch-strategy'; export type Config = Pick< RxStatefulConfig, - 'keepErrorOnRefresh' | 'keepValueOnRefresh' | 'errorMappingFn' | 'beforeHandleErrorFn' | 'accumulationFn' | 'suspenseTimeMs' | 'suspenseThresholdMs' + | 'keepErrorOnRefresh' + | 'keepValueOnRefresh' + | 'errorMappingFn' + | 'beforeHandleErrorFn' + | 'accumulationFn' + | 'suspenseTimeMs' + | 'suspenseThresholdMs' > & { autoRefetch?: RefetchStrategy; }; -export const RX_STATEFUL_CONFIG = () => new InjectionToken>('RX_STATEFUL_CONFIG'); +export const RX_STATEFUL_CONFIG = new InjectionToken>('RX_STATEFUL_CONFIG'); export function provideRxStatefulConfig(config: Partial>) { - return makeEnvironmentProviders([{ provide: RX_STATEFUL_CONFIG, useValue: config }]); + return makeEnvironmentProviders([{ provide: RX_STATEFUL_CONFIG, useValue: config }]); } - - From 246057427aa5e66632a841a7c243a8ccffb16e33 Mon Sep 17 00:00:00 2001 From: Mac Mini Date: Tue, 16 Sep 2025 07:16:40 +0200 Subject: [PATCH 2/4] test: add tests for normalized injection tokens - Verify token injection works correctly with new pattern - Test optional injection returns null when not provided --- .../src/lib/config/rx-stateful-config.spec.ts | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 libs/rx-stateful/src/lib/config/rx-stateful-config.spec.ts diff --git a/libs/rx-stateful/src/lib/config/rx-stateful-config.spec.ts b/libs/rx-stateful/src/lib/config/rx-stateful-config.spec.ts new file mode 100644 index 0000000..17801fb --- /dev/null +++ b/libs/rx-stateful/src/lib/config/rx-stateful-config.spec.ts @@ -0,0 +1,36 @@ +import { TestBed } from '@angular/core/testing'; +import { inject } from '@angular/core'; +import { RX_STATEFUL_CONFIG, provideRxStatefulConfig, Config } from './rx-stateful-config'; + +describe('RX_STATEFUL_CONFIG', () => { + it('should provide and inject config correctly', () => { + const testConfig: Partial> = { + keepErrorOnRefresh: true, + keepValueOnRefresh: false, + suspenseTimeMs: 1000, + }; + + TestBed.configureTestingModule({ + providers: [provideRxStatefulConfig(testConfig)], + }); + + TestBed.runInInjectionContext(() => { + const injectedConfig = inject(RX_STATEFUL_CONFIG, { optional: true }); + expect(injectedConfig).toBeDefined(); + expect(injectedConfig?.keepErrorOnRefresh).toBe(true); + expect(injectedConfig?.keepValueOnRefresh).toBe(false); + expect(injectedConfig?.suspenseTimeMs).toBe(1000); + }); + }); + + it('should return null when config is not provided', () => { + TestBed.configureTestingModule({ + providers: [], + }); + + TestBed.runInInjectionContext(() => { + const injectedConfig = inject(RX_STATEFUL_CONFIG, { optional: true }); + expect(injectedConfig).toBeNull(); + }); + }); +}); From e67ba0793475bc7c8c25143f3d4b90bd12b3dc40 Mon Sep 17 00:00:00 2001 From: Mac Mini Date: Tue, 16 Sep 2025 07:17:00 +0200 Subject: [PATCH 3/4] docs: add migration guide for normalized injection tokens - Document breaking change in CHANGELOG - Provide clear migration instructions - Note that most users won't be affected --- libs/rx-stateful/CHANGELOG.md | 213 +++++++++++++--------------------- 1 file changed, 80 insertions(+), 133 deletions(-) diff --git a/libs/rx-stateful/CHANGELOG.md b/libs/rx-stateful/CHANGELOG.md index f0febd9..c2dbd07 100644 --- a/libs/rx-stateful/CHANGELOG.md +++ b/libs/rx-stateful/CHANGELOG.md @@ -2,282 +2,229 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). -# [2.0.0](https://github.com/michaelbe812/angular-kit-rx-stateful/compare/rx-stateful-2.0.0-rc.0...rx-stateful-2.0.0) (2025-02-26) +# Unreleased +### Breaking Changes -### Bug Fixes +- **config:** Normalized injection tokens to standard Angular pattern -* migrations.json now copied to build artifact ([bd59773](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/bd5977324b741fb920864fe5c231933b20726fe8)) + - `RX_STATEFUL_CONFIG` is now a direct `InjectionToken` instance instead of a function + - `RX_STATEFUL_CLIENT_CONFIG` is now a direct `InjectionToken` instance instead of a function + **Migration Guide:** + If you were using the tokens directly in your code (unlikely), update from: -# [2.0.0-rc.1](https://github.com/michaelbe812/angular-kit-rx-stateful/compare/rx-stateful-2.0.0-rc.0...rx-stateful-2.0.0-rc.1) (2025-02-26) + ```typescript + // Old pattern (no longer works) + inject(RX_STATEFUL_CONFIG()); + ``` + To: -### Bug Fixes + ```typescript + // New pattern + inject(RX_STATEFUL_CONFIG); + ``` -* migrations.json now copied to build artifact ([943f0a8](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/943f0a854460d2fdbe50ab1f1edefec31db9dcd4)) + Note: If you're only using `provideRxStatefulConfig()` or `rxRequest()`, no changes are needed. +# [2.0.0](https://github.com/michaelbe812/angular-kit-rx-stateful/compare/rx-stateful-2.0.0-rc.0...rx-stateful-2.0.0) (2025-02-26) +### Bug Fixes -# [2.0.0-rc.0](https://github.com/michaelbe812/angular-kit-rx-stateful/compare/rx-stateful-1.7.0...rx-stateful-2.0.0-rc.0) (2024-12-01) +- migrations.json now copied to build artifact ([bd59773](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/bd5977324b741fb920864fe5c231933b20726fe8)) +# [2.0.0-rc.1](https://github.com/michaelbe812/angular-kit-rx-stateful/compare/rx-stateful-2.0.0-rc.0...rx-stateful-2.0.0-rc.1) (2025-02-26) -### Features +### Bug Fixes + +- migrations.json now copied to build artifact ([943f0a8](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/943f0a854460d2fdbe50ab1f1edefec31db9dcd4)) -* add migration for removed refreshTrigger$ option ([6a933b9](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/6a933b96aa7cb82a40ca93911101625f9a85fcee)) -* add migration to rxStatefulRequest ([b51be33](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/b51be332b7e92e33965a754c5db04cc8d53623e4)) -* introduce RxStatefulRequest ([7b30631](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/7b306319ab50639840b29335e84852157e164086)) -* introduce separate rxStatefulRequest ([eedf6d5](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/eedf6d52759be426b26a7184871ce01b8e70f106)) -* **rx-stateful:** create ergonomic API with RxStatefulLoader for rxStatefulRequest ([854d6ad](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/854d6ad352fbba4d9356379eaef4b55e2fa29808)) -* **rx-stateful:** separate global config for RxStatefulClient ([bd89451](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/bd8945158664dfdc63e3ce6c0f1e812a2902df82)) -* use global config in rxstateful-functions ([5c3b2b6](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/5c3b2b6585de34a9c8599e1d634ec7d7fdc9ad0e)) +# [2.0.0-rc.0](https://github.com/michaelbe812/angular-kit-rx-stateful/compare/rx-stateful-1.7.0...rx-stateful-2.0.0-rc.0) (2024-12-01) +### Features +- add migration for removed refreshTrigger$ option ([6a933b9](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/6a933b96aa7cb82a40ca93911101625f9a85fcee)) +- add migration to rxStatefulRequest ([b51be33](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/b51be332b7e92e33965a754c5db04cc8d53623e4)) +- introduce RxStatefulRequest ([7b30631](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/7b306319ab50639840b29335e84852157e164086)) +- introduce separate rxStatefulRequest ([eedf6d5](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/eedf6d52759be426b26a7184871ce01b8e70f106)) +- **rx-stateful:** create ergonomic API with RxStatefulLoader for rxStatefulRequest ([854d6ad](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/854d6ad352fbba4d9356379eaef4b55e2fa29808)) +- **rx-stateful:** separate global config for RxStatefulClient ([bd89451](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/bd8945158664dfdc63e3ce6c0f1e812a2902df82)) +- use global config in rxstateful-functions ([5c3b2b6](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/5c3b2b6585de34a9c8599e1d634ec7d7fdc9ad0e)) # [1.8.0](https://github.com/michaelbe812/angular-kit-rx-stateful/compare/rx-stateful-1.7.0...rx-stateful-1.8.0) (2024-12-01) - ### Features -* add migration for removed refreshTrigger$ option ([6a933b9](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/6a933b96aa7cb82a40ca93911101625f9a85fcee)) -* add migration to rxStatefulRequest ([b51be33](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/b51be332b7e92e33965a754c5db04cc8d53623e4)) -* introduce RxStatefulRequest ([7b30631](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/7b306319ab50639840b29335e84852157e164086)) -* introduce separate rxStatefulRequest ([eedf6d5](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/eedf6d52759be426b26a7184871ce01b8e70f106)) -* **rx-stateful:** create ergonomic API with RxStatefulLoader for rxStatefulRequest ([854d6ad](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/854d6ad352fbba4d9356379eaef4b55e2fa29808)) -* **rx-stateful:** separate global config for RxStatefulClient ([bd89451](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/bd8945158664dfdc63e3ce6c0f1e812a2902df82)) -* use global config in rxstateful-functions ([5c3b2b6](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/5c3b2b6585de34a9c8599e1d634ec7d7fdc9ad0e)) +- add migration for removed refreshTrigger$ option ([6a933b9](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/6a933b96aa7cb82a40ca93911101625f9a85fcee)) +- add migration to rxStatefulRequest ([b51be33](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/b51be332b7e92e33965a754c5db04cc8d53623e4)) +- introduce RxStatefulRequest ([7b30631](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/7b306319ab50639840b29335e84852157e164086)) +- introduce separate rxStatefulRequest ([eedf6d5](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/eedf6d52759be426b26a7184871ce01b8e70f106)) +- **rx-stateful:** create ergonomic API with RxStatefulLoader for rxStatefulRequest ([854d6ad](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/854d6ad352fbba4d9356379eaef4b55e2fa29808)) +- **rx-stateful:** separate global config for RxStatefulClient ([bd89451](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/bd8945158664dfdc63e3ce6c0f1e812a2902df82)) +- use global config in rxstateful-functions ([5c3b2b6](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/5c3b2b6585de34a9c8599e1d634ec7d7fdc9ad0e)) - - -# 1.8.0 +# 1.8.0 ### Bugfixes -* fix(rx-stateful): when handling errors it emitted by default the Error.message but it should emit th ([4c6a506](https://github.com/mikelgo/angular-kit/commit/4c6a506)) - -## 1.7.1 (2024-07-26) -* Bugfix/rx stateful no subs values (#112) ([034ce71](https://github.com/mikelgo/angular-kit/commit/034ce71)), closes [#112](https://github.com/mikelgo/angular-kit/issues/112) +- fix(rx-stateful): when handling errors it emitted by default the Error.message but it should emit th ([4c6a506](https://github.com/mikelgo/angular-kit/commit/4c6a506)) +## 1.7.1 (2024-07-26) +- Bugfix/rx stateful no subs values (#112) ([034ce71](https://github.com/mikelgo/angular-kit/commit/034ce71)), closes [#112](https://github.com/mikelgo/angular-kit/issues/112) # [1.7.0](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.6.0...rx-stateful-1.7.0) (2024-05-14) ### Features -* **rx-stateful:** default suspense threshold and time set to 0 to be non-breaking ([40609f5](https://github.com/mikelgo/angular-kit/commit/40609f5d4cf13acbf6bfb7a8b6dd971b2a26d593)) -* **rx-stateful:** move RxStatefulClient to experimental package ([4593991](https://github.com/mikelgo/angular-kit/commit/4593991ed20a6c5ba1425d76b184b30739946f03)) -* **rx-stateful:** support non-flicker suspense state ([1d60706](https://github.com/mikelgo/angular-kit/commit/1d60706e4feab544bdd4e095b802598af6c9e899)) - - +- **rx-stateful:** default suspense threshold and time set to 0 to be non-breaking ([40609f5](https://github.com/mikelgo/angular-kit/commit/40609f5d4cf13acbf6bfb7a8b6dd971b2a26d593)) +- **rx-stateful:** move RxStatefulClient to experimental package ([4593991](https://github.com/mikelgo/angular-kit/commit/4593991ed20a6c5ba1425d76b184b30739946f03)) +- **rx-stateful:** support non-flicker suspense state ([1d60706](https://github.com/mikelgo/angular-kit/commit/1d60706e4feab544bdd4e095b802598af6c9e899)) # [1.6.0](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.5.0...rx-stateful-1.6.0) (2023-11-15) - - # [1.5.0](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.4.0...rx-stateful-1.5.0) (2023-10-24) - ### Bug Fixes -* **rx-stateful:** refetchOnTrigger strategy does now not emit additional value when trigger is BehaviorSubject ([2919a79](https://github.com/mikelgo/angular-kit/commit/2919a79e3af2d639b3d478d7e560ad4fcbfd696d)), closes [#92](https://github.com/mikelgo/angular-kit/issues/92) - +- **rx-stateful:** refetchOnTrigger strategy does now not emit additional value when trigger is BehaviorSubject ([2919a79](https://github.com/mikelgo/angular-kit/commit/2919a79e3af2d639b3d478d7e560ad4fcbfd696d)), closes [#92](https://github.com/mikelgo/angular-kit/issues/92) ### Features -* **rx-stateful:** add refetch strategies ([6ab36bc](https://github.com/mikelgo/angular-kit/commit/6ab36bcf62a5e813e75e12df6f92be2bce529570)) -* **rx-stateful:** allow refetchStrategies to be RefetchStragegy or array of RefetchStrategies ([e7c06cc](https://github.com/mikelgo/angular-kit/commit/e7c06cc2ad3a27d5b52dfce067ec5855f4e14f0f)) -* **rx-stateful:** default generic E to unkown on RxStatefulMock to improve developer ergonomics ([eb87731](https://github.com/mikelgo/angular-kit/commit/eb877318dcf884d7c07dc8633cb0ba6bd4de2e15)) -* **rx-stateful:** enhance RestClient request signature ([0c34496](https://github.com/mikelgo/angular-kit/commit/0c3449637d3fd10e8b956b1ea6eb6e5cfdc5c836)) -* **rx-stateful:** enhance RxStatefulClient config with AutoRefetchStrategy ([a5060b7](https://github.com/mikelgo/angular-kit/commit/a5060b70896d632139feea772fae3ccc8b9bf83f)) -* **rx-stateful:** simplify API ([9847578](https://github.com/mikelgo/angular-kit/commit/98475781d799ffddfb7fb64cc1044e76c8feb327)) -* **rx-stateful:** update testing package to simplified API ([aba0b34](https://github.com/mikelgo/angular-kit/commit/aba0b34b776c73fe69aa91d99ca5f5199bea4261)) - - +- **rx-stateful:** add refetch strategies ([6ab36bc](https://github.com/mikelgo/angular-kit/commit/6ab36bcf62a5e813e75e12df6f92be2bce529570)) +- **rx-stateful:** allow refetchStrategies to be RefetchStragegy or array of RefetchStrategies ([e7c06cc](https://github.com/mikelgo/angular-kit/commit/e7c06cc2ad3a27d5b52dfce067ec5855f4e14f0f)) +- **rx-stateful:** default generic E to unkown on RxStatefulMock to improve developer ergonomics ([eb87731](https://github.com/mikelgo/angular-kit/commit/eb877318dcf884d7c07dc8633cb0ba6bd4de2e15)) +- **rx-stateful:** enhance RestClient request signature ([0c34496](https://github.com/mikelgo/angular-kit/commit/0c3449637d3fd10e8b956b1ea6eb6e5cfdc5c836)) +- **rx-stateful:** enhance RxStatefulClient config with AutoRefetchStrategy ([a5060b7](https://github.com/mikelgo/angular-kit/commit/a5060b70896d632139feea772fae3ccc8b9bf83f)) +- **rx-stateful:** simplify API ([9847578](https://github.com/mikelgo/angular-kit/commit/98475781d799ffddfb7fb64cc1044e76c8feb327)) +- **rx-stateful:** update testing package to simplified API ([aba0b34](https://github.com/mikelgo/angular-kit/commit/aba0b34b776c73fe69aa91d99ca5f5199bea4261)) # [1.4.0](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.3.7...rx-stateful-1.4.0) (2023-09-07) - ### Features -* **rx-stateful:** RxStatefulClient and configuration ([72c9d6d](https://github.com/mikelgo/angular-kit/commit/72c9d6de7ab3c232435958558146a0cdf2a31c5a)) -* **rx-stateful:** RxStatefulClient and configuration ([71ca27a](https://github.com/mikelgo/angular-kit/commit/71ca27a8e2667d2be10c04e53cb971197c27896e)) - - +- **rx-stateful:** RxStatefulClient and configuration ([72c9d6d](https://github.com/mikelgo/angular-kit/commit/72c9d6de7ab3c232435958558146a0cdf2a31c5a)) +- **rx-stateful:** RxStatefulClient and configuration ([71ca27a](https://github.com/mikelgo/angular-kit/commit/71ca27a8e2667d2be10c04e53cb971197c27896e)) ## [1.3.7](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.3.6...rx-stateful-1.3.7) (2023-09-06) - ### Bug Fixes -* **rx-stateful:** remove provideRxStatefulConfig ([a27af94](https://github.com/mikelgo/angular-kit/commit/a27af9424b5f241e463c2e206820f6435ea3b514)) - - +- **rx-stateful:** remove provideRxStatefulConfig ([a27af94](https://github.com/mikelgo/angular-kit/commit/a27af9424b5f241e463c2e206820f6435ea3b514)) ## [1.3.6](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.3.5...rx-stateful-1.3.6) (2023-09-06) - ### Bug Fixes -* **rx-stateful:** refresh stopped to work ([7f099e4](https://github.com/mikelgo/angular-kit/commit/7f099e40ca93f0d676df4e022d0e57008da0757c)) - - +- **rx-stateful:** refresh stopped to work ([7f099e4](https://github.com/mikelgo/angular-kit/commit/7f099e40ca93f0d676df4e022d0e57008da0757c)) ## [1.3.5](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.3.4...rx-stateful-1.3.5) (2023-09-06) - ### Features -* **rx-stateful:** improve testing utility ([0a08f32](https://github.com/mikelgo/angular-kit/commit/0a08f32f141204ddb3152cac8cee0b20264c9bf4)) - - +- **rx-stateful:** improve testing utility ([0a08f32](https://github.com/mikelgo/angular-kit/commit/0a08f32f141204ddb3152cac8cee0b20264c9bf4)) ## [1.3.4](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.3.3...rx-stateful-1.3.4) (2023-09-05) - ### Features -* **rx-stateful:** export MockRxStateful type ([c32cc20](https://github.com/mikelgo/angular-kit/commit/c32cc20ed2e0358d36637fd37e594d9a43771eda)) - - +- **rx-stateful:** export MockRxStateful type ([c32cc20](https://github.com/mikelgo/angular-kit/commit/c32cc20ed2e0358d36637fd37e594d9a43771eda)) ## [1.3.3](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.3.2...rx-stateful-1.3.3) (2023-09-05) - ### Features -* **rx-stateful:** add MockRxStateful type ([84fbeed](https://github.com/mikelgo/angular-kit/commit/84fbeed3e0ea27d437acb6e5d676587ff3d37a32)) - - +- **rx-stateful:** add MockRxStateful type ([84fbeed](https://github.com/mikelgo/angular-kit/commit/84fbeed3e0ea27d437acb6e5d676587ff3d37a32)) ## [1.3.2](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.3.1...rx-stateful-1.3.2) (2023-09-04) - ### Features -* **rx-stateful:** add testing utilities ([67dbe4c](https://github.com/mikelgo/angular-kit/commit/67dbe4c990c0dae64c051fb1e5be8beba86ca4ab)), closes [#78](https://github.com/mikelgo/angular-kit/issues/78) - - +- **rx-stateful:** add testing utilities ([67dbe4c](https://github.com/mikelgo/angular-kit/commit/67dbe4c990c0dae64c051fb1e5be8beba86ca4ab)), closes [#78](https://github.com/mikelgo/angular-kit/issues/78) ## [1.3.1](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.3.0...rx-stateful-1.3.1) (2023-08-30) - ### Bug Fixes -* **rx-stateful:** reset on error ([9c4df41](https://github.com/mikelgo/angular-kit/commit/9c4df4168d3de1ac1b957393e291ba35423c6131)) - - +- **rx-stateful:** reset on error ([9c4df41](https://github.com/mikelgo/angular-kit/commit/9c4df4168d3de1ac1b957393e291ba35423c6131)) # [1.3.0](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.2.1...rx-stateful-1.3.0) (2023-08-29) - ### Bug Fixes -* **rx-stateful:** harmonize share config ([99c5b70](https://github.com/mikelgo/angular-kit/commit/99c5b7064eb5c2f522d7e7875554304d0514576b)) -* **rx-stateful:** improve typing of errorMappingFn in RxStatefulConfig ([2cd93e8](https://github.com/mikelgo/angular-kit/commit/2cd93e89a9c9504163eecccd7c945e6b3c3882f7)) - +- **rx-stateful:** harmonize share config ([99c5b70](https://github.com/mikelgo/angular-kit/commit/99c5b7064eb5c2f522d7e7875554304d0514576b)) +- **rx-stateful:** improve typing of errorMappingFn in RxStatefulConfig ([2cd93e8](https://github.com/mikelgo/angular-kit/commit/2cd93e89a9c9504163eecccd7c945e6b3c3882f7)) ### Features -* **rx-stateful:** enhance config by beforeHandleErrorFn ([dace1b1](https://github.com/mikelgo/angular-kit/commit/dace1b1627d76c082affc4722da8adbe72588ae2)) -* **rx-stateful:** enhance provider config with beforeHandleErroFn ([b925d35](https://github.com/mikelgo/angular-kit/commit/b925d35d667dee6d0a8d203e3660e132d15373db)) - - +- **rx-stateful:** enhance config by beforeHandleErrorFn ([dace1b1](https://github.com/mikelgo/angular-kit/commit/dace1b1627d76c082affc4722da8adbe72588ae2)) +- **rx-stateful:** enhance provider config with beforeHandleErroFn ([b925d35](https://github.com/mikelgo/angular-kit/commit/b925d35d667dee6d0a8d203e3660e132d15373db)) ## [1.2.1](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.2.0...rx-stateful-1.2.1) (2023-08-26) - ### Bug Fixes -* **rx-stateful:** correct peer dependencies ([6d4edda](https://github.com/mikelgo/angular-kit/commit/6d4eddaa45a7468ce10d81767cf6e3ac7941e91d)) - - +- **rx-stateful:** correct peer dependencies ([6d4edda](https://github.com/mikelgo/angular-kit/commit/6d4eddaa45a7468ce10d81767cf6e3ac7941e91d)) # [1.2.0](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.1.1...rx-stateful-1.2.0) (2023-08-26) - ### Features -* **rx-stateful:** generic E is now typed as unknown as default ([1fd1bab](https://github.com/mikelgo/angular-kit/commit/1fd1bab4efa269f3110df73adbaa19c82b14bb21)) - - +- **rx-stateful:** generic E is now typed as unknown as default ([1fd1bab](https://github.com/mikelgo/angular-kit/commit/1fd1bab4efa269f3110df73adbaa19c82b14bb21)) ## [1.1.1](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.1.0...rx-stateful-1.1.1) (2023-08-25) - ### Bug Fixes -* **rx-stateful:** remove usages of assertInInjectionContext and runInInjectionContext ([f4d19e8](https://github.com/mikelgo/angular-kit/commit/f4d19e8eeb51959bc9549f093eaeab0e822b26de)) - - +- **rx-stateful:** remove usages of assertInInjectionContext and runInInjectionContext ([f4d19e8](https://github.com/mikelgo/angular-kit/commit/f4d19e8eeb51959bc9549f093eaeab0e822b26de)) # [1.1.0](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.0.0...rx-stateful-1.1.0) (2023-08-22) - ### Code Refactoring -* **rx-stateful:** drop support for signals ([0cf756f](https://github.com/mikelgo/angular-kit/commit/0cf756ff7c36385c9642ce7b93369913b9812590)) - +- **rx-stateful:** drop support for signals ([0cf756f](https://github.com/mikelgo/angular-kit/commit/0cf756ff7c36385c9642ce7b93369913b9812590)) ### BREAKING CHANGES -* **rx-stateful:** Signals no longer explicitly supported - - +- **rx-stateful:** Signals no longer explicitly supported # [2.0.0-alpha.4](https://github.com/mikelgo/angular-kit/compare/rx-stateful-2.0.0-alpha.3...rx-stateful-2.0.0-alpha.4) (2023-08-22) - - # [2.0.0-alpha.3](https://github.com/code-workers-io/angular-kit/compare/rx-stateful-1.0.0-alpha.3...rx-stateful-2.0.0-alpha.3) (2023-07-07) - ### Features -* **rx-stateful:** allow custom accumulation function ([c4e10ba](https://github.com/code-workers-io/angular-kit/commit/c4e10ba0d1d26a30b3c936127e09f9e69e09bf33)), closes [#53](https://github.com/code-workers-io/angular-kit/issues/53) - - +- **rx-stateful:** allow custom accumulation function ([c4e10ba](https://github.com/code-workers-io/angular-kit/commit/c4e10ba0d1d26a30b3c936127e09f9e69e09bf33)), closes [#53](https://github.com/code-workers-io/angular-kit/issues/53) # [2.0.0-alpha.2](https://github.com/code-workers-io/angular-kit/compare/rx-stateful-1.0.0-alpha.2...rx-stateful-2.0.0-alpha.2) (2023-06-30) - ### Bug Fixes -* **rx-stateful:** handle errors correctly ([4bca29b](https://github.com/code-workers-io/angular-kit/commit/4bca29bb08a51a7f4a33b6c7b22bd2ac64f46180)) - - +- **rx-stateful:** handle errors correctly ([4bca29b](https://github.com/code-workers-io/angular-kit/commit/4bca29bb08a51a7f4a33b6c7b22bd2ac64f46180)) # [2.0.0-alpha.1](https://github.com/code-workers-io/angular-kit/compare/rx-stateful-2.0.0-alpha.0...rx-stateful-2.0.0-alpha.1) (2023-06-09) - ### Features -* **rx-stateful:** support signals ([ab1b778](https://github.com/code-workers-io/angular-kit/commit/ab1b778e7cbe2cab2aae992f54e81a3cef64d8d7)) - - +- **rx-stateful:** support signals ([ab1b778](https://github.com/code-workers-io/angular-kit/commit/ab1b778e7cbe2cab2aae992f54e81a3cef64d8d7)) # [2.0.0-alpha.2](https://github.com/code-workers-io/angular-kit/compare/rx-stateful-2.0.0-alpha.1...rx-stateful-2.0.0-alpha.2) (2023-06-30) - ### Bug Fixes -* **rx-stateful:** handle errors correctly ([4bca29b](https://github.com/code-workers-io/angular-kit/commit/4bca29bb08a51a7f4a33b6c7b22bd2ac64f46180)) - - +- **rx-stateful:** handle errors correctly ([4bca29b](https://github.com/code-workers-io/angular-kit/commit/4bca29bb08a51a7f4a33b6c7b22bd2ac64f46180)) # [2.0.0-alpha.1](https://github.com/code-workers-io/angular-kit/compare/rx-stateful-2.0.0-alpha.0...rx-stateful-2.0.0-alpha.1) (2023-06-09) - - # 1.0.0-alpha.0 (2023-06-09) - ### Bug Fixes -* **rx-stateful:** correct typing ([354c9b5](https://github.com/code-workers-io/angular-kit/commit/354c9b5a82ad68cf130897c2607e80a1a0bff434)) -* **rx-stateful:** correct typing ([074a780](https://github.com/code-workers-io/angular-kit/commit/074a78082538192724e685bca597bb2d542143c9)) - +- **rx-stateful:** correct typing ([354c9b5](https://github.com/code-workers-io/angular-kit/commit/354c9b5a82ad68cf130897c2607e80a1a0bff434)) +- **rx-stateful:** correct typing ([074a780](https://github.com/code-workers-io/angular-kit/commit/074a78082538192724e685bca597bb2d542143c9)) ### Features -* **rx-stateful:** add rxStateful$ ([b40705e](https://github.com/code-workers-io/angular-kit/commit/b40705ed25ebf3cbfdad5a426726834338852228)) +- **rx-stateful:** add rxStateful$ ([b40705e](https://github.com/code-workers-io/angular-kit/commit/b40705ed25ebf3cbfdad5a426726834338852228)) From 08c6ac6f9100ce09bca48e3f3638cf3679a54a52 Mon Sep 17 00:00:00 2001 From: Michael Berger Date: Tue, 16 Sep 2025 15:11:23 +0200 Subject: [PATCH 4/4] fix: revert change in changelog --- libs/rx-stateful/CHANGELOG.md | 213 +++++++++++++++++++++------------- 1 file changed, 133 insertions(+), 80 deletions(-) diff --git a/libs/rx-stateful/CHANGELOG.md b/libs/rx-stateful/CHANGELOG.md index c2dbd07..f0febd9 100644 --- a/libs/rx-stateful/CHANGELOG.md +++ b/libs/rx-stateful/CHANGELOG.md @@ -2,229 +2,282 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). -# Unreleased - -### Breaking Changes - -- **config:** Normalized injection tokens to standard Angular pattern +# [2.0.0](https://github.com/michaelbe812/angular-kit-rx-stateful/compare/rx-stateful-2.0.0-rc.0...rx-stateful-2.0.0) (2025-02-26) - - `RX_STATEFUL_CONFIG` is now a direct `InjectionToken` instance instead of a function - - `RX_STATEFUL_CLIENT_CONFIG` is now a direct `InjectionToken` instance instead of a function - **Migration Guide:** +### Bug Fixes - If you were using the tokens directly in your code (unlikely), update from: +* migrations.json now copied to build artifact ([bd59773](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/bd5977324b741fb920864fe5c231933b20726fe8)) - ```typescript - // Old pattern (no longer works) - inject(RX_STATEFUL_CONFIG()); - ``` - To: - ```typescript - // New pattern - inject(RX_STATEFUL_CONFIG); - ``` +# [2.0.0-rc.1](https://github.com/michaelbe812/angular-kit-rx-stateful/compare/rx-stateful-2.0.0-rc.0...rx-stateful-2.0.0-rc.1) (2025-02-26) - Note: If you're only using `provideRxStatefulConfig()` or `rxRequest()`, no changes are needed. - -# [2.0.0](https://github.com/michaelbe812/angular-kit-rx-stateful/compare/rx-stateful-2.0.0-rc.0...rx-stateful-2.0.0) (2025-02-26) ### Bug Fixes -- migrations.json now copied to build artifact ([bd59773](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/bd5977324b741fb920864fe5c231933b20726fe8)) +* migrations.json now copied to build artifact ([943f0a8](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/943f0a854460d2fdbe50ab1f1edefec31db9dcd4)) -# [2.0.0-rc.1](https://github.com/michaelbe812/angular-kit-rx-stateful/compare/rx-stateful-2.0.0-rc.0...rx-stateful-2.0.0-rc.1) (2025-02-26) -### Bug Fixes - -- migrations.json now copied to build artifact ([943f0a8](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/943f0a854460d2fdbe50ab1f1edefec31db9dcd4)) # [2.0.0-rc.0](https://github.com/michaelbe812/angular-kit-rx-stateful/compare/rx-stateful-1.7.0...rx-stateful-2.0.0-rc.0) (2024-12-01) + ### Features -- add migration for removed refreshTrigger$ option ([6a933b9](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/6a933b96aa7cb82a40ca93911101625f9a85fcee)) -- add migration to rxStatefulRequest ([b51be33](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/b51be332b7e92e33965a754c5db04cc8d53623e4)) -- introduce RxStatefulRequest ([7b30631](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/7b306319ab50639840b29335e84852157e164086)) -- introduce separate rxStatefulRequest ([eedf6d5](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/eedf6d52759be426b26a7184871ce01b8e70f106)) -- **rx-stateful:** create ergonomic API with RxStatefulLoader for rxStatefulRequest ([854d6ad](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/854d6ad352fbba4d9356379eaef4b55e2fa29808)) -- **rx-stateful:** separate global config for RxStatefulClient ([bd89451](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/bd8945158664dfdc63e3ce6c0f1e812a2902df82)) -- use global config in rxstateful-functions ([5c3b2b6](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/5c3b2b6585de34a9c8599e1d634ec7d7fdc9ad0e)) +* add migration for removed refreshTrigger$ option ([6a933b9](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/6a933b96aa7cb82a40ca93911101625f9a85fcee)) +* add migration to rxStatefulRequest ([b51be33](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/b51be332b7e92e33965a754c5db04cc8d53623e4)) +* introduce RxStatefulRequest ([7b30631](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/7b306319ab50639840b29335e84852157e164086)) +* introduce separate rxStatefulRequest ([eedf6d5](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/eedf6d52759be426b26a7184871ce01b8e70f106)) +* **rx-stateful:** create ergonomic API with RxStatefulLoader for rxStatefulRequest ([854d6ad](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/854d6ad352fbba4d9356379eaef4b55e2fa29808)) +* **rx-stateful:** separate global config for RxStatefulClient ([bd89451](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/bd8945158664dfdc63e3ce6c0f1e812a2902df82)) +* use global config in rxstateful-functions ([5c3b2b6](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/5c3b2b6585de34a9c8599e1d634ec7d7fdc9ad0e)) + + # [1.8.0](https://github.com/michaelbe812/angular-kit-rx-stateful/compare/rx-stateful-1.7.0...rx-stateful-1.8.0) (2024-12-01) + ### Features -- add migration for removed refreshTrigger$ option ([6a933b9](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/6a933b96aa7cb82a40ca93911101625f9a85fcee)) -- add migration to rxStatefulRequest ([b51be33](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/b51be332b7e92e33965a754c5db04cc8d53623e4)) -- introduce RxStatefulRequest ([7b30631](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/7b306319ab50639840b29335e84852157e164086)) -- introduce separate rxStatefulRequest ([eedf6d5](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/eedf6d52759be426b26a7184871ce01b8e70f106)) -- **rx-stateful:** create ergonomic API with RxStatefulLoader for rxStatefulRequest ([854d6ad](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/854d6ad352fbba4d9356379eaef4b55e2fa29808)) -- **rx-stateful:** separate global config for RxStatefulClient ([bd89451](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/bd8945158664dfdc63e3ce6c0f1e812a2902df82)) -- use global config in rxstateful-functions ([5c3b2b6](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/5c3b2b6585de34a9c8599e1d634ec7d7fdc9ad0e)) +* add migration for removed refreshTrigger$ option ([6a933b9](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/6a933b96aa7cb82a40ca93911101625f9a85fcee)) +* add migration to rxStatefulRequest ([b51be33](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/b51be332b7e92e33965a754c5db04cc8d53623e4)) +* introduce RxStatefulRequest ([7b30631](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/7b306319ab50639840b29335e84852157e164086)) +* introduce separate rxStatefulRequest ([eedf6d5](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/eedf6d52759be426b26a7184871ce01b8e70f106)) +* **rx-stateful:** create ergonomic API with RxStatefulLoader for rxStatefulRequest ([854d6ad](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/854d6ad352fbba4d9356379eaef4b55e2fa29808)) +* **rx-stateful:** separate global config for RxStatefulClient ([bd89451](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/bd8945158664dfdc63e3ce6c0f1e812a2902df82)) +* use global config in rxstateful-functions ([5c3b2b6](https://github.com/michaelbe812/angular-kit-rx-stateful/commit/5c3b2b6585de34a9c8599e1d634ec7d7fdc9ad0e)) -# 1.8.0 -### Bugfixes -- fix(rx-stateful): when handling errors it emitted by default the Error.message but it should emit th ([4c6a506](https://github.com/mikelgo/angular-kit/commit/4c6a506)) +# 1.8.0 + +### Bugfixes +* fix(rx-stateful): when handling errors it emitted by default the Error.message but it should emit th ([4c6a506](https://github.com/mikelgo/angular-kit/commit/4c6a506)) ## 1.7.1 (2024-07-26) +* Bugfix/rx stateful no subs values (#112) ([034ce71](https://github.com/mikelgo/angular-kit/commit/034ce71)), closes [#112](https://github.com/mikelgo/angular-kit/issues/112) + + -- Bugfix/rx stateful no subs values (#112) ([034ce71](https://github.com/mikelgo/angular-kit/commit/034ce71)), closes [#112](https://github.com/mikelgo/angular-kit/issues/112) # [1.7.0](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.6.0...rx-stateful-1.7.0) (2024-05-14) ### Features -- **rx-stateful:** default suspense threshold and time set to 0 to be non-breaking ([40609f5](https://github.com/mikelgo/angular-kit/commit/40609f5d4cf13acbf6bfb7a8b6dd971b2a26d593)) -- **rx-stateful:** move RxStatefulClient to experimental package ([4593991](https://github.com/mikelgo/angular-kit/commit/4593991ed20a6c5ba1425d76b184b30739946f03)) -- **rx-stateful:** support non-flicker suspense state ([1d60706](https://github.com/mikelgo/angular-kit/commit/1d60706e4feab544bdd4e095b802598af6c9e899)) +* **rx-stateful:** default suspense threshold and time set to 0 to be non-breaking ([40609f5](https://github.com/mikelgo/angular-kit/commit/40609f5d4cf13acbf6bfb7a8b6dd971b2a26d593)) +* **rx-stateful:** move RxStatefulClient to experimental package ([4593991](https://github.com/mikelgo/angular-kit/commit/4593991ed20a6c5ba1425d76b184b30739946f03)) +* **rx-stateful:** support non-flicker suspense state ([1d60706](https://github.com/mikelgo/angular-kit/commit/1d60706e4feab544bdd4e095b802598af6c9e899)) + + # [1.6.0](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.5.0...rx-stateful-1.6.0) (2023-11-15) + + # [1.5.0](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.4.0...rx-stateful-1.5.0) (2023-10-24) + ### Bug Fixes -- **rx-stateful:** refetchOnTrigger strategy does now not emit additional value when trigger is BehaviorSubject ([2919a79](https://github.com/mikelgo/angular-kit/commit/2919a79e3af2d639b3d478d7e560ad4fcbfd696d)), closes [#92](https://github.com/mikelgo/angular-kit/issues/92) +* **rx-stateful:** refetchOnTrigger strategy does now not emit additional value when trigger is BehaviorSubject ([2919a79](https://github.com/mikelgo/angular-kit/commit/2919a79e3af2d639b3d478d7e560ad4fcbfd696d)), closes [#92](https://github.com/mikelgo/angular-kit/issues/92) + ### Features -- **rx-stateful:** add refetch strategies ([6ab36bc](https://github.com/mikelgo/angular-kit/commit/6ab36bcf62a5e813e75e12df6f92be2bce529570)) -- **rx-stateful:** allow refetchStrategies to be RefetchStragegy or array of RefetchStrategies ([e7c06cc](https://github.com/mikelgo/angular-kit/commit/e7c06cc2ad3a27d5b52dfce067ec5855f4e14f0f)) -- **rx-stateful:** default generic E to unkown on RxStatefulMock to improve developer ergonomics ([eb87731](https://github.com/mikelgo/angular-kit/commit/eb877318dcf884d7c07dc8633cb0ba6bd4de2e15)) -- **rx-stateful:** enhance RestClient request signature ([0c34496](https://github.com/mikelgo/angular-kit/commit/0c3449637d3fd10e8b956b1ea6eb6e5cfdc5c836)) -- **rx-stateful:** enhance RxStatefulClient config with AutoRefetchStrategy ([a5060b7](https://github.com/mikelgo/angular-kit/commit/a5060b70896d632139feea772fae3ccc8b9bf83f)) -- **rx-stateful:** simplify API ([9847578](https://github.com/mikelgo/angular-kit/commit/98475781d799ffddfb7fb64cc1044e76c8feb327)) -- **rx-stateful:** update testing package to simplified API ([aba0b34](https://github.com/mikelgo/angular-kit/commit/aba0b34b776c73fe69aa91d99ca5f5199bea4261)) +* **rx-stateful:** add refetch strategies ([6ab36bc](https://github.com/mikelgo/angular-kit/commit/6ab36bcf62a5e813e75e12df6f92be2bce529570)) +* **rx-stateful:** allow refetchStrategies to be RefetchStragegy or array of RefetchStrategies ([e7c06cc](https://github.com/mikelgo/angular-kit/commit/e7c06cc2ad3a27d5b52dfce067ec5855f4e14f0f)) +* **rx-stateful:** default generic E to unkown on RxStatefulMock to improve developer ergonomics ([eb87731](https://github.com/mikelgo/angular-kit/commit/eb877318dcf884d7c07dc8633cb0ba6bd4de2e15)) +* **rx-stateful:** enhance RestClient request signature ([0c34496](https://github.com/mikelgo/angular-kit/commit/0c3449637d3fd10e8b956b1ea6eb6e5cfdc5c836)) +* **rx-stateful:** enhance RxStatefulClient config with AutoRefetchStrategy ([a5060b7](https://github.com/mikelgo/angular-kit/commit/a5060b70896d632139feea772fae3ccc8b9bf83f)) +* **rx-stateful:** simplify API ([9847578](https://github.com/mikelgo/angular-kit/commit/98475781d799ffddfb7fb64cc1044e76c8feb327)) +* **rx-stateful:** update testing package to simplified API ([aba0b34](https://github.com/mikelgo/angular-kit/commit/aba0b34b776c73fe69aa91d99ca5f5199bea4261)) + + # [1.4.0](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.3.7...rx-stateful-1.4.0) (2023-09-07) + ### Features -- **rx-stateful:** RxStatefulClient and configuration ([72c9d6d](https://github.com/mikelgo/angular-kit/commit/72c9d6de7ab3c232435958558146a0cdf2a31c5a)) -- **rx-stateful:** RxStatefulClient and configuration ([71ca27a](https://github.com/mikelgo/angular-kit/commit/71ca27a8e2667d2be10c04e53cb971197c27896e)) +* **rx-stateful:** RxStatefulClient and configuration ([72c9d6d](https://github.com/mikelgo/angular-kit/commit/72c9d6de7ab3c232435958558146a0cdf2a31c5a)) +* **rx-stateful:** RxStatefulClient and configuration ([71ca27a](https://github.com/mikelgo/angular-kit/commit/71ca27a8e2667d2be10c04e53cb971197c27896e)) + + ## [1.3.7](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.3.6...rx-stateful-1.3.7) (2023-09-06) + ### Bug Fixes -- **rx-stateful:** remove provideRxStatefulConfig ([a27af94](https://github.com/mikelgo/angular-kit/commit/a27af9424b5f241e463c2e206820f6435ea3b514)) +* **rx-stateful:** remove provideRxStatefulConfig ([a27af94](https://github.com/mikelgo/angular-kit/commit/a27af9424b5f241e463c2e206820f6435ea3b514)) + + ## [1.3.6](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.3.5...rx-stateful-1.3.6) (2023-09-06) + ### Bug Fixes -- **rx-stateful:** refresh stopped to work ([7f099e4](https://github.com/mikelgo/angular-kit/commit/7f099e40ca93f0d676df4e022d0e57008da0757c)) +* **rx-stateful:** refresh stopped to work ([7f099e4](https://github.com/mikelgo/angular-kit/commit/7f099e40ca93f0d676df4e022d0e57008da0757c)) + + ## [1.3.5](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.3.4...rx-stateful-1.3.5) (2023-09-06) + ### Features -- **rx-stateful:** improve testing utility ([0a08f32](https://github.com/mikelgo/angular-kit/commit/0a08f32f141204ddb3152cac8cee0b20264c9bf4)) +* **rx-stateful:** improve testing utility ([0a08f32](https://github.com/mikelgo/angular-kit/commit/0a08f32f141204ddb3152cac8cee0b20264c9bf4)) + + ## [1.3.4](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.3.3...rx-stateful-1.3.4) (2023-09-05) + ### Features -- **rx-stateful:** export MockRxStateful type ([c32cc20](https://github.com/mikelgo/angular-kit/commit/c32cc20ed2e0358d36637fd37e594d9a43771eda)) +* **rx-stateful:** export MockRxStateful type ([c32cc20](https://github.com/mikelgo/angular-kit/commit/c32cc20ed2e0358d36637fd37e594d9a43771eda)) + + ## [1.3.3](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.3.2...rx-stateful-1.3.3) (2023-09-05) + ### Features -- **rx-stateful:** add MockRxStateful type ([84fbeed](https://github.com/mikelgo/angular-kit/commit/84fbeed3e0ea27d437acb6e5d676587ff3d37a32)) +* **rx-stateful:** add MockRxStateful type ([84fbeed](https://github.com/mikelgo/angular-kit/commit/84fbeed3e0ea27d437acb6e5d676587ff3d37a32)) + + ## [1.3.2](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.3.1...rx-stateful-1.3.2) (2023-09-04) + ### Features -- **rx-stateful:** add testing utilities ([67dbe4c](https://github.com/mikelgo/angular-kit/commit/67dbe4c990c0dae64c051fb1e5be8beba86ca4ab)), closes [#78](https://github.com/mikelgo/angular-kit/issues/78) +* **rx-stateful:** add testing utilities ([67dbe4c](https://github.com/mikelgo/angular-kit/commit/67dbe4c990c0dae64c051fb1e5be8beba86ca4ab)), closes [#78](https://github.com/mikelgo/angular-kit/issues/78) + + ## [1.3.1](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.3.0...rx-stateful-1.3.1) (2023-08-30) + ### Bug Fixes -- **rx-stateful:** reset on error ([9c4df41](https://github.com/mikelgo/angular-kit/commit/9c4df4168d3de1ac1b957393e291ba35423c6131)) +* **rx-stateful:** reset on error ([9c4df41](https://github.com/mikelgo/angular-kit/commit/9c4df4168d3de1ac1b957393e291ba35423c6131)) + + # [1.3.0](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.2.1...rx-stateful-1.3.0) (2023-08-29) + ### Bug Fixes -- **rx-stateful:** harmonize share config ([99c5b70](https://github.com/mikelgo/angular-kit/commit/99c5b7064eb5c2f522d7e7875554304d0514576b)) -- **rx-stateful:** improve typing of errorMappingFn in RxStatefulConfig ([2cd93e8](https://github.com/mikelgo/angular-kit/commit/2cd93e89a9c9504163eecccd7c945e6b3c3882f7)) +* **rx-stateful:** harmonize share config ([99c5b70](https://github.com/mikelgo/angular-kit/commit/99c5b7064eb5c2f522d7e7875554304d0514576b)) +* **rx-stateful:** improve typing of errorMappingFn in RxStatefulConfig ([2cd93e8](https://github.com/mikelgo/angular-kit/commit/2cd93e89a9c9504163eecccd7c945e6b3c3882f7)) + ### Features -- **rx-stateful:** enhance config by beforeHandleErrorFn ([dace1b1](https://github.com/mikelgo/angular-kit/commit/dace1b1627d76c082affc4722da8adbe72588ae2)) -- **rx-stateful:** enhance provider config with beforeHandleErroFn ([b925d35](https://github.com/mikelgo/angular-kit/commit/b925d35d667dee6d0a8d203e3660e132d15373db)) +* **rx-stateful:** enhance config by beforeHandleErrorFn ([dace1b1](https://github.com/mikelgo/angular-kit/commit/dace1b1627d76c082affc4722da8adbe72588ae2)) +* **rx-stateful:** enhance provider config with beforeHandleErroFn ([b925d35](https://github.com/mikelgo/angular-kit/commit/b925d35d667dee6d0a8d203e3660e132d15373db)) + + ## [1.2.1](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.2.0...rx-stateful-1.2.1) (2023-08-26) + ### Bug Fixes -- **rx-stateful:** correct peer dependencies ([6d4edda](https://github.com/mikelgo/angular-kit/commit/6d4eddaa45a7468ce10d81767cf6e3ac7941e91d)) +* **rx-stateful:** correct peer dependencies ([6d4edda](https://github.com/mikelgo/angular-kit/commit/6d4eddaa45a7468ce10d81767cf6e3ac7941e91d)) + + # [1.2.0](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.1.1...rx-stateful-1.2.0) (2023-08-26) + ### Features -- **rx-stateful:** generic E is now typed as unknown as default ([1fd1bab](https://github.com/mikelgo/angular-kit/commit/1fd1bab4efa269f3110df73adbaa19c82b14bb21)) +* **rx-stateful:** generic E is now typed as unknown as default ([1fd1bab](https://github.com/mikelgo/angular-kit/commit/1fd1bab4efa269f3110df73adbaa19c82b14bb21)) + + ## [1.1.1](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.1.0...rx-stateful-1.1.1) (2023-08-25) + ### Bug Fixes -- **rx-stateful:** remove usages of assertInInjectionContext and runInInjectionContext ([f4d19e8](https://github.com/mikelgo/angular-kit/commit/f4d19e8eeb51959bc9549f093eaeab0e822b26de)) +* **rx-stateful:** remove usages of assertInInjectionContext and runInInjectionContext ([f4d19e8](https://github.com/mikelgo/angular-kit/commit/f4d19e8eeb51959bc9549f093eaeab0e822b26de)) + + # [1.1.0](https://github.com/mikelgo/angular-kit/compare/rx-stateful-1.0.0...rx-stateful-1.1.0) (2023-08-22) + ### Code Refactoring -- **rx-stateful:** drop support for signals ([0cf756f](https://github.com/mikelgo/angular-kit/commit/0cf756ff7c36385c9642ce7b93369913b9812590)) +* **rx-stateful:** drop support for signals ([0cf756f](https://github.com/mikelgo/angular-kit/commit/0cf756ff7c36385c9642ce7b93369913b9812590)) + ### BREAKING CHANGES -- **rx-stateful:** Signals no longer explicitly supported +* **rx-stateful:** Signals no longer explicitly supported + + # [2.0.0-alpha.4](https://github.com/mikelgo/angular-kit/compare/rx-stateful-2.0.0-alpha.3...rx-stateful-2.0.0-alpha.4) (2023-08-22) + + # [2.0.0-alpha.3](https://github.com/code-workers-io/angular-kit/compare/rx-stateful-1.0.0-alpha.3...rx-stateful-2.0.0-alpha.3) (2023-07-07) + ### Features -- **rx-stateful:** allow custom accumulation function ([c4e10ba](https://github.com/code-workers-io/angular-kit/commit/c4e10ba0d1d26a30b3c936127e09f9e69e09bf33)), closes [#53](https://github.com/code-workers-io/angular-kit/issues/53) +* **rx-stateful:** allow custom accumulation function ([c4e10ba](https://github.com/code-workers-io/angular-kit/commit/c4e10ba0d1d26a30b3c936127e09f9e69e09bf33)), closes [#53](https://github.com/code-workers-io/angular-kit/issues/53) + + # [2.0.0-alpha.2](https://github.com/code-workers-io/angular-kit/compare/rx-stateful-1.0.0-alpha.2...rx-stateful-2.0.0-alpha.2) (2023-06-30) + ### Bug Fixes -- **rx-stateful:** handle errors correctly ([4bca29b](https://github.com/code-workers-io/angular-kit/commit/4bca29bb08a51a7f4a33b6c7b22bd2ac64f46180)) +* **rx-stateful:** handle errors correctly ([4bca29b](https://github.com/code-workers-io/angular-kit/commit/4bca29bb08a51a7f4a33b6c7b22bd2ac64f46180)) + + # [2.0.0-alpha.1](https://github.com/code-workers-io/angular-kit/compare/rx-stateful-2.0.0-alpha.0...rx-stateful-2.0.0-alpha.1) (2023-06-09) + ### Features -- **rx-stateful:** support signals ([ab1b778](https://github.com/code-workers-io/angular-kit/commit/ab1b778e7cbe2cab2aae992f54e81a3cef64d8d7)) +* **rx-stateful:** support signals ([ab1b778](https://github.com/code-workers-io/angular-kit/commit/ab1b778e7cbe2cab2aae992f54e81a3cef64d8d7)) + + # [2.0.0-alpha.2](https://github.com/code-workers-io/angular-kit/compare/rx-stateful-2.0.0-alpha.1...rx-stateful-2.0.0-alpha.2) (2023-06-30) + ### Bug Fixes -- **rx-stateful:** handle errors correctly ([4bca29b](https://github.com/code-workers-io/angular-kit/commit/4bca29bb08a51a7f4a33b6c7b22bd2ac64f46180)) +* **rx-stateful:** handle errors correctly ([4bca29b](https://github.com/code-workers-io/angular-kit/commit/4bca29bb08a51a7f4a33b6c7b22bd2ac64f46180)) + + # [2.0.0-alpha.1](https://github.com/code-workers-io/angular-kit/compare/rx-stateful-2.0.0-alpha.0...rx-stateful-2.0.0-alpha.1) (2023-06-09) + + # 1.0.0-alpha.0 (2023-06-09) + ### Bug Fixes -- **rx-stateful:** correct typing ([354c9b5](https://github.com/code-workers-io/angular-kit/commit/354c9b5a82ad68cf130897c2607e80a1a0bff434)) -- **rx-stateful:** correct typing ([074a780](https://github.com/code-workers-io/angular-kit/commit/074a78082538192724e685bca597bb2d542143c9)) +* **rx-stateful:** correct typing ([354c9b5](https://github.com/code-workers-io/angular-kit/commit/354c9b5a82ad68cf130897c2607e80a1a0bff434)) +* **rx-stateful:** correct typing ([074a780](https://github.com/code-workers-io/angular-kit/commit/074a78082538192724e685bca597bb2d542143c9)) + ### Features -- **rx-stateful:** add rxStateful$ ([b40705e](https://github.com/code-workers-io/angular-kit/commit/b40705ed25ebf3cbfdad5a426726834338852228)) +* **rx-stateful:** add rxStateful$ ([b40705e](https://github.com/code-workers-io/angular-kit/commit/b40705ed25ebf3cbfdad5a426726834338852228))