@jscutlery/operators 2.1.3 → 2.1.5
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 +23 -86
- package/index.esm.d.ts +1 -0
- package/index.esm.js +0 -11
- package/package.json +1 -1
- package/src/lib/testing/observer.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,177 +1,114 @@
|
|
|
1
|
-
|
|
1
|
+
## 2.1.5 (2024-04-11)
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This was a version bump only for operators to align it with other projects, there were no code changes.
|
|
4
4
|
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
## [2.1.3](https://github.com/jscutlery/devkit/compare/operators-2.1.2...operators-2.1.3) (2023-10-25)
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## [2.1.3](https://github.com/jscutlery/devkit/compare/operators-2.1.2...operators-2.1.3) (2023-10-25)
|
|
5
|
+
## 2.1.4 (2024-03-24)
|
|
14
6
|
|
|
15
7
|
|
|
8
|
+
### 🩹 Fixes
|
|
16
9
|
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
- import of zone.js and zone.js/testing ([f14b091](https://github.com/jscutlery/devkit/commit/f14b091))
|
|
19
11
|
|
|
20
12
|
|
|
21
|
-
|
|
13
|
+
### ❤️ Thank You
|
|
22
14
|
|
|
15
|
+
- Adrian Baran
|
|
16
|
+
- Younes Jaaidi
|
|
23
17
|
|
|
18
|
+
## [2.1.3](https://github.com/jscutlery/devkit/compare/operators-2.1.2...operators-2.1.3) (2024-03-22)
|
|
24
19
|
|
|
25
|
-
## [2.1.3](https://github.com/jscutlery/devkit/compare/operators-2.1.2...operators-2.1.3) (2023-10-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
## [2.1.3](https://github.com/jscutlery/devkit/compare/operators-2.1.2...operators-2.1.3) (2023-10-25)
|
|
30
|
-
|
|
20
|
+
## [2.1.3](https://github.com/jscutlery/devkit/compare/operators-2.1.2...operators-2.1.3) (2023-10-31)
|
|
31
21
|
|
|
22
|
+
## [2.1.3](https://github.com/jscutlery/devkit/compare/operators-2.1.2...operators-2.1.3) (2023-10-28)
|
|
32
23
|
|
|
33
24
|
## [2.1.3](https://github.com/jscutlery/devkit/compare/operators-2.1.2...operators-2.1.3) (2023-10-25)
|
|
34
25
|
|
|
35
|
-
|
|
36
|
-
|
|
37
26
|
## [2.1.2](https://github.com/jscutlery/devkit/compare/operators-2.1.1...operators-2.1.2) (2023-05-22)
|
|
38
27
|
|
|
39
|
-
|
|
40
|
-
|
|
41
28
|
## [2.1.1](https://github.com/jscutlery/devkit/compare/operators-2.1.0...operators-2.1.1) (2023-04-28)
|
|
42
29
|
|
|
43
|
-
|
|
44
30
|
### Bug Fixes
|
|
45
31
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
32
|
+
- **operators:** 🐞 export missing types + pending const ([96eed66](https://github.com/jscutlery/devkit/commit/96eed664a96e86e9e21e107b89d220a2f0addd9e))
|
|
49
33
|
|
|
50
34
|
# [2.1.0](https://github.com/jscutlery/devkit/compare/operators-2.0.1...operators-2.1.0) (2023-04-27)
|
|
51
35
|
|
|
52
|
-
|
|
53
36
|
### Features
|
|
54
37
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
38
|
+
- **operators:** ✨ expose pending state constant ([caaea8e](https://github.com/jscutlery/devkit/commit/caaea8e3144aca71ecf75830777bcadd2ba23c37))
|
|
58
39
|
|
|
59
40
|
## [2.0.1](https://github.com/jscutlery/devkit/compare/operators-2.0.0...operators-2.0.1) (2023-04-27)
|
|
60
41
|
|
|
61
|
-
|
|
62
42
|
### Bug Fixes
|
|
63
43
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
44
|
+
- **operators:** 🐞 fix suspensify type to be strict by default too ([c5d424c](https://github.com/jscutlery/devkit/commit/c5d424cea4faee0df5ab112851565a36fb575ebe))
|
|
67
45
|
|
|
68
46
|
# [2.0.0](https://github.com/jscutlery/devkit/compare/operators-1.1.1...operators-2.0.0) (2023-04-18)
|
|
69
47
|
|
|
70
|
-
|
|
71
48
|
### Tests
|
|
72
49
|
|
|
73
|
-
|
|
74
|
-
|
|
50
|
+
- **operators:** make suspensify strict by default ([93b8c05](https://github.com/jscutlery/devkit/commit/93b8c0576086ff476e9239ead6175c8832f39c0e))
|
|
75
51
|
|
|
76
52
|
### BREAKING CHANGES
|
|
77
53
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
54
|
+
- **operators:** suspensify() without options will return a strict suspense object
|
|
81
55
|
|
|
82
56
|
## [1.1.1](https://github.com/jscutlery/devkit/compare/operators-1.1.0...operators-1.1.1) (2023-04-18)
|
|
83
57
|
|
|
84
|
-
|
|
85
|
-
|
|
86
58
|
# [1.1.0](https://github.com/jscutlery/devkit/compare/operators-1.0.2...operators-1.1.0) (2023-04-18)
|
|
87
59
|
|
|
88
|
-
|
|
89
60
|
### Features
|
|
90
61
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
62
|
+
- **operators:** add suspensify's strict mode ([f9dd789](https://github.com/jscutlery/devkit/commit/f9dd789d82cdff2fffb2241e8b0aab9bd76cb363)), closes [#237](https://github.com/jscutlery/devkit/issues/237)
|
|
94
63
|
|
|
95
64
|
## [1.0.2](https://github.com/jscutlery/devkit/compare/operators-1.0.1...operators-1.0.2) (2023-04-18)
|
|
96
65
|
|
|
97
|
-
|
|
98
|
-
|
|
99
66
|
## [1.0.1](https://github.com/jscutlery/devkit/compare/operators-1.0.0...operators-1.0.1) (2023-04-18)
|
|
100
67
|
|
|
101
|
-
|
|
102
|
-
|
|
103
68
|
# [1.0.0](https://github.com/jscutlery/devkit/compare/operators-0.2.1...operators-1.0.0) (2023-04-18)
|
|
104
69
|
|
|
105
|
-
|
|
106
70
|
### Bug Fixes
|
|
107
71
|
|
|
108
|
-
|
|
109
|
-
|
|
72
|
+
- **operators:** 🏷️ fix typing errors ([91c084c](https://github.com/jscutlery/devkit/commit/91c084c29c6ad760376c10bc17004a2bfcd3a306))
|
|
110
73
|
|
|
111
74
|
### Features
|
|
112
75
|
|
|
113
|
-
|
|
114
|
-
|
|
76
|
+
- **operators:** ✨ drop support for suspensify's projector ([f4bf6dc](https://github.com/jscutlery/devkit/commit/f4bf6dc413e866b5c047578162c1c1cbcb3c73f9)), closes [#236](https://github.com/jscutlery/devkit/issues/236)
|
|
115
77
|
|
|
116
78
|
### BREAKING CHANGES
|
|
117
79
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
80
|
+
- **operators:** suspensify's operator "projector" function is not supported anymore
|
|
121
81
|
|
|
122
82
|
## [0.2.1](https://github.com/jscutlery/devkit/compare/operators-0.2.0...operators-0.2.1) (2022-12-26)
|
|
123
83
|
|
|
124
|
-
|
|
125
|
-
|
|
126
84
|
# [0.2.0](https://github.com/jscutlery/devkit/compare/operators-0.1.8...operators-0.2.0) (2022-12-02)
|
|
127
85
|
|
|
128
|
-
|
|
129
86
|
### Features
|
|
130
87
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
88
|
+
- **operators:** ✨add esm support ([77b5470](https://github.com/jscutlery/devkit/commit/77b54704d26de058747ee919080873a434cd10b3))
|
|
134
89
|
|
|
135
90
|
## [0.1.8](https://github.com/jscutlery/devkit/compare/operators-0.1.7...operators-0.1.8) (2022-12-01)
|
|
136
91
|
|
|
137
|
-
|
|
138
|
-
|
|
139
92
|
## [0.1.7](https://github.com/jscutlery/devkit/compare/operators-0.1.6...operators-0.1.7) (2022-06-24)
|
|
140
93
|
|
|
141
|
-
|
|
142
|
-
|
|
143
94
|
## [0.1.6](https://github.com/jscutlery/devkit/compare/operators-0.1.5...operators-0.1.6) (2022-03-27)
|
|
144
95
|
|
|
145
|
-
|
|
146
96
|
### Bug Fixes
|
|
147
97
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
98
|
+
- 🐞 bump workspace ([127c808](https://github.com/jscutlery/devkit/commit/127c808e61cd9e8be3f3e3fd32f64fe7ad1f7e55))
|
|
151
99
|
|
|
152
100
|
## [0.1.5](https://github.com/jscutlery/devkit/compare/operators-0.1.4...operators-0.1.5) (2022-03-26)
|
|
153
101
|
|
|
154
|
-
|
|
155
|
-
|
|
156
102
|
## [0.1.4](https://github.com/jscutlery/devkit/compare/operators-0.1.3...operators-0.1.4) (2021-12-08)
|
|
157
103
|
|
|
158
|
-
|
|
159
|
-
|
|
160
104
|
## [0.1.3](https://github.com/jscutlery/devkit/compare/operators-0.1.2...operators-0.1.3) (2021-10-26)
|
|
161
105
|
|
|
162
|
-
|
|
163
|
-
|
|
164
106
|
## [0.1.2](https://github.com/jscutlery/devkit/compare/operators-0.1.1...operators-0.1.2) (2021-10-26)
|
|
165
107
|
|
|
166
|
-
|
|
167
|
-
|
|
168
108
|
## [0.1.1](https://github.com/jscutlery/test-utils/compare/operators-0.1.0...operators-0.1.1) (2021-10-26)
|
|
169
109
|
|
|
170
|
-
|
|
171
|
-
|
|
172
110
|
# 0.1.0 (2021-10-25)
|
|
173
111
|
|
|
174
|
-
|
|
175
112
|
### Features
|
|
176
113
|
|
|
177
|
-
|
|
114
|
+
- **operator:** ✅ add supensify operator ([e7fc483](https://github.com/jscutlery/test-utils/commit/e7fc483f197edda038da0a2a757620d49720d1db))
|
package/index.esm.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/index";
|
package/index.esm.js
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { Observable, ReplaySubject } from 'rxjs';
|
|
2
2
|
import { map, debounce, materialize, scan, startWith } from 'rxjs/operators';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* @description creates a derivated state from the source observable.
|
|
6
|
-
*
|
|
7
|
-
* @example source$.pipe(suspensify())
|
|
8
|
-
*
|
|
9
|
-
* @returns Observable<SuspenseLax<T> | SuspenseStrict<T>>
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
4
|
function suspensify({
|
|
13
5
|
strict = true
|
|
14
6
|
} = {}) {
|
|
@@ -23,7 +15,6 @@ function suspensify({
|
|
|
23
15
|
);
|
|
24
16
|
};
|
|
25
17
|
}
|
|
26
|
-
|
|
27
18
|
/**
|
|
28
19
|
* This is the initial state of the Suspense.
|
|
29
20
|
* It is exposed for convenience and edge cases where the initial state must be set initially.
|
|
@@ -42,7 +33,6 @@ function _coalesceFirstEmittedValue() {
|
|
|
42
33
|
const isReadySubject = new ReplaySubject(1);
|
|
43
34
|
const subscription = source$.pipe( /* Wait for all synchronous processing to be done. */
|
|
44
35
|
debounce(() => isReadySubject)).subscribe(observer);
|
|
45
|
-
|
|
46
36
|
/* Sync emitted values have been processed now.
|
|
47
37
|
* Mark source as ready and emit last computed state. */
|
|
48
38
|
isReadySubject.next(undefined);
|
|
@@ -50,7 +40,6 @@ function _coalesceFirstEmittedValue() {
|
|
|
50
40
|
});
|
|
51
41
|
};
|
|
52
42
|
}
|
|
53
|
-
|
|
54
43
|
/* Use values as types for better type checking. */
|
|
55
44
|
const TRUE = true;
|
|
56
45
|
const FALSE = false;
|
package/package.json
CHANGED