From fdf871e43077dad365de4790491aa41049350b50 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 9 Jul 2026 14:17:16 +0000 Subject: [PATCH 1/2] fix(@stdlib/array/ones-like): fix example to use supported dtypes The job `random_examples` on workflow `random_examples` failed on develop with `TypeError: invalid argument. Second argument must be one of the following: ... Value: \`bool\`.` in examples/index.js. Root cause: the example iterated over the full, unfiltered dtype list from `dtypes()`, which includes `'bool'`, but `onesLike` only accepts `dtypes( 'numeric_and_generic' )` (see lib/main.js). This commit changes the example to request the same filtered dtype list `onesLike` itself validates against, so every dtype it iterates over is one `onesLike` actually supports. Ref: https://github.com/stdlib-js/stdlib/actions/runs/28985865125 --- lib/node_modules/@stdlib/array/ones-like/examples/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/array/ones-like/examples/index.js b/lib/node_modules/@stdlib/array/ones-like/examples/index.js index 91a4e5f9be35..608301b4f1a4 100644 --- a/lib/node_modules/@stdlib/array/ones-like/examples/index.js +++ b/lib/node_modules/@stdlib/array/ones-like/examples/index.js @@ -26,7 +26,7 @@ var onesLike = require( './../lib' ); var x = zeros( 4, 'complex128' ); // Get a list of array data types: -var dt = dtypes(); +var dt = dtypes( 'numeric_and_generic' ); // Generate filled arrays... var y; From ccbe3377e69d035b5d05cb7d2c05cdf8ae0661c0 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 9 Jul 2026 14:53:41 +0000 Subject: [PATCH 2/2] docs(@stdlib/array/ones-like): propagate dtypes fix to README example Commit fdf871e43 fixed the crash in examples/index.js by requesting `dtypes( 'numeric_and_generic' )` instead of the unfiltered `dtypes()` list, but README.md embeds its own copy of the same example and was left with the stale, crashing call. This commit applies the identical change there so the documented example matches the one that actually runs in CI. --- lib/node_modules/@stdlib/array/ones-like/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/array/ones-like/README.md b/lib/node_modules/@stdlib/array/ones-like/README.md index f04e3bc6548c..9407436058dc 100644 --- a/lib/node_modules/@stdlib/array/ones-like/README.md +++ b/lib/node_modules/@stdlib/array/ones-like/README.md @@ -108,7 +108,7 @@ var onesLike = require( '@stdlib/array/ones-like' ); var x = zeros( 4, 'complex128' ); // Get a list of array data types: -var dt = dtypes(); +var dt = dtypes( 'numeric_and_generic' ); // Generate filled arrays... var y;