@thi.ng/transducers-async 0.4.0 → 0.4.2
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 +1 -1
- package/README.md +1 -1
- package/delayed.d.ts +4 -2
- package/package.json +11 -11
- package/raf.d.ts +6 -6
- package/source.d.ts +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 202 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
package/delayed.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Same as [thi.ng/compose
|
|
3
|
-
* `
|
|
2
|
+
* Same as [thi.ng/compose
|
|
3
|
+
* `delayed()`](https://docs.thi.ng/umbrella/compose/functions/delayed.html).
|
|
4
|
+
* Re-exported for convenience. Yields `x` as promise which only resolves after
|
|
5
|
+
* `delay` milliseconds.
|
|
4
6
|
*
|
|
5
7
|
* @remarks
|
|
6
8
|
* Also see {@link wait}.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/transducers-async",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Async versions of various highly composable transducers, reducers and iterators",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@thi.ng/api": "^8.11.
|
|
43
|
-
"@thi.ng/buffers": "^1.0.
|
|
44
|
-
"@thi.ng/checks": "^3.6.
|
|
45
|
-
"@thi.ng/compose": "^3.0.
|
|
46
|
-
"@thi.ng/errors": "^2.5.
|
|
47
|
-
"@thi.ng/timestamp": "^1.1.
|
|
48
|
-
"@thi.ng/transducers": "^9.2.
|
|
42
|
+
"@thi.ng/api": "^8.11.21",
|
|
43
|
+
"@thi.ng/buffers": "^1.0.6",
|
|
44
|
+
"@thi.ng/checks": "^3.6.24",
|
|
45
|
+
"@thi.ng/compose": "^3.0.24",
|
|
46
|
+
"@thi.ng/errors": "^2.5.27",
|
|
47
|
+
"@thi.ng/timestamp": "^1.1.6",
|
|
48
|
+
"@thi.ng/transducers": "^9.2.19"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"esbuild": "^0.
|
|
52
|
-
"typedoc": "^0.27.
|
|
51
|
+
"esbuild": "^0.25.0",
|
|
52
|
+
"typedoc": "^0.27.7",
|
|
53
53
|
"typescript": "^5.7.3"
|
|
54
54
|
},
|
|
55
55
|
"keywords": [
|
|
@@ -211,5 +211,5 @@
|
|
|
211
211
|
"status": "alpha",
|
|
212
212
|
"year": 2018
|
|
213
213
|
},
|
|
214
|
-
"gitHead": "
|
|
214
|
+
"gitHead": "bee617702ac61d093465b967f8f973dc566faa6b\n"
|
|
215
215
|
}
|
package/raf.d.ts
CHANGED
|
@@ -4,17 +4,17 @@ export interface RAFOpts {
|
|
|
4
4
|
/**
|
|
5
5
|
* If true (default: false), passes the timestamps received
|
|
6
6
|
* via `requestAnimationFrame()` as iterator values. If false, a simple
|
|
7
|
-
* counter [0
|
|
7
|
+
* counter `[0,∞)` will be emitted.
|
|
8
8
|
*
|
|
9
9
|
* @defaultValue false
|
|
10
10
|
*/
|
|
11
11
|
timestamp: boolean;
|
|
12
12
|
/**
|
|
13
|
-
* Only used if {@link RAFOpts.timestamp} is enabled. If given as
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
13
|
+
* Only used if {@link RAFOpts.timestamp} is enabled. If given as number,
|
|
14
|
+
* the value will be subtracted from all emitted timestamps. If this option
|
|
15
|
+
* is set to true, the timestamps will be automatically zero-adjusted such
|
|
16
|
+
* that the first emitted value will be zero. If undefined (default), the
|
|
17
|
+
* browser supplied timestamps will be used as is.
|
|
18
18
|
*/
|
|
19
19
|
t0: number | boolean;
|
|
20
20
|
}
|
package/source.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export interface Source<T> extends ClosableAsyncGenerator<T>, IDeref<Maybe<T>> {
|
|
|
48
48
|
* @remarks
|
|
49
49
|
* See [thi.ng/buffers](https://thi.ng/buffers) for available buffer
|
|
50
50
|
* implementations. By default a
|
|
51
|
-
* [`fifo
|
|
51
|
+
* [`fifo`](https://docs.thi.ng/umbrella/buffers/functions/fifo.html) buffer
|
|
52
52
|
* with capacity=1 is used.
|
|
53
53
|
*
|
|
54
54
|
* If `initial` is given, the source will immediately deliver this value once a
|