Skip to content

Commit b004ab0

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into wasm/dmeanpn
2 parents c48f8d4 + 2de2781 commit b004ab0

File tree

687 files changed

+31947
-1721
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

687 files changed

+31947
-1721
lines changed

etc/eslint/rules/typescript.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ rules[ 'import/no-deprecated' ] = 'error';
13661366
* @name import/no-extraneous-dependencies
13671367
* @memberof rules
13681368
* @type {string}
1369-
* @default 'error'
1369+
* @default 'off'
13701370
* @see [import/no-extraneous-dependencies]{@link https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md}
13711371
*
13721372
* @example
@@ -1376,22 +1376,28 @@ rules[ 'import/no-deprecated' ] = 'error';
13761376
* // Bad...
13771377
* import foo from 'some-extranous-module';
13781378
*/
1379-
rules[ 'import/no-extraneous-dependencies' ] = 'error';
1379+
rules[ 'import/no-extraneous-dependencies' ] = 'off'; // NOTE: disabled to allow imports of `@stdlib/*` type declarations
13801380

13811381
/**
13821382
* Prevents importing the submodules of other modules.
13831383
*
13841384
* @name import/no-internal-modules
13851385
* @memberof rules
13861386
* @type {string}
1387-
* @default 'error'
1387+
* @default 'off'
13881388
* @see [import/no-internal-modules]{@link https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-internal-modules.md}
13891389
*
13901390
* @example
13911391
* // Bad...
13921392
* import something from 'module/some/internal/path';
13931393
*/
1394-
rules[ 'import/no-internal-modules' ] = 'error';
1394+
rules[ 'import/no-internal-modules' ] = [
1395+
'error', {
1396+
'allow': [
1397+
'@stdlib/**'
1398+
]
1399+
}
1400+
];
13951401

13961402
/**
13971403
* Forbids import statements that import nothing.

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-indent/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-list-item-indent' );
4242

4343
**Bad**:
4444

45-
<!-- eslint-disable stdlib/jsdoc-list-item-indent, stdlib/jsdoc-list-item-indent, stdlib/jsdoc-markdown-remark -->
45+
<!-- eslint-disable stdlib/jsdoc-list-item-indent, stdlib/jsdoc-markdown-remark -->
4646

4747
```javascript
4848
/**

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-spacing/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function main( context ) {
5555

5656
opts = {};
5757
options = context.options[ 0 ];
58-
if ( hasOwnProp( options, 'checkBlanks' ) ) {
58+
if ( options && hasOwnProp( options, 'checkBlanks' ) ) {
5959
opts.checkBlanks = options.checkBlanks;
6060
}
6161

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-main-export/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ code = [
101101
'* @module @stdlib/assert/isarray',
102102
'*',
103103
'* @example',
104-
'* var isArray = require( \'@stdlib/assert/is-aray\' );',
104+
'* var isArray = require( \'@stdlib/assert/is-array\' );',
105105
'*',
106106
'* var bool = isArray( [] );',
107107
'* // returns true',
@@ -148,7 +148,7 @@ result = linter.verify( code, {
148148
'column': 1,
149149
'nodeType': null,
150150
'endLine': 14,
151-
'endColumn': 3 } ]
151+
'endColumn': 3
152152
}
153153
]
154154
*/

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-value/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function beep() {
8282
}
8383
```
8484

85-
The [rule][eslint-rules] may be configured using the same options as supported by [remark][remark-lint-ordered-list-marker-value].
85+
The [rule][eslint-rules] may be configured using the same options as supported by [remark][remark-lint-ordered-list-marker-value].
8686

8787
- `ordered`: increment list item markers by one (default).
8888
- `single`: list item markers should all have the same starting value.

lib/node_modules/@stdlib/array/base/bifurcate-entries-by/docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
If a predicate function returns a truthy value, an array value is placed in
1212
the first group; otherwise, an array value is placed in the second group.
1313

14-
If provided an empty array, the function returns an empty object.
14+
If provided an empty array, the function returns an empty array.
1515

1616
Parameters
1717
----------
@@ -27,7 +27,7 @@
2727

2828
Returns
2929
-------
30-
out: Object
30+
out: Array
3131
Split results.
3232

3333
Examples

lib/node_modules/@stdlib/array/base/broadcasted-quaternary3d/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ var w = filled3dBy( shapes[ 3 ], discreteUniform( -100, 100 ) );
116116
console.log( w );
117117

118118
var out = zeros3d( shapes[ 4 ] );
119-
console.log( z );
119+
console.log( out );
120120

121121
bquaternary3d( [ x, y, z, w, out ], shapes, add );
122122
console.log( out );

lib/node_modules/@stdlib/array/base/broadcasted-quaternary4d/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ bquaternary4d( [ x, y, z, w, out ], shapes, add );
6464

6565
The function accepts the following arguments:
6666

67-
- **arrays**: array-like object containing two input nested arrays and one output nested array.
67+
- **arrays**: array-like object containing four input nested arrays and one output nested array.
6868
- **shapes**: array shapes.
6969
- **fcn**: quaternary function to apply.
7070

@@ -116,7 +116,7 @@ var w = filled4dBy( shapes[ 3 ], discreteUniform( -100, 100 ) );
116116
console.log( w );
117117

118118
var out = zeros4d( shapes[ 4 ] );
119-
console.log( z );
119+
console.log( out );
120120

121121
bquaternary4d( [ x, y, z, w, out ], shapes, add );
122122
console.log( out );

lib/node_modules/@stdlib/array/base/broadcasted-quaternary5d/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ var w = filled5dBy( shapes[ 3 ], discreteUniform( -100, 100 ) );
116116
console.log( w );
117117

118118
var out = zeros5d( shapes[ 4 ] );
119-
console.log( z );
119+
console.log( out );
120120

121121
bquaternary5d( [ x, y, z, w, out ], shapes, add );
122122
console.log( out );

lib/node_modules/@stdlib/array/base/count-ifs/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ declare function countIfs<T = unknown, U extends InputArray<T> = InputArray<T>>(
144144
* var x1 = [ -1, -2, 4, 5, -8 ];
145145
* var x2 = [ 0, 4, 3, 2, 12 ];
146146
*
147-
* var n = countIfs( x0, predicate0, x1, predicate1 );
147+
* var n = countIfs( x0, predicate0, x1, predicate1, x2, predicate2 );
148148
* // returns 2
149149
*/
150150
declare function countIfs<T = unknown, U extends InputArray<T> = InputArray<T>>( x0: U, predicate0: Predicate<T, U>, x1: U, predicate1: Predicate<T, U>, x2: U, predicate2: Predicate<T, U> ): number;
@@ -230,7 +230,7 @@ declare function countIfs<T = unknown, U extends InputArray<T> = InputArray<T>>(
230230
* var x1 = [ -1, -2, 4, 5, -8 ];
231231
* var x2 = [ 0, 4, 3, 2, 12 ];
232232
* var x3 = [ 2, 9, 3, 6, 5 ];
233-
* var x4 = [ false, true, false, true, true ]
233+
* var x4 = [ false, true, false, true, true ];
234234
*
235235
* var n = countIfs( x0, predicate0, x1, predicate1, x3, predicate3, x4, predicate4 );
236236
* // returns 2

lib/node_modules/@stdlib/array/base/count-same-value-zero/lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ function boolean( x, value ) {
196196
* // returns 2
197197
*/
198198
function countSameValueZero( x, value ) {
199-
if ( isAccessorArray( x, value ) ) {
200-
if ( isComplexTypedArray( x, value ) ) {
199+
if ( isAccessorArray( x ) ) {
200+
if ( isComplexTypedArray( x ) ) {
201201
return complex( x, value );
202202
}
203-
if ( isBooleanArray( x, value ) ) {
203+
if ( isBooleanArray( x ) ) {
204204
return boolean( x, value );
205205
}
206206
return accessors( x, value );

lib/node_modules/@stdlib/array/base/count-same-value/lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ function boolean( x, value ) {
196196
* // returns 3
197197
*/
198198
function countSameValue( x, value ) {
199-
if ( isAccessorArray( x, value ) ) {
200-
if ( isComplexTypedArray( x, value ) ) {
199+
if ( isAccessorArray( x ) ) {
200+
if ( isComplexTypedArray( x ) ) {
201201
return complex( x, value );
202202
}
203-
if ( isBooleanArray( x, value ) ) {
203+
if ( isBooleanArray( x ) ) {
204204
return boolean( x, value );
205205
}
206206
return accessors( x, value );

lib/node_modules/@stdlib/array/base/cuany-by/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ type Ternary<T, U> = ( this: U, value: T, index: number, arr: Collection<T> | Ac
6767
type Predicate<T, U> = Nullary<U> | Unary<T, U> | Binary<T, U> | Ternary<T, U>;
6868

6969
/**
70-
* Interface describing `cunanyBy`.
70+
* Interface describing `cuanyBy`.
7171
*/
7272
interface CuAnyBy {
7373
/**
@@ -86,7 +86,7 @@ interface CuAnyBy {
8686
* var x = [ 0, 0, 0, 1, 0 ];
8787
*
8888
* var y = cuanyBy( x, isPositive );
89-
* // returns [ false, false, false, true, true ];
89+
* // returns [ false, false, false, true, true ];
9090
*/
9191
<T = unknown, U = unknown>( x: Collection<T> | AccessorArrayLike<T>, predicate: Predicate<T, U>, thisArg?: ThisParameterType<Predicate<T, U>> ): Array<boolean>;
9292

lib/node_modules/@stdlib/array/base/cuany/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ interface CuAny {
3636
* var x = [ false, false , true, false , false ];
3737
*
3838
* var y = cuany( x );
39-
* // returns [ false, false, true, true, true ];
39+
* // returns [ false, false, true, true, true ];
4040
*/
4141
( x: Collection | AccessorArrayLike<any> ): Array<boolean>;
4242

@@ -53,7 +53,7 @@ interface CuAny {
5353
* var x = [ false, false, true, false, false ];
5454
* var y = [ false, null, false, null, false, null, false, null, false, null ];
5555
*
56-
* var arr = cuany.assign( x, y, 2, 0 );,
56+
* var arr = cuany.assign( x, y, 2, 0 );
5757
* // returns [ false, null, false, null, true, null, true, null, true, null ];
5858
*/
5959
assign<T, U extends Collection<T> | AccessorArrayLike<T>>( x: Collection | AccessorArrayLike<any>, y: U, stride: number, offset: number ): U;

lib/node_modules/@stdlib/array/base/cuevery-by-right/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ interface CueveryByRight {
188188
* var x = [ 1, 0, 0, 1, 1 ];
189189
* var y = [ false, null, false, null, false, null, false, null, false, null ];
190190
*
191-
* var arr = cueveryByRight.assign( x, 2, y, 2, 0, isPositive );
191+
* var arr = cueveryByRight.assign( x, y, 2, 0, isPositive );
192192
* // returns [ true, null, true, null, false, null, false, null, false, null ]
193193
*/
194194
declare var cueveryByRight: CueveryByRight;

lib/node_modules/@stdlib/array/base/cuevery-by-right/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var assign = require( './assign.js' );
4545
* // returns [ true, true, true, false, false ]
4646
*/
4747
function cueveryByRight( x, predicate, thisArg ) {
48-
var out = filled( false, x.length );
48+
var out = filled( true, x.length );
4949
return assign( x, out, 1, 0, predicate, thisArg );
5050
}
5151

lib/node_modules/@stdlib/array/base/cuevery-by/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ interface CuEveryBy {
8585
* var x = [ 1, 1, 1, 0, 0 ];
8686
*
8787
* var y = cueveryBy( x, isPositive );
88-
* // returns [ true, true, true, false, false ];
88+
* // returns [ true, true, true, false, false ];
8989
*/
9090
<T = unknown, U = unknown>( x: Collection<T> | AccessorArrayLike<T>, predicate: Predicate<T, U>, thisArg?: ThisParameterType<Predicate<T, U>> ): Array<boolean>;
9191

lib/node_modules/@stdlib/array/base/cuevery-by/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var assign = require( './assign.js' );
3636
*
3737
* @example
3838
* function isPositive( value ) {
39-
* return ( value > 0 );
39+
* return ( value > 0 );
4040
* }
4141
*
4242
* var x = [ 1, 1, 1, 0, 1 ];
@@ -45,7 +45,7 @@ var assign = require( './assign.js' );
4545
* // returns [ true, true, true, false, false ]
4646
*/
4747
function cueveryBy( x, predicate, thisArg ) {
48-
var out = filled( false, x.length );
48+
var out = filled( true, x.length );
4949
return assign( x, out, 1, 0, predicate, thisArg );
5050
}
5151

lib/node_modules/@stdlib/array/base/cuevery/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ interface CuEvery {
3636
* var x = [ true, true, true, false, true ];
3737
*
3838
* var y = cuevery( x );
39-
* // returns [ true, true, true, false, false ];
39+
* // returns [ true, true, true, false, false ];
4040
*/
4141
( x: Collection | AccessorArrayLike<any> ): Array<boolean>;
4242

lib/node_modules/@stdlib/array/base/cuevery/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var assign = require( './assign.js' );
2727
// MAIN //
2828

2929
/**
30-
* Cumulatively tests whether at every element in a provided array is truthy.
30+
* Cumulatively tests whether every element in a provided array is truthy.
3131
*
3232
* @param {Collection} x - input array
3333
* @returns {Array} output array

lib/node_modules/@stdlib/array/base/cunone-by-right/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var assign = require( './assign.js' );
4545
* // returns [ true, true, true, false, false ]
4646
*/
4747
function cunoneByRight( x, predicate, thisArg ) {
48-
var out = filled( false, x.length );
48+
var out = filled( true, x.length );
4949
return assign( x, out, 1, 0, predicate, thisArg );
5050
}
5151

lib/node_modules/@stdlib/array/base/cunone-by/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var assign = require( './assign.js' );
3131
*
3232
* @param {Collection} x - input array
3333
* @param {Function} predicate - predicate function
34-
* @param {*} [thisArg] - predicate function
34+
* @param {*} [thisArg] - execution context
3535
* @returns {Array} output array
3636
*
3737
* @example
@@ -45,7 +45,7 @@ var assign = require( './assign.js' );
4545
* // returns [ true, true, true, false, false ]
4646
*/
4747
function cunoneBy( x, predicate, thisArg ) {
48-
var out = filled( false, x.length );
48+
var out = filled( true, x.length );
4949
return assign( x, out, 1, 0, predicate, thisArg );
5050
}
5151

lib/node_modules/@stdlib/array/base/cunone/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/array/base/cunone/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var assign = require( './assign.js' );
2727
// MAIN //
2828

2929
/**
30-
* Cumulatively tests whether at every element in a provided array is falsy.
30+
* Cumulatively tests whether every element in a provided array is falsy.
3131
*
3232
* @param {Collection} x - input array
3333
* @returns {Array} output array

lib/node_modules/@stdlib/array/base/cusome/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var assign = require( './assign.js' );
4040
* // returns [ false, false, false, false, true ]
4141
*/
4242
function cusome( x, n ) {
43-
var y = filled( true, x.length );
43+
var y = filled( false, x.length );
4444
return assign( x, n, y, 1, 0 );
4545
}
4646

lib/node_modules/@stdlib/array/base/fill-by/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ declare function fillBy<T = unknown, V = unknown, ThisArg = unknown>( x: Accesso
225225
*
226226
* var x = [ 1, 2, 3 ];
227227
*
228-
* var out = fillBy( x, 4, 0, 3 );
228+
* var out = fillBy( x, 0, 3, fcn );
229229
* // returns [ 4, 4, 4 ]
230230
*
231231
* @example
@@ -235,7 +235,7 @@ declare function fillBy<T = unknown, V = unknown, ThisArg = unknown>( x: Accesso
235235
*
236236
* var x = [ 1, 2, 3, 4, 5, 6 ];
237237
*
238-
* var out = fillBy( x, 8, 0, 3 );
238+
* var out = fillBy( x, 0, 3, fcn );
239239
* // returns [ 8, 8, 8, 4, 5, 6 ]
240240
*/
241241
declare function fillBy<T = unknown, V = unknown, ThisArg = unknown>( x: Collection<T>, start: number, end: number, fcn: Callback<T, Collection<T>, V, ThisArg>, thisArg?: ThisParameterType<Callback<T, Collection<T>, V, ThisArg>> ): Collection<T | V>;

lib/node_modules/@stdlib/array/base/filled4d-by/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ var ctx = {
7272
};
7373

7474
var out = filled4dBy( [ 1, 1, 2, 3 ], clbk, ctx );
75-
// returns [ [ [ [ 1.0, 1.0, 1.0 ], [ 1.0, 1.0, 1.0 ] ] ] ];
75+
// returns [ [ [ [ 1.0, 1.0, 1.0 ], [ 1.0, 1.0, 1.0 ] ] ] ]
7676

7777
var cnt = ctx.count;
7878
// returns 6

lib/node_modules/@stdlib/array/base/filled4d-by/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type Callback<T, V> = Nullary<T, V> | Unary<T, V>;
4848
/**
4949
* Four-dimensional nested array.
5050
*/
51-
type Array4D<T> = Array<Array<Array<T>>>;
51+
type Array4D<T> = Array<Array<Array<Array<T>>>>;
5252

5353
/**
5454
* Returns a filled four-dimensional nested array according to a provided callback function.

lib/node_modules/@stdlib/array/base/filled4d/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { Shape4D } from '@stdlib/types/ndarray';
2525
/**
2626
* Four-dimensional nested array.
2727
*/
28-
type Array4D<T> = Array<Array<Array<T>>>;
28+
type Array4D<T> = Array<Array<Array<Array<T>>>>;
2929

3030
/**
3131
* Returns a filled four-dimensional nested array.

lib/node_modules/@stdlib/array/base/fillednd-by/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ var ctx = {
7272
};
7373

7474
var out = filledndBy( [ 1, 1, 1, 2, 3 ], clbk, ctx );
75-
// returns [ [ [ [ [ 1.0, 1.0, 1.0 ], [ 1.0, 1.0, 1.0 ] ] ] ] ];
75+
// returns [ [ [ [ [ 1.0, 1.0, 1.0 ], [ 1.0, 1.0, 1.0 ] ] ] ] ]
7676

7777
var cnt = ctx.count;
7878
// returns 6

0 commit comments

Comments
 (0)