Skip to content

Commit 747498b

Browse files
committed
Auto-generated commit
1 parent 1fc99f2 commit 747498b

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

CHANGELOG.md

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

7-
## Unreleased (2025-12-26)
7+
## Unreleased (2025-12-27)
88

99
<section class="features">
1010

1111
### Features
1212

13+
- [`626f31e`](https://github.com/stdlib-js/stdlib/commit/626f31e5f7aa40d0dc64f48fa3b9c4f87f9bf30c) - update `ndarray/base` TypeScript declarations [(#9386)](https://github.com/stdlib-js/stdlib/pull/9386)
1314
- [`48c3c32`](https://github.com/stdlib-js/stdlib/commit/48c3c32ed78e8cad7b2719f2b2a0328a66e1c9e3) - add `ndarray/unshift` [(#9066)](https://github.com/stdlib-js/stdlib/pull/9066)
1415
- [`2e0f8e6`](https://github.com/stdlib-js/stdlib/commit/2e0f8e6476ccc5194c02d472a327fb8a425fdfae) - add `ndarray/push` [(#9054)](https://github.com/stdlib-js/stdlib/pull/9054)
1516
- [`3feb022`](https://github.com/stdlib-js/stdlib/commit/3feb02271d5335920ebbd4ca0268f0a24340e168) - add `ndarray/flatten-from-by` [(#9040)](https://github.com/stdlib-js/stdlib/pull/9040)
@@ -612,6 +613,10 @@
612613

613614
### BREAKING CHANGES
614615

616+
- [`626f31e`](https://github.com/stdlib-js/stdlib/commit/626f31e5f7aa40d0dc64f48fa3b9c4f87f9bf30c): add `writable` parameter
617+
618+
- To migrate, users should be explicit in terms of whether a writable or read-only ndarray is returned. The previous behavior only returned a read-only array when provided a read-only array. The responsibility for determining the appropriate return value behavior is now pushed to userland.
619+
615620
- [`b760fb5`](https://github.com/stdlib-js/stdlib/commit/b760fb5724fb36fb9ae5b18aaf642b3f25037cec): rename `sentinelValue` option to `sentinel`
616621

617622
- To migrate, users should update their usage of `sentinelValue` to use just `sentinel`.
@@ -660,6 +665,7 @@ A total of 37 issues were closed in this release:
660665

661666
<details>
662667

668+
- [`626f31e`](https://github.com/stdlib-js/stdlib/commit/626f31e5f7aa40d0dc64f48fa3b9c4f87f9bf30c) - **feat:** update `ndarray/base` TypeScript declarations [(#9386)](https://github.com/stdlib-js/stdlib/pull/9386) _(by stdlib-bot)_
663669
- [`345c740`](https://github.com/stdlib-js/stdlib/commit/345c7404530f8c5ba7215bfe6e25cc5e4a0af640) - **docs:** improve doctests for ndarray instances in `ndarray/count-falsy` [(#9377)](https://github.com/stdlib-js/stdlib/pull/9377) _(by kaushal-kumar-it)_
664670
- [`daf2cc8`](https://github.com/stdlib-js/stdlib/commit/daf2cc847c77117f4c5ae4e5e99ae224bb592edc) - **refactor:** add writable parameter to `ndarray/base/spread-dimensions` [(#9370)](https://github.com/stdlib-js/stdlib/pull/9370) _(by Muhammad Haris, Athan Reines)_
665671
- [`48c3c32`](https://github.com/stdlib-js/stdlib/commit/48c3c32ed78e8cad7b2719f2b2a0328a66e1c9e3) - **feat:** add `ndarray/unshift` [(#9066)](https://github.com/stdlib-js/stdlib/pull/9066) _(by Muhammad Haris, Athan Reines)_

base/docs/types/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3870,6 +3870,7 @@ interface Namespace {
38703870
* @param ndims - number of dimensions in the output array
38713871
* @param x - input array
38723872
* @param dims - dimension indices
3873+
* @param writable - boolean indicating whether a returned array should be writable
38733874
* @returns output array
38743875
*
38753876
* @example
@@ -3881,7 +3882,7 @@ interface Namespace {
38813882
* var shx = x.shape;
38823883
* // returns [ 2, 2 ]
38833884
*
3884-
* var y = ns.spreadDimensions( 5, x, [ 1, 3 ] );
3885+
* var y = ns.spreadDimensions( 5, x, [ 1, 3 ], false );
38853886
* // returns <ndarray>
38863887
*
38873888
* var shy = y.shape;

0 commit comments

Comments
 (0)