Skip to content

Commit 667adc5

Browse files
committed
Auto-generated commit
1 parent 344d9a1 commit 667adc5

File tree

63 files changed

+1927
-1809
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1927
-1809
lines changed

.gitignore

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,12 @@ jsconfig.json
188188
# Other editor files #
189189
######################
190190
.idea/
191-
192-
# Cursor #
193-
##########
191+
.cursor
194192
.cursorignore
193+
.windsurfrules
194+
.clinerules
195+
196+
# AI coding agents #
197+
####################
198+
CLAUDE.md
199+
GEMINI.md

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-08-12)
7+
## Unreleased (2025-09-10)
88

99
<section class="features">
1010

1111
### Features
1212

13+
- [`20d6f78`](https://github.com/stdlib-js/stdlib/commit/20d6f781751cf16b96f5c1e2912a502ef97f6f5d) - add iterator exports and fix naming consistency
1314
- [`8b1548f`](https://github.com/stdlib-js/stdlib/commit/8b1548fb45c1ff131f5edac20cb984344a2d28ec) - update namespace TypeScript declarations [(#3190)](https://github.com/stdlib-js/stdlib/pull/3190)
1415

1516
</section>
@@ -20,6 +21,7 @@
2021

2122
### BREAKING CHANGES
2223

24+
- [`20d6f78`](https://github.com/stdlib-js/stdlib/commit/20d6f781751cf16b96f5c1e2912a502ef97f6f5d): rename whileEach to iterWhileEach for consistency
2325
- [`8b1548f`](https://github.com/stdlib-js/stdlib/commit/8b1548fb45c1ff131f5edac20cb984344a2d28ec): update namespace declarations
2426

2527
- To migrate, users should consult the corresponding packages containing the respective implementations to determine what is breaking. The primary breakages come from the `blas/*` namespace, where we recently refactored how top-level BLAS APIs operate on input arguments.
@@ -34,6 +36,12 @@
3436

3537
<details>
3638

39+
- [`78620b6`](https://github.com/stdlib-js/stdlib/commit/78620b6184bd362245406d3c6af826455a0b78fc) - **chore:** disable lint directives _(by Philipp Burckhardt)_
40+
- [`33d711b`](https://github.com/stdlib-js/stdlib/commit/33d711b32194fa35075481f408444ce4bb48a32d) - **docs:** add missing forward slashes to return annotations _(by Philipp Burckhardt)_
41+
- [`20d6f78`](https://github.com/stdlib-js/stdlib/commit/20d6f781751cf16b96f5c1e2912a502ef97f6f5d) - **feat:** add iterator exports and fix naming consistency _(by Philipp Burckhardt)_
42+
- [`11581aa`](https://github.com/stdlib-js/stdlib/commit/11581aaca8c3cb824cbb92c0c0f80e76890bdb20) - **test:** use standardized assertion messages and fix lint errors _(by Philipp Burckhardt)_
43+
- [`07f7c05`](https://github.com/stdlib-js/stdlib/commit/07f7c0522c73e6ad9505e1d45035ae439344200d) - **test:** use standardized assertion messages and fix lint errors _(by Philipp Burckhardt)_
44+
- [`c894b66`](https://github.com/stdlib-js/stdlib/commit/c894b664661bfb87286304b24dd5a1758ae482b7) - **test:** use .strictEqual() instead of .equal() and fix lint errors _(by Philipp Burckhardt)_
3745
- [`77867ac`](https://github.com/stdlib-js/stdlib/commit/77867ac1767a186023f633dea30ddf860962aaed) - **docs:** remove trailing whitespace _(by Philipp Burckhardt)_
3846
- [`5df47c3`](https://github.com/stdlib-js/stdlib/commit/5df47c33138ddac50e4a9cfb8f0b22c1821e046b) - **chore:** minor clean-up _(by Philipp Burckhardt)_
3947
- [`908fdc2`](https://github.com/stdlib-js/stdlib/commit/908fdc25b354623f6d30952c19cbec39f1e0d2af) - **refactor:** update paths _(by Athan Reines)_

CONTRIBUTORS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Bruno Fenzl <brunofenzl@gmail.com>
4242
Bryan Elee <rxbryn@gmail.com>
4343
Chinmay Joshi <86140365+JawHawk@users.noreply.github.com>
4444
Christopher Dambamuromo <chridam@gmail.com>
45+
DUDHAT HEMIL PRAVINKUMAR <138382078+Hemil36@users.noreply.github.com>
4546
Dan Rose <danoftheroses@gmail.com>
4647
Daniel Hernandez Gomez <156333015+dhernandeez13@users.noreply.github.com>
4748
Daniel Killenberger <daniel.killenberger@gmail.com>
@@ -65,6 +66,7 @@ Frank Kovacs <fran70kk@gmail.com>
6566
GK Bishnoi <gkishan1kyt@gmail.com>
6667
GURU PRASAD SHARMA <168292003+GURUPRASADSHARMA@users.noreply.github.com>
6768
Gaurav <gaurav70380@gmail.com>
69+
Gaurav Kaushik <144526331+Gauravkaushik-1206@users.noreply.github.com>
6870
Gautam Kaushik <162317291+Kaushikgtm@users.noreply.github.com>
6971
Gautam sharma <gautamkrishnasharma1@gmail.com>
7072
GeoDaoyu <geodaoyu@foxmail.com>
@@ -166,6 +168,7 @@ Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
166168
Ryan Seal <splrk@users.noreply.github.com>
167169
Rylan Yang <137365285+rylany27@users.noreply.github.com>
168170
SAHIL KUMAR <168997976+sahilk45@users.noreply.github.com>
171+
SAUJANYA MAGARDE <162047941+SaujanyaMagarde@users.noreply.github.com>
169172
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
170173
Sachin Raj <120590207+schnrj@users.noreply.github.com>
171174
Sahil Goyal <87982509+sahil20021008@users.noreply.github.com>
@@ -188,6 +191,7 @@ Sivam Das <100067002+Sivam2313@users.noreply.github.com>
188191
Snehil Shah <snehilshah.989@gmail.com>
189192
Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com>
190193
Spandan Barve <contact@marsian.dev>
194+
Srinivas Batthula <srinivasbatthula05.official@gmail.com>
191195
Stephannie Jiménez Gacha <steff456@hotmail.com>
192196
Suhaib Ilahi <suhaib.elahi87@gmail.com>
193197
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>

any/test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ tape( 'if provided an "empty" iterator, the function returns `false`', function
6969
arr = array2iterator( [] );
7070
bool = iterAny( arr );
7171

72-
t.strictEqual( bool, false, 'returns false' );
72+
t.strictEqual( bool, false, 'returns expected value' );
7373
t.end();
7474
});
7575

@@ -80,7 +80,7 @@ tape( 'the function returns `true` if at least one iterated value is truthy', fu
8080
arr = array2iterator( [ 0, 0, 0, 0, 1 ] );
8181
bool = iterAny( arr );
8282

83-
t.strictEqual( bool, true, 'returns true' );
83+
t.strictEqual( bool, true, 'returns expected value' );
8484
t.end();
8585
});
8686

@@ -91,6 +91,6 @@ tape( 'the function returns `false` if all iterated values are falsy', function
9191
arr = array2iterator( [ 0, 0, 0 ] );
9292
bool = iterAny( arr );
9393

94-
t.strictEqual( bool, false, 'returns false' );
94+
t.strictEqual( bool, false, 'returns expected value' );
9595
t.end();
9696
});

concat/test/test.js

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,12 @@ tape( 'the function returns an iterator protocol-compliant object (infinite iter
165165
var i;
166166

167167
it = iterConcat( randu(), randu() );
168-
t.equal( it.next.length, 0, 'has zero arity' );
168+
t.strictEqual( it.next.length, 0, 'has zero arity' );
169169

170170
for ( i = 0; i < 100; i++ ) {
171171
v = it.next();
172-
t.equal( typeof v.value, 'number', 'returns expected value' );
173-
t.equal( v.done, false, 'returns expected value' );
172+
t.strictEqual( typeof v.value, 'number', 'returns expected value' );
173+
t.strictEqual( v.done, false, 'returns expected value' );
174174
}
175175
t.end();
176176
});
@@ -208,7 +208,7 @@ tape( 'the function returns an iterator protocol-compliant object (2 finite iter
208208
];
209209

210210
it = iterConcat( array2iterator( values1 ), array2iterator( values2 ) );
211-
t.equal( it.next.length, 0, 'has zero arity' );
211+
t.strictEqual( it.next.length, 0, 'has zero arity' );
212212

213213
actual = [];
214214
for ( i = 0; i < values1.length+values2.length; i++ ) {
@@ -263,7 +263,7 @@ tape( 'the function returns an iterator protocol-compliant object (3 finite iter
263263
];
264264

265265
it = iterConcat( array2iterator( values1 ), array2iterator( values2 ), array2iterator( values3 ) ); // eslint-disable-line max-len
266-
t.equal( it.next.length, 0, 'has zero arity' );
266+
t.strictEqual( it.next.length, 0, 'has zero arity' );
267267

268268
actual = [];
269269
for ( i = 0; i < values1.length+values2.length+values3.length; i++ ) {
@@ -310,7 +310,7 @@ tape( 'the function returns an iterator protocol-compliant object (3 finite iter
310310
];
311311

312312
it = iterConcat( array2iterator( values1 ), array2iterator( values2 ), array2iterator( values3 ) ); // eslint-disable-line max-len
313-
t.equal( it.next.length, 0, 'has zero arity' );
313+
t.strictEqual( it.next.length, 0, 'has zero arity' );
314314

315315
actual = [];
316316
for ( i = 0; i < values1.length+values2.length+values3.length; i++ ) {
@@ -334,7 +334,7 @@ tape( 'the function returns an iterator protocol-compliant object (empty iterato
334334
];
335335

336336
it = iterConcat( iterEmpty(), iterEmpty(), iterEmpty(), iterEmpty() );
337-
t.equal( it.next.length, 0, 'has zero arity' );
337+
t.strictEqual( it.next.length, 0, 'has zero arity' );
338338

339339
actual = [];
340340
actual.push( it.next() );
@@ -378,7 +378,7 @@ tape( 'the function returns an iterator protocol-compliant object (value+done)',
378378
];
379379

380380
it = iterConcat( createIterator( values1 ), createIterator( values2 ) );
381-
t.equal( it.next.length, 0, 'has zero arity' );
381+
t.strictEqual( it.next.length, 0, 'has zero arity' );
382382

383383
N = values1.length + values2.length;
384384
actual = [];
@@ -425,20 +425,20 @@ tape( 'the returned iterator has a `return` method for closing an iterator (no a
425425
it = iterConcat( randu(), randu() );
426426

427427
r = it.next();
428-
t.equal( typeof r.value, 'number', 'returns a number' );
429-
t.equal( r.done, false, 'returns expected value' );
428+
t.strictEqual( typeof r.value, 'number', 'returns expected value' );
429+
t.strictEqual( r.done, false, 'returns expected value' );
430430

431431
r = it.next();
432-
t.equal( typeof r.value, 'number', 'returns a number' );
433-
t.equal( r.done, false, 'returns expected value' );
432+
t.strictEqual( typeof r.value, 'number', 'returns expected value' );
433+
t.strictEqual( r.done, false, 'returns expected value' );
434434

435435
r = it.return();
436-
t.equal( r.value, void 0, 'returns expected value' );
437-
t.equal( r.done, true, 'returns expected value' );
436+
t.strictEqual( r.value, void 0, 'returns expected value' );
437+
t.strictEqual( r.done, true, 'returns expected value' );
438438

439439
r = it.next();
440-
t.equal( r.value, void 0, 'returns expected value' );
441-
t.equal( r.done, true, 'returns expected value' );
440+
t.strictEqual( r.value, void 0, 'returns expected value' );
441+
t.strictEqual( r.done, true, 'returns expected value' );
442442

443443
t.end();
444444
});
@@ -450,20 +450,20 @@ tape( 'the returned iterator has a `return` method for closing an iterator (argu
450450
it = iterConcat( randu(), randu() );
451451

452452
r = it.next();
453-
t.equal( typeof r.value, 'number', 'returns a number' );
454-
t.equal( r.done, false, 'returns expected value' );
453+
t.strictEqual( typeof r.value, 'number', 'returns expected value' );
454+
t.strictEqual( r.done, false, 'returns expected value' );
455455

456456
r = it.next();
457-
t.equal( typeof r.value, 'number', 'returns a number' );
458-
t.equal( r.done, false, 'returns expected value' );
457+
t.strictEqual( typeof r.value, 'number', 'returns expected value' );
458+
t.strictEqual( r.done, false, 'returns expected value' );
459459

460460
r = it.return( 'finished' );
461-
t.equal( r.value, 'finished', 'returns expected value' );
462-
t.equal( r.done, true, 'returns expected value' );
461+
t.strictEqual( r.value, 'finished', 'returns expected value' );
462+
t.strictEqual( r.done, true, 'returns expected value' );
463463

464464
r = it.next();
465-
t.equal( r.value, void 0, 'returns expected value' );
466-
t.equal( r.done, true, 'returns expected value' );
465+
t.strictEqual( r.value, void 0, 'returns expected value' );
466+
t.strictEqual( r.done, true, 'returns expected value' );
467467

468468
t.end();
469469
});
@@ -487,16 +487,16 @@ tape( 'if an environment supports `Symbol.iterator` and the provided iterators a
487487
rand[ '__ITERATOR_SYMBOL__' ] = factory;
488488

489489
it1 = iterConcat( rand, rand );
490-
t.equal( typeof it1[ '__ITERATOR_SYMBOL__' ], 'function', 'has method' );
491-
t.equal( it1[ '__ITERATOR_SYMBOL__' ].length, 0, 'has zero arity' );
490+
t.strictEqual( typeof it1[ '__ITERATOR_SYMBOL__' ], 'function', 'has method' );
491+
t.strictEqual( it1[ '__ITERATOR_SYMBOL__' ].length, 0, 'has zero arity' );
492492

493493
it2 = it1[ '__ITERATOR_SYMBOL__' ]();
494-
t.equal( typeof it2, 'object', 'returns an object' );
495-
t.equal( typeof it2.next, 'function', 'has method' );
496-
t.equal( typeof it2.return, 'function', 'has method' );
494+
t.strictEqual( typeof it2, 'object', 'returns expected value' );
495+
t.strictEqual( typeof it2.next, 'function', 'has method' );
496+
t.strictEqual( typeof it2.return, 'function', 'has method' );
497497

498498
for ( i = 0; i < 100; i++ ) {
499-
t.equal( it2.next().value, it1.next().value, 'returns expected value' );
499+
t.strictEqual( it2.next().value, it1.next().value, 'returns expected value' );
500500
}
501501
t.end();
502502

@@ -514,7 +514,7 @@ tape( 'if an environment does not support `Symbol.iterator`, the returned iterat
514514
});
515515

516516
it = iterConcat( randu(), randu() );
517-
t.equal( it[ iteratorSymbol ], void 0, 'does not have property' );
517+
t.strictEqual( it[ iteratorSymbol ], void 0, 'does not have property' );
518518

519519
t.end();
520520
});
@@ -532,7 +532,7 @@ tape( 'if a provided iterator is not iterable, the returned iterator is not iter
532532
rand[ '__ITERATOR_SYMBOL__' ] = null;
533533

534534
it = iterConcat( rand, rand );
535-
t.equal( it[ iteratorSymbol ], void 0, 'does not have property' );
535+
t.strictEqual( it[ iteratorSymbol ], void 0, 'does not have property' );
536536

537537
t.end();
538538
});

constant/test/test.js

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ tape( 'the function returns an iterator protocol-compliant object which always r
140140
];
141141

142142
it = iterConstant( 3.14 );
143-
t.equal( it.next.length, 0, 'has zero arity' );
143+
t.strictEqual( it.next.length, 0, 'has zero arity' );
144144

145145
actual = [];
146146
for ( i = 0; i < expected.length; i++ ) {
@@ -183,7 +183,7 @@ tape( 'the function supports limiting the number of iterations', function test(
183183
'iter': 4
184184
};
185185
it = iterConstant( 3.14, opts );
186-
t.equal( it.next.length, 0, 'has zero arity' );
186+
t.strictEqual( it.next.length, 0, 'has zero arity' );
187187

188188
actual = [];
189189
for ( i = 0; i < opts.iter; i++ ) {
@@ -230,12 +230,12 @@ tape( 'if provided an object reference, the function returns an iterator protoco
230230
'iter': 4
231231
};
232232
it = iterConstant( v, opts );
233-
t.equal( it.next.length, 0, 'has zero arity' );
233+
t.strictEqual( it.next.length, 0, 'has zero arity' );
234234

235235
actual = [];
236236
for ( i = 0; i < opts.iter; i++ ) {
237237
actual.push( it.next() );
238-
t.equal( actual[ i ].value, v, 'returns expected value' );
238+
t.strictEqual( actual[ i ].value, v, 'returns expected value' );
239239
}
240240
actual.push( it.next() );
241241

@@ -250,20 +250,20 @@ tape( 'the returned iterator has a `return` method for closing an iterator (no a
250250
it = iterConstant( 3.14 );
251251

252252
r = it.next();
253-
t.equal( typeof r.value, 'number', 'returns a number' );
254-
t.equal( r.done, false, 'returns expected value' );
253+
t.strictEqual( typeof r.value, 'number', 'returns expected value' );
254+
t.strictEqual( r.done, false, 'returns expected value' );
255255

256256
r = it.next();
257-
t.equal( typeof r.value, 'number', 'returns a number' );
258-
t.equal( r.done, false, 'returns expected value' );
257+
t.strictEqual( typeof r.value, 'number', 'returns expected value' );
258+
t.strictEqual( r.done, false, 'returns expected value' );
259259

260260
r = it.return();
261-
t.equal( r.value, void 0, 'returns expected value' );
262-
t.equal( r.done, true, 'returns expected value' );
261+
t.strictEqual( r.value, void 0, 'returns expected value' );
262+
t.strictEqual( r.done, true, 'returns expected value' );
263263

264264
r = it.next();
265-
t.equal( r.value, void 0, 'returns expected value' );
266-
t.equal( r.done, true, 'returns expected value' );
265+
t.strictEqual( r.value, void 0, 'returns expected value' );
266+
t.strictEqual( r.done, true, 'returns expected value' );
267267

268268
t.end();
269269
});
@@ -275,20 +275,20 @@ tape( 'the returned iterator has a `return` method for closing an iterator (argu
275275
it = iterConstant( 3.14 );
276276

277277
r = it.next();
278-
t.equal( typeof r.value, 'number', 'returns a number' );
279-
t.equal( r.done, false, 'returns expected value' );
278+
t.strictEqual( typeof r.value, 'number', 'returns expected value' );
279+
t.strictEqual( r.done, false, 'returns expected value' );
280280

281281
r = it.next();
282-
t.equal( typeof r.value, 'number', 'returns a number' );
283-
t.equal( r.done, false, 'returns expected value' );
282+
t.strictEqual( typeof r.value, 'number', 'returns expected value' );
283+
t.strictEqual( r.done, false, 'returns expected value' );
284284

285285
r = it.return( 'finished' );
286-
t.equal( r.value, 'finished', 'returns expected value' );
287-
t.equal( r.done, true, 'returns expected value' );
286+
t.strictEqual( r.value, 'finished', 'returns expected value' );
287+
t.strictEqual( r.done, true, 'returns expected value' );
288288

289289
r = it.next();
290-
t.equal( r.value, void 0, 'returns expected value' );
291-
t.equal( r.done, true, 'returns expected value' );
290+
t.strictEqual( r.value, void 0, 'returns expected value' );
291+
t.strictEqual( r.done, true, 'returns expected value' );
292292

293293
t.end();
294294
});
@@ -304,16 +304,16 @@ tape( 'if an environment supports `Symbol.iterator`, the returned iterator is it
304304
});
305305

306306
it1 = iterConstant( 3.14 );
307-
t.equal( typeof it1[ '__ITERATOR_SYMBOL__' ], 'function', 'has method' );
308-
t.equal( it1[ '__ITERATOR_SYMBOL__' ].length, 0, 'has zero arity' );
307+
t.strictEqual( typeof it1[ '__ITERATOR_SYMBOL__' ], 'function', 'has method' );
308+
t.strictEqual( it1[ '__ITERATOR_SYMBOL__' ].length, 0, 'has zero arity' );
309309

310310
it2 = it1[ '__ITERATOR_SYMBOL__' ]();
311-
t.equal( typeof it2, 'object', 'returns an object' );
312-
t.equal( typeof it2.next, 'function', 'has method' );
313-
t.equal( typeof it2.return, 'function', 'has method' );
311+
t.strictEqual( typeof it2, 'object', 'returns expected value' );
312+
t.strictEqual( typeof it2.next, 'function', 'has method' );
313+
t.strictEqual( typeof it2.return, 'function', 'has method' );
314314

315315
for ( i = 0; i < 10; i++ ) {
316-
t.equal( it2.next().value, it1.next().value, 'returns expected value' );
316+
t.strictEqual( it2.next().value, it1.next().value, 'returns expected value' );
317317
}
318318
t.end();
319319
});
@@ -327,7 +327,7 @@ tape( 'if an environment does not support `Symbol.iterator`, the returned iterat
327327
});
328328

329329
it = iterConstant( 3.14 );
330-
t.equal( it[ iteratorSymbol ], void 0, 'does not have property' );
330+
t.strictEqual( it[ iteratorSymbol ], void 0, 'does not have property' );
331331

332332
t.end();
333333
});

0 commit comments

Comments
 (0)