Skip to content

Commit a7d046a

Browse files
committed
Auto-generated commit
1 parent b20f283 commit a7d046a

File tree

7 files changed

+136
-46
lines changed

7 files changed

+136
-46
lines changed

.github/.keepalive

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

.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: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,42 @@
22

33
> Package changelog.
44
5+
<section class="release" id="unreleased">
6+
7+
## Unreleased (2025-11-13)
8+
9+
<section class="commits">
10+
11+
### Commits
12+
13+
<details>
14+
15+
- [`e4d5f21`](https://github.com/stdlib-js/stdlib/commit/e4d5f21b9a7111bb6255874d2f7a2d5a0c08e59e) - **docs:** fix lint errors in TS declaration files _(by Philipp Burckhardt)_
16+
- [`07f7c05`](https://github.com/stdlib-js/stdlib/commit/07f7c0522c73e6ad9505e1d45035ae439344200d) - **test:** use standardized assertion messages and fix lint errors _(by Philipp Burckhardt)_
17+
- [`842892d`](https://github.com/stdlib-js/stdlib/commit/842892db70da69098d8fb271ea19ae45c09a8a0e) - **test:** use .strictEqual() instead of .equal() and fix lint errors _(by Philipp Burckhardt)_
18+
19+
</details>
20+
21+
</section>
22+
23+
<!-- /.commits -->
24+
25+
<section class="contributors">
26+
27+
### Contributors
28+
29+
A total of 1 person contributed to this release. Thank you to this contributor:
30+
31+
- Philipp Burckhardt
32+
33+
</section>
34+
35+
<!-- /.contributors -->
36+
37+
</section>
38+
39+
<!-- /.release -->
40+
541
<section class="release" id="v0.2.2">
642

743
## 0.2.2 (2024-07-27)

CONTRIBUTORS

Lines changed: 84 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,95 +3,121 @@
33
# Contributors listed in alphabetical order.
44

55
Aadish Jain <[email protected]>
6-
Aarya Balwadkar <[email protected].com>
6+
Aarya Balwadkar <aaryabalwadkar2005@gmail.com>
77
Aayush Khanna <[email protected]>
88
Abdelrahman Samir <[email protected]>
99
Abdul Kaium <[email protected]>
1010
Abhay Punia <[email protected]>
1111
Abhijit Raut <[email protected]>
12+
Abhishek G <[email protected]>
1213
Abhishek Jain <[email protected]>
1314
Adarsh Palaskar <[email protected]>
1415
Aditya Sapra <[email protected]>
16+
Aditya Singh <[email protected]>
1517
Ahmed Atwa <[email protected]>
1618
Ahmed Kashkoush <[email protected]>
1719
Ahmed Khaled <[email protected]>
1820
Aksshay Balasubramanian <[email protected]>
1921
Aleksandr <[email protected]>
2022
Ali Salesi <[email protected]>
21-
AlyAbdelmoneim <[email protected]>
22-
Aman Bhansali <[email protected]>
23-
AmanBhadkariya <[email protected]>
23+
Aly Abdelmoneim <[email protected]>
24+
Aman Bhadkariya <[email protected]>
25+
Aman Bhansali <[email protected]>
26+
Amisha Chhajed <[email protected]>
2427
Amit Jimiwal <[email protected]>
25-
Anshu Kumar <[email protected]>
28+
Anmol Sah <[email protected]>
29+
Annamalai Prabu <[email protected]>
2630
Anshu Kumar <[email protected]>
31+
Anshuman Singh <[email protected]>
2732
Anudeep Sanapala <[email protected]>
33+
Arihant Pal <[email protected]>
34+
Aryan Bhirud <[email protected]>
35+
2836
Athan Reines <[email protected]>
29-
30-
Bhavishy Agrawal <[email protected]>
37+
Atharva Patil <[email protected]>
38+
Bhavishy Agrawal <[email protected]>
39+
Bhupesh Kumar <[email protected]>
3140
Brendan Graetz <[email protected]>
3241
Bruno Fenzl <[email protected]>
3342
Bryan Elee <[email protected]>
3443
Chinmay Joshi <[email protected]>
3544
Christopher Dambamuromo <[email protected]>
3645
46+
Daniel Hernandez Gomez <[email protected]>
3747
Daniel Killenberger <[email protected]>
3848
Daniel Yu <[email protected]>
3949
Debashis Maharana <[email protected]>
40-
Deep Trivedi <[email protected]>
41-
Desh Deepak Kant <[email protected]>
50+
Deep Trivedi <[email protected]>
51+
Deepak Singh <[email protected]>
52+
Deepak Singh <[email protected]>
53+
Desh Deepak Kant <[email protected]>
4254
43-
Dhanyabad behera <[email protected]>
55+
Devshree Bhati <[email protected]>
56+
Dhanyabad Behera <[email protected]>
4457
Dhruv Arvind Singh <[email protected]>
45-
Dhruvil Mehta <[email protected]>
46-
Dipjyoti Das <[email protected]>
47-
Divyansh Seth <[email protected]>
58+
Dhruvil Mehta <[email protected]>
59+
Dipjyoti Das <[email protected]>
60+
61+
Divyansh Seth <[email protected]>
4862
Dominic Lim <[email protected]>
4963
Dominik Moritz <[email protected]>
5064
Dorrin Sotoudeh <[email protected]>
51-
EuniceSim142 <[email protected]>
65+
Dudhat Hemil Pravinkumar <[email protected]>
66+
Ekampreet Singh Bains <[email protected]>
67+
Eunice Sim <[email protected]>
68+
5269
Frank Kovacs <[email protected]>
53-
GK Bishnoi <gkishan1kyt@gmail.com>
54-
GURU PRASAD SHARMA <168292003+GURUPRASADSHARMA@users.noreply.github.com>
55-
Gaurav <gaurav70380@gmail.com>
70+
Gaurav Jadhav <gaurav70380@gmail.com>
71+
Gaurav Kaushik <144526331+Gauravkaushik-1206@users.noreply.github.com>
72+
Gautam Kaushik <[email protected].com>
5673
Gautam sharma <[email protected]>
74+
Geo Daoyu <[email protected]>
5775
Girish Garg <[email protected]>
76+
Gitty Harsha <[email protected]>
5877
Golden Kumar <[email protected]>
78+
Gopi Kishan <[email protected]>
5979
Gunj Joshi <[email protected]>
80+
Guru Prasad Sharma <[email protected]>
6081
Gururaj Gurram <[email protected]>
82+
Harishchandra Reddy <[email protected]>
6183
Haroon Rasheed <[email protected]>
62-
63-
84+
Harsh Yadav <[email protected]>
6485
Harshita Kalani <[email protected]>
6586
Hemang Choudhary <[email protected]>
6687
Hemant M Mehta <[email protected]>
6788
Hridyanshu <[email protected]>
89+
Iryna Andrushko <[email protected]>
6890
Jaimin Godhani <[email protected]>
69-
Jaison D Souza <[email protected].com>
91+
Jaison Dsouza <jaisondz9360@gmail.com>
7092
Jalaj Kumar <[email protected]>
7193
James Gelok <[email protected]>
7294
7395
Jaysukh Makvana <[email protected]>
96+
7497
Jenish Thapa <[email protected]>
7598
Jithin KS <[email protected]>
7699
Joel Mathew Koshy <[email protected]>
77100
Joey Reed <[email protected]>
78101
Jordan Gallivan <[email protected]>
79102
Joris Labie <[email protected]>
103+
80104
Justin Dennison <[email protected]>
81105
Justyn Shelby <[email protected]>
82106
Karan Anand <[email protected]>
107+
Karan Vasudevamurthy <[email protected]>
83108
Karan Yadav <[email protected]>
84109
Karthik Prakash <[email protected]>
85-
Kaushikgtm <[email protected]>
86110
Kavyansh-Bagdi <[email protected]>
87111
Kohantika Nath <[email protected]>
88112
Krishnam Agarwal <[email protected]>
89113
Krishnendu Das <[email protected]>
90114
Kshitij-Dale <[email protected]>
91115
Lalit Narayan Yadav <[email protected]>
116+
lohithganni <[email protected]>
117+
Lokesh Ranjan <[email protected]>
92118
Lovelin Dhoni J B <[email protected]>
93-
94119
Mahfuza Humayra Mohona <[email protected]>
120+
95121
Manik Sharma <[email protected]>
96122
Manvith M <[email protected]>
97123
Marcus Fantham <[email protected]>
@@ -100,12 +126,17 @@ Mihir Pandit <[email protected]>
100126
Milan Raj <[email protected]>
101127
Mohammad Bin Aftab <[email protected]>
102128
Mohammad Kaif <[email protected]>
129+
103130
Momtchil Momtchev <[email protected]>
104131
Muhammad Haris <[email protected]>
105132
Muhammad Taaha Tariq <[email protected]>
106133
Muhmmad Saad <[email protected]>
134+
Nakul Krishnakumar <[email protected]>
107135
Naresh Jagadeesan <[email protected]>
108136
Naveen Kumar <[email protected]>
137+
Navyansh Kesarwani <[email protected]>
138+
navyansh007 <[email protected]>
139+
NEEKUorAAYUSH <[email protected]>
109140
Neeraj Pathak <[email protected]>
110141
NirvedMishra <[email protected]>
111142
Nishant Shinde <[email protected]>
@@ -114,12 +145,18 @@ Nishchay Rajput <[email protected]>
114145
Nithin Katta <[email protected]>
115146
Nourhan Hasan <[email protected]>
116147
Ognjen Jevremović <[email protected]>
148+
olenkabilonizhka <[email protected]>
117149
Oneday12323 <[email protected]>
118150
Ori Miles <[email protected]>
151+
Payal Goswami <[email protected]>
119152
Philipp Burckhardt <[email protected]>
153+
Pierre Forstmann <[email protected]>
154+
Piyush Goel <[email protected]>
155+
Pradyumn Prasad <[email protected]>
120156
Prajjwal Bajpai <[email protected]>
121157
Prajwal Kulkarni <[email protected]>
122158
Pranav Goswami <[email protected]>
159+
pranav-1720 <[email protected]>
123160
Pranjal Jha <[email protected]>
124161
Prashant Kumar Yadav <[email protected]>
125162
PrathamBhamare <[email protected]>
@@ -131,67 +168,78 @@ Priyanshu Agarwal <[email protected]>
131168
Pulkit Gupta <[email protected]>
132169
Pushpendra Chandravanshi <[email protected]>
133170
Rahul Kumar <[email protected]>
171+
rahulrangers <[email protected]>
172+
134173
Raunak Kumar Gupta <[email protected]>
174+
135175
Rejoan Sardar <[email protected]>
136176
Ricky Reusser <[email protected]>
137177
Ridam Garg <[email protected]>
138178
139179
Rishav Tarway <[email protected]>
140180
Robert Gislason <[email protected]>
141181
Roman Stetsyk <[email protected]>
182+
RudrakshRaina07 <[email protected]>
142183
143184
Rutam Kathale <[email protected]>
144185
Ruthwik Chikoti <[email protected]>
145186
Ryan Seal <[email protected]>
146187
Rylan Yang <[email protected]>
147-
SAHIL KUMAR <[email protected]>
148-
SHIVAM YADAV <[email protected]>
188+
Sachin Raj <[email protected]>
149189
Sahil Goyal <[email protected]>
190+
SAHIL KUMAR <[email protected]>
150191
Sai Avinash <[email protected]>
151192
Sai Srikar Dumpeti <[email protected]>
152193
Sanchay Ketan Sinha <[email protected]>
153194
Sarthak Paandey <[email protected]>
195+
Satyajeet Chavan <[email protected]>
196+
SAUJANYA MAGARDE <[email protected]>
154197
Saurabh Singh <[email protected]>
198+
Seth-Banker <[email protected]>
155199
Seyyed Parsa Neshaei <[email protected]>
156200
Shabareesh Shetty <[email protected]>
157201
Shashank Shekhar Singh <[email protected]>
202+
Shaswata Panda <[email protected]>
158203
Shivam Ahir <[email protected]>
204+
SHIVAM YADAV <[email protected]>
205+
159206
Shraddheya Shendre <[email protected]>
160207
Shubh Mehta <[email protected]>
208+
161209
Shubham Mishra <[email protected]>
210+
Siddhesh waje <[email protected]>
162211
Sivam Das <[email protected]>
163212
Snehil Shah <[email protected]>
164213
Soumajit Chatterjee <[email protected]>
165214
Spandan Barve <[email protected]>
215+
Srinivas Batthula <[email protected]>
166216
Stephannie Jiménez Gacha <[email protected]>
167217
Suhaib Ilahi <[email protected]>
168218
Suraj Kumar <[email protected]>
219+
Swapnil Hajare <[email protected]>
169220
Tanishq Ahuja <[email protected]>
170221
Tirtadwipa Manunggal <[email protected]>
171222
Tudor Pagu <[email protected]>
172223
Tufailahmed Bargir <[email protected]>
224+
Tushar Bhardwaj <[email protected]>
225+
Tushar Bharti <[email protected]>
226+
Tyson Cung <[email protected]>
227+
Uday Kakade <[email protected]>
228+
Ujjwal Kirti <[email protected]>
173229
Utkarsh <http://[email protected]>
174230
Utkarsh Raj <[email protected]>
175231
UtkershBasnet <[email protected]>
176232
Vaibhav Patel <[email protected]>
233+
Vansh Choudhary <[email protected]>
177234
Vara Rahul Rajana <[email protected]>
178235
Varad Gupta <[email protected]>
179236
Vinit Pandit <[email protected]>
180237
Vivek Maurya <[email protected]>
238+
Wendy Yuchen Sun <[email protected]>
181239
Xiaochuan Ye <[email protected]>
182240
Yaswanth Kosuru <[email protected]>
183241
Yernar Yergaziyev <[email protected]>
242+
youzi-forge <[email protected]>
184243
Yugal Kaushik <[email protected]>
185244
Yuvi Mittal <[email protected]>
186-
devshree-bhati <[email protected]>
187-
188-
ekambains <[email protected]>
189-
fadiothman22 <[email protected]>
190-
iraandrushko <[email protected]>
191-
lohithganni <[email protected]>
192-
olenkabilonizhka <[email protected]>
193-
pranav-1720 <[email protected]>
194-
rahulrangers <[email protected]>
195-
196-
197-
245+
Zuhair Ahmad <[email protected]>

docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type accumulator = ( x?: number ) => number | null;
3737
* var accumulator = incrnancount();
3838
*
3939
* var v = accumulator();
40-
* // returns null
40+
* // returns 0
4141
*
4242
* v = accumulator( 2.0 );
4343
* // returns 1

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"@stdlib/types": "^0.4.3"
4242
},
4343
"devDependencies": {
44+
"@stdlib/array-base-zeros": "^0.2.2",
4445
"@stdlib/random-base-randu": "^0.2.1",
4546
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
4647
"istanbul": "^0.4.1",

test/test.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
var tape = require( 'tape' );
2424
var isnan = require( '@stdlib/math-base-assert-is-nan' );
25+
var zeros = require( '@stdlib/array-base-zeros' );
2526
var incrnancount = require( './../lib' );
2627

2728

@@ -34,13 +35,13 @@ tape( 'main export is a function', function test( t ) {
3435
});
3536

3637
tape( 'the function returns an accumulator function', function test( t ) {
37-
t.equal( typeof incrnancount(), 'function', 'returns a function' );
38+
t.strictEqual( typeof incrnancount(), 'function', 'returns expected value' );
3839
t.end();
3940
});
4041

4142
tape( 'the initial accumulated value is zero', function test( t ) {
4243
var acc = incrnancount();
43-
t.equal( acc(), 0, 'returns expected value' );
44+
t.strictEqual( acc(), 0, 'returns expected value' );
4445
t.end();
4546
});
4647

@@ -57,8 +58,8 @@ tape( 'the accumulator function incrementally computes a count, ignoring `NaN` v
5758
data = [ 2.0, 3.0, NaN, 2.0, NaN, 4.0, 3.0, 4.0 ];
5859
N = data.length;
5960

60-
expected = new Array( N );
61-
actual = new Array( N );
61+
expected = zeros( N );
62+
actual = zeros( N );
6263

6364
acc = incrnancount();
6465

@@ -87,6 +88,6 @@ tape( 'if not provided an input value, the accumulator function returns the curr
8788
for ( i = 0; i < data.length; i++ ) {
8889
acc( data[ i ] );
8990
}
90-
t.equal( acc(), 3, 'returns the current accumulated count' );
91+
t.strictEqual( acc(), 3, 'returns the current accumulated count' );
9192
t.end();
9293
});

0 commit comments

Comments
 (0)