Skip to content

Commit 81302c5

Browse files
committed
Auto-generated commit
1 parent 0ae83a1 commit 81302c5

File tree

8 files changed

+42
-3
lines changed

8 files changed

+42
-3
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,28 @@ This release closes the following issue:
10331033

10341034
<!-- /.package -->
10351035

1036+
<section class="package" id="array-defaults-unreleased">
1037+
1038+
#### [@stdlib/array/defaults](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/defaults)
1039+
1040+
<details>
1041+
1042+
<section class="features">
1043+
1044+
##### Features
1045+
1046+
- [`50e2775`](https://github.com/stdlib-js/stdlib/commit/50e2775cfb5128c0e66cdc755ca459ac416c3481) - add boolean dtype support in `array/defaults` [(#2309)](https://github.com/stdlib-js/stdlib/pull/2309)
1047+
1048+
</section>
1049+
1050+
<!-- /.features -->
1051+
1052+
</details>
1053+
1054+
</section>
1055+
1056+
<!-- /.package -->
1057+
10361058
<section class="package" id="array-dtypes-unreleased">
10371059

10381060
#### [@stdlib/array/dtypes](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/dtypes)
@@ -1636,6 +1658,7 @@ A total of 13 people contributed to this release. Thank you to the following con
16361658

16371659
<details>
16381660

1661+
- [`50e2775`](https://github.com/stdlib-js/stdlib/commit/50e2775cfb5128c0e66cdc755ca459ac416c3481) - **feat:** add boolean dtype support in `array/defaults` [(#2309)](https://github.com/stdlib-js/stdlib/pull/2309) _(by Jaysukh Makvana, Athan Reines)_
16391662
- [`31f2c1a`](https://github.com/stdlib-js/stdlib/commit/31f2c1a8c77a86aac05815d89f158febe8a37611) - **feat:** add boolean dtype support in `array/mostly-safe-casts` [(#2310)](https://github.com/stdlib-js/stdlib/pull/2310) _(by Jaysukh Makvana, Athan Reines)_
16401663
- [`40da309`](https://github.com/stdlib-js/stdlib/commit/40da3097c6ffaed4cd9284d6cdeff8bf11786553) - **feat:** add `map` method to `array/bool` [(#2292)](https://github.com/stdlib-js/stdlib/pull/2292) _(by Jaysukh Makvana, Athan Reines)_
16411664
- [`3edcfe5`](https://github.com/stdlib-js/stdlib/commit/3edcfe5d814fd12a56dbe492ddc78663721f5acd) - **feat:** update namespace TypeScript declarations [(#2303)](https://github.com/stdlib-js/stdlib/pull/2303) _(by stdlib-bot, Athan Reines)_

defaults/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ The returned object has the following properties:
5959
- **floating_point**: default floating-point data type.
6060
- **real_floating_point**: default real-valued floating-point data type.
6161
- **complex_floating_point**: default complex-valued floating-point data type.
62+
- **boolean**: default boolean data type.
6263
- **integer**: default integer data type.
6364
- **signed_integer**: default signed integer data type.
6465
- **unsigned_integer**: default unsigned integer data type.

defaults/docs/repl.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
out.dtypes.complex_floating_point: string
2929
Default complex-valued floating-point data type.
3030

31+
out.dtypes.boolean: string
32+
Default boolean data type.
33+
3134
out.dtypes.integer: string
3235
Default integer data type.
3336

defaults/docs/types/index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ interface DataTypes {
5252
*/
5353
complex_floating_point: 'complex128';
5454

55+
/**
56+
* Default boolean data type.
57+
*/
58+
boolean: 'bool';
59+
5560
/**
5661
* Default integer data type.
5762
*/

defaults/lib/get.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2023 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -33,6 +33,7 @@ var HASH = {
3333
'dtypes.floating_point': DEFAULTS.dtypes.floating_point,
3434
'dtypes.real_floating_point': DEFAULTS.dtypes.real_floating_point,
3535
'dtypes.complex_floating_point': DEFAULTS.dtypes.complex_floating_point,
36+
'dtypes.boolean': DEFAULTS.dtypes.boolean,
3637
'dtypes.integer': DEFAULTS.dtypes.integer,
3738
'dtypes.signed_integer': DEFAULTS.dtypes.signed_integer,
3839
'dtypes.unsigned_integer': DEFAULTS.dtypes.unsigned_integer

defaults/lib/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2023 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -39,6 +39,7 @@ function defaults() {
3939
'floating_point': 'float64',
4040
'real_floating_point': 'float64',
4141
'complex_floating_point': 'complex128',
42+
'boolean': 'bool',
4243
'integer': 'int32',
4344
'signed_integer': 'int32',
4445
'unsigned_integer': 'uint32'

defaults/test/test.get.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2023 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -51,6 +51,7 @@ tape( 'if provided a recognized setting, the function returns a default value',
5151
'dtypes.floating_point',
5252
'dtypes.real_floating_point',
5353
'dtypes.complex_floating_point',
54+
'dtypes.boolean',
5455
'dtypes.integer',
5556
'dtypes.signed_integer',
5657
'dtypes.unsigned_integer'
@@ -62,6 +63,7 @@ tape( 'if provided a recognized setting, the function returns a default value',
6263
DEFAULTS.dtypes.floating_point,
6364
DEFAULTS.dtypes.real_floating_point,
6465
DEFAULTS.dtypes.complex_floating_point,
66+
DEFAULTS.dtypes.boolean,
6567
DEFAULTS.dtypes.integer,
6668
DEFAULTS.dtypes.signed_integer,
6769
DEFAULTS.dtypes.unsigned_integer

defaults/test/test.main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ tape( 'the function returns default settings', function test( t ) {
5757
t.strictEqual( hasOwnProp( o.dtypes, 'complex_floating_point' ), true, 'has property' );
5858
t.strictEqual( typeof o.dtypes.complex_floating_point, 'string', 'returns expected value' );
5959

60+
t.strictEqual( hasOwnProp( o.dtypes, 'boolean' ), true, 'has property' );
61+
t.strictEqual( typeof o.dtypes.boolean, 'string', 'returns expected value' );
62+
6063
t.strictEqual( hasOwnProp( o.dtypes, 'integer' ), true, 'has property' );
6164
t.strictEqual( typeof o.dtypes.integer, 'string', 'returns expected value' );
6265

0 commit comments

Comments
 (0)