Skip to content

Commit 565a4ab

Browse files
committed
Auto-generated commit
1 parent 862bb8b commit 565a4ab

File tree

7 files changed

+133
-46
lines changed

7 files changed

+133
-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-26)

CONTRIBUTORS

Lines changed: 81 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,39 +168,51 @@ 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]>
149188
Sachin Raj <[email protected]>
150189
Sahil Goyal <[email protected]>
190+
SAHIL KUMAR <[email protected]>
151191
Sai Avinash <[email protected]>
152192
Sai Srikar Dumpeti <[email protected]>
153193
Sanchay Ketan Sinha <[email protected]>
154194
Sarthak Paandey <[email protected]>
195+
Satyajeet Chavan <[email protected]>
196+
SAUJANYA MAGARDE <[email protected]>
155197
Saurabh Singh <[email protected]>
198+
Seth-Banker <[email protected]>
156199
Seyyed Parsa Neshaei <[email protected]>
157200
Shabareesh Shetty <[email protected]>
158201
Shashank Shekhar Singh <[email protected]>
202+
Shaswata Panda <[email protected]>
159203
Shivam Ahir <[email protected]>
204+
SHIVAM YADAV <[email protected]>
205+
160206
Shraddheya Shendre <[email protected]>
161207
Shubh Mehta <[email protected]>
208+
162209
Shubham Mishra <[email protected]>
210+
Siddhesh waje <[email protected]>
163211
Sivam Das <[email protected]>
164212
Snehil Shah <[email protected]>
165213
Soumajit Chatterjee <[email protected]>
166214
Spandan Barve <[email protected]>
215+
Srinivas Batthula <[email protected]>
167216
Stephannie Jiménez Gacha <[email protected]>
168217
Suhaib Ilahi <[email protected]>
169218
Suraj Kumar <[email protected]>
@@ -172,29 +221,25 @@ Tanishq Ahuja <[email protected]>
172221
Tirtadwipa Manunggal <[email protected]>
173222
Tudor Pagu <[email protected]>
174223
Tufailahmed Bargir <[email protected]>
224+
Tushar Bhardwaj <[email protected]>
225+
Tushar Bharti <[email protected]>
226+
Tyson Cung <[email protected]>
175227
Uday Kakade <[email protected]>
228+
Ujjwal Kirti <[email protected]>
176229
Utkarsh <http://[email protected]>
177230
Utkarsh Raj <[email protected]>
178231
UtkershBasnet <[email protected]>
179232
Vaibhav Patel <[email protected]>
233+
Vansh Choudhary <[email protected]>
180234
Vara Rahul Rajana <[email protected]>
181235
Varad Gupta <[email protected]>
182236
Vinit Pandit <[email protected]>
183237
Vivek Maurya <[email protected]>
238+
Wendy Yuchen Sun <[email protected]>
184239
Xiaochuan Ye <[email protected]>
185240
Yaswanth Kosuru <[email protected]>
186241
Yernar Yergaziyev <[email protected]>
242+
youzi-forge <[email protected]>
187243
Yugal Kaushik <[email protected]>
188244
Yuvi Mittal <[email protected]>
189-
devshree-bhati <[email protected]>
190-
191-
ekambains <[email protected]>
192-
fadiothman22 <[email protected]>
193-
iraandrushko <[email protected]>
194-
lohithganni <[email protected]>
195-
olenkabilonizhka <[email protected]>
196-
pranav-1720 <[email protected]>
197-
rahulrangers <[email protected]>
198-
199-
200-
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 = incrcount();
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
@@ -40,6 +40,7 @@
4040
"@stdlib/types": "^0.4.3"
4141
},
4242
"devDependencies": {
43+
"@stdlib/array-base-zeros": "^0.2.2",
4344
"@stdlib/random-base-randu": "^0.2.1",
4445
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
4546
"istanbul": "^0.4.1",

test/test.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24+
var zeros = require( '@stdlib/array-base-zeros' );
2425
var incrcount = require( './../lib' );
2526

2627

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

3536
tape( 'the function returns an accumulator function', function test( t ) {
36-
t.equal( typeof incrcount(), 'function', 'returns a function' );
37+
t.strictEqual( typeof incrcount(), 'function', 'returns expected value' );
3738
t.end();
3839
});
3940

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

@@ -56,8 +57,8 @@ tape( 'the accumulator function incrementally computes a count', function test(
5657
data = [ 2.0, 3.0, 2.0, 4.0, 3.0, 4.0 ];
5758
N = data.length;
5859

59-
expected = new Array( N );
60-
actual = new Array( N );
60+
expected = zeros( N );
61+
actual = zeros( N );
6162

6263
acc = incrcount();
6364

@@ -82,6 +83,6 @@ tape( 'if not provided an input value, the accumulator function returns the curr
8283
for ( i = 0; i < data.length; i++ ) {
8384
acc( data[ i ] );
8485
}
85-
t.equal( acc(), 3, 'returns the current accumulated count' );
86+
t.strictEqual( acc(), 3, 'returns the current accumulated count' );
8687
t.end();
8788
});

0 commit comments

Comments
 (0)