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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,17 @@ 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.3"></a>
12
+
## 0.4.3 (2017-09-11)
13
+
Refactoring for clarity and to correctly reflect intent.
14
+
A **breaking change** only if your customizations depend directly and explicitly on `RequestInfo` or the `get`, `delete`, `post`, or `put` methods.
15
+
16
+
- replace all `switchMap` with `concatMap` because, in all previous uses of `switchMap`,
17
+
I really meant to wait for the source observable to complete _before_ beginning the inner observable whereas `switchMap` starts the inner observable right away.
18
+
19
+
- restored `collection` to the `RequestInfo` interface and set it in `handleRequest_`
20
+
-`get`, `delete`, `post`, and `put` methods get the `collection` from `requestInfo`; simplifies their signatures to one parameter.
21
+
11
22
<aid="0.4.2"></a>
12
23
## 0.4.2 (2017-09-08)
13
24
- Postpones the in-memory database initialization (via `resetDb`) until the first HTTP request.
@@ -723,16 +725,16 @@ var BackendService = (function () {
723
725
varresOptions;
724
726
switch(reqInfo.method){
725
727
case'get':
726
-
resOptions=this.get(collection,reqInfo);
728
+
resOptions=this.get(reqInfo);
727
729
break;
728
730
case'post':
729
-
resOptions=this.post(collection,reqInfo);
731
+
resOptions=this.post(reqInfo);
730
732
break;
731
733
case'put':
732
-
resOptions=this.put(collection,reqInfo);
734
+
resOptions=this.put(reqInfo);
733
735
break;
734
736
case'delete':
735
-
resOptions=this.delete(collection,reqInfo);
737
+
resOptions=this.delete(reqInfo);
736
738
break;
737
739
default:
738
740
resOptions=this.createErrorResponseOptions(reqInfo.url,STATUS.METHOD_NOT_ALLOWED,'Method not allowed');
@@ -767,7 +769,7 @@ var BackendService = (function () {
767
769
};
768
770
switch(command){
769
771
case'resetdb':
770
-
returnrxjs_operator_switchMap.switchMap.call(this.resetDb(reqInfo),function(){return_this.createResponse$(function(){returnresOptions;},false/* no delay */);});
772
+
returnrxjs_operator_concatMap.concatMap.call(this.resetDb(reqInfo),function(){return_this.createResponse$(function(){returnresOptions;},false/* no delay */);});
771
773
case'config':
772
774
if(method==='get'){
773
775
resOptions.body=this.clone(this.config);
@@ -826,8 +828,8 @@ var BackendService = (function () {
0 commit comments