Skip to content

Commit e26ac39

Browse files
committed
Auto-generated commit
1 parent 46275e2 commit e26ac39

File tree

11 files changed

+78
-17
lines changed

11 files changed

+78
-17
lines changed

.github/.keepalive

-1
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/regexp) of the main repository where we’ll review and provide feedback.
44

5-
If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib.
5+
If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib.
66

77
We look forward to receiving your contribution! :smiley:

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,7 @@ jsconfig.json
188188
# Other editor files #
189189
######################
190190
.idea/
191+
192+
# Cursor #
193+
##########
194+
.cursorignore

CHANGELOG.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-02-03)
7+
## Unreleased (2025-03-30)
88

99
<section class="packages">
1010

@@ -18,8 +18,9 @@
1818

1919
### Contributors
2020

21-
A total of 1 person contributed to this release. Thank you to this contributor:
21+
A total of 2 people contributed to this release. Thank you to the following contributors:
2222

23+
- Athan Reines
2324
- Philipp Burckhardt
2425

2526
</section>
@@ -32,6 +33,11 @@ A total of 1 person contributed to this release. Thank you to this contributor:
3233

3334
<details>
3435

36+
- [`ee57af4`](https://github.com/stdlib-js/stdlib/commit/ee57af4b2fb41972323b5d2b0b74596754d8dbb0) - **refactor:** use base array assertion utility _(by Athan Reines)_
37+
- [`e5c1f92`](https://github.com/stdlib-js/stdlib/commit/e5c1f92236d5178303788c884849a077530e2064) - **refactor:** use base array assertion utility _(by Athan Reines)_
38+
- [`f59be2b`](https://github.com/stdlib-js/stdlib/commit/f59be2b43dcf98ba8c78d8837c9c3d21b041d70d) - **refactor:** use base array assertion utility _(by Athan Reines)_
39+
- [`bee48b7`](https://github.com/stdlib-js/stdlib/commit/bee48b777bb048e28d244a0736385dfa2786e183) - **refactor:** use base array assertion utility _(by Athan Reines)_
40+
- [`4a1f629`](https://github.com/stdlib-js/stdlib/commit/4a1f62948d89370e432a733aeccd854aac26caab) - **refactor:** use base array assertion utility _(by Athan Reines)_
3541
- [`0ba282b`](https://github.com/stdlib-js/stdlib/commit/0ba282b89c384f06bbe3ff8ecd71982f05209606) - **chore:** minor clean-up _(by Philipp Burckhardt)_
3642
- [`b8c41df`](https://github.com/stdlib-js/stdlib/commit/b8c41df78cd2cdc9cd3c3c6b223759d32f4f6e14) - **docs:** update related packages sections [(#3915)](https://github.com/stdlib-js/stdlib/pull/3915) _(by stdlib-bot)_
3743

CONTRIBUTORS

+49-2
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,31 @@
33
# Contributors listed in alphabetical order.
44

55
Aadish Jain <[email protected]>
6+
Aarya Balwadkar <[email protected]>
67
Aayush Khanna <[email protected]>
8+
Abdelrahman Samir <[email protected]>
9+
Abdul Kaium <[email protected]>
10+
Abhay Punia <[email protected]>
711
Abhijit Raut <[email protected]>
12+
Abhishek Jain <[email protected]>
813
Adarsh Palaskar <[email protected]>
914
Aditya Sapra <[email protected]>
1015
Ahmed Atwa <[email protected]>
1116
Ahmed Kashkoush <[email protected]>
1217
Ahmed Khaled <[email protected]>
18+
Aksshay Balasubramanian <[email protected]>
1319
Aleksandr <[email protected]>
1420
Ali Salesi <[email protected]>
21+
AlyAbdelmoneim <[email protected]>
1522
Aman Bhansali <[email protected]>
23+
AmanBhadkariya <[email protected]>
1624
Amit Jimiwal <[email protected]>
25+
Anshu Kumar <[email protected]>
26+
Anshu Kumar <[email protected]>
1727
Anudeep Sanapala <[email protected]>
1828
Athan Reines <[email protected]>
1929
30+
Bhavishy Agrawal <[email protected]>
2031
Brendan Graetz <[email protected]>
2132
Bruno Fenzl <[email protected]>
2233
Bryan Elee <[email protected]>
@@ -26,23 +37,35 @@ Dan Rose <[email protected]>
2637
Daniel Killenberger <[email protected]>
2738
Daniel Yu <[email protected]>
2839
Debashis Maharana <[email protected]>
40+
Deep Trivedi <[email protected]>
2941
Desh Deepak Kant <[email protected]>
3042
43+
Dhanyabad behera <[email protected]>
3144
Dhruv Arvind Singh <[email protected]>
45+
Dhruvil Mehta <[email protected]>
3246
Divyansh Seth <[email protected]>
3347
Dominic Lim <[email protected]>
3448
Dominik Moritz <[email protected]>
3549
Dorrin Sotoudeh <[email protected]>
3650
EuniceSim142 <[email protected]>
3751
Frank Kovacs <[email protected]>
52+
GK Bishnoi <[email protected]>
53+
54+
Gautam sharma <[email protected]>
3855
Golden Kumar <[email protected]>
3956
Gunj Joshi <[email protected]>
40-
Gururaj Gurram <[email protected]>
57+
Gururaj Gurram <[email protected]>
58+
Haroon Rasheed <[email protected]>
59+
4160
4261
Harshita Kalani <[email protected]>
62+
Hemant M Mehta <[email protected]>
4363
Hridyanshu <[email protected]>
4464
Jaimin Godhani <[email protected]>
65+
Jaison D Souza <[email protected]>
66+
Jalaj Kumar <[email protected]>
4567
James Gelok <[email protected]>
68+
4669
Jaysukh Makvana <[email protected]>
4770
Jenish Thapa <[email protected]>
4871
Jithin KS <[email protected]>
@@ -51,55 +74,70 @@ Joey Reed <[email protected]>
5174
Jordan Gallivan <[email protected]>
5275
Joris Labie <[email protected]>
5376
Justin Dennison <[email protected]>
77+
Justyn Shelby <[email protected]>
5478
Karan Anand <[email protected]>
5579
Karthik Prakash <[email protected]>
80+
Kaushikgtm <[email protected]>
81+
Kavyansh-Bagdi <[email protected]>
5682
Kohantika Nath <[email protected]>
83+
Krishnam Agarwal <[email protected]>
5784
Krishnendu Das <[email protected]>
5885
Kshitij-Dale <[email protected]>
5986
Lovelin Dhoni J B <[email protected]>
87+
6088
Manik Sharma <[email protected]>
6189
Manvith M <[email protected]>
6290
Marcus Fantham <[email protected]>
6391
Matt Cochrane <[email protected]>
6492
Mihir Pandit <[email protected]>
6593
Milan Raj <[email protected]>
94+
Mohammad Bin Aftab <[email protected]>
6695
Mohammad Kaif <[email protected]>
6796
Momtchil Momtchev <[email protected]>
6897
Muhammad Haris <[email protected]>
6998
Naresh Jagadeesan <[email protected]>
7099
Naveen Kumar <[email protected]>
71100
Neeraj Pathak <[email protected]>
72101
Nishant Shinde <[email protected]>
102+
Nishchay Rajput <[email protected]>
73103
Nithin Katta <[email protected]>
74104
Nourhan Hasan <[email protected]>
75105
Ognjen Jevremović <[email protected]>
76106
Oneday12323 <[email protected]>
77107
Ori Miles <[email protected]>
78108
Philipp Burckhardt <[email protected]>
109+
Prajjwal Bajpai <[email protected]>
79110
Prajwal Kulkarni <[email protected]>
80-
Pranav Goswami <[email protected]>
111+
Pranav Goswami <[email protected]>
81112
Pranjal Jha <[email protected]>
82113
Prashant Kumar Yadav <[email protected]>
83114
Pratik Singh <[email protected]>
84115
Pratyush Kumar Chouhan <[email protected]>
85116
Priyansh Prajapati <[email protected]>
86117
Priyanshu Agarwal <[email protected]>
118+
Pulkit Gupta <[email protected]>
87119
Pushpendra Chandravanshi <[email protected]>
120+
Rahul Kumar <[email protected]>
88121
Raunak Kumar Gupta <[email protected]>
89122
Rejoan Sardar <[email protected]>
90123
Ricky Reusser <[email protected]>
91124
Ridam Garg <[email protected]>
92125
126+
Rishav Tarway <[email protected]>
93127
Robert Gislason <[email protected]>
94128
Roman Stetsyk <[email protected]>
95129
Rutam Kathale <[email protected]>
96130
Ruthwik Chikoti <[email protected]>
97131
Ryan Seal <[email protected]>
98132
Rylan Yang <[email protected]>
133+
SAHIL KUMAR <[email protected]>
134+
SHIVAM YADAV <[email protected]>
99135
Sai Srikar Dumpeti <[email protected]>
136+
Sanchay Ketan Sinha <[email protected]>
100137
Sarthak Paandey <[email protected]>
101138
Saurabh Singh <[email protected]>
102139
Seyyed Parsa Neshaei <[email protected]>
140+
Shabareesh Shetty <[email protected]>
103141
Shashank Shekhar Singh <[email protected]>
104142
Shivam Ahir <[email protected]>
105143
Shraddheya Shendre <[email protected]>
@@ -110,7 +148,9 @@ Snehil Shah <[email protected]>
110148
Soumajit Chatterjee <[email protected]>
111149
Spandan Barve <[email protected]>
112150
Stephannie Jiménez Gacha <[email protected]>
151+
Suhaib Ilahi <[email protected]>
113152
Suraj Kumar <[email protected]>
153+
Tanishq Ahuja <[email protected]>
114154
Tirtadwipa Manunggal <[email protected]>
115155
Tudor Pagu <[email protected]>
116156
Tufailahmed Bargir <[email protected]>
@@ -124,6 +164,13 @@ Vivek Maurya <[email protected]>
124164
Xiaochuan Ye <[email protected]>
125165
Yaswanth Kosuru <[email protected]>
126166
Yernar Yergaziyev <[email protected]>
167+
Yugal Kaushik <[email protected]>
168+
Yuvi Mittal <[email protected]>
169+
170+
ekambains <[email protected]>
171+
fadiothman22 <[email protected]>
127172
olenkabilonizhka <[email protected]>
173+
pranav-1720 <[email protected]>
174+
rahulrangers <[email protected]>
128175
129176

basename/lib/main.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var contains = require( '@stdlib/assert/contains' );
23+
var contains = require( '@stdlib/array/base/assert/contains' ).factory;
2424
var format = require( '@stdlib/string/format' );
2525
var posix = require( './../../basename-posix' );
2626
var win32 = require( './../../basename-windows' );
@@ -30,6 +30,7 @@ var IS_WINDOWS = require( '@stdlib/assert/is-windows' );
3030
// VARIABLES //
3131

3232
var PLATFORMS = [ 'posix', 'win32' ];
33+
var isPlatform = contains( PLATFORMS );
3334

3435

3536
// MAIN //
@@ -48,7 +49,7 @@ var PLATFORMS = [ 'posix', 'win32' ];
4849
*/
4950
function reBasename( platform ) {
5051
if ( arguments.length > 0 ) {
51-
if ( !contains( PLATFORMS, platform ) ) {
52+
if ( !isPlatform( platform ) ) {
5253
throw new Error( format( 'invalid argument. Must be one of the following: "%s". Value: `%s`.', PLATFORMS.join( '", "' ), platform ) );
5354
}
5455
}

color-hexadecimal/lib/main.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@
2020

2121
// MODULES //
2222

23-
var contains = require( '@stdlib/assert/contains' );
23+
var contains = require( '@stdlib/array/base/assert/contains' ).factory;
2424
var format = require( '@stdlib/string/format' );
2525

2626

2727
// VARIABLES //
2828

2929
var MODES = [ 'full', 'shorthand', 'either' ];
30+
var isMode = contains( MODES );
3031

3132

3233
// MAIN //
@@ -50,7 +51,7 @@ var MODES = [ 'full', 'shorthand', 'either' ];
5051
*/
5152
function reColorHexadecimal( mode ) {
5253
if ( arguments.length > 0 ) {
53-
if ( !contains( MODES, mode ) ) {
54+
if ( !isMode( mode ) ) {
5455
throw new Error( format( 'invalid argument. Mode must be one of the following: "%s". Value: `%s`.', MODES.join( '", "' ), mode ) );
5556
}
5657
}

dirname/lib/main.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var contains = require( '@stdlib/assert/contains' );
23+
var contains = require( '@stdlib/array/base/assert/contains' ).factory;
2424
var format = require( '@stdlib/string/format' );
2525
var posix = require( './../../dirname-posix' );
2626
var win32 = require( './../../dirname-windows' );
@@ -30,6 +30,7 @@ var IS_WINDOWS = require( '@stdlib/assert/is-windows' );
3030
// VARIABLES //
3131

3232
var PLATFORMS = [ 'posix', 'win32' ];
33+
var isPlatform = contains( PLATFORMS );
3334

3435

3536
// MAIN //
@@ -48,7 +49,7 @@ var PLATFORMS = [ 'posix', 'win32' ];
4849
*/
4950
function reDirname( platform ) {
5051
if ( arguments.length > 0 ) {
51-
if ( !contains( PLATFORMS, platform ) ) {
52+
if ( !isPlatform( platform ) ) {
5253
throw new Error( format( 'invalid argument. Must be one of the following: "%s". Value: `%s`.', PLATFORMS.join( '", "' ), platform ) );
5354
}
5455
}

extname/lib/main.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var contains = require( '@stdlib/assert/contains' );
23+
var contains = require( '@stdlib/array/base/assert/contains' ).factory;
2424
var format = require( '@stdlib/string/format' );
2525
var posix = require( './../../extname-posix' );
2626
var win32 = require( './../../extname-windows' );
@@ -30,6 +30,7 @@ var IS_WINDOWS = require( '@stdlib/assert/is-windows' );
3030
// VARIABLES //
3131

3232
var PLATFORMS = [ 'posix', 'win32' ];
33+
var isPlatform = contains( PLATFORMS );
3334

3435

3536
// MAIN //
@@ -48,7 +49,7 @@ var PLATFORMS = [ 'posix', 'win32' ];
4849
*/
4950
function reExtname( platform ) {
5051
if ( arguments.length > 0 ) {
51-
if ( !contains( PLATFORMS, platform ) ) {
52+
if ( !isPlatform( platform ) ) {
5253
throw new Error( format( 'invalid argument. Must be one of the following: "%s". Value: `%s`.', PLATFORMS.join( '", "' ), platform ) );
5354
}
5455
}

filename/lib/main.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var contains = require( '@stdlib/assert/contains' );
23+
var contains = require( '@stdlib/array/base/assert/contains' ).factory;
2424
var format = require( '@stdlib/string/format' );
2525
var posix = require( './../../filename-posix' );
2626
var win32 = require( './../../filename-windows' );
@@ -30,6 +30,7 @@ var IS_WINDOWS = require( '@stdlib/assert/is-windows' );
3030
// VARIABLES //
3131

3232
var PLATFORMS = [ 'posix', 'win32' ];
33+
var isPlatform = contains( PLATFORMS );
3334

3435

3536
// MAIN //
@@ -48,7 +49,7 @@ var PLATFORMS = [ 'posix', 'win32' ];
4849
*/
4950
function reFilename( platform ) {
5051
if ( arguments.length > 0 ) {
51-
if ( !contains( PLATFORMS, platform ) ) {
52+
if ( !isPlatform( platform ) ) {
5253
throw new Error( format( 'invalid argument. Must be one of the following: "%s". Value: `%s`.', PLATFORMS.join( '", "' ), platform ) );
5354
}
5455
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
"url": "https://github.com/stdlib-js/stdlib/issues"
3737
},
3838
"dependencies": {
39+
"@stdlib/array": "github:stdlib-js/array#main",
3940
"@stdlib/assert": "github:stdlib-js/assert#main",
4041
"@stdlib/function": "github:stdlib-js/function#main",
4142
"@stdlib/string": "github:stdlib-js/string#main",
4243
"@stdlib/utils": "github:stdlib-js/utils#main"
4344
},
4445
"devDependencies": {
45-
"@stdlib/array": "github:stdlib-js/array#main",
4646
"@stdlib/bench": "github:stdlib-js/bench#main",
4747
"@stdlib/boolean": "github:stdlib-js/boolean#main",
4848
"@stdlib/number": "github:stdlib-js/number#main",

0 commit comments

Comments
 (0)