@ngrx/data 21.1.0 → 22.0.0-beta.0

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.0",
3
+ "version": "22.0.0-beta.0",
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.0",
26
- "@ngrx/effects": "21.1.0",
27
- "@ngrx/entity": "21.1.0",
23
+ "@angular/common": "^22.0.0",
24
+ "@angular/core": "^22.0.0",
25
+ "@ngrx/store": "22.0.0-beta.0",
26
+ "@ngrx/effects": "22.0.0-beta.0",
27
+ "@ngrx/entity": "22.0.0-beta.0",
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.0';
4
+ exports.platformVersion = '^22.0.0-beta.0';
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.0';\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.0';\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';
@@ -123,10 +123,6 @@ interface RequestData {
123
123
  * Same as HttpClient's HttpParamsOptions which at the time of writing was
124
124
  * NOT exported at package level
125
125
  * https://github.com/angular/angular/issues/22013
126
- *
127
- * @deprecated Use HttpOptions instead. getWithQuery still accepts QueryParams as its
128
- * first argument, but HttpOptions.httpParams uses Angular's own HttpParamsOptions which
129
- * HttpClient accepts as an argument.
130
126
  */
131
127
  interface QueryParams {
132
128
  [name: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
@@ -755,8 +751,8 @@ declare class DefaultDataService<T> implements EntityCollectionDataService<T> {
755
751
  declare class DefaultDataServiceFactory {
756
752
  protected http: HttpClient;
757
753
  protected httpUrlGenerator: HttpUrlGenerator;
758
- protected config?: DefaultDataServiceConfig;
759
- constructor(http: HttpClient, httpUrlGenerator: HttpUrlGenerator, config?: DefaultDataServiceConfig);
754
+ protected config?: DefaultDataServiceConfig | undefined;
755
+ constructor(http: HttpClient, httpUrlGenerator: HttpUrlGenerator, config?: DefaultDataServiceConfig | undefined);
760
756
  /**
761
757
  * Create a default {EntityCollectionDataService} for the given entity type
762
758
  * @param entityName {string} Name of the entity type for this data service
@@ -1405,8 +1401,8 @@ interface EntityDispatcher<T> extends EntityCommands<T> {
1405
1401
  * Persistence operation canceled
1406
1402
  */
1407
1403
  declare class PersistanceCanceled {
1408
- readonly message?: string;
1409
- constructor(message?: string);
1404
+ readonly message?: string | undefined;
1405
+ constructor(message?: string | undefined);
1410
1406
  }
1411
1407
 
1412
1408
  /**
@@ -1447,7 +1443,7 @@ declare class EntityDispatcherBase<T> implements EntityDispatcher<T> {
1447
1443
  /** The store, scoped to the EntityCache */
1448
1444
  store: Store<EntityCache>,
1449
1445
  /** Returns the primary key (id) of this entity */
1450
- selectId: IdSelector<T>,
1446
+ selectId: IdSelector<T> | undefined,
1451
1447
  /**
1452
1448
  * Dispatcher options configure dispatcher behavior such as
1453
1449
  * whether add is optimistic or pessimistic by default.
@@ -1790,7 +1786,7 @@ declare class EntityEffects {
1790
1786
 
1791
1787
  declare class EntityCollectionCreator {
1792
1788
  private entityDefinitionService?;
1793
- constructor(entityDefinitionService?: EntityDefinitionService);
1789
+ constructor(entityDefinitionService?: EntityDefinitionService | undefined);
1794
1790
  /**
1795
1791
  * Create the default collection for an entity type.
1796
1792
  * @param entityName {string} entity type name
@@ -2987,7 +2983,7 @@ declare class EntityCollectionReducerMethods<T> {
2987
2983
  /** Safely extract data from the EntityAction payload */
2988
2984
  protected extractData<D = any>(action: EntityAction<D>): D;
2989
2985
  /** Safely extract MergeStrategy from EntityAction. Set to IgnoreChanges if collection itself is not tracked. */
2990
- protected extractMergeStrategy(action: EntityAction): MergeStrategy;
2986
+ protected extractMergeStrategy(action: EntityAction): MergeStrategy | undefined;
2991
2987
  protected isOptimistic(action: EntityAction): boolean;
2992
2988
  }
2993
2989
  /**