Skip to content

Commit 9ec398c

Browse files
committed
Auto-generated commit
1 parent e554c0b commit 9ec398c

File tree

10 files changed

+73
-18
lines changed

10 files changed

+73
-18
lines changed

CHANGELOG.md

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

7-
## Unreleased (2025-09-19)
7+
## Unreleased (2025-09-20)
88

99
<section class="features">
1010

1111
### Features
1212

13+
- [`25164a7`](https://github.com/stdlib-js/stdlib/commit/25164a7ae8ac5285255e2d8097f3e123d9db3a38) - add support for non-string data types
14+
- [`c6ce94c`](https://github.com/stdlib-js/stdlib/commit/c6ce94c5cf69a183cbe369a56411192d8d99abe1) - add support for non-string data types
15+
- [`360ed63`](https://github.com/stdlib-js/stdlib/commit/360ed63a0e83c2cc4261df2b6075e1cc2c8f5dec) - add support for non-string data tpes
16+
- [`b60d327`](https://github.com/stdlib-js/stdlib/commit/b60d327ae58661ce0eb20d503aca140c683f9406) - add support for non-string data types
1317
- [`8e7dc95`](https://github.com/stdlib-js/stdlib/commit/8e7dc9562192062ab1e016d45ba32b9c3592fe97) - add support for non-string data types
1418
- [`70dda4f`](https://github.com/stdlib-js/stdlib/commit/70dda4f47b6613531ee298231ea60630174f3dcc) - add support for non-string data types
1519
- [`06bd6e0`](https://github.com/stdlib-js/stdlib/commit/06bd6e03ba8aae02b35f9a4da6724d686cf34da4) - add support for non-string data types
@@ -562,6 +566,10 @@ A total of 24 issues were closed in this release:
562566

563567
<details>
564568

569+
- [`25164a7`](https://github.com/stdlib-js/stdlib/commit/25164a7ae8ac5285255e2d8097f3e123d9db3a38) - **feat:** add support for non-string data types _(by Athan Reines)_
570+
- [`c6ce94c`](https://github.com/stdlib-js/stdlib/commit/c6ce94c5cf69a183cbe369a56411192d8d99abe1) - **feat:** add support for non-string data types _(by Athan Reines)_
571+
- [`360ed63`](https://github.com/stdlib-js/stdlib/commit/360ed63a0e83c2cc4261df2b6075e1cc2c8f5dec) - **feat:** add support for non-string data tpes _(by Athan Reines)_
572+
- [`b60d327`](https://github.com/stdlib-js/stdlib/commit/b60d327ae58661ce0eb20d503aca140c683f9406) - **feat:** add support for non-string data types _(by Athan Reines)_
565573
- [`8e7dc95`](https://github.com/stdlib-js/stdlib/commit/8e7dc9562192062ab1e016d45ba32b9c3592fe97) - **feat:** add support for non-string data types _(by Athan Reines)_
566574
- [`bdd0013`](https://github.com/stdlib-js/stdlib/commit/bdd0013af7bb684e818bedaf287389165858105b) - **docs:** update JSDoc _(by Athan Reines)_
567575
- [`374953a`](https://github.com/stdlib-js/stdlib/commit/374953a8333a7467c5c8df1e1fc8d6763c4f33aa) - **docs:** update JSDoc _(by Athan Reines)_

base/assert/is-index-data-type/lib/main.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@ var contains = require( '@stdlib/array/base/assert/contains' ).factory;
2424
var dtypes = require( './../../../../dtypes' );
2525

2626

27+
// VARIABLES //
28+
29+
var isDataType = contains( dtypes( 'index' ) );
30+
31+
2732
// MAIN //
2833

2934
/**
3035
* Tests whether an input value is a supported ndarray index data type.
3136
*
32-
* @name isIndexDataType
33-
* @type {Function}
3437
* @param {*} v - value to test
3538
* @returns {boolean} boolean indicating whether an input value is a supported ndarray index data type
3639
*
@@ -71,7 +74,9 @@ var dtypes = require( './../../../../dtypes' );
7174
* bool = isIndexDataType( 'foo' );
7275
* // returns false
7376
*/
74-
var isIndexDataType = contains( dtypes( 'index' ) );
77+
function isIndexDataType( v ) {
78+
return isDataType( String( v ) );
79+
}
7580

7681

7782
// EXPORTS //

base/assert/is-index-data-type/test/test.js

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

2323
var tape = require( 'tape' );
24+
var DataType = require( './../../../../dtype-ctor' );
2425
var isIndexDataType = require( './../lib' );
2526

2627

@@ -41,7 +42,12 @@ tape( 'the function returns `true` if provided a supported ndarray index data ty
4142
'bool',
4243
'int32',
4344
'uint8',
44-
'generic'
45+
'generic',
46+
47+
new DataType( 'bool' ),
48+
new DataType( 'int32' ),
49+
new DataType( 'uint8' ),
50+
new DataType( 'generic' )
4551
];
4652
for ( i = 0; i < values.length; i++ ) {
4753
bool = isIndexDataType( values[ i ] );
@@ -68,6 +74,8 @@ tape( 'the function returns `false` if not provided a supported ndarray index da
6874
'uint32',
6975
'uint8c',
7076

77+
new DataType( 'binary' ),
78+
7179
// Unsupported dtypes:
7280
'float',
7381
'int',

base/assert/is-integer-data-type/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ var isIntegerDataType = require( '@stdlib/ndarray/base/assert/is-integer-data-ty
4242

4343
#### isIntegerDataType( value )
4444

45-
Tests if an input `value` is a supported ndarray integer (i.e., signed or unsigned integer) data type.
45+
Tests if an input value is a supported ndarray integer (i.e., signed or unsigned integer) data type.
4646

4747
```javascript
4848
var bool = isIntegerDataType( 'float32' );

base/assert/is-integer-data-type/lib/main.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@ var contains = require( '@stdlib/array/base/assert/contains' ).factory;
2424
var dtypes = require( './../../../../dtypes' );
2525

2626

27+
// VARIABLES //
28+
29+
var isDataType = contains( dtypes( 'integer' ) );
30+
31+
2732
// MAIN //
2833

2934
/**
3035
* Tests whether an input value is a supported ndarray integer data type.
3136
*
32-
* @name isIntegerDataType
33-
* @type {Function}
3437
* @param {*} v - value to test
3538
* @returns {boolean} boolean indicating whether an input value is a supported ndarray integer data type
3639
*
@@ -71,7 +74,9 @@ var dtypes = require( './../../../../dtypes' );
7174
* bool = isIntegerDataType( 'foo' );
7275
* // returns false
7376
*/
74-
var isIntegerDataType = contains( dtypes( 'integer' ) );
77+
function isIntegerDataType( v ) {
78+
return isDataType( String( v ) );
79+
}
7580

7681

7782
// EXPORTS //

base/assert/is-integer-data-type/test/test.js

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

2323
var tape = require( 'tape' );
24+
var DataType = require( './../../../../dtype-ctor' );
2425
var isIntegerDataType = require( './../lib' );
2526

2627

@@ -44,7 +45,15 @@ tape( 'the function returns `true` if provided a supported ndarray integer data
4445
'uint8c',
4546
'int16',
4647
'int32',
47-
'int8'
48+
'int8',
49+
50+
new DataType( 'uint16' ),
51+
new DataType( 'uint32' ),
52+
new DataType( 'uint8' ),
53+
new DataType( 'uint8c' ),
54+
new DataType( 'int16' ),
55+
new DataType( 'int32' ),
56+
new DataType( 'int8' )
4857
];
4958
for ( i = 0; i < values.length; i++ ) {
5059
bool = isIntegerDataType( values[ i ] );
@@ -67,6 +76,8 @@ tape( 'the function returns `false` if not provided a supported ndarray integer
6776
'float64',
6877
'generic',
6978

79+
new DataType( 'binary' ),
80+
7081
// Unsupported dtypes:
7182
'float',
7283
'int',

base/assert/is-integer-index-data-type/lib/main.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@ var contains = require( '@stdlib/array/base/assert/contains' ).factory;
2424
var dtypes = require( './../../../../dtypes' );
2525

2626

27+
// VARIABLES //
28+
29+
var isDataType = contains( dtypes( 'integer_index' ) );
30+
31+
2732
// MAIN //
2833

2934
/**
3035
* Tests whether an input value is a supported ndarray integer index data type.
3136
*
32-
* @name isIntegerIndexDataType
33-
* @type {Function}
3437
* @param {*} v - value to test
3538
* @returns {boolean} boolean indicating whether an input value is a supported ndarray integer index data type
3639
*
@@ -71,7 +74,9 @@ var dtypes = require( './../../../../dtypes' );
7174
* bool = isIntegerIndexDataType( 'foo' );
7275
* // returns false
7376
*/
74-
var isIntegerIndexDataType = contains( dtypes( 'integer_index' ) );
77+
function isIntegerIndexDataType( v ) {
78+
return isDataType( String( v ) );
79+
}
7580

7681

7782
// EXPORTS //

base/assert/is-integer-index-data-type/test/test.js

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

2323
var tape = require( 'tape' );
24+
var DataType = require( './../../../../dtype-ctor' );
2425
var isIntegerIndexDataType = require( './../lib' );
2526

2627

@@ -38,7 +39,8 @@ tape( 'the function returns `true` if provided a supported ndarray integer index
3839
var i;
3940

4041
values = [
41-
'int32'
42+
'int32',
43+
new DataType( 'int32' )
4244
];
4345
for ( i = 0; i < values.length; i++ ) {
4446
bool = isIntegerIndexDataType( values[ i ] );
@@ -68,6 +70,8 @@ tape( 'the function returns `false` if not provided a supported ndarray integer
6870
'generic',
6971
'bool',
7072

73+
new DataType( 'binary' ),
74+
7175
// Unsupported dtypes:
7276
'float',
7377
'int',

base/assert/is-mask-index-data-type/lib/main.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@ var contains = require( '@stdlib/array/base/assert/contains' ).factory;
2424
var dtypes = require( './../../../../dtypes' );
2525

2626

27+
// VARIABLES //
28+
29+
var isDataType = contains( dtypes( 'mask_index' ) );
30+
31+
2732
// MAIN //
2833

2934
/**
3035
* Tests whether an input value is a supported ndarray mask index data type.
3136
*
32-
* @name isMaskIndexDataType
33-
* @type {Function}
3437
* @param {*} v - value to test
3538
* @returns {boolean} boolean indicating whether an input value is a supported ndarray mask index data type
3639
*
@@ -71,7 +74,9 @@ var dtypes = require( './../../../../dtypes' );
7174
* bool = isMaskIndexDataType( 'foo' );
7275
* // returns false
7376
*/
74-
var isMaskIndexDataType = contains( dtypes( 'mask_index' ) );
77+
function isMaskIndexDataType( v ) {
78+
return isDataType( String( v ) );
79+
}
7580

7681

7782
// EXPORTS //

base/assert/is-mask-index-data-type/test/test.js

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

2323
var tape = require( 'tape' );
24+
var DataType = require( './../../../../dtype-ctor' );
2425
var isMaskIndexDataType = require( './../lib' );
2526

2627

@@ -38,7 +39,8 @@ tape( 'the function returns `true` if provided a supported ndarray mask index da
3839
var i;
3940

4041
values = [
41-
'uint8'
42+
'uint8',
43+
new DataType( 'uint8' )
4244
];
4345
for ( i = 0; i < values.length; i++ ) {
4446
bool = isMaskIndexDataType( values[ i ] );
@@ -68,6 +70,8 @@ tape( 'the function returns `false` if not provided a supported ndarray mask ind
6870
'generic',
6971
'bool',
7072

73+
new DataType( 'binary' ),
74+
7175
// Unsupported dtypes:
7276
'float',
7377
'int',

0 commit comments

Comments
 (0)