@ngxs/store 3.8.2-dev.master-450c70c → 3.8.2-dev.master-67d50ea

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
@@ -624,28 +624,6 @@ declare function provideStates(states: _StateClass[], ...features: EnvironmentPr
624
624
  */
625
625
  declare function withNgxsPlugin(plugin: Type<NgxsPlugin>): EnvironmentProviders;
626
626
 
627
- /**
628
- * This function registers a preboot function which will be called before the root
629
- * store initializer is run, but after all of the NGXS features are provided and
630
- * available for injection. This is useful for registering action stream listeners
631
- * before any action is dispatched.
632
- *
633
- * ```ts
634
- * bootstrapApplication(AppComponent, {
635
- * providers: [
636
- * provideStore(
637
- * [CountriesState],
638
- * withNgxsPreboot(() => {
639
- * const actions$ = inject(Actions);
640
- * actions$.subscribe(ctx => console.log(ctx));
641
- * })
642
- * )
643
- * ]
644
- * });
645
- * ```
646
- */
647
- declare function withNgxsPreboot(prebootFn: VoidFunction): i0.EnvironmentProviders;
648
-
649
627
  /**
650
628
  * This function serves as a utility and has multiple purposes.
651
629
  * Firstly, it allows you to select properties from the state class
@@ -669,4 +647,4 @@ declare function createSelectMap<T extends SelectorMap>(selectorMap: T): { reado
669
647
  type ActionMap = Record<string, ActionDef<any>>;
670
648
  declare function createDispatchMap<T extends ActionMap>(actionMap: T): { readonly [K in keyof T]: (...args: ConstructorParameters<T[K]>) => Observable<void>; };
671
649
 
672
- 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, withNgxsPlugin, withNgxsPreboot, NgxsFeatureModule as ɵNgxsFeatureModule, NgxsRootModule as ɵNgxsRootModule, type ɵSelectorDef, type ɵSelectorFunc, type ɵSelectorReturnType, type ɵStateSelector };
650
+ 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, withNgxsPlugin, NgxsFeatureModule as ɵNgxsFeatureModule, NgxsRootModule as ɵNgxsRootModule, type ɵSelectorDef, type ɵSelectorFunc, type ɵSelectorReturnType, type ɵStateSelector };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngxs/store",
3
- "version": "3.8.2-dev.master-450c70c",
3
+ "version": "3.8.2-dev.master-67d50ea",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -1,32 +0,0 @@
1
- import { InjectionToken, makeEnvironmentProviders } from '@angular/core';
2
- const NG_DEV_MODE = typeof ngDevMode !== 'undefined' && ngDevMode;
3
- /**
4
- * InjectionToken that registers preboot functions (called before the root initializer).
5
- */
6
- export const NGXS_PREBOOT_FNS = new InjectionToken(NG_DEV_MODE ? 'NGXS_PREBOOT_FNS' : '');
7
- /**
8
- * This function registers a preboot function which will be called before the root
9
- * store initializer is run, but after all of the NGXS features are provided and
10
- * available for injection. This is useful for registering action stream listeners
11
- * before any action is dispatched.
12
- *
13
- * ```ts
14
- * bootstrapApplication(AppComponent, {
15
- * providers: [
16
- * provideStore(
17
- * [CountriesState],
18
- * withNgxsPreboot(() => {
19
- * const actions$ = inject(Actions);
20
- * actions$.subscribe(ctx => console.log(ctx));
21
- * })
22
- * )
23
- * ]
24
- * });
25
- * ```
26
- */
27
- export function withNgxsPreboot(prebootFn) {
28
- return makeEnvironmentProviders([
29
- { provide: NGXS_PREBOOT_FNS, multi: true, useValue: prebootFn }
30
- ]);
31
- }
32
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJlYm9vdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3N0b3JlL3NyYy9zdGFuZGFsb25lLWZlYXR1cmVzL3ByZWJvb3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGNBQWMsRUFBRSx3QkFBd0IsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6RSxNQUFNLFdBQVcsR0FBRyxPQUFPLFNBQVMsS0FBSyxXQUFXLElBQUksU0FBUyxDQUFDO0FBRWxFOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sZ0JBQWdCLEdBQUcsSUFBSSxjQUFjLENBQ2hELFdBQVcsQ0FBQyxDQUFDLENBQUMsa0JBQWtCLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FDdEMsQ0FBQztBQUVGOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBbUJHO0FBQ0gsTUFBTSxVQUFVLGVBQWUsQ0FBQyxTQUF1Q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