@ngrx/data 16.0.0-beta.0 → 16.0.0-rc.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/esm2022/src/actions/entity-action-factory.mjs +4 -4
- package/esm2022/src/dataservices/default-data.service.mjs +4 -4
- package/esm2022/src/dataservices/entity-cache-data.service.mjs +4 -4
- package/esm2022/src/dataservices/entity-data.service.mjs +4 -4
- package/esm2022/src/dataservices/http-url-generator.mjs +4 -4
- package/esm2022/src/dataservices/persistence-result-handler.service.mjs +4 -4
- package/esm2022/src/dispatchers/entity-cache-dispatcher.mjs +4 -4
- package/esm2022/src/dispatchers/entity-commands.mjs +1 -1
- package/esm2022/src/dispatchers/entity-dispatcher-default-options.mjs +4 -4
- package/esm2022/src/dispatchers/entity-dispatcher-factory.mjs +4 -4
- package/esm2022/src/effects/entity-cache-effects.mjs +4 -4
- package/esm2022/src/effects/entity-effects.mjs +4 -4
- package/esm2022/src/entity-data-without-effects.module.mjs +5 -5
- package/esm2022/src/entity-data.module.mjs +5 -5
- package/esm2022/src/entity-metadata/entity-definition.service.mjs +4 -4
- package/esm2022/src/entity-services/entity-collection-service-elements-factory.mjs +4 -4
- package/esm2022/src/entity-services/entity-collection-service-factory.mjs +4 -4
- package/esm2022/src/entity-services/entity-services-base.mjs +4 -4
- package/esm2022/src/entity-services/entity-services-elements.mjs +4 -4
- package/esm2022/src/reducers/entity-cache-reducer.mjs +4 -4
- package/esm2022/src/reducers/entity-collection-creator.mjs +4 -4
- package/esm2022/src/reducers/entity-collection-reducer-methods.mjs +4 -4
- package/esm2022/src/reducers/entity-collection-reducer-registry.mjs +4 -4
- package/esm2022/src/reducers/entity-collection-reducer.mjs +4 -4
- package/esm2022/src/selectors/entity-selectors$.mjs +4 -4
- package/esm2022/src/selectors/entity-selectors.mjs +4 -4
- package/esm2022/src/utils/correlation-id-generator.mjs +4 -4
- package/esm2022/src/utils/default-logger.mjs +4 -4
- package/esm2022/src/utils/default-pluralizer.mjs +4 -4
- package/fesm2022/ngrx-data.mjs +86 -86
- package/fesm2022/ngrx-data.mjs.map +1 -1
- package/package.json +6 -6
- package/schematics-core/utility/libs-version.js +1 -1
- package/schematics-core/utility/libs-version.js.map +1 -1
- package/src/dispatchers/entity-commands.d.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngrx/data",
|
|
3
|
-
"version": "16.0.0-
|
|
3
|
+
"version": "16.0.0-rc.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": "^16.0.0
|
|
24
|
-
"@angular/core": "^16.0.0
|
|
25
|
-
"@ngrx/store": "16.0.0-
|
|
26
|
-
"@ngrx/effects": "16.0.0-
|
|
27
|
-
"@ngrx/entity": "16.0.0-
|
|
23
|
+
"@angular/common": "^16.0.0",
|
|
24
|
+
"@angular/core": "^16.0.0",
|
|
25
|
+
"@ngrx/store": "16.0.0-rc.0",
|
|
26
|
+
"@ngrx/effects": "16.0.0-rc.0",
|
|
27
|
+
"@ngrx/entity": "16.0.0-rc.0",
|
|
28
28
|
"rxjs": "^6.5.3 || ^7.5.0"
|
|
29
29
|
},
|
|
30
30
|
"schematics": "./schematics/collection.json",
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"libs-version.js","sourceRoot":"","sources":["../../../../../modules/data/schematics-core/utility/libs-version.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,cAAc,CAAC","sourcesContent":["export const platformVersion = '^16.0.0-rc.0';\n"]}
|
|
@@ -10,6 +10,12 @@ export interface EntityServerCommands<T> {
|
|
|
10
10
|
* @returns A terminating Observable of the entity
|
|
11
11
|
* after server reports successful save or the save error.
|
|
12
12
|
*/
|
|
13
|
+
add(entity: Partial<T>, options?: EntityActionOptions & {
|
|
14
|
+
isOptimistic?: false;
|
|
15
|
+
}): Observable<T>;
|
|
16
|
+
add(entity: T, options: EntityActionOptions & {
|
|
17
|
+
isOptimistic: true;
|
|
18
|
+
}): Observable<T>;
|
|
13
19
|
add(entity: T, options?: EntityActionOptions): Observable<T>;
|
|
14
20
|
/**
|
|
15
21
|
* Dispatch action to cancel the persistence operation (query or save) with the given correlationId.
|