Skip to content

Commit bc1a99b

Browse files
committed
Auto-generated commit
1 parent 7cfc968 commit bc1a99b

File tree

7 files changed

+60
-54
lines changed

7 files changed

+60
-54
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,29 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-08-11)
7+
## Unreleased (2025-09-06)
8+
9+
<section class="issues">
10+
11+
### Closed Issues
12+
13+
This release closes the following issue:
14+
15+
[#8013](https://github.com/stdlib-js/stdlib/issues/8013)
16+
17+
</section>
18+
19+
<!-- /.issues -->
820

921
<section class="commits">
1022

1123
### Commits
1224

1325
<details>
1426

27+
- [`afee9b8`](https://github.com/stdlib-js/stdlib/commit/afee9b8ccfb8688748b390a1960be38f562f22f3) - **chore:** resolve JavaScript lint errors [(#8018)](https://github.com/stdlib-js/stdlib/pull/8018) _(by Gauravkaushik-1206, Athan Reines)_
28+
- [`07f7c05`](https://github.com/stdlib-js/stdlib/commit/07f7c0522c73e6ad9505e1d45035ae439344200d) - **test:** use standardized assertion messages and fix lint errors _(by Philipp Burckhardt)_
29+
- [`842892d`](https://github.com/stdlib-js/stdlib/commit/842892db70da69098d8fb271ea19ae45c09a8a0e) - **test:** use .strictEqual() instead of .equal() and fix lint errors _(by Philipp Burckhardt)_
1530
- [`5f73301`](https://github.com/stdlib-js/stdlib/commit/5f73301a8509cc423a06b02140c4e316fd02ff49) - **docs:** minor clean-up _(by Philipp Burckhardt)_
1631
- [`87d73e7`](https://github.com/stdlib-js/stdlib/commit/87d73e766f9238784e96d9a7a78cec726b9b718b) - **refactor:** use base array assertion utility _(by Athan Reines)_
1732
- [`22e382b`](https://github.com/stdlib-js/stdlib/commit/22e382b0c5829205f4319aa82140efb39e3b1ad8) - **style:** resolve lint errors _(by Athan Reines)_
@@ -27,9 +42,10 @@
2742

2843
### Contributors
2944

30-
A total of 2 people contributed to this release. Thank you to the following contributors:
45+
A total of 3 people contributed to this release. Thank you to the following contributors:
3146

3247
- Athan Reines
48+
- Gauravkaushik-1206
3349
- Philipp Burckhardt
3450

3551
</section>

CONTRIBUTORS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Abhishek G <166795493+AbhishekG-Codes@users.noreply.github.com>
1313
Abhishek Jain <40913033+abhishekblue@users.noreply.github.com>
1414
Adarsh Palaskar <adarshpalaskar99@gmail.com>
1515
Aditya Sapra <adityaework@gmail.com>
16+
Aditya Singh <adityasinghk099@gmail.com>
1617
Ahmed Atwa <Ahmedatwa866@yahoo.com>
1718
Ahmed Kashkoush <ahmedkashkoush464@gmail.com>
1819
Ahmed Khaled <kahmd1444@gmail.com>
@@ -41,6 +42,7 @@ Bruno Fenzl <brunofenzl@gmail.com>
4142
Bryan Elee <rxbryn@gmail.com>
4243
Chinmay Joshi <86140365+JawHawk@users.noreply.github.com>
4344
Christopher Dambamuromo <chridam@gmail.com>
45+
DUDHAT HEMIL PRAVINKUMAR <138382078+Hemil36@users.noreply.github.com>
4446
Dan Rose <danoftheroses@gmail.com>
4547
Daniel Hernandez Gomez <156333015+dhernandeez13@users.noreply.github.com>
4648
Daniel Killenberger <daniel.killenberger@gmail.com>
@@ -121,6 +123,7 @@ Muhammad Haris <harriskhan047@outlook.com>
121123
Muhammad Taaha Tariq <166188821+Taaha-Tariq@users.noreply.github.com>
122124
Muhmmad Saad <106260977+saad-imran-dev@users.noreply.github.com>
123125
NEEKUorAAYUSH <aayush10072004@gmail.com>
126+
Nakul Krishnakumar <nakulkrishnakumar86@gmail.com>
124127
Naresh Jagadeesan <naresh.naresh000@gmail.com>
125128
Naveen Kumar <stupiddint@gmail.com>
126129
Neeraj Pathak <neerajrpathak710@gmail.com>
@@ -164,6 +167,7 @@ Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
164167
Ryan Seal <splrk@users.noreply.github.com>
165168
Rylan Yang <137365285+rylany27@users.noreply.github.com>
166169
SAHIL KUMAR <168997976+sahilk45@users.noreply.github.com>
170+
SAUJANYA MAGARDE <162047941+SaujanyaMagarde@users.noreply.github.com>
167171
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
168172
Sachin Raj <120590207+schnrj@users.noreply.github.com>
169173
Sahil Goyal <87982509+sahil20021008@users.noreply.github.com>
@@ -186,6 +190,7 @@ Sivam Das <100067002+Sivam2313@users.noreply.github.com>
186190
Snehil Shah <snehilshah.989@gmail.com>
187191
Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com>
188192
Spandan Barve <contact@marsian.dev>
193+
Srinivas Batthula <srinivasbatthula05.official@gmail.com>
189194
Stephannie Jiménez Gacha <steff456@hotmail.com>
190195
Suhaib Ilahi <suhaib.elahi87@gmail.com>
191196
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>

README.md

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -165,32 +165,27 @@ var out = ranks( data, {
165165
<!-- eslint no-undef: "error" -->
166166

167167
```javascript
168-
var Int32Array = require( '@stdlib/array-int32' );
169-
var round = require( '@stdlib/math-base-special-round' );
170-
var randu = require( '@stdlib/random-base-randu' );
168+
var discreteUniform = require( '@stdlib/random-array-discrete-uniform' );
169+
var join = require( '@stdlib/array-base-join' );
171170
var ranks = require( '@stdlib/stats-ranks' );
172171

173-
var data;
174-
var out;
175-
var i;
172+
// Plain array:
173+
var data = discreteUniform( 0, 10, {
174+
'dtype': 'generic'
175+
});
176176

177-
// Plain arrays...
178-
data = [];
179-
for ( i = 0; i < data.length; i++ ) {
180-
data.push( round( randu()*10.0 ) );
181-
}
177+
var out = ranks( data );
178+
console.log( 'data: [ %s ]', join( data, ', ' ) );
179+
console.log( 'ranks: [ %s ]', join( out, ', ' ) );
182180

183-
out = ranks( data );
184-
// returns <array>
185-
186-
// Typed arrays...
187-
data = new Int32Array( 10 );
188-
for ( i = 0; i < data.length; i++ ) {
189-
data[ i ] = randu() * 10.0;
190-
}
181+
// Typed array:
182+
data = discreteUniform( 0, 10, {
183+
'dtype': 'int32'
184+
});
191185

192186
out = ranks( data );
193-
// returns <array>
187+
console.log( 'data: [ %s ]', join( data, ', ' ) );
188+
console.log( 'ranks: [ %s ]', join( out, ', ' ) );
194189
```
195190

196191
</section>

examples/index.js

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,24 @@
1818

1919
'use strict';
2020

21-
var Int32Array = require( '@stdlib/array-int32' );
22-
var round = require( '@stdlib/math-base-special-round' );
23-
var randu = require( '@stdlib/random-base-randu' );
21+
var discreteUniform = require( '@stdlib/random-array-discrete-uniform' );
22+
var join = require( '@stdlib/array-base-join' );
2423
var ranks = require( './../lib' );
2524

26-
var join;
27-
var data;
28-
var out;
29-
var i;
25+
// Plain array:
26+
var data = discreteUniform( 0, 10, {
27+
'dtype': 'generic'
28+
});
3029

31-
// Plain arrays...
32-
data = new Array( 10 );
33-
for ( i = 0; i < data.length; i++ ) {
34-
data[ i ] = round( randu()*10.0 );
35-
}
30+
var out = ranks( data );
31+
console.log( 'data: [ %s ]', join( data, ', ' ) );
32+
console.log( 'ranks: [ %s ]', join( out, ', ' ) );
3633

37-
out = ranks( data );
38-
join = Array.prototype.join;
39-
console.log( 'data: [ %s ]', join.call( data, ', ' ) );
40-
console.log( 'ranks: [ %s ]', join.call( out, ', ' ) );
41-
42-
// Typed arrays...
43-
data = new Int32Array( 10 );
44-
for ( i = 0; i < data.length; i++ ) {
45-
data[ i ] = randu() * 10.0;
46-
}
34+
// Typed array:
35+
data = discreteUniform( 0, 10, {
36+
'dtype': 'int32'
37+
});
4738

4839
out = ranks( data );
49-
console.log( 'data: [ %s ]', join.call( data, ', ' ) );
50-
console.log( 'ranks: [ %s ]', join.call( out, ', ' ) );
40+
console.log( 'data: [ %s ]', join( data, ', ' ) );
41+
console.log( 'ranks: [ %s ]', join( out, ', ' ) );

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
"@stdlib/error-tools-fmtprodmsg": "^0.2.2"
5252
},
5353
"devDependencies": {
54-
"@stdlib/array-int32": "^0.2.2",
55-
"@stdlib/math-base-special-round": "^0.3.0",
54+
"@stdlib/array-base-join": "^0.1.1",
55+
"@stdlib/random-array-discrete-uniform": "^0.2.1",
5656
"@stdlib/random-base-randu": "^0.2.1",
5757
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5858
"istanbul": "^0.4.1",

test/test.validate.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ tape( 'the function returns a type error if not provided an options object', fun
5050

5151
for ( i = 0; i < values.length; i++ ) {
5252
err = validate( {}, values[i] );
53-
t.equal( err instanceof TypeError, true, 'returns a TypeError when provided '+values[i] );
53+
t.strictEqual( err instanceof TypeError, true, 'returns a TypeError when provided '+values[i] );
5454
}
5555
t.end();
5656
});
@@ -76,7 +76,7 @@ tape( 'the function returns a type error if provided a `missing` option which is
7676
err = validate( {}, {
7777
'missing': values[i]
7878
});
79-
t.equal( err instanceof TypeError, true, 'returns a TypeError when provided '+values[i] );
79+
t.strictEqual( err instanceof TypeError, true, 'returns a TypeError when provided '+values[i] );
8080
}
8181
t.end();
8282
});
@@ -102,7 +102,7 @@ tape( 'the function returns a type error if provided an `method` option which is
102102
err = validate( {}, {
103103
'method': values[i]
104104
});
105-
t.equal( err instanceof TypeError, true, 'returns a TypeError when provided '+values[i] );
105+
t.strictEqual( err instanceof TypeError, true, 'returns a TypeError when provided '+values[i] );
106106
}
107107
t.end();
108108
});
@@ -128,7 +128,7 @@ tape( 'the function returns `null` if all options are valid', function test( t )
128128

129129
err = validate( opts, options );
130130

131-
t.equal( err, null, 'returns null' );
131+
t.strictEqual( err, null, 'returns expected value' );
132132
t.deepEqual( opts, expected, 'extracts options' );
133133

134134
t.end();
@@ -149,7 +149,7 @@ tape( 'the function ignores unrecognized options', function test( t ) {
149149

150150
err = validate( opts, options );
151151

152-
t.equal( err, null, 'returns null' );
152+
t.strictEqual( err, null, 'returns expected value' );
153153
t.deepEqual( opts, {}, 'ignores unrecognized options' );
154154

155155
t.end();

0 commit comments

Comments
 (0)