@ngxs/store 19.0.0-dev.master-235f969 → 19.0.0-dev.master-7f34db4

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.
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Type, ModuleWithProviders, Signal, EnvironmentProviders } from '@angular/core';
2
+ import { ModuleWithProviders, Signal, EnvironmentProviders, Type } from '@angular/core';
3
3
  import { ɵSharedSelectorOptions as _SharedSelectorOptions, ɵStateClass as _StateClass, ɵActionOptions as _ActionOptions, StateToken, ɵStoreOptions as _StoreOptions } from '@ngxs/store/internals';
4
4
  export { ɵActionOptions as ActionOptions, StateToken } from '@ngxs/store/internals';
5
5
  import * as rxjs from 'rxjs';
@@ -9,11 +9,6 @@ export { StateOperator } from '@ngxs/store/operators';
9
9
  import { NgxsPlugin, NgxsPluginFn } from '@ngxs/store/plugins';
10
10
  export { InitState, NGXS_PLUGINS, NgxsNextPluginFn, NgxsPlugin, NgxsPluginFn, UpdateState, actionMatcher, getActionTypeFromInstance, getValue, setValue } from '@ngxs/store/plugins';
11
11
 
12
- interface NgxsExecutionStrategy {
13
- enter<T>(func: () => T): T;
14
- leave<T>(func: () => T): T;
15
- }
16
-
17
12
  /**
18
13
  * The NGXS config settings.
19
14
  */
@@ -36,18 +31,6 @@ declare class NgxsConfig {
36
31
  */
37
32
  strictContentSecurityPolicy: boolean;
38
33
  };
39
- /**
40
- * Determines the execution context to perform async operations inside. An implementation can be
41
- * provided to override the default behaviour where the async operations are run
42
- * outside Angular's zone but all observable behaviours of NGXS are run back inside Angular's zone.
43
- * These observable behaviours are from:
44
- * `store.selectSignal(...)`, `store.select(...)`, `actions.subscribe(...)` or `store.dispatch(...).subscribe(...)`
45
- * Every `zone.run` causes Angular to run change detection on the whole tree (`app.tick()`) so of your
46
- * application doesn't rely on zone.js running change detection then you can switch to the
47
- * `NoopNgxsExecutionStrategy` that doesn't interact with zones.
48
- * (default: null)
49
- */
50
- executionStrategy: Type<NgxsExecutionStrategy>;
51
34
  /**
52
35
  * Defining shared selector options
53
36
  */
@@ -448,13 +431,6 @@ declare function Selector(): SelectorType<unknown>;
448
431
  */
449
432
  declare function Selector<T extends SelectorDefTuple>(selectors: T): SelectorType<T>;
450
433
 
451
- declare class NoopNgxsExecutionStrategy implements NgxsExecutionStrategy {
452
- enter<T>(func: () => T): T;
453
- leave<T>(func: () => T): T;
454
- static ɵfac: i0.ɵɵFactoryDeclaration<NoopNgxsExecutionStrategy, never>;
455
- static ɵprov: i0.ɵɵInjectableDeclaration<NoopNgxsExecutionStrategy>;
456
- }
457
-
458
434
  interface NgxsUnhandledErrorContext {
459
435
  action: any;
460
436
  }
@@ -610,4 +586,4 @@ declare function createDispatchMap<T extends ActionMap>(actionMap: T): { readonl
610
586
 
611
587
  declare function ɵprovideNgxsInternalStateTokens(): i0.EnvironmentProviders;
612
588
 
613
- export { Action, type ActionCompletion, type ActionContext, type ActionDef, type ActionMap, ActionStatus, type ActionType, Actions, type NgxsAfterBootstrap, NgxsConfig, NgxsDevelopmentModule, type NgxsDevelopmentOptions, type NgxsExecutionStrategy, NgxsModule, type NgxsModuleOptions, type NgxsOnChanges, type NgxsOnInit, NgxsSimpleChange, NgxsUnhandledActionsLogger, type NgxsUnhandledErrorContext, NgxsUnhandledErrorHandler, NoopNgxsExecutionStrategy, type PropertySelectors, Select, Selector, type SelectorMap, SelectorOptions, State, type StateContext, Store, type TypedSelector, createDispatchMap, createModelSelector, createPickSelector, createPropertySelectors, createSelectMap, createSelector, dispatch, ofAction, ofActionCanceled, ofActionCompleted, ofActionDispatched, ofActionErrored, ofActionSuccessful, provideStates, provideStore, select, withNgxsDevelopmentOptions, withNgxsPendingTasks, withNgxsPlugin, withNgxsPreboot, NgxsFeatureModule as ɵNgxsFeatureModule, NgxsRootModule as ɵNgxsRootModule, type ɵSelectorDef, type ɵSelectorFunc, type ɵSelectorReturnType, type ɵStateSelector, ɵprovideNgxsInternalStateTokens };
589
+ export { Action, type ActionCompletion, type ActionContext, type ActionDef, type ActionMap, ActionStatus, type ActionType, Actions, type NgxsAfterBootstrap, NgxsConfig, NgxsDevelopmentModule, type NgxsDevelopmentOptions, NgxsModule, type NgxsModuleOptions, type NgxsOnChanges, type NgxsOnInit, NgxsSimpleChange, NgxsUnhandledActionsLogger, type NgxsUnhandledErrorContext, NgxsUnhandledErrorHandler, type PropertySelectors, Select, Selector, type SelectorMap, SelectorOptions, State, type StateContext, Store, type TypedSelector, createDispatchMap, createModelSelector, createPickSelector, createPropertySelectors, createSelectMap, createSelector, dispatch, ofAction, ofActionCanceled, ofActionCompleted, ofActionDispatched, ofActionErrored, ofActionSuccessful, provideStates, provideStore, select, withNgxsDevelopmentOptions, withNgxsPendingTasks, withNgxsPlugin, withNgxsPreboot, NgxsFeatureModule as ɵNgxsFeatureModule, NgxsRootModule as ɵNgxsRootModule, type ɵSelectorDef, type ɵSelectorFunc, type ɵSelectorReturnType, type ɵStateSelector, ɵprovideNgxsInternalStateTokens };
@@ -39,7 +39,7 @@ declare class NgxsActionCollector {
39
39
  * {
40
40
  * providers: [
41
41
  * NgxsActionCollector.collectActions(),
42
- * provideStore([MyState], { executionStrategy: ... }),
42
+ * provideStore([MyState]),
43
43
  * ],
44
44
  * // ...
45
45
  * }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngxs/store",
3
- "version": "19.0.0-dev.master-235f969",
3
+ "version": "19.0.0-dev.master-7f34db4",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -26,14 +26,14 @@
26
26
  "types": "./internals/index.d.ts",
27
27
  "default": "./fesm2022/ngxs-store-internals.mjs"
28
28
  },
29
- "./operators": {
30
- "types": "./operators/index.d.ts",
31
- "default": "./fesm2022/ngxs-store-operators.mjs"
32
- },
33
29
  "./plugins": {
34
30
  "types": "./plugins/index.d.ts",
35
31
  "default": "./fesm2022/ngxs-store-plugins.mjs"
36
32
  },
33
+ "./operators": {
34
+ "types": "./operators/index.d.ts",
35
+ "default": "./fesm2022/ngxs-store-operators.mjs"
36
+ },
37
37
  "./internals/testing": {
38
38
  "types": "./internals/testing/index.d.ts",
39
39
  "default": "./fesm2022/ngxs-store-internals-testing.mjs"