You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+33Lines changed: 33 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,12 @@ because this is a development tool, not a production product.
8
8
We do try to tell you about such changes in this `CHANGELOG.md`
9
9
and we fix bugs as fast as we can.
10
10
11
+
<aid="0.4.6"></a>
12
+
## 0.4.6 (2017-09-13)
13
+
- improves README
14
+
- updates v0.4.0 entry in the CHANGELOG to describe essential additions to SystemJS configuration.
15
+
- no important functional changes.
16
+
11
17
<aid="0.4.5"></a>
12
18
## 0.4.5 (2017-09-11)
13
19
Feature - offer separate `HttpClientInMemoryWebApiModule` and `HttpInMemoryWebApiModule`.
@@ -61,6 +67,8 @@ See PR #130.
61
67
Many low-level and customization options have changed.
62
68
Apps that stuck with defaults should be (mostly) OK.
63
69
70
+
If you're loading application files with **SystemJS** (as you would in a plunker), see the [instructions below](#v-0-4-systemjs).
71
+
64
72
* added support for `HttpClient` -> renaming of backend service classes
65
73
* added tests
66
74
* refactor existing code to support tests
@@ -79,6 +87,31 @@ to arbitrary initial states (issue #128)
79
87
* reorganize files into src/app and src/in-mem
80
88
* adjust gulp tasks accordingly
81
89
90
+
---
91
+
92
+
<aid="v-0-4-systemjs"></a>
93
+
### Plunkers and SystemJS
94
+
95
+
If you’re loading application files with **SystemJS** (as you would in a plunker), you’ll have to configure it to load Angular’s `umd.js` for `HttpModule` and the `tslib` package.
96
+
97
+
To see how, look in the `map` section of the
98
+
[`src/systemjs.config.js` for this project](https://github.com/angular/in-memory-web-api/blob/master/src/systemjs.config.js) for the following two _additional_ lines :
You've already made these changes if you are using `HttpClient` today.
108
+
109
+
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.
110
+
111
+
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.
Copy file name to clipboardExpand all lines: README.md
+4-19Lines changed: 4 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -13,27 +13,12 @@ It intercepts Angular `Http` and `HttpClient` requests that would otherwise go t
13
13
>You don't have to change your existing application _code_ if your app uses this library without customizations.
14
14
>
15
15
>
16
-
>The v0.4.0 release introduced *breaking changes* that affect developers who used the customization features.
17
-
>We're pretty sure you'll think these changes are worthwhile.
16
+
>The v0.4.0 release introduced **breaking changes** that affect developers who used the customization features or loaded application files with SystemJS.
18
17
>
19
-
>**Read this README** and the [CHANGELOG](https://github.com/angular/in-memory-web-api/blob/master/CHANGELOG.md)
20
-
to learn what's new.
21
-
>The new unit tests are worth a look as well.
18
+
>**Read this README and the [CHANGELOG](https://github.com/angular/in-memory-web-api/blob/master/CHANGELOG.md/#0.4.0)**
19
+
to learn what's new and about **breaking changes**
22
20
>
23
-
---
24
-
>If you’re loading application files with **SystemJS**, you’ll have to configure it to load Angular’s `umd.js` for `HttpModule`.
>You've already made this change if you are using `HttpClient` today.
31
-
>
32
-
>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.
33
-
>
34
-
>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.
35
-
36
-
---
21
+
>The new **unit tests** are a good way to see the in-memory web api in action.
0 commit comments