@byloth/core 2.0.0-rc.5 → 2.0.0-rc.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byloth/core",
3
- "version": "2.0.0-rc.5",
3
+ "version": "2.0.0-rc.6",
4
4
  "description": "An unopinionated collection of useful functions and classes that I use widely in all my projects. 🔧",
5
5
  "keywords": [
6
6
  "Core",
@@ -48,10 +48,10 @@
48
48
  "types": "./src/index.ts",
49
49
  "devDependencies": {
50
50
  "@byloth/eslint-config-typescript": "^3.0.1",
51
- "@types/node": "^20.17.6",
51
+ "@types/node": "^22.9.0",
52
52
  "husky": "^9.1.6",
53
53
  "typescript": "^5.6.3",
54
- "vite": "^5.4.10"
54
+ "vite": "^5.4.11"
55
55
  },
56
56
  "scripts": {
57
57
  "dev": "vite",
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- export const VERSION = "2.0.0-rc.5";
1
+ export const VERSION = "2.0.0-rc.6";
2
2
 
3
3
  export type { Constructor, Interval, Timeout } from "./core/types.js";
4
4
 
@@ -190,12 +190,7 @@ export default class AggregatedAsyncIterator<K extends PropertyKey, T>
190
190
  for await (const [key, element] of elements)
191
191
  {
192
192
  const index = indexes.get(key) ?? 0;
193
- if (index >= limit)
194
- {
195
- if (indexes.values().every((value) => value >= limit)) { break; }
196
-
197
- continue;
198
- }
193
+ if (index >= limit) { continue; }
199
194
 
200
195
  yield [key, element];
201
196
 
@@ -178,12 +178,7 @@ export default class AggregatedIterator<K extends PropertyKey, T>
178
178
  for (const [key, element] of elements)
179
179
  {
180
180
  const index = indexes.get(key) ?? 0;
181
- if (index >= limit)
182
- {
183
- if (indexes.values().every((value) => value >= limit)) { break; }
184
-
185
- continue;
186
- }
181
+ if (index >= limit) { continue; }
187
182
 
188
183
  yield [key, element];
189
184