@jscutlery/operators 0.1.2 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.1.6](https://github.com/jscutlery/devkit/compare/operators-0.1.5...operators-0.1.6) (2022-03-27)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * 🐞 bump workspace ([127c808](https://github.com/jscutlery/devkit/commit/127c808e61cd9e8be3f3e3fd32f64fe7ad1f7e55))
11
+
12
+
13
+
14
+ ## [0.1.5](https://github.com/jscutlery/devkit/compare/operators-0.1.4...operators-0.1.5) (2022-03-26)
15
+
16
+
17
+
18
+ ## [0.1.4](https://github.com/jscutlery/devkit/compare/operators-0.1.3...operators-0.1.4) (2021-12-08)
19
+
20
+
21
+
22
+ ## [0.1.3](https://github.com/jscutlery/devkit/compare/operators-0.1.2...operators-0.1.3) (2021-10-26)
23
+
24
+
25
+
5
26
  ## [0.1.2](https://github.com/jscutlery/devkit/compare/operators-0.1.1...operators-0.1.2) (2021-10-26)
6
27
 
7
28
 
package/README.md CHANGED
@@ -135,4 +135,4 @@ Also, `materialized` doesn't trigger a `pending` event so the observable doesn't
135
135
 
136
136
  # Roadmap
137
137
 
138
- - [ ] `mergeSuspense` function should merge multiple sources in one state that contains the global state of all sources and each one of them.
138
+ 1. `mergeSuspense` function should merge multiple sources in one state that contains the global state of all sources and each one of them.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jscutlery/operators",
3
- "version": "0.1.2",
3
+ "version": "0.1.6",
4
4
  "repository": {
5
5
  "url": "https://github.com/jscutlery/devkit"
6
6
  },
@@ -16,7 +16,7 @@ function _coalesceFirstEmittedValue() {
16
16
  const subscription = source$
17
17
  .pipe(
18
18
  /* Wait for all synchronous processing to be done. */
19
- operators_1.debounce(() => isReadySubject))
19
+ (0, operators_1.debounce)(() => isReadySubject))
20
20
  .subscribe(observer);
21
21
  /* Sync emitted values have been processed now.
22
22
  * Mark source as ready and emit last computed state. */
@@ -33,7 +33,7 @@ function _suspensify(projector) {
33
33
  finalized: false,
34
34
  pending: true,
35
35
  };
36
- const result$ = source$.pipe(operators_1.materialize(), operators_1.scan((state = initialState, notification) => {
36
+ const result$ = source$.pipe((0, operators_1.materialize)(), (0, operators_1.scan)((state = initialState, notification) => {
37
37
  /* On complete, merge `finalized: true & pending: false`
38
38
  * with the current state. */
39
39
  if (notification.kind === 'C') {
@@ -47,8 +47,8 @@ function _suspensify(projector) {
47
47
  finalized,
48
48
  pending: false,
49
49
  };
50
- }, undefined), operators_1.startWith(initialState));
51
- return projector != null ? result$.pipe(operators_1.map(projector)) : result$;
50
+ }, undefined), (0, operators_1.startWith)(initialState));
51
+ return projector != null ? result$.pipe((0, operators_1.map)(projector)) : result$;
52
52
  };
53
53
  }
54
54
  //# sourceMappingURL=suspensify.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"suspensify.js","sourceRoot":"","sources":["../../../../../packages/operators/src/lib/suspensify.ts"],"names":[],"mappings":";;;AAAA,+BAKc;AACd,8CAA6E;AAqB7E,SAAgB,UAAU,CACxB,SAAoC;IAEpC,OAAO,CAAC,OAAsB,EAA+B,EAAE;QAC7D,OAAO,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,0BAA0B,EAAE,CAAC,CAAC;IAC5E,CAAC,CAAC;AACJ,CAAC;AAND,gCAMC;AAED,SAAS,0BAA0B;IACjC,OAAO,CAAC,OAAsB,EAAiB,EAAE;QAC/C,OAAO,IAAI,iBAAU,CAAI,CAAC,QAAQ,EAAE,EAAE;YACpC,MAAM,cAAc,GAAG,IAAI,oBAAa,CAAU,CAAC,CAAC,CAAC;YAErD,MAAM,YAAY,GAAG,OAAO;iBACzB,IAAI;YACH,qDAAqD;YACrD,oBAAQ,CAAC,GAAG,E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