@ngxs/store 18.0.0 → 18.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/README.md +4 -2
  2. package/esm2022/experimental/index.mjs +2 -0
  3. package/esm2022/experimental/ngxs-store-experimental.mjs +5 -0
  4. package/esm2022/experimental/pending-tasks.mjs +30 -0
  5. package/esm2022/internals/ngxs-app-bootstrapped-state.mjs +3 -3
  6. package/esm2022/internals/state-stream.mjs +4 -9
  7. package/esm2022/internals/testing/helpers/ngxs-test.component.mjs +3 -3
  8. package/esm2022/internals/testing/helpers/ngxs-test.module.mjs +4 -4
  9. package/esm2022/src/actions-stream.mjs +6 -6
  10. package/esm2022/src/decorators/select/select-factory.mjs +3 -3
  11. package/esm2022/src/dev-features/ngxs-development.module.mjs +4 -4
  12. package/esm2022/src/dev-features/ngxs-unhandled-actions-logger.mjs +3 -3
  13. package/esm2022/src/execution/dispatch-outside-zone-ngxs-execution-strategy.mjs +3 -3
  14. package/esm2022/src/execution/internal-ngxs-execution-strategy.mjs +3 -3
  15. package/esm2022/src/execution/noop-ngxs-execution-strategy.mjs +3 -3
  16. package/esm2022/src/internal/dispatcher.mjs +6 -6
  17. package/esm2022/src/internal/lifecycle-state-manager.mjs +3 -3
  18. package/esm2022/src/internal/state-context-factory.mjs +3 -3
  19. package/esm2022/src/internal/state-factory.mjs +6 -6
  20. package/esm2022/src/internal/state-operations.mjs +3 -3
  21. package/esm2022/src/module.mjs +4 -4
  22. package/esm2022/src/modules/ngxs-feature.module.mjs +4 -4
  23. package/esm2022/src/modules/ngxs-root.module.mjs +4 -4
  24. package/esm2022/src/ngxs-unhandled-error-handler.mjs +3 -3
  25. package/esm2022/src/plugin-manager.mjs +3 -3
  26. package/esm2022/src/store.mjs +34 -16
  27. package/esm2022/src/symbols.mjs +3 -3
  28. package/experimental/index.d.ts +1 -0
  29. package/experimental/pending-tasks.d.ts +8 -0
  30. package/fesm2022/ngxs-store-experimental.mjs +37 -0
  31. package/fesm2022/ngxs-store-experimental.mjs.map +1 -0
  32. package/fesm2022/ngxs-store-internals-testing.mjs +7 -7
  33. package/fesm2022/ngxs-store-internals.mjs +6 -11
  34. package/fesm2022/ngxs-store-internals.mjs.map +1 -1
  35. package/fesm2022/ngxs-store.mjs +102 -83
  36. package/fesm2022/ngxs-store.mjs.map +1 -1
  37. package/internals/state-stream.d.ts +1 -2
  38. package/package.json +7 -1
  39. package/schematics/src/ng-add/add-declaration.js +3 -3
  40. package/schematics/src/ng-add/add-declaration.js.map +1 -1
  41. package/schematics/src/ng-add/ng-add.factory.js +2 -2
  42. package/schematics/src/ng-add/ng-add.factory.js.map +1 -1
  43. package/schematics/src/starter-kit/starter-kit.factory.js +2 -2
  44. package/schematics/src/starter-kit/starter-kit.factory.js.map +1 -1
  45. package/schematics/src/state/state.factory.js +2 -2
  46. package/schematics/src/state/state.factory.js.map +1 -1
  47. package/schematics/src/store/store.factory.js +2 -2
  48. package/schematics/src/store/store.factory.js.map +1 -1
  49. package/schematics/src/utils/project.d.ts +1 -0
  50. package/schematics/src/utils/project.js +23 -1
  51. package/schematics/src/utils/project.js.map +1 -1
  52. package/schematics/src/utils/versions.json +1 -1
  53. package/src/store.d.ts +1 -0
  54. package/schematics/src/utils/ng-utils/README.md +0 -1
  55. package/schematics/src/utils/ng-utils/ast-utils.d.ts +0 -99
  56. package/schematics/src/utils/ng-utils/ast-utils.js +0 -517
  57. package/schematics/src/utils/ng-utils/ast-utils.js.map +0 -1
  58. package/schematics/src/utils/ng-utils/ng-ast-utils.d.ts +0 -5
  59. package/schematics/src/utils/ng-utils/ng-ast-utils.js +0 -67
  60. package/schematics/src/utils/ng-utils/ng-ast-utils.js.map +0 -1
  61. package/schematics/src/utils/ng-utils/project.d.ts +0 -2
  62. package/schematics/src/utils/ng-utils/project.js +0 -27
  63. package/schematics/src/utils/ng-utils/project.js.map +0 -1
  64. package/schematics/src/utils/ng-utils/standalone/app_config.d.ts +0 -16
  65. package/schematics/src/utils/ng-utils/standalone/app_config.js +0 -84
  66. package/schematics/src/utils/ng-utils/standalone/app_config.js.map +0 -1
  67. package/schematics/src/utils/ng-utils/standalone/code_block.d.ts +0 -46
  68. package/schematics/src/utils/ng-utils/standalone/code_block.js +0 -73
  69. package/schematics/src/utils/ng-utils/standalone/code_block.js.map +0 -1
  70. package/schematics/src/utils/ng-utils/standalone/index.d.ts +0 -1
  71. package/schematics/src/utils/ng-utils/standalone/index.js +0 -7
  72. package/schematics/src/utils/ng-utils/standalone/index.js.map +0 -1
  73. package/schematics/src/utils/ng-utils/standalone/rules.d.ts +0 -38
  74. package/schematics/src/utils/ng-utils/standalone/rules.js +0 -195
  75. package/schematics/src/utils/ng-utils/standalone/rules.js.map +0 -1
  76. package/schematics/src/utils/ng-utils/standalone/util.d.ts +0 -28
  77. package/schematics/src/utils/ng-utils/standalone/util.js +0 -138
  78. package/schematics/src/utils/ng-utils/standalone/util.js.map +0 -1
@@ -1,11 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, NgZone, PLATFORM_ID, Inject, InjectionToken, inject, INJECTOR, Optional, SkipSelf, ErrorHandler, ɵisPromise as _isPromise, computed, makeEnvironmentProviders, ENVIRONMENT_INITIALIZER, NgModule, APP_BOOTSTRAP_LISTENER } from '@angular/core';
3
- import { Observable, config, Subject, of, forkJoin, throwError, EMPTY, from, isObservable, ReplaySubject } from 'rxjs';
4
- import { share, map, shareReplay, filter, take, exhaustMap, mergeMap, defaultIfEmpty, catchError, takeUntil, distinctUntilChanged, tap, startWith, pairwise } from 'rxjs/operators';
2
+ import { Injectable, NgZone, PLATFORM_ID, Inject, InjectionToken, inject, INJECTOR, Optional, SkipSelf, ErrorHandler, ɵisPromise as _isPromise, makeEnvironmentProviders, ENVIRONMENT_INITIALIZER, NgModule, APP_BOOTSTRAP_LISTENER } from '@angular/core';
3
+ import { toSignal } from '@angular/core/rxjs-interop';
4
+ import { Observable, config, Subject, of, forkJoin, throwError, EMPTY, from, isObservable, shareReplay as shareReplay$1, take as take$1, debounceTime, asapScheduler, map as map$1, catchError as catchError$1, distinctUntilChanged, ReplaySubject } from 'rxjs';
5
5
  import * as i1 from '@ngxs/store/internals';
6
6
  import { ɵOrderedSubject as _OrderedSubject, ɵmemoize as _memoize, ɵgetStoreMetadata as _getStoreMetadata, ɵgetSelectorMetadata as _getSelectorMetadata, ɵMETA_KEY as _META_KEY, ɵINITIAL_STATE_TOKEN as _INITIAL_STATE_TOKEN, ɵNgxsAppBootstrappedState as _NgxsAppBootstrappedState, ɵNGXS_STATE_CONTEXT_FACTORY as _NGXS_STATE_CONTEXT_FACTORY, ɵNGXS_STATE_FACTORY as _NGXS_STATE_FACTORY, ɵensureStoreMetadata as _ensureStoreMetadata, ɵMETA_OPTIONS_KEY as _META_OPTIONS_KEY, ɵensureSelectorMetadata as _ensureSelectorMetadata } from '@ngxs/store/internals';
7
7
  export { StateToken } from '@ngxs/store/internals';
8
8
  import { isPlatformServer } from '@angular/common';
9
+ import { share, map, shareReplay, filter, take, exhaustMap, mergeMap, defaultIfEmpty, catchError, takeUntil, tap, startWith, pairwise } from 'rxjs/operators';
9
10
  import { NGXS_PLUGINS, getActionTypeFromInstance, setValue, getValue, InitState, UpdateState } from '@ngxs/store/plugins';
10
11
  export { InitState, NGXS_PLUGINS, UpdateState, actionMatcher, getActionTypeFromInstance, getValue, setValue } from '@ngxs/store/plugins';
11
12
  import { isStateOperator } from '@ngxs/store/operators';
@@ -17,10 +18,10 @@ class NoopNgxsExecutionStrategy {
17
18
  leave(func) {
18
19
  return func();
19
20
  }
20
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NoopNgxsExecutionStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
21
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NoopNgxsExecutionStrategy, providedIn: 'root' }); }
21
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NoopNgxsExecutionStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
22
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NoopNgxsExecutionStrategy, providedIn: 'root' }); }
22
23
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NoopNgxsExecutionStrategy, decorators: [{
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NoopNgxsExecutionStrategy, decorators: [{
24
25
  type: Injectable,
25
26
  args: [{ providedIn: 'root' }]
26
27
  }] });
@@ -102,10 +103,10 @@ class DispatchOutsideZoneNgxsExecutionStrategy {
102
103
  }
103
104
  return func();
104
105
  }
105
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DispatchOutsideZoneNgxsExecutionStrategy, deps: [{ token: i0.NgZone }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
106
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DispatchOutsideZoneNgxsExecutionStrategy, providedIn: 'root' }); }
106
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: DispatchOutsideZoneNgxsExecutionStrategy, deps: [{ token: i0.NgZone }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
107
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: DispatchOutsideZoneNgxsExecutionStrategy, providedIn: 'root' }); }
107
108
  }
108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DispatchOutsideZoneNgxsExecutionStrategy, decorators: [{
109
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: DispatchOutsideZoneNgxsExecutionStrategy, decorators: [{
109
110
  type: Injectable,
110
111
  args: [{ providedIn: 'root' }]
111
112
  }], ctorParameters: () => [{ type: i0.NgZone }, { type: undefined, decorators: [{
@@ -160,10 +161,10 @@ class InternalNgxsExecutionStrategy {
160
161
  leave(func) {
161
162
  return this._executionStrategy.leave(func);
162
163
  }
163
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: InternalNgxsExecutionStrategy, deps: [{ token: NGXS_EXECUTION_STRATEGY }], target: i0.ɵɵFactoryTarget.Injectable }); }
164
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: InternalNgxsExecutionStrategy, providedIn: 'root' }); }
164
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: InternalNgxsExecutionStrategy, deps: [{ token: NGXS_EXECUTION_STRATEGY }], target: i0.ɵɵFactoryTarget.Injectable }); }
165
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: InternalNgxsExecutionStrategy, providedIn: 'root' }); }
165
166
  }
166
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: InternalNgxsExecutionStrategy, decorators: [{
167
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: InternalNgxsExecutionStrategy, decorators: [{
167
168
  type: Injectable,
168
169
  args: [{ providedIn: 'root' }]
169
170
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -226,10 +227,10 @@ class InternalActions extends _OrderedSubject {
226
227
  ngOnDestroy() {
227
228
  this.complete();
228
229
  }
229
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: InternalActions, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
230
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: InternalActions, providedIn: 'root' }); }
230
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: InternalActions, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
231
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: InternalActions, providedIn: 'root' }); }
231
232
  }
232
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: InternalActions, decorators: [{
233
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: InternalActions, decorators: [{
233
234
  type: Injectable,
234
235
  args: [{ providedIn: 'root' }]
235
236
  }] });
@@ -255,10 +256,10 @@ class Actions extends Observable {
255
256
  observer.add(childSubscription);
256
257
  });
257
258
  }
258
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: Actions, deps: [{ token: InternalActions }, { token: InternalNgxsExecutionStrategy }], target: i0.ɵɵFactoryTarget.Injectable }); }
259
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: Actions, providedIn: 'root' }); }
259
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: Actions, deps: [{ token: InternalActions }, { token: InternalNgxsExecutionStrategy }], target: i0.ɵɵFactoryTarget.Injectable }); }
260
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: Actions, providedIn: 'root' }); }
260
261
  }
261
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: Actions, decorators: [{
262
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: Actions, decorators: [{
262
263
  type: Injectable,
263
264
  args: [{ providedIn: 'root' }]
264
265
  }], ctorParameters: () => [{ type: InternalActions }, { type: InternalNgxsExecutionStrategy }] });
@@ -281,10 +282,10 @@ class PluginManager {
281
282
  const handlers = this._pluginHandlers || [];
282
283
  return handlers.map((plugin) => (plugin.handle ? plugin.handle.bind(plugin) : plugin));
283
284
  }
284
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: PluginManager, deps: [{ token: PluginManager, optional: true, skipSelf: true }, { token: NGXS_PLUGINS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
285
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: PluginManager }); }
285
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: PluginManager, deps: [{ token: PluginManager, optional: true, skipSelf: true }, { token: NGXS_PLUGINS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
286
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: PluginManager }); }
286
287
  }
287
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: PluginManager, decorators: [{
288
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: PluginManager, decorators: [{
288
289
  type: Injectable
289
290
  }], ctorParameters: () => [{ type: PluginManager, decorators: [{
290
291
  type: Optional
@@ -369,10 +370,10 @@ function fallbackSubscriber(ngZone) {
369
370
  * The dispatcher then asynchronously pushes the result from this stream onto the main action stream as a result.
370
371
  */
371
372
  class InternalDispatchedActionResults extends Subject {
372
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: InternalDispatchedActionResults, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
373
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: InternalDispatchedActionResults, providedIn: 'root' }); }
373
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: InternalDispatchedActionResults, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
374
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: InternalDispatchedActionResults, providedIn: 'root' }); }
374
375
  }
375
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: InternalDispatchedActionResults, decorators: [{
376
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: InternalDispatchedActionResults, decorators: [{
376
377
  type: Injectable,
377
378
  args: [{ providedIn: 'root' }]
378
379
  }] });
@@ -444,10 +445,10 @@ class InternalDispatcher {
444
445
  }))
445
446
  .pipe(shareReplay());
446
447
  }
447
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: InternalDispatcher, deps: [{ token: i0.NgZone }, { token: InternalActions }, { token: InternalDispatchedActionResults }, { token: PluginManager }, { token: i1.ɵStateStream }, { token: InternalNgxsExecutionStrategy }], target: i0.ɵɵFactoryTarget.Injectable }); }
448
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: InternalDispatcher, providedIn: 'root' }); }
448
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: InternalDispatcher, deps: [{ token: i0.NgZone }, { token: InternalActions }, { token: InternalDispatchedActionResults }, { token: PluginManager }, { token: i1.ɵStateStream }, { token: InternalNgxsExecutionStrategy }], target: i0.ɵɵFactoryTarget.Injectable }); }
449
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: InternalDispatcher, providedIn: 'root' }); }
449
450
  }
450
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: InternalDispatcher, decorators: [{
451
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: InternalDispatcher, decorators: [{
451
452
  type: Injectable,
452
453
  args: [{ providedIn: 'root' }]
453
454
  }], ctorParameters: () => [{ type: i0.NgZone }, { type: InternalActions }, { type: InternalDispatchedActionResults }, { type: PluginManager }, { type: i1.ɵStateStream }, { type: InternalNgxsExecutionStrategy }] });
@@ -492,8 +493,8 @@ class NgxsConfig {
492
493
  suppressErrors: false
493
494
  };
494
495
  }
495
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
496
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsConfig, providedIn: 'root', useFactory: () => {
496
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
497
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsConfig, providedIn: 'root', useFactory: () => {
497
498
  const defaultConfig = new NgxsConfig();
498
499
  const config = inject(NGXS_OPTIONS);
499
500
  return {
@@ -506,7 +507,7 @@ class NgxsConfig {
506
507
  };
507
508
  } }); }
508
509
  }
509
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsConfig, decorators: [{
510
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsConfig, decorators: [{
510
511
  type: Injectable,
511
512
  args: [{
512
513
  providedIn: 'root',
@@ -590,10 +591,10 @@ class InternalStateOperations {
590
591
  // Set the state to the current + new
591
592
  stateOperations.setState({ ...currentState, ...results.defaults });
592
593
  }
593
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: InternalStateOperations, deps: [{ token: i1.ɵStateStream }, { token: InternalDispatcher }, { token: NgxsConfig }], target: i0.ɵɵFactoryTarget.Injectable }); }
594
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: InternalStateOperations, providedIn: 'root' }); }
594
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: InternalStateOperations, deps: [{ token: i1.ɵStateStream }, { token: InternalDispatcher }, { token: NgxsConfig }], target: i0.ɵɵFactoryTarget.Injectable }); }
595
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: InternalStateOperations, providedIn: 'root' }); }
595
596
  }
596
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: InternalStateOperations, decorators: [{
597
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: InternalStateOperations, decorators: [{
597
598
  type: Injectable,
598
599
  args: [{ providedIn: 'root' }]
599
600
  }], ctorParameters: () => [{ type: i1.ɵStateStream }, { type: InternalDispatcher }, { type: NgxsConfig }] });
@@ -1065,10 +1066,10 @@ class StateContextFactory {
1065
1066
  }
1066
1067
  };
1067
1068
  }
1068
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: StateContextFactory, deps: [{ token: InternalStateOperations }], target: i0.ɵɵFactoryTarget.Injectable }); }
1069
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: StateContextFactory, providedIn: 'root' }); }
1069
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: StateContextFactory, deps: [{ token: InternalStateOperations }], target: i0.ɵɵFactoryTarget.Injectable }); }
1070
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: StateContextFactory, providedIn: 'root' }); }
1070
1071
  }
1071
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: StateContextFactory, decorators: [{
1072
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: StateContextFactory, decorators: [{
1072
1073
  type: Injectable,
1073
1074
  args: [{ providedIn: 'root' }]
1074
1075
  }], ctorParameters: () => [{ type: InternalStateOperations }] });
@@ -1176,10 +1177,10 @@ class NgxsUnhandledActionsLogger {
1176
1177
  : action.type;
1177
1178
  console.warn(`The ${action} action has been dispatched but hasn't been handled. This may happen if the state with an action handler for this action is not registered.`);
1178
1179
  }
1179
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsUnhandledActionsLogger, deps: [{ token: NGXS_DEVELOPMENT_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable }); }
1180
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsUnhandledActionsLogger }); }
1180
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsUnhandledActionsLogger, deps: [{ token: NGXS_DEVELOPMENT_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable }); }
1181
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsUnhandledActionsLogger }); }
1181
1182
  }
1182
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsUnhandledActionsLogger, decorators: [{
1183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsUnhandledActionsLogger, decorators: [{
1183
1184
  type: Injectable
1184
1185
  }], ctorParameters: () => [{ type: undefined, decorators: [{
1185
1186
  type: Inject,
@@ -1205,10 +1206,10 @@ class NgxsUnhandledErrorHandler {
1205
1206
  // `handleError` (see `_callAndReportToErrorHandler`).
1206
1207
  this._ngZone.runOutsideAngular(() => this._errorHandler.handleError(error));
1207
1208
  }
1208
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsUnhandledErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1209
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsUnhandledErrorHandler, providedIn: 'root' }); }
1209
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsUnhandledErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1210
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsUnhandledErrorHandler, providedIn: 'root' }); }
1210
1211
  }
1211
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsUnhandledErrorHandler, decorators: [{
1212
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsUnhandledErrorHandler, decorators: [{
1212
1213
  type: Injectable,
1213
1214
  args: [{ providedIn: 'root' }]
1214
1215
  }] });
@@ -1476,9 +1477,9 @@ class StateFactory {
1476
1477
  }
1477
1478
  addRuntimeInfoToMeta(meta, path) {
1478
1479
  this.statePaths[meta.name] = path;
1479
- // TODO: v4 - we plan to get rid of the path property because it is non-deterministic
1480
+ // TODO: versions after v3 - we plan to get rid of the `path` property because it is non-deterministic
1480
1481
  // we can do this when we get rid of the incorrectly exposed getStoreMetadata
1481
- // We will need to come up with an alternative in v4 because this is used by many plugins
1482
+ // We will need to come up with an alternative to what was exposed in v3 because this is used by many plugins
1482
1483
  meta.path = path;
1483
1484
  }
1484
1485
  hasBeenMountedAndBootstrapped(name, path) {
@@ -1487,10 +1488,10 @@ class StateFactory {
1487
1488
  // its lifecycle is in 'bootstrapped' state.
1488
1489
  return this.statesByName[name] && valueIsBootstrappedInInitialState;
1489
1490
  }
1490
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: StateFactory, deps: [{ token: i0.Injector }, { token: NgxsConfig }, { token: StateFactory, optional: true, skipSelf: true }, { token: InternalActions }, { token: InternalDispatchedActionResults }, { token: StateContextFactory }, { token: _INITIAL_STATE_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1491
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: StateFactory }); }
1491
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: StateFactory, deps: [{ token: i0.Injector }, { token: NgxsConfig }, { token: StateFactory, optional: true, skipSelf: true }, { token: InternalActions }, { token: InternalDispatchedActionResults }, { token: StateContextFactory }, { token: _INITIAL_STATE_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1492
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: StateFactory }); }
1492
1493
  }
1493
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: StateFactory, decorators: [{
1494
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: StateFactory, decorators: [{
1494
1495
  type: Injectable
1495
1496
  }], ctorParameters: () => [{ type: i0.Injector }, { type: NgxsConfig }, { type: StateFactory, decorators: [{
1496
1497
  type: Optional
@@ -1515,7 +1516,7 @@ class Store {
1515
1516
  * because state is being changed actually within the `<root>` zone, see `InternalDispatcher#dispatchSingle`.
1516
1517
  * All selects would use this stream, and it would call leave only once for any state change across all active selectors.
1517
1518
  */
1518
- this._selectableStateStream = this._stateStream.pipe(leaveNgxs(this._internalExecutionStrategy), shareReplay({ bufferSize: 1, refCount: true }));
1519
+ this._selectableStateStream = this._stateStream.pipe(leaveNgxs(this._internalExecutionStrategy), shareReplay$1({ bufferSize: 1, refCount: true }));
1519
1520
  this.initStateStream(initialStateValue);
1520
1521
  }
1521
1522
  /**
@@ -1529,20 +1530,13 @@ class Store {
1529
1530
  */
1530
1531
  select(selector) {
1531
1532
  const selectorFn = this.getStoreBoundSelectorFn(selector);
1532
- return this._selectableStateStream.pipe(map(selectorFn), catchError((error) => {
1533
- // if error is TypeError we swallow it to prevent usual errors with property access
1534
- if (this._config.selectorOptions.suppressErrors && error instanceof TypeError) {
1535
- return of(undefined);
1536
- }
1537
- // rethrow other errors
1538
- return throwError(error);
1539
- }), distinctUntilChanged(), leaveNgxs(this._internalExecutionStrategy));
1533
+ return this.selectFromStateStream(this._selectableStateStream, selectorFn);
1540
1534
  }
1541
1535
  /**
1542
1536
  * Select one slice of data from the store.
1543
1537
  */
1544
1538
  selectOnce(selector) {
1545
- return this.select(selector).pipe(take(1));
1539
+ return this.select(selector).pipe(take$1(1));
1546
1540
  }
1547
1541
  /**
1548
1542
  * Select a snapshot from the state.
@@ -1556,7 +1550,32 @@ class Store {
1556
1550
  */
1557
1551
  selectSignal(selector) {
1558
1552
  const selectorFn = this.getStoreBoundSelectorFn(selector);
1559
- return computed(() => selectorFn(this._stateStream.state()));
1553
+ const initialValue = selectorFn(this._stateStream.value);
1554
+ const observable = this.selectFromStateStream(
1555
+ // https://github.com/ngxs/store/issues/2180
1556
+ // This is explicitly piped with the `debounceTime` to prevent synchronous
1557
+ // signal updates. Signal updates occurring within effects can lead to errors
1558
+ // stating that signal writes are not permitted in effects. This approach helps
1559
+ // decouple signal updates from synchronous changes, ensuring compliance with
1560
+ // constraints on updates inside effects.
1561
+ // Developers should never rely on manually reading the signal after the state
1562
+ // has been updated, whether synchronously or asynchronously, since the expected
1563
+ // result may not be immediately available. To retrieve the current slice of the
1564
+ // state, use `selectSnapshot` instead of directly accessing the signal. Signals
1565
+ // are intended for use in templates or effects, as they always guarantee
1566
+ // consistency with the latest signal value.
1567
+ this._selectableStateStream.pipe(debounceTime(0, asapScheduler)), selectorFn);
1568
+ return toSignal(observable, { initialValue });
1569
+ }
1570
+ selectFromStateStream(observable, selectorFn) {
1571
+ return observable.pipe(map$1(selectorFn), catchError$1((error) => {
1572
+ // if error is TypeError we swallow it to prevent usual errors with property access
1573
+ if (this._config.selectorOptions.suppressErrors && error instanceof TypeError) {
1574
+ return of(undefined);
1575
+ }
1576
+ // rethrow other errors
1577
+ return throwError(error);
1578
+ }), distinctUntilChanged(), leaveNgxs(this._internalExecutionStrategy));
1560
1579
  }
1561
1580
  /**
1562
1581
  * Allow the user to subscribe to the root of the state
@@ -1591,10 +1610,10 @@ class Store {
1591
1610
  this._stateStream.next(initialStateValue);
1592
1611
  }
1593
1612
  }
1594
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: Store, deps: [{ token: i1.ɵStateStream }, { token: InternalStateOperations }, { token: NgxsConfig }, { token: InternalNgxsExecutionStrategy }, { token: StateFactory }, { token: _INITIAL_STATE_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1595
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: Store, providedIn: 'root' }); }
1613
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: Store, deps: [{ token: i1.ɵStateStream }, { token: InternalStateOperations }, { token: NgxsConfig }, { token: InternalNgxsExecutionStrategy }, { token: StateFactory }, { token: _INITIAL_STATE_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1614
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: Store, providedIn: 'root' }); }
1596
1615
  }
1597
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: Store, decorators: [{
1616
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: Store, decorators: [{
1598
1617
  type: Injectable,
1599
1618
  args: [{ providedIn: 'root' }]
1600
1619
  }], ctorParameters: () => [{ type: i1.ɵStateStream }, { type: InternalStateOperations }, { type: NgxsConfig }, { type: InternalNgxsExecutionStrategy }, { type: StateFactory }, { type: undefined, decorators: [{
@@ -1650,10 +1669,10 @@ class SelectFactory {
1650
1669
  SelectFactory.store = null;
1651
1670
  SelectFactory.config = null;
1652
1671
  }
1653
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SelectFactory, deps: [{ token: Store }, { token: NgxsConfig }], target: i0.ɵɵFactoryTarget.Injectable }); }
1654
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SelectFactory, providedIn: 'root' }); }
1672
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: SelectFactory, deps: [{ token: Store }, { token: NgxsConfig }], target: i0.ɵɵFactoryTarget.Injectable }); }
1673
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: SelectFactory, providedIn: 'root' }); }
1655
1674
  }
1656
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SelectFactory, decorators: [{
1675
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: SelectFactory, decorators: [{
1657
1676
  type: Injectable,
1658
1677
  args: [{ providedIn: 'root' }]
1659
1678
  }], ctorParameters: () => [{ type: Store }, { type: NgxsConfig }] });
@@ -1721,10 +1740,10 @@ class LifecycleStateManager {
1721
1740
  _getStateContext(mappedStore) {
1722
1741
  return this._stateContextFactory.createStateContext(mappedStore);
1723
1742
  }
1724
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: LifecycleStateManager, deps: [{ token: Store }, { token: InternalStateOperations }, { token: StateContextFactory }, { token: i1.ɵNgxsAppBootstrappedState }], target: i0.ɵɵFactoryTarget.Injectable }); }
1725
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: LifecycleStateManager, providedIn: 'root' }); }
1743
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: LifecycleStateManager, deps: [{ token: Store }, { token: InternalStateOperations }, { token: StateContextFactory }, { token: i1.ɵNgxsAppBootstrappedState }], target: i0.ɵɵFactoryTarget.Injectable }); }
1744
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: LifecycleStateManager, providedIn: 'root' }); }
1726
1745
  }
1727
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: LifecycleStateManager, decorators: [{
1746
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: LifecycleStateManager, decorators: [{
1728
1747
  type: Injectable,
1729
1748
  args: [{ providedIn: 'root' }]
1730
1749
  }], ctorParameters: () => [{ type: Store }, { type: InternalStateOperations }, { type: StateContextFactory }, { type: i1.ɵNgxsAppBootstrappedState }] });
@@ -1816,11 +1835,11 @@ class NgxsRootModule {
1816
1835
  constructor() {
1817
1836
  rootStoreInitializer();
1818
1837
  }
1819
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsRootModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1820
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: NgxsRootModule }); }
1821
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsRootModule }); }
1838
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsRootModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1839
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.6", ngImport: i0, type: NgxsRootModule }); }
1840
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsRootModule }); }
1822
1841
  }
1823
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsRootModule, decorators: [{
1842
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsRootModule, decorators: [{
1824
1843
  type: NgModule
1825
1844
  }], ctorParameters: () => [] });
1826
1845
 
@@ -1831,11 +1850,11 @@ class NgxsFeatureModule {
1831
1850
  constructor() {
1832
1851
  featureStatesInitializer();
1833
1852
  }
1834
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsFeatureModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1835
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: NgxsFeatureModule }); }
1836
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsFeatureModule }); }
1853
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsFeatureModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1854
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.6", ngImport: i0, type: NgxsFeatureModule }); }
1855
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsFeatureModule }); }
1837
1856
  }
1838
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsFeatureModule, decorators: [{
1857
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsFeatureModule, decorators: [{
1839
1858
  type: NgModule
1840
1859
  }], ctorParameters: () => [] });
1841
1860
 
@@ -1909,11 +1928,11 @@ class NgxsModule {
1909
1928
  providers: getFeatureProviders(states)
1910
1929
  };
1911
1930
  }
1912
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1913
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: NgxsModule }); }
1914
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsModule }); }
1931
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1932
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.6", ngImport: i0, type: NgxsModule }); }
1933
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsModule }); }
1915
1934
  }
1916
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsModule, decorators: [{
1935
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsModule, decorators: [{
1917
1936
  type: NgModule
1918
1937
  }] });
1919
1938
 
@@ -2131,11 +2150,11 @@ class NgxsDevelopmentModule {
2131
2150
  ]
2132
2151
  };
2133
2152
  }
2134
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsDevelopmentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2135
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: NgxsDevelopmentModule }); }
2136
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsDevelopmentModule }); }
2153
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsDevelopmentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2154
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.6", ngImport: i0, type: NgxsDevelopmentModule }); }
2155
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsDevelopmentModule }); }
2137
2156
  }
2138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NgxsDevelopmentModule, decorators: [{
2157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: NgxsDevelopmentModule, decorators: [{
2139
2158
  type: NgModule
2140
2159
  }] });
2141
2160
  function withNgxsDevelopmentOptions(options) {