Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jun 6, 2024
1 parent 0ae83a1 commit 81302c5
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 3 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,28 @@ This release closes the following issue:

<!-- /.package -->

<section class="package" id="array-defaults-unreleased">

#### [@stdlib/array/defaults](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/defaults)

<details>

<section class="features">

##### Features

- [`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)

</section>

<!-- /.features -->

</details>

</section>

<!-- /.package -->

<section class="package" id="array-dtypes-unreleased">

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

<details>

- [`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)_
- [`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)_
- [`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)_
- [`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)_
Expand Down
1 change: 1 addition & 0 deletions defaults/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ The returned object has the following properties:
- **floating_point**: default floating-point data type.
- **real_floating_point**: default real-valued floating-point data type.
- **complex_floating_point**: default complex-valued floating-point data type.
- **boolean**: default boolean data type.
- **integer**: default integer data type.
- **signed_integer**: default signed integer data type.
- **unsigned_integer**: default unsigned integer data type.
Expand Down
3 changes: 3 additions & 0 deletions defaults/docs/repl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
out.dtypes.complex_floating_point: string
Default complex-valued floating-point data type.

out.dtypes.boolean: string
Default boolean data type.

out.dtypes.integer: string
Default integer data type.

Expand Down
5 changes: 5 additions & 0 deletions defaults/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ interface DataTypes {
*/
complex_floating_point: 'complex128';

/**
* Default boolean data type.
*/
boolean: 'bool';

/**
* Default integer data type.
*/
Expand Down
3 changes: 2 additions & 1 deletion defaults/lib/get.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @license Apache-2.0
*
* Copyright (c) 2023 The Stdlib Authors.
* Copyright (c) 2024 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -33,6 +33,7 @@ var HASH = {
'dtypes.floating_point': DEFAULTS.dtypes.floating_point,
'dtypes.real_floating_point': DEFAULTS.dtypes.real_floating_point,
'dtypes.complex_floating_point': DEFAULTS.dtypes.complex_floating_point,
'dtypes.boolean': DEFAULTS.dtypes.boolean,
'dtypes.integer': DEFAULTS.dtypes.integer,
'dtypes.signed_integer': DEFAULTS.dtypes.signed_integer,
'dtypes.unsigned_integer': DEFAULTS.dtypes.unsigned_integer
Expand Down
3 changes: 2 additions & 1 deletion defaults/lib/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @license Apache-2.0
*
* Copyright (c) 2023 The Stdlib Authors.
* Copyright (c) 2024 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -39,6 +39,7 @@ function defaults() {
'floating_point': 'float64',
'real_floating_point': 'float64',
'complex_floating_point': 'complex128',
'boolean': 'bool',
'integer': 'int32',
'signed_integer': 'int32',
'unsigned_integer': 'uint32'
Expand Down
4 changes: 3 additions & 1 deletion defaults/test/test.get.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @license Apache-2.0
*
* Copyright (c) 2023 The Stdlib Authors.
* Copyright (c) 2024 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -51,6 +51,7 @@ tape( 'if provided a recognized setting, the function returns a default value',
'dtypes.floating_point',
'dtypes.real_floating_point',
'dtypes.complex_floating_point',
'dtypes.boolean',
'dtypes.integer',
'dtypes.signed_integer',
'dtypes.unsigned_integer'
Expand All @@ -62,6 +63,7 @@ tape( 'if provided a recognized setting, the function returns a default value',
DEFAULTS.dtypes.floating_point,
DEFAULTS.dtypes.real_floating_point,
DEFAULTS.dtypes.complex_floating_point,
DEFAULTS.dtypes.boolean,
DEFAULTS.dtypes.integer,
DEFAULTS.dtypes.signed_integer,
DEFAULTS.dtypes.unsigned_integer
Expand Down
3 changes: 3 additions & 0 deletions defaults/test/test.main.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ tape( 'the function returns default settings', function test( t ) {
t.strictEqual( hasOwnProp( o.dtypes, 'complex_floating_point' ), true, 'has property' );
t.strictEqual( typeof o.dtypes.complex_floating_point, 'string', 'returns expected value' );

t.strictEqual( hasOwnProp( o.dtypes, 'boolean' ), true, 'has property' );
t.strictEqual( typeof o.dtypes.boolean, 'string', 'returns expected value' );

t.strictEqual( hasOwnProp( o.dtypes, 'integer' ), true, 'has property' );
t.strictEqual( typeof o.dtypes.integer, 'string', 'returns expected value' );

Expand Down

0 comments on commit 81302c5

Please sign in to comment.