Skip to content

Commit ae6b426

Browse files
committed
Auto-generated commit
1 parent 2ee4da3 commit ae6b426

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
### Features
1212

13+
- [`3c567b6`](https://github.com/stdlib-js/stdlib/commit/3c567b634cf5e5fa5e31b64f94206db5b4a88133) - update `ndarray/base` TypeScript declarations (#9640) [(#9640)](https://github.com/stdlib-js/stdlib/pull/9640)
1314
- [`483acba`](https://github.com/stdlib-js/stdlib/commit/483acba3dbcea263aa0014a2db41e1c073f8338b) - add `ndarray/find-last` [(#8724)](https://github.com/stdlib-js/stdlib/pull/8724)
1415
- [`fd99657`](https://github.com/stdlib-js/stdlib/commit/fd99657f0da9706d3c1d7b03c5f9caf97069d3df) - add `ndarray/prepend-singleton-dimensions` [(#9478)](https://github.com/stdlib-js/stdlib/pull/9478)
1516
- [`f475c84`](https://github.com/stdlib-js/stdlib/commit/f475c843a4b1579eef6533e464e4c16766d7ecdd) - add writable parameter to `ndarray/base/expand-dimensions` [(#9476)](https://github.com/stdlib-js/stdlib/pull/9476)
@@ -631,6 +632,10 @@
631632

632633
### BREAKING CHANGES
633634

635+
- [`3c567b6`](https://github.com/stdlib-js/stdlib/commit/3c567b634cf5e5fa5e31b64f94206db5b4a88133): add `writable` parameter
636+
637+
- To migrate, users should explicitly provide a third argument indicating whether the ndarray returned by `expandDimensions` should be read-only. To preserve previous behavior, users should set the third argument to a boolean indicating whether a provided input ndarray is read-only.
638+
634639
- [`f475c84`](https://github.com/stdlib-js/stdlib/commit/f475c843a4b1579eef6533e464e4c16766d7ecdd): add `writable` parameter
635640

636641
- To migrate, users should explicitly provide a third argument indicating whether to return a read-only ndarray. To preserve prior behavior, users should provide a boolean based on whether an input ndarray is read-only.
@@ -696,6 +701,7 @@ A total of 40 issues were closed in this release:
696701

697702
<details>
698703

704+
- [`3c567b6`](https://github.com/stdlib-js/stdlib/commit/3c567b634cf5e5fa5e31b64f94206db5b4a88133) - **feat:** update `ndarray/base` TypeScript declarations (#9640) [(#9640)](https://github.com/stdlib-js/stdlib/pull/9640) _(by stdlib-bot)_
699705
- [`483acba`](https://github.com/stdlib-js/stdlib/commit/483acba3dbcea263aa0014a2db41e1c073f8338b) - **feat:** add `ndarray/find-last` [(#8724)](https://github.com/stdlib-js/stdlib/pull/8724) _(by Muhammad Haris, Athan Reines, stdlib-bot)_
700706
- [`90021da`](https://github.com/stdlib-js/stdlib/commit/90021dae5b5a3b4fbeb5e2366c71b5ddf2095555) - **chore:** clean-up _(by Athan Reines)_
701707
- [`fd99657`](https://github.com/stdlib-js/stdlib/commit/fd99657f0da9706d3c1d7b03c5f9caf97069d3df) - **feat:** add `ndarray/prepend-singleton-dimensions` [(#9478)](https://github.com/stdlib-js/stdlib/pull/9478) _(by Muhammad Haris, Athan Reines)_

base/docs/types/index.d.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,23 +1578,17 @@ interface Namespace {
15781578
*
15791579
* @param x - input array
15801580
* @param axis - axis at which to insert a singleton dimension
1581+
* @param writable - boolean indicating whether the returned ndarray should be writable
15811582
* @returns output array
15821583
*
15831584
* @example
1584-
* var getShape = require( './../../../shape' );
15851585
* var array = require( './../../../array' );
15861586
*
15871587
* var x = array( [ [ 1, 2 ], [ 3, 4 ] ] );
15881588
* // returns <ndarray>[ [ 1, 2 ], [ 3, 4 ] ]
15891589
*
1590-
* var shx = getShape( x );
1591-
* // returns [ 2, 2 ]
1592-
*
1593-
* var y = ns.expandDimensions( x, 1 );
1590+
* var y = ns.expandDimensions( x, 1, false );
15941591
* // returns <ndarray>[ [ [ 1, 2 ] ], [ [ 3, 4 ] ] ]
1595-
*
1596-
* var shy = getShape( y );
1597-
* // returns [ 2, 1, 2 ]
15981592
*/
15991593
expandDimensions: typeof expandDimensions;
16001594

0 commit comments

Comments
 (0)