@ngrx/data 13.0.2 → 13.1.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": "13.0.2",
3
+ "version": "13.1.0",
4
4
  "description": "API management for NgRx",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,9 +22,9 @@
22
22
  "peerDependencies": {
23
23
  "@angular/common": "^13.0.0",
24
24
  "@angular/core": "^13.0.0",
25
- "@ngrx/store": "13.0.2",
26
- "@ngrx/effects": "13.0.2",
27
- "@ngrx/entity": "13.0.2",
25
+ "@ngrx/store": "13.1.0",
26
+ "@ngrx/effects": "13.1.0",
27
+ "@ngrx/entity": "13.1.0",
28
28
  "rxjs": "^6.5.3 || ^7.4.0"
29
29
  },
30
30
  "schematics": "./schematics/collection.json",
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
3
  exports.platformVersion = void 0;
4
- exports.platformVersion = '^13.0.2';
4
+ exports.platformVersion = '^13.1.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 = '^13.0.2';\n"]}
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 = '^13.1.0';\n"]}
@@ -22,4 +22,6 @@ export declare abstract class DefaultDataServiceConfig {
22
22
  saveDelay?: number;
23
23
  /** request timeout in MS (default: 0)*/
24
24
  timeout?: number;
25
+ /** to keep trailing slashes or not; false by default */
26
+ trailingSlashEndpoints?: boolean;
25
27
  }
@@ -21,6 +21,7 @@ export declare class DefaultDataService<T> implements EntityCollectionDataServic
21
21
  protected getDelay: number;
22
22
  protected saveDelay: number;
23
23
  protected timeout: number;
24
+ protected trailingSlashEndpoints: boolean;
24
25
  get name(): string;
25
26
  constructor(entityName: string, http: HttpClient, httpUrlGenerator: HttpUrlGenerator, config?: DefaultDataServiceConfig);
26
27
  add(entity: T): Observable<T>;
@@ -38,7 +38,7 @@ export declare abstract class HttpUrlGenerator {
38
38
  * Return the base URL for a single entity resource,
39
39
  * e.g., the base URL to get a single hero by its id
40
40
  */
41
- abstract entityResource(entityName: string, root: string): string;
41
+ abstract entityResource(entityName: string, root: string, trailingSlashEndpoints: boolean): string;
42
42
  /**
43
43
  * Return the base URL for a collection resource,
44
44
  * e.g., the base URL to get all heroes
@@ -65,14 +65,14 @@ export declare class DefaultHttpUrlGenerator implements HttpUrlGenerator {
65
65
  * @param entityName {string} Name of the entity type, e.g, 'Hero'
66
66
  * @param root {string} Root path to the resource, e.g., 'some-api`
67
67
  */
68
- protected getResourceUrls(entityName: string, root: string): HttpResourceUrls;
68
+ protected getResourceUrls(entityName: string, root: string, trailingSlashEndpoints?: boolean): HttpResourceUrls;
69
69
  /**
70
70
  * Create the path to a single entity resource
71
71
  * @param entityName {string} Name of the entity type, e.g, 'Hero'
72
72
  * @param root {string} Root path to the resource, e.g., 'some-api`
73
73
  * @returns complete path to resource, e.g, 'some-api/hero'
74
74
  */
75
- entityResource(entityName: string, root: string): string;
75
+ entityResource(entityName: string, root: string, trailingSlashEndpoints: boolean): string;
76
76
  /**
77
77
  * Create the path to a multiple entity (collection) resource
78
78
  * @param entityName {string} Name of the entity type, e.g, 'Hero'