From 8d10abde7eb14e166ad88dea9864cd5a5a217091 Mon Sep 17 00:00:00 2001 From: NotFoundOvO Date: Mon, 6 Jul 2026 10:44:19 +0800 Subject: [PATCH 01/11] fix: correct doctest expected value in read-dir examples --- lib/node_modules/@stdlib/fs/read-dir/examples/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/fs/read-dir/examples/index.js b/lib/node_modules/@stdlib/fs/read-dir/examples/index.js index 244a18f2d158..41b102b260a9 100644 --- a/lib/node_modules/@stdlib/fs/read-dir/examples/index.js +++ b/lib/node_modules/@stdlib/fs/read-dir/examples/index.js @@ -32,7 +32,7 @@ out = readDir.sync( 'beepboop' ); // returns console.log( out instanceof Error ); -// => true +// => false /* Async */ From bd99132c1632a9c42bb5b16450a5778fa7368051 Mon Sep 17 00:00:00 2001 From: NotFoundOvO <1264472267@qq.com> Date: Mon, 6 Jul 2026 10:48:39 +0800 Subject: [PATCH 02/11] fix: replace new Array constructor with array literal in ztest2 examples --- lib/node_modules/@stdlib/stats/ztest2/examples/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/ztest2/examples/index.js b/lib/node_modules/@stdlib/stats/ztest2/examples/index.js index d49169f4fff5..1fe6f2864496 100644 --- a/lib/node_modules/@stdlib/stats/ztest2/examples/index.js +++ b/lib/node_modules/@stdlib/stats/ztest2/examples/index.js @@ -28,14 +28,14 @@ var y; var i; // Values drawn from a Normal(4,2) distribution -x = new Array( 100 ); +x = []; for ( i = 0; i < 100; i++ ) { - x[ i ] = rnorm( 4.0, 2.0 ); + x.push( rnorm( 4.0, 2.0 ) ); } // Values drawn from a Normal(3,2) distribution -y = new Array( 80 ); +y = []; for ( i = 0; i < 80; i++ ) { - y[ i ] = rnorm( 3.0, 2.0 ); + y.push( rnorm( 3.0, 2.0 ) ); } out = ztest2( x, y, 2.0, 2.0 ); From 63809f5c93a4b612fad1cf9d5dc9ba8dcaf4f346 Mon Sep 17 00:00:00 2001 From: NotFoundOvO <1264472267@qq.com> Date: Mon, 6 Jul 2026 10:49:22 +0800 Subject: [PATCH 03/11] fix: use relative path in evalpoly-compile example require --- .../@stdlib/math/base/tools/evalpoly-compile/examples/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/examples/index.js b/lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/examples/index.js index 74c2c078cd22..9089582fd50d 100644 --- a/lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/examples/index.js +++ b/lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/examples/index.js @@ -18,11 +18,10 @@ 'use strict'; -var resolve = require( 'path' ).resolve; var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); var tryRequire = require( '@stdlib/utils/try-require' ); -var compile = tryRequire( resolve( __dirname, '..', 'lib' ) ); +var compile = tryRequire( './../lib' ); if ( compile instanceof Error ) { console.log( 'Unable to run example. Unsupported environment.' ); } else { From c8f67a518921874b04ac35d0748388c82c8b01ca Mon Sep 17 00:00:00 2001 From: NotFoundOvO <1264472267@qq.com> Date: Mon, 6 Jul 2026 10:52:46 +0800 Subject: [PATCH 04/11] fix: remove empty lines between require statements in hermitepoly test --- .../@stdlib/math/base/tools/hermitepoly/test/test.factory.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/tools/hermitepoly/test/test.factory.js b/lib/node_modules/@stdlib/math/base/tools/hermitepoly/test/test.factory.js index 13fdd0a5c7db..e18f4681f855 100644 --- a/lib/node_modules/@stdlib/math/base/tools/hermitepoly/test/test.factory.js +++ b/lib/node_modules/@stdlib/math/base/tools/hermitepoly/test/test.factory.js @@ -30,23 +30,18 @@ var factory = require( './../lib' ).factory; // FIXTURES // var random2 = require( './fixtures/python/random2.json' ); - var mediumNegative1 = require( './fixtures/python/medium_negative_1.json' ); var mediumNegative2 = require( './fixtures/python/medium_negative_2.json' ); var mediumNegative5 = require( './fixtures/python/medium_negative_5.json' ); - var mediumPositive1 = require( './fixtures/python/medium_positive_1.json' ); var mediumPositive2 = require( './fixtures/python/medium_positive_2.json' ); var mediumPositive5 = require( './fixtures/python/medium_positive_5.json' ); - var smallPositive1 = require( './fixtures/python/small_positive_1.json' ); var smallPositive2 = require( './fixtures/python/small_positive_2.json' ); var smallPositive5 = require( './fixtures/python/small_positive_5.json' ); - var smallNegative1 = require( './fixtures/python/small_negative_1.json' ); var smallNegative2 = require( './fixtures/python/small_negative_2.json' ); var smallNegative5 = require( './fixtures/python/small_negative_5.json' ); - var tiny1 = require( './fixtures/python/tiny_1.json' ); var tiny2 = require( './fixtures/python/tiny_2.json' ); var tiny5 = require( './fixtures/python/tiny_5.json' ); From 97626fc0849fbcd6a0fe548c470d67f750a04b88 Mon Sep 17 00:00:00 2001 From: NotFoundOvO <1264472267@qq.com> Date: Mon, 6 Jul 2026 10:55:51 +0800 Subject: [PATCH 05/11] fix: replace new Array with array literal in async/until --- lib/node_modules/@stdlib/utils/async/until/lib/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/utils/async/until/lib/main.js b/lib/node_modules/@stdlib/utils/async/until/lib/main.js index bc849497ab91..a5253d73c6ed 100644 --- a/lib/node_modules/@stdlib/utils/async/until/lib/main.js +++ b/lib/node_modules/@stdlib/utils/async/until/lib/main.js @@ -112,9 +112,9 @@ function untilAsync( predicate, fcn, done, thisArg ) { // Cache the most recent results... if ( arguments.length > 1 ) { - args = new Array( arguments.length-1 ); + args = []; for ( i = 1; i < arguments.length; i++ ) { - args[ i-1 ] = arguments[ i ]; + args.push( arguments[ i ] ); } } // Run the test condition: From 9f81b57536a6de6f66ec1f5697bedfa46cd711ea Mon Sep 17 00:00:00 2001 From: NotFoundOvO <1264472267@qq.com> Date: Mon, 6 Jul 2026 10:56:18 +0800 Subject: [PATCH 06/11] fix: replace new Array with array literal in pluck benchmark --- .../@stdlib/utils/pluck/benchmark/benchmark.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/node_modules/@stdlib/utils/pluck/benchmark/benchmark.js b/lib/node_modules/@stdlib/utils/pluck/benchmark/benchmark.js index 13c6b9a9e374..9b670a103c32 100644 --- a/lib/node_modules/@stdlib/utils/pluck/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/utils/pluck/benchmark/benchmark.js @@ -37,13 +37,13 @@ bench( pkg, function benchmark( b ) { var i; var j; - arr = new Array( 100 ); - for ( i = 0; i < arr.length; i++ ) { - tmp = new Array( 5 ); - for ( j = 0; j < tmp.length; j++ ) { - tmp[ j ] = round( randu()*100.0*(j+1.0) ); + arr = []; + for ( i = 0; i < 100; i++ ) { + tmp = []; + for ( j = 0; j < 5; j++ ) { + tmp.push( round( randu()*100.0*(j+1.0) ) ); } - arr[ i ] = tmp; + arr.push( tmp ); } b.tic(); for ( i = 0; i < b.iterations; i++ ) { From 94ff142bec08ab5ce4c80959c1c2ca2ef87fc31d Mon Sep 17 00:00:00 2001 From: NotFoundOvO <1264472267@qq.com> Date: Mon, 6 Jul 2026 10:56:36 +0800 Subject: [PATCH 07/11] fix: remove extra spaces before opts in org-repos validate --- .../@stdlib/_tools/github/org-repos/lib/validate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/github/org-repos/lib/validate.js b/lib/node_modules/@stdlib/_tools/github/org-repos/lib/validate.js index 6676d503d2ba..627eff876546 100644 --- a/lib/node_modules/@stdlib/_tools/github/org-repos/lib/validate.js +++ b/lib/node_modules/@stdlib/_tools/github/org-repos/lib/validate.js @@ -56,13 +56,13 @@ function validate( opts, options ) { if ( hasOwnProp( options, 'token' ) ) { opts.token = options.token; if ( !isString( opts.token ) ) { - return new TypeError( format( 'invalid option. `%s` option must be a string. Option: `%s`.', 'token', opts.token ) ); + return new TypeError( format( 'invalid option. `%s` option must be a string. Option: `%s`.', 'token', opts.token ) ); } } if ( hasOwnProp( options, 'useragent' ) ) { opts.useragent = options.useragent; if ( !isString( opts.useragent ) ) { - return new TypeError( format( 'invalid option. `%s` option must be a string. Option: `%s`.', 'useragent', opts.useragent ) ); + return new TypeError( format( 'invalid option. `%s` option must be a string. Option: `%s`.', 'useragent', opts.useragent ) ); } } return null; From de89527012ee92f9ad2f54eac072262f7e92da73 Mon Sep 17 00:00:00 2001 From: NotFoundOvO <1264472267@qq.com> Date: Mon, 6 Jul 2026 11:05:49 +0800 Subject: [PATCH 08/11] fix: remove unused eslint-disable directive in float64/pinf --- lib/node_modules/@stdlib/constants/float64/pinf/lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/constants/float64/pinf/lib/index.js b/lib/node_modules/@stdlib/constants/float64/pinf/lib/index.js index 5759d844b535..8c15c27cee6a 100644 --- a/lib/node_modules/@stdlib/constants/float64/pinf/lib/index.js +++ b/lib/node_modules/@stdlib/constants/float64/pinf/lib/index.js @@ -48,7 +48,7 @@ * @default Number.POSITIVE_INFINITY * @see [IEEE 754]{@link https://en.wikipedia.org/wiki/IEEE_754-1985} */ -var FLOAT64_PINF = Number.POSITIVE_INFINITY; // eslint-disable-line stdlib/require-globals +var FLOAT64_PINF = Number.POSITIVE_INFINITY; // EXPORTS // From cd262929f63af0ac868ff761ec9df05eb18e5692 Mon Sep 17 00:00:00 2001 From: NotFoundOvO <1264472267@qq.com> Date: Mon, 6 Jul 2026 11:11:29 +0800 Subject: [PATCH 09/11] fix: break inline arrays into multiline in kstest test --- .../stats/kstest/test/test.marsaglia.js | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/kstest/test/test.marsaglia.js b/lib/node_modules/@stdlib/stats/kstest/test/test.marsaglia.js index a9b4ba1444d7..23b555d30309 100644 --- a/lib/node_modules/@stdlib/stats/kstest/test/test.marsaglia.js +++ b/lib/node_modules/@stdlib/stats/kstest/test/test.marsaglia.js @@ -43,8 +43,30 @@ tape( 'the function correctly evaluates the CDF of D_n', function test( t ) { var n; var i; - d = [ 0.3, -0.1, 1.5, 0.5, 0.1, 0.1, 0.05, 0.05, 0.8, 0.274 ]; - n = [ 10.0, 10.0, 10.0, 20.0, 10.0, 20.0, 300.0, 80.0, 1.0, 10.0 ]; + d = [ + 0.3, + -0.1, + 1.5, + 0.5, + 0.1, + 0.1, + 0.05, + 0.05, + 0.8, + 0.274 + ]; + n = [ + 10.0, + 10.0, + 10.0, + 20.0, + 10.0, + 20.0, + 300.0, + 80.0, + 1.0, + 10.0 + ]; expected = [ 0.7294644, 0.0, From f9808febdeb8c3bf2283ba4904ae788c2566b876 Mon Sep 17 00:00:00 2001 From: NotFoundOvO <1264472267@qq.com> Date: Mon, 6 Jul 2026 11:37:25 +0800 Subject: [PATCH 10/11] fix: remove unused eslint-disable directive in reinterpret-float16 --- .../@stdlib/strided/base/reinterpret-float16/lib/main.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/node_modules/@stdlib/strided/base/reinterpret-float16/lib/main.js b/lib/node_modules/@stdlib/strided/base/reinterpret-float16/lib/main.js index 61992bf85fdf..709e8b6a5037 100644 --- a/lib/node_modules/@stdlib/strided/base/reinterpret-float16/lib/main.js +++ b/lib/node_modules/@stdlib/strided/base/reinterpret-float16/lib/main.js @@ -16,8 +16,6 @@ * limitations under the License. */ -/* eslint-disable stdlib/jsdoc-typedef-typos */ - 'use strict'; // MODULES // From cb82ef84f727092b86f504d3f794c93f0729c536 Mon Sep 17 00:00:00 2001 From: NotFoundOvO <1264472267@qq.com> Date: Mon, 6 Jul 2026 14:05:39 +0800 Subject: [PATCH 11/11] fix: update broken and redirected links in docs --- FAQ.md | 2 +- docs/editors/vscode/README.md | 2 +- docs/style-guides/cpp/README.md | 2 +- docs/style-guides/javascript/README.md | 2 +- docs/style-guides/julia/README.md | 2 +- docs/style-guides/r/README.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/FAQ.md b/FAQ.md index 67577d343d7c..b03b0b79fefe 100644 --- a/FAQ.md +++ b/FAQ.md @@ -884,7 +884,7 @@ See the [contributing guide][contributing-guide]. [julia-bigint]: http://docs.julialang.org/en/stable/stdlib/numbers/?highlight=bigfloat#Base.BigInt -[julia-bigfloat]: http://docs.julialang.org/en/stable/stdlib/numbers/?highlight=bigfloat#Base.BigFloat +[julia-bigfloat]: https://docs.julialang.org/en/stable/stdlib/numbers/#Base.BigFloat