Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 68ba167

Browse files
authored
build: update peer dependencies for Angular v7 (0.7.0) (#220)
1 parent 36b5f67 commit 68ba167

22 files changed

+6707
-4255
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ because this is a development tool, not a production product.
99
We do try to tell you about such changes in this `CHANGELOG.md`
1010
and we fix bugs as fast as we can.
1111

12+
<a id="0.7.0"></a>
13+
## 0.7.0 (2018-10-31)
14+
15+
* update to support Angular v7.
16+
* no functional changes
1217

1318
<a id="0.6.1"></a>
1419
## 0.6.1 (2018-05-04)

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ in the manner of a RESTy web api.
6060
It natively handles URI patterns in the form `:base/:collectionName/:id?`
6161

6262
Examples:
63-
```
63+
```ts
6464
// for requests to an `api` base URL that gets heroes from a 'heroes' collection
6565
GET api/heroes // all heroes
6666
GET api/heroes/42 // the hero with id=42
@@ -143,7 +143,7 @@ to ensure that the in-memory backend provider supersedes the Angular version.
143143
144144
* In production, you want HTTP requests to go to the real server and probably have no need for the _in-memory_ provider.
145145
CLI-based apps can exclude the provider in production builds like this:
146-
```javascript
146+
```ts
147147
imports: [
148148
HttpClientModule,
149149
environment.production ?
@@ -282,13 +282,13 @@ or reset the in-memory database.
282282
When the last segment of the _api base path_ is "commands", the `collectionName` is treated as the _command_.
283283

284284
Example URLs:
285-
```
285+
```sh
286286
commands/resetdb // Reset the "database" to its original state
287287
commands/config // Get or update this service's config object
288288
```
289289
290290
Usage:
291-
```
291+
```sh
292292
http.post('commands/resetdb', undefined);
293293
http.get('commands/config');
294294
http.post('commands/config', '{"delay":1000}');
@@ -302,7 +302,7 @@ calls your `InMemoryDbService` data service's [`createDb` method](#createDb) wi
302302
enabling the `createDb` logic to adjust its behavior per the client request.
303303

304304
In the following example, the client includes a reset option in the command request body:
305-
```
305+
```ts
306306
http
307307
// Reset the database collections with the `clear` option
308308
.post('commands/resetDb', { clear: true }))
@@ -334,17 +334,17 @@ Read the source code for the complete story.
334334
Configuring the `apiBase` yields the most interesting changes to `parseRequestUrl` behavior:
335335
336336
* For `apiBase=undefined` and `url='http://localhost/api/customers/42'`
337-
```
337+
```ts
338338
{apiBase: 'api/', collectionName: 'customers', id: '42', ...}
339339
```
340340
341341
* For `apiBase='some/api/root/'` and `url='http://localhost/some/api/root/customers'`
342-
```
342+
```ts
343343
{ apiBase: 'some/api/root/', collectionName: 'customers', id: undefined, ... }
344344
```
345345
346346
* For `apiBase='/'` and `url='http://localhost/customers'`
347-
```
347+
```ts
348348
{ apiBase: '/', collectionName: 'customers', id: undefined, ... }
349349
```
350350

backend.service.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export declare abstract class BackendService {
108108
* @param resOptionsFactory - creates ResponseOptions when observable is subscribed
109109
*/
110110
protected createResponseOptions$(resOptionsFactory: () => ResponseOptions): Observable<ResponseOptions>;
111-
protected delete({collection, collectionName, headers, id, url}: RequestInfo): ResponseOptions;
111+
protected delete({ collection, collectionName, headers, id, url }: RequestInfo): ResponseOptions;
112112
/**
113113
* Find first instance of item in collection by `item.id`
114114
* @param collection
@@ -135,7 +135,7 @@ export declare abstract class BackendService {
135135
protected genIdDefault<T extends {
136136
id: any;
137137
}>(collection: T[], collectionName: string): any;
138-
protected get({collection, collectionName, headers, id, query, url}: RequestInfo): ResponseOptions;
138+
protected get({ collection, collectionName, headers, id, query, url }: RequestInfo): ResponseOptions;
139139
/** Get JSON body from the request object */
140140
protected abstract getJsonBody(req: any): any;
141141
/**
@@ -187,8 +187,8 @@ export declare abstract class BackendService {
187187
* To replace this default method, assign your alternative to your InMemDbService['parseRequestUrl']
188188
*/
189189
protected parseRequestUrl(url: string): ParsedRequestUrl;
190-
protected post({collection, collectionName, headers, id, req, resourceUrl, url}: RequestInfo): ResponseOptions;
191-
protected put({collection, collectionName, headers, id, req, url}: RequestInfo): ResponseOptions;
190+
protected post({ collection, collectionName, headers, id, req, resourceUrl, url }: RequestInfo): ResponseOptions;
191+
protected put({ collection, collectionName, headers, id, req, url }: RequestInfo): ResponseOptions;
192192
protected removeById(collection: any[], id: number): boolean;
193193
/**
194194
* Tell your in-mem "database" to reset.

0 commit comments

Comments
 (0)