@thi.ng/transducers 9.3.0 → 9.3.1

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
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-04-30T12:52:32Z
3
+ - **Last updated**: 2025-05-28T12:02:40Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -11,6 +11,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
11
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
12
  and/or version bumps of transitive dependencies.
13
13
 
14
+ ### [9.3.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers@9.3.1) (2025-05-28)
15
+
16
+ #### 🩹 Bug fixes
17
+
18
+ - fix [#500](https://github.com/thi-ng/umbrella/issues/500), update initial timestamp handling in `throttleTime()` ([6a8d88e](https://github.com/thi-ng/umbrella/commit/6a8d88e))
19
+
14
20
  ## [9.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers@9.3.0) (2025-04-30)
15
21
 
16
22
  #### 🚀 Features
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 206 standalone projects, maintained as part
10
+ > This is one of 208 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
  >
@@ -150,7 +150,7 @@ For Node.js REPL:
150
150
  const tx = await import("@thi.ng/transducers");
151
151
  ```
152
152
 
153
- Package sizes (brotli'd, pre-treeshake): ESM: 9.16 KB
153
+ Package sizes (brotli'd, pre-treeshake): ESM: 9.17 KB
154
154
 
155
155
  ## Dependencies
156
156
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/transducers",
3
- "version": "9.3.0",
3
+ "version": "9.3.1",
4
4
  "description": "Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -43,19 +43,19 @@
43
43
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
44
44
  },
45
45
  "dependencies": {
46
- "@thi.ng/api": "^8.11.27",
47
- "@thi.ng/arrays": "^2.11.0",
48
- "@thi.ng/checks": "^3.7.7",
49
- "@thi.ng/compare": "^2.4.19",
50
- "@thi.ng/compose": "^3.0.30",
51
- "@thi.ng/errors": "^2.5.33",
52
- "@thi.ng/math": "^5.11.27",
53
- "@thi.ng/random": "^4.1.18",
54
- "@thi.ng/timestamp": "^1.1.12"
46
+ "@thi.ng/api": "^8.11.28",
47
+ "@thi.ng/arrays": "^2.11.1",
48
+ "@thi.ng/checks": "^3.7.8",
49
+ "@thi.ng/compare": "^2.4.20",
50
+ "@thi.ng/compose": "^3.0.31",
51
+ "@thi.ng/errors": "^2.5.34",
52
+ "@thi.ng/math": "^5.11.28",
53
+ "@thi.ng/random": "^4.1.19",
54
+ "@thi.ng/timestamp": "^1.1.13"
55
55
  },
56
56
  "devDependencies": {
57
- "esbuild": "^0.25.3",
58
- "typedoc": "^0.28.3",
57
+ "esbuild": "^0.25.5",
58
+ "typedoc": "^0.28.5",
59
59
  "typescript": "^5.8.3"
60
60
  },
61
61
  "keywords": [
@@ -606,5 +606,5 @@
606
606
  ],
607
607
  "year": 2016
608
608
  },
609
- "gitHead": "4354686a6fb1f82c09ea48f92f87786191b231a0\n"
609
+ "gitHead": "61c3833b7ef7d044621454b5ea4af885d39f065e\n"
610
610
  }
package/throttle-time.js CHANGED
@@ -4,7 +4,7 @@ import { iterator1 } from "./iterator.js";
4
4
  import { throttle } from "./throttle.js";
5
5
  function throttleTime(delay, src) {
6
6
  return isIterable(src) ? iterator1(throttleTime(delay), src) : throttle(() => {
7
- let prev = 0;
7
+ let prev = now();
8
8
  return () => {
9
9
  const t = now();
10
10
  return timeDiff(prev, t) >= delay ? (prev = t, true) : false;