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

Commit a179bbb

Browse files
committed
chore: update ChangeLog to explain umd breaking change
1 parent c6e8243 commit a179bbb

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

CHANGELOG.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,35 @@
11
# "angular-in-memory-web-api" versions
22

3+
<a name="0.1.13"></a>
4+
## 0.1.13 (2016-10-20)
5+
* Update README for 0.1.11 breaking change: npm publish as `esm` and a `umd` bundle
6+
7+
Going to `umd` changes your `systemjs.config` and the way you import the library.
8+
9+
In `systemjs.config.js` you should change the mapping to:
10+
```
11+
'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js'
12+
```
13+
then delete from `packages`:
14+
```
15+
'angular-in-memory-web-api': {
16+
main: './index.js',
17+
defaultExtension: 'js'
18+
}
19+
```
20+
You must ES import the in-mem module (typically in `AppModule`) like this:
21+
```
22+
import { InMemoryWebApiModule } from 'angular-in-memory-web-api';
23+
```
324
<a name="0.1.12"></a>
425
## 0.1.12 (2016-10-19)
526
* exclude travis.yml and rollup.config.js from npm package
627

728
<a name="0.1.11"></a>
829
## 0.1.11 (2016-10-19)
9-
* npm publish as esm + an umd bundle
30+
* BREAKING CHANGE: npm publish as `esm` and a `umd` bundle.
31+
Does not change the API but does change the way you register and import the
32+
in-mem module. Documented in later release, v.0.1.13
1033

1134
<a name="0.1.10"></a>
1235
## 0.1.10 (2016-10-19)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-in-memory-web-api",
3-
"version": "0.1.12",
3+
"version": "0.1.13",
44
"description": "An in-memory web api for Angular demos and tests",
55
"main":"bundles/in-memory-web-api.umd.js",
66
"module": "index.js",
@@ -51,7 +51,7 @@
5151
"rxjs": "5.0.0-beta.12",
5252
"zone.js": "^0.6.25",
5353

54-
"angular-in-memory-web-api": "~0.1.7",
54+
"angular-in-memory-web-api": "~0.1.12",
5555
"concurrently": "^3.0.0",
5656
"core-js": "^2.4.1",
5757
"lite-server": "^2.2.2",

0 commit comments

Comments
 (0)