@ngrx/data 21.1.1 → 22.0.0-beta.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngrx/data",
3
- "version": "21.1.1",
3
+ "version": "22.0.0-beta.1",
4
4
  "description": "API management for NgRx",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,11 +20,11 @@
20
20
  },
21
21
  "homepage": "https://github.com/ngrx/platform#readme",
22
22
  "peerDependencies": {
23
- "@angular/common": "^21.0.0",
24
- "@angular/core": "^21.0.0",
25
- "@ngrx/store": "21.1.1",
26
- "@ngrx/effects": "21.1.1",
27
- "@ngrx/entity": "21.1.1",
23
+ "@angular/common": "^22.0.0",
24
+ "@angular/core": "^22.0.0",
25
+ "@ngrx/store": "22.0.0-beta.1",
26
+ "@ngrx/effects": "22.0.0-beta.1",
27
+ "@ngrx/entity": "22.0.0-beta.1",
28
28
  "rxjs": "^6.5.3 || ^7.5.0"
29
29
  },
30
30
  "schematics": "./schematics/collection.json",
@@ -60,5 +60,6 @@
60
60
  "types": "./types/ngrx-data.d.ts",
61
61
  "default": "./fesm2022/ngrx-data.mjs"
62
62
  }
63
- }
63
+ },
64
+ "type": "module"
64
65
  }
@@ -0,0 +1,23 @@
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": ".",
4
+ "stripInternal": true,
5
+ "experimentalDecorators": true,
6
+ "module": "preserve",
7
+ "moduleResolution": "bundler",
8
+ "downlevelIteration": true,
9
+ "outDir": "../../dist/modules/schematics-score",
10
+ "sourceMap": true,
11
+ "inlineSources": true,
12
+ "lib": ["es2022", "dom"],
13
+ "skipLibCheck": true,
14
+ "strict": true
15
+ },
16
+ "include": ["**/*.ts"],
17
+ "exclude": ["**/*.spec.ts", "test-setup.ts"],
18
+ "angularCompilerOptions": {
19
+ "skipMetadataEmit": true,
20
+ "enableSummariesForJit": false,
21
+ "enableIvy": false
22
+ }
23
+ }
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.platformVersion = void 0;
4
- exports.platformVersion = '^21.1.1';
4
+ exports.platformVersion = '^22.0.0-beta.1';
5
5
  //# sourceMappingURL=libs-version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"libs-version.js","sourceRoot":"","sources":["../../../../../modules/data/schematics-core/utility/libs-version.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,SAAS,CAAC","sourcesContent":["export const platformVersion = '^21.1.1';\n"]}
1
+ {"version":3,"file":"libs-version.js","sourceRoot":"","sources":["../../../../../modules/data/schematics-core/utility/libs-version.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,gBAAgB,CAAC","sourcesContent":["export const platformVersion = '^22.0.0-beta.1';\n"]}
@@ -1,7 +1,7 @@
1
1
  import * as _ngrx_store from '@ngrx/store';
2
2
  import { Action, Store, MemoizedSelector, Selector, MetaReducer, ActionReducer } from '@ngrx/store';
3
3
  import { Observable, OperatorFunction, SchedulerLike } from 'rxjs';
4
- import { Update, IdSelector, EntityState, Dictionary, Comparer, EntityAdapter } from '@ngrx/entity';
4
+ import { Update, IdSelector, Dictionary, EntityState, Comparer, EntityAdapter } from '@ngrx/entity';
5
5
  import * as i0 from '@angular/core';
6
6
  import { InjectionToken, FactoryProvider, OnDestroy, ModuleWithProviders, Provider, EnvironmentProviders } from '@angular/core';
7
7
  import { HttpClient } from '@angular/common/http';
@@ -751,8 +751,8 @@ declare class DefaultDataService<T> implements EntityCollectionDataService<T> {
751
751
  declare class DefaultDataServiceFactory {
752
752
  protected http: HttpClient;
753
753
  protected httpUrlGenerator: HttpUrlGenerator;
754
- protected config?: DefaultDataServiceConfig;
755
- constructor(http: HttpClient, httpUrlGenerator: HttpUrlGenerator, config?: DefaultDataServiceConfig);
754
+ protected config?: DefaultDataServiceConfig | undefined;
755
+ constructor(http: HttpClient, httpUrlGenerator: HttpUrlGenerator, config?: DefaultDataServiceConfig | undefined);
756
756
  /**
757
757
  * Create a default {EntityCollectionDataService} for the given entity type
758
758
  * @param entityName {string} Name of the entity type for this data service
@@ -1401,8 +1401,8 @@ interface EntityDispatcher<T> extends EntityCommands<T> {
1401
1401
  * Persistence operation canceled
1402
1402
  */
1403
1403
  declare class PersistanceCanceled {
1404
- readonly message?: string;
1405
- constructor(message?: string);
1404
+ readonly message?: string | undefined;
1405
+ constructor(message?: string | undefined);
1406
1406
  }
1407
1407
 
1408
1408
  /**
@@ -1443,7 +1443,7 @@ declare class EntityDispatcherBase<T> implements EntityDispatcher<T> {
1443
1443
  /** The store, scoped to the EntityCache */
1444
1444
  store: Store<EntityCache>,
1445
1445
  /** Returns the primary key (id) of this entity */
1446
- selectId: IdSelector<T>,
1446
+ selectId: IdSelector<T> | undefined,
1447
1447
  /**
1448
1448
  * Dispatcher options configure dispatcher behavior such as
1449
1449
  * whether add is optimistic or pessimistic by default.
@@ -1786,7 +1786,7 @@ declare class EntityEffects {
1786
1786
 
1787
1787
  declare class EntityCollectionCreator {
1788
1788
  private entityDefinitionService?;
1789
- constructor(entityDefinitionService?: EntityDefinitionService);
1789
+ constructor(entityDefinitionService?: EntityDefinitionService | undefined);
1790
1790
  /**
1791
1791
  * Create the default collection for an entity type.
1792
1792
  * @param entityName {string} entity type name
@@ -2983,7 +2983,7 @@ declare class EntityCollectionReducerMethods<T> {
2983
2983
  /** Safely extract data from the EntityAction payload */
2984
2984
  protected extractData<D = any>(action: EntityAction<D>): D;
2985
2985
  /** Safely extract MergeStrategy from EntityAction. Set to IgnoreChanges if collection itself is not tracked. */
2986
- protected extractMergeStrategy(action: EntityAction): MergeStrategy;
2986
+ protected extractMergeStrategy(action: EntityAction): MergeStrategy | undefined;
2987
2987
  protected isOptimistic(action: EntityAction): boolean;
2988
2988
  }
2989
2989
  /**