@ngxs/store 3.8.2-dev.master-0947c22 → 3.8.2-dev.master-0497fe4

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 (31) hide show
  1. package/esm2022/internals/initial-state.mjs +2 -2
  2. package/esm2022/internals/internal-tokens.mjs +2 -2
  3. package/esm2022/internals/symbols.mjs +1 -1
  4. package/esm2022/plugins/symbols.mjs +2 -2
  5. package/esm2022/src/decorators/action.mjs +2 -4
  6. package/esm2022/src/decorators/selector/selector.mjs +2 -4
  7. package/esm2022/src/decorators/state.mjs +2 -2
  8. package/esm2022/src/dev-features/symbols.mjs +2 -2
  9. package/esm2022/src/execution/dispatch-outside-zone-ngxs-execution-strategy.mjs +2 -4
  10. package/esm2022/src/execution/symbols.mjs +2 -2
  11. package/esm2022/src/internal/dispatcher.mjs +2 -2
  12. package/esm2022/src/internal/internals.mjs +4 -8
  13. package/esm2022/src/internal/lifecycle-state-manager.mjs +2 -2
  14. package/esm2022/src/internal/state-factory.mjs +2 -2
  15. package/esm2022/src/internal/state-operations.mjs +2 -2
  16. package/esm2022/src/internal/state-operators.mjs +2 -2
  17. package/esm2022/src/selectors/create-model-selector.mjs +2 -2
  18. package/esm2022/src/selectors/create-pick-selector.mjs +2 -2
  19. package/esm2022/src/selectors/create-property-selectors.mjs +2 -2
  20. package/esm2022/src/standalone-features/initializers.mjs +2 -2
  21. package/esm2022/src/symbols.mjs +2 -2
  22. package/fesm2022/ngxs-store-internals.mjs +2 -2
  23. package/fesm2022/ngxs-store-internals.mjs.map +1 -1
  24. package/fesm2022/ngxs-store-plugins.mjs +1 -1
  25. package/fesm2022/ngxs-store-plugins.mjs.map +1 -1
  26. package/fesm2022/ngxs-store.mjs +19 -29
  27. package/fesm2022/ngxs-store.mjs.map +1 -1
  28. package/internals/index.d.ts +4 -0
  29. package/package.json +1 -1
  30. package/schematics/src/starter-kit/files/store/dashboard/index.ts__template__ +0 -7
  31. package/schematics/src/starter-kit/files/store/store.config.ts__template__ +2 -2
@@ -41,6 +41,9 @@ interface ɵStoreOptions<T> {
41
41
  defaults?: T;
42
42
  /**
43
43
  * Sub states for the given state.
44
+ *
45
+ * @deprecated
46
+ * Read the deprecation notice at this link: https://ngxs.io/recipes/sub-states-deprecation.
44
47
  */
45
48
  children?: ɵStateClass[];
46
49
  }
@@ -54,6 +57,7 @@ interface ɵMetaDataModel {
54
57
  defaults: any;
55
58
  path: string | null;
56
59
  makeRootSelector: ɵSelectorFactory | null;
60
+ /** @deprecated */
57
61
  children?: ɵStateClassInternal[];
58
62
  }
59
63
  interface ɵSelectorMetaDataModel {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngxs/store",
3
- "version": "3.8.2-dev.master-0947c22",
3
+ "version": "3.8.2-dev.master-0497fe4",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -1,11 +1,4 @@
1
- import { State } from '@ngxs/store';
2
1
  import { DictionaryState } from './states/dictionary/dictionary.state';
3
2
  import { UserState } from './states/user/user.state';
4
3
 
5
4
  export const DashboardStates = [DictionaryState, UserState];
6
-
7
- @State({
8
- name: 'dashboardState',
9
- children: DashboardStates
10
- })
11
- export class DashboardState {}
@@ -1,10 +1,10 @@
1
1
  import { AuthState } from './auth/auth.state';
2
- import { DashboardStates, DashboardState } from './dashboard';
2
+ import { DashboardStates } from './dashboard';
3
3
  import { NgxsConfig } from '@ngxs/store/src/symbols';
4
4
  import { NgxsDevtoolsOptions } from '@ngxs/devtools-plugin/src/symbols';
5
5
  import { NgxsLoggerPluginOptions } from '@ngxs/logger-plugin/src/symbols';
6
6
 
7
- export const STATES_MODULES = [AuthState, DashboardState, ...DashboardStates];
7
+ export const STATES_MODULES = [AuthState, ...DashboardStates];
8
8
 
9
9
  export const OPTIONS_CONFIG: Partial<NgxsConfig> = {
10
10
  /**