@ngxs/store 21.0.0-dev.master-e60620c → 21.0.0-dev.master-0291def

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,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { ModuleWithProviders, Signal, EnvironmentProviders, Type } from '@angular/core';
3
- import { ɵActionOptions as _ActionOptions, StateToken, ɵSharedSelectorOptions as _SharedSelectorOptions, ɵStateClass as _StateClass, ɵStoreOptions as _StoreOptions } from '@ngxs/store/internals';
3
+ import { ɵActionOptions as _ActionOptions, StateToken, ɵSharedSelectorOptions as _SharedSelectorOptions, ɵStateClass as _StateClass, ɵStoreOptions as _StoreOptions, ɵPlainObjectOf as _PlainObjectOf, ɵActionHandlerMetaData as _ActionHandlerMetaData, ɵStateClassInternal as _StateClassInternal } from '@ngxs/store/internals';
4
4
  export { ɵActionOptions as ActionOptions, StateToken } from '@ngxs/store/internals';
5
5
  import { Observable, Subscription, OperatorFunction } from 'rxjs';
6
6
  import { StateOperator } from '@ngxs/store/operators';
@@ -722,7 +722,22 @@ declare function lazyProvider(factory: () => Promise<EnvironmentProviders | Defa
722
722
  */
723
723
  declare function registerNgxsPlugin(plugin: Type<NgxsPlugin> | NgxsPluginFn): void;
724
724
 
725
+ type StatesByName = _PlainObjectOf<_StateClassInternal>;
726
+ interface MappedStore {
727
+ name: string;
728
+ isInitialised: boolean;
729
+ actions: _PlainObjectOf<_ActionHandlerMetaData[]>;
730
+ defaults: any;
731
+ instance: any;
732
+ path: string;
733
+ }
734
+
725
735
  declare function ɵprovideNgxsInternalStateTokens(): i0.EnvironmentProviders;
736
+ declare function ɵgetTypedNgxsStateFactory(stateFactory: any): {
737
+ states: MappedStore[];
738
+ statesByName: StatesByName;
739
+ statePaths: _PlainObjectOf<string>;
740
+ };
726
741
 
727
- export { Action, ActionDirector, ActionStatus, Actions, AsyncReturnType, NgxsConfig, NgxsDevelopmentModule, NgxsModule, NgxsSimpleChange, NgxsUnhandledActionsLogger, NgxsUnhandledErrorHandler, Select, Selector, SelectorOptions, State, StateContextDestroyedError, Store, createDispatchMap, createModelSelector, createPickSelector, createPropertySelectors, createSelectMap, createSelector, dispatch, lazyProvider, ofAction, ofActionCanceled, ofActionCompleted, ofActionDispatched, ofActionErrored, ofActionSuccessful, provideStates, provideStore, registerNgxsPlugin, select, withNgxsDevelopmentOptions, withNgxsNoopExecutionStrategy, withNgxsPendingTasks, withNgxsPlugin, withNgxsPreboot, NgxsFeatureModule as ɵNgxsFeatureModule, NgxsRootModule as ɵNgxsRootModule, ɵprovideNgxsInternalStateTokens };
742
+ export { Action, ActionDirector, ActionStatus, Actions, AsyncReturnType, NgxsConfig, NgxsDevelopmentModule, NgxsModule, NgxsSimpleChange, NgxsUnhandledActionsLogger, NgxsUnhandledErrorHandler, Select, Selector, SelectorOptions, State, StateContextDestroyedError, Store, createDispatchMap, createModelSelector, createPickSelector, createPropertySelectors, createSelectMap, createSelector, dispatch, lazyProvider, ofAction, ofActionCanceled, ofActionCompleted, ofActionDispatched, ofActionErrored, ofActionSuccessful, provideStates, provideStore, registerNgxsPlugin, select, withNgxsDevelopmentOptions, withNgxsNoopExecutionStrategy, withNgxsPendingTasks, withNgxsPlugin, withNgxsPreboot, NgxsFeatureModule as ɵNgxsFeatureModule, NgxsRootModule as ɵNgxsRootModule, ɵgetTypedNgxsStateFactory, ɵprovideNgxsInternalStateTokens };
728
743
  export type { ActionCompletion, ActionContext, ActionDef, ActionMap, ActionType, NgxsAfterBootstrap, NgxsDevelopmentOptions, NgxsModuleOptions, NgxsOnChanges, NgxsOnInit, NgxsUnhandledErrorContext, PropertySelectors, SelectorMap, StateContext, TypedSelector, ɵSelectorDef, ɵSelectorFunc, ɵSelectorReturnType, ɵStateSelector };
@@ -251,10 +251,9 @@ declare function updateItem<T>(selector: number | NoInfer<Predicate<T>>, operato
251
251
  * Unlike `updateItem`, which stops at the first match, this operator walks
252
252
  * the entire array so all qualifying elements are updated in one pass.
253
253
  *
254
- * Always returns a new array reference, even when no elements matched or the
255
- * values produced by the operator are identical to the originals. Use
256
- * `updateItem` instead when only a single element needs updating and
257
- * referential equality on no-op updates matters.
254
+ * Returns the original array reference unchanged when no elements match the
255
+ * predicate, preserving referential equality for memoized selectors. A new
256
+ * array is returned only when at least one element was actually updated.
258
257
  *
259
258
  * @param selector - Predicate used to decide which elements to update.
260
259
  * @param operatorOrValue - Replacement value, or a state operator applied
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngxs/store",
3
- "version": "21.0.0-dev.master-e60620c",
3
+ "version": "21.0.0-dev.master-0291def",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -18,14 +18,14 @@
18
18
  "types": "./index.d.ts",
19
19
  "default": "./fesm2022/ngxs-store.mjs"
20
20
  },
21
- "./internals": {
22
- "types": "./internals/index.d.ts",
23
- "default": "./fesm2022/ngxs-store-internals.mjs"
24
- },
25
21
  "./experimental": {
26
22
  "types": "./experimental/index.d.ts",
27
23
  "default": "./fesm2022/ngxs-store-experimental.mjs"
28
24
  },
25
+ "./internals": {
26
+ "types": "./internals/index.d.ts",
27
+ "default": "./fesm2022/ngxs-store-internals.mjs"
28
+ },
29
29
  "./operators": {
30
30
  "types": "./operators/index.d.ts",
31
31
  "default": "./fesm2022/ngxs-store-operators.mjs"