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

Commit 403f932

Browse files
committed
Update README to announce v0.4.0.
1 parent e675a6a commit 403f932

File tree

2 files changed

+29
-8
lines changed

2 files changed

+29
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ We do try to tell you about such changes in this `CHANGELOG.md`
1010
and we fix bugs as fast as we can.
1111

1212
<a id="0.4.0"></a>
13-
## 0.4.0 (2017-09-06)
13+
## 0.4.0 (2017-09-08)
1414
**Theme: Support `HttpClient` and add tests**.
1515
See PR #130.
1616

README.md

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,34 @@ that emulates CRUD operations over a RESTy API.
66

77
It intercepts Angular `Http` and `HttpClient` requests that would otherwise go to the remote server and redirects them to an in-memory data store that you control.
88

9+
---
10+
## **v0.4.0 supports `HttpClient`!**
11+
>Release v0.4.0 (8 Sept 2017) is a major overhaul of this library.
12+
>
13+
>You don't have to change your existing application _code_ if your app uses this library without customizations.
14+
>
15+
>
16+
>This v0.4.0 release has *breaking changes* that affect developers who used the customization features.
17+
>We're pretty sure you'll think these changes are worthwhile.
18+
>
19+
>**Read this README** and the CHANGELOG to learn what's new.
20+
>The new unit tests are worth a look as well.
21+
>
22+
---
23+
>If you’re loading application files with **SystemJS**, you’ll have to configure it to load Angular’s `umd.js` for `HttpModule`.
24+
>To see how, look for the following line in the
25+
>`src/systemjs.config.js` of this project:
26+
>
27+
>`'angular/common/http': 'npm:@angular/common/bundles/common-http.umd.js'`
28+
>
29+
>You've already made this change if you are using `HttpClient` today.
30+
>
31+
>If you’re sticking with the original Angular `Http` module, you _must make this change anyway!_ Your app will break as soon as you run `npm install` and it installs v0.4.0.
32+
>
33+
>If you're using webpack (as CLI devs do), you don't have to worry about this stuff because webpack bundles the dependencies for you.
34+
35+
---
36+
937
## Use cases
1038

1139
* Demo apps that need to simulate CRUD data persistence operations without a real server.
@@ -40,13 +68,6 @@ because this is a development tool, not a production product.
4068
We do try to tell you about such changes in the `CHANGELOG.md`
4169
and we fix bugs as fast as we can.
4270

43-
44-
>**UPDATE NOTICE**
45-
>
46-
>As of v.0.1.0, the npm package was renamed from `angular2-in-memory-web-api` to its current name,
47-
`angular-in-memory-web-api`. All versions ***after 0.0.21*** are shipped under this name.
48-
**Be sure to update your `package.json` and import statements**.
49-
5071
## HTTP request handling
5172
This in-memory web api service processes an HTTP request and
5273
returns an `Observable` of HTTP `Response` object

0 commit comments

Comments
 (0)