Skip to content

Commit 496ca59

Browse files
authored
Merge branch 'stdlib-js:develop' into nanmcv_correct
2 parents 6cf3d41 + 037800a commit 496ca59

File tree

325 files changed

+22976
-671
lines changed

Some content is hidden

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

325 files changed

+22976
-671
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
type: amend-message
3+
---
4+
feat: add support for accessor arrays and refactor `stats/base/cumax`
5+
6+
PR-URL: https://github.com/stdlib-js/stdlib/pull/5225
7+
8+
Co-authored-by: Athan Reines <kgryte@gmail.com>
9+
Co-authored-by: stdlib-bot <noreply@stdlib.io>
10+
Reviewed-by: Athan Reines <kgryte@gmail.com>
11+
Signed-off-by: Athan <kgryte@gmail.com>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
type: amend-message
3+
---
4+
test: fix test cases for `stats/base/ndarray/*nanmax`
5+
6+
PR-URL: #7926
7+
Reviewed-by: Athan Reines <kgryte@gmail.com>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
type: amend-message
3+
---
4+
feat: add C implementation for `stats/base/dists/frechet/cdf`
5+
6+
PR-URL: #4736
7+
Closes: #3604
8+
9+
Co-authored-by: Philipp Burckhardt <pburckhardt@outlook.com>
10+
Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
11+
Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>

lib/node_modules/@stdlib/_tools/tests/browser-build/examples/fixtures/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var tape = require( 'tape' );
23+
var tape = require( 'tape' ); // eslint-disable-line stdlib/require-last-path-relative
2424

2525

2626
// TESTS //

lib/node_modules/@stdlib/assert/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,17 +356,22 @@ To test whether a runtime environment supports certain features, the namespace i
356356
- <span class="signature">[`hasFunctionNameSupport()`][@stdlib/assert/has-function-name-support]</span><span class="delimiter">: </span><span class="description">detect native function `name` support.</span>
357357
- <span class="signature">[`hasGeneratorSupport()`][@stdlib/assert/has-generator-support]</span><span class="delimiter">: </span><span class="description">detect native `generator function` support.</span>
358358
- <span class="signature">[`hasGlobalThisSupport()`][@stdlib/assert/has-globalthis-support]</span><span class="delimiter">: </span><span class="description">detect `globalThis` support.</span>
359+
- <span class="signature">[`hasHasInstanceSymbolSupport()`][@stdlib/assert/has-has-instance-symbol-support]</span><span class="delimiter">: </span><span class="description">detect native `Symbol.hasInstance` support.</span>
359360
- <span class="signature">[`hasInt16ArraySupport()`][@stdlib/assert/has-int16array-support]</span><span class="delimiter">: </span><span class="description">detect native `Int16Array` support.</span>
360361
- <span class="signature">[`hasInt32ArraySupport()`][@stdlib/assert/has-int32array-support]</span><span class="delimiter">: </span><span class="description">detect native `Int32Array` support.</span>
361362
- <span class="signature">[`hasInt8ArraySupport()`][@stdlib/assert/has-int8array-support]</span><span class="delimiter">: </span><span class="description">detect native `Int8Array` support.</span>
362363
- <span class="signature">[`hasIsConcatSpreadableSymbolSupport()`][@stdlib/assert/has-is-concat-spreadable-symbol-support]</span><span class="delimiter">: </span><span class="description">detect native `Symbol.isConcatSpreadable` support.</span>
363364
- <span class="signature">[`hasIteratorSymbolSupport()`][@stdlib/assert/has-iterator-symbol-support]</span><span class="delimiter">: </span><span class="description">detect native `Symbol.iterator` support.</span>
364365
- <span class="signature">[`hasMapSupport()`][@stdlib/assert/has-map-support]</span><span class="delimiter">: </span><span class="description">detect native `Map` support.</span>
366+
- <span class="signature">[`hasMatchSymbolSupport()`][@stdlib/assert/has-match-symbol-support]</span><span class="delimiter">: </span><span class="description">detect native `Symbol.match` support.</span>
365367
- <span class="signature">[`hasNodeBufferSupport()`][@stdlib/assert/has-node-buffer-support]</span><span class="delimiter">: </span><span class="description">detect native `Buffer` support.</span>
366368
- <span class="signature">[`hasProxySupport()`][@stdlib/assert/has-proxy-support]</span><span class="delimiter">: </span><span class="description">detect native `Proxy` support.</span>
369+
- <span class="signature">[`hasReplaceSymbolSupport()`][@stdlib/assert/has-replace-symbol-support]</span><span class="delimiter">: </span><span class="description">detect native `Symbol.replace` support.</span>
370+
- <span class="signature">[`hasSearchSymbolSupport()`][@stdlib/assert/has-search-symbol-support]</span><span class="delimiter">: </span><span class="description">detect native `Symbol.search` support.</span>
367371
- <span class="signature">[`hasSetSupport()`][@stdlib/assert/has-set-support]</span><span class="delimiter">: </span><span class="description">detect native `Set` support.</span>
368372
- <span class="signature">[`hasSharedArrayBufferSupport()`][@stdlib/assert/has-sharedarraybuffer-support]</span><span class="delimiter">: </span><span class="description">detect native `SharedArrayBuffer` support.</span>
369373
- <span class="signature">[`hasSymbolSupport()`][@stdlib/assert/has-symbol-support]</span><span class="delimiter">: </span><span class="description">detect native `Symbol` support.</span>
374+
- <span class="signature">[`hasToPrimitiveSymbolSupport()`][@stdlib/assert/has-to-primitive-symbol-support]</span><span class="delimiter">: </span><span class="description">detect native `Symbol.toPrimitive` support.</span>
370375
- <span class="signature">[`hasToStringTagSupport()`][@stdlib/assert/has-tostringtag-support]</span><span class="delimiter">: </span><span class="description">detect native `Symbol.toStringTag` support.</span>
371376
- <span class="signature">[`hasUint16ArraySupport()`][@stdlib/assert/has-uint16array-support]</span><span class="delimiter">: </span><span class="description">detect native `Uint16Array` support.</span>
372377
- <span class="signature">[`hasUint32ArraySupport()`][@stdlib/assert/has-uint32array-support]</span><span class="delimiter">: </span><span class="description">detect native `Uint32Array` support.</span>
@@ -863,6 +868,8 @@ console.log( objectKeys( assert ) );
863868

864869
[@stdlib/assert/has-globalthis-support]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/has-globalthis-support
865870

871+
[@stdlib/assert/has-has-instance-symbol-support]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/has-has-instance-symbol-support
872+
866873
[@stdlib/assert/has-int16array-support]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/has-int16array-support
867874

868875
[@stdlib/assert/has-int32array-support]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/has-int32array-support
@@ -875,16 +882,24 @@ console.log( objectKeys( assert ) );
875882

876883
[@stdlib/assert/has-map-support]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/has-map-support
877884

885+
[@stdlib/assert/has-match-symbol-support]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/has-match-symbol-support
886+
878887
[@stdlib/assert/has-node-buffer-support]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/has-node-buffer-support
879888

880889
[@stdlib/assert/has-proxy-support]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/has-proxy-support
881890

891+
[@stdlib/assert/has-replace-symbol-support]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/has-replace-symbol-support
892+
893+
[@stdlib/assert/has-search-symbol-support]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/has-search-symbol-support
894+
882895
[@stdlib/assert/has-set-support]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/has-set-support
883896

884897
[@stdlib/assert/has-sharedarraybuffer-support]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/has-sharedarraybuffer-support
885898

886899
[@stdlib/assert/has-symbol-support]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/has-symbol-support
887900

901+
[@stdlib/assert/has-to-primitive-symbol-support]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/has-to-primitive-symbol-support
902+
888903
[@stdlib/assert/has-tostringtag-support]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/has-tostringtag-support
889904

890905
[@stdlib/assert/has-uint16array-support]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/has-uint16array-support

lib/node_modules/@stdlib/assert/has-async-iterator-symbol-support/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ limitations under the License.
1818
1919
-->
2020

21-
# Async Iterator Symbol Support
21+
# hasAsyncIteratorSymbolSupport
2222

2323
> Detect native [`Symbol.asyncIterator`][mdn-symbol] support.
2424
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
<!--
2+
3+
@license Apache-2.0
4+
5+
Copyright (c) 2025 The Stdlib Authors.
6+
7+
Licensed under the Apache License, Version 2.0 (the "License");
8+
you may not use this file except in compliance with the License.
9+
You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
19+
-->
20+
21+
# hasHasInstanceSymbolSupport
22+
23+
> Detect native [`Symbol.hasInstance`][mdn-has-instance-symbol] support.
24+
25+
<section class="usage">
26+
27+
## Usage
28+
29+
<!-- eslint-disable id-length -->
30+
31+
```javascript
32+
var hasHasInstanceSymbolSupport = require( '@stdlib/assert/has-has-instance-symbol-support' );
33+
```
34+
35+
#### hasHasInstanceSymbolSupport()
36+
37+
Detects if a runtime environment supports [`Symbol.hasInstance`][mdn-has-instance-symbol].
38+
39+
<!-- eslint-disable id-length -->
40+
41+
```javascript
42+
var bool = hasHasInstanceSymbolSupport();
43+
// returns <boolean>
44+
```
45+
46+
</section>
47+
48+
<!-- /.usage -->
49+
50+
<section class="examples">
51+
52+
## Examples
53+
54+
<!-- eslint-disable id-length -->
55+
56+
<!-- eslint no-undef: "error" -->
57+
58+
```javascript
59+
var hasHasInstanceSymbolSupport = require( '@stdlib/assert/has-has-instance-symbol-support' );
60+
61+
var bool = hasHasInstanceSymbolSupport();
62+
if ( bool ) {
63+
console.log( 'Environment has Symbol.hasInstance support.' );
64+
} else {
65+
console.log( 'Environment lacks Symbol.hasInstance support.' );
66+
}
67+
```
68+
69+
</section>
70+
71+
<!-- /.examples -->
72+
73+
* * *
74+
75+
<section class="cli">
76+
77+
## CLI
78+
79+
<section class="usage">
80+
81+
### Usage
82+
83+
```text
84+
Usage: has-has-instance-symbol-support [options]
85+
86+
Options:
87+
88+
-h, --help Print this message.
89+
-V, --version Print the package version.
90+
```
91+
92+
</section>
93+
94+
<!-- /.usage -->
95+
96+
<section class="examples">
97+
98+
### Examples
99+
100+
```bash
101+
$ has-has-instance-symbol-support
102+
<boolean>
103+
```
104+
105+
</section>
106+
107+
<!-- /.examples -->
108+
109+
</section>
110+
111+
<!-- /.cli -->
112+
113+
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
114+
115+
<section class="related">
116+
117+
</section>
118+
119+
<!-- /.related -->
120+
121+
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
122+
123+
<section class="links">
124+
125+
[mdn-has-instance-symbol]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol.hasInstance
126+
127+
</section>
128+
129+
<!-- /.links -->
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2025 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
'use strict';
20+
21+
// MODULES //
22+
23+
var bench = require( '@stdlib/bench' );
24+
var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
25+
var pkg = require( './../package.json' ).name;
26+
var hasHasInstanceSymbolSupport = require( './../lib' ); // eslint-disable-line id-length
27+
28+
29+
// MAIN //
30+
31+
bench( pkg, function benchmark( b ) {
32+
var bool;
33+
var i;
34+
35+
b.tic();
36+
for ( i = 0; i < b.iterations; i++ ) {
37+
// Note: the following *could* be optimized away via loop-invariant code motion. If so, the entire loop will disappear.
38+
bool = hasHasInstanceSymbolSupport();
39+
if ( typeof bool !== 'boolean' ) {
40+
b.fail( 'should return a boolean' );
41+
}
42+
}
43+
b.toc();
44+
if ( !isBoolean( bool ) ) {
45+
b.fail( 'should return a boolean' );
46+
}
47+
b.pass( 'benchmark finished' );
48+
b.end();
49+
});
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#!/usr/bin/env node
2+
3+
/**
4+
* @license Apache-2.0
5+
*
6+
* Copyright (c) 2025 The Stdlib Authors.
7+
*
8+
* Licensed under the Apache License, Version 2.0 (the "License");
9+
* you may not use this file except in compliance with the License.
10+
* You may obtain a copy of the License at
11+
*
12+
* http://www.apache.org/licenses/LICENSE-2.0
13+
*
14+
* Unless required by applicable law or agreed to in writing, software
15+
* distributed under the License is distributed on an "AS IS" BASIS,
16+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
* See the License for the specific language governing permissions and
18+
* limitations under the License.
19+
*/
20+
21+
'use strict';
22+
23+
// MODULES //
24+
25+
var resolve = require( 'path' ).resolve;
26+
var readFileSync = require( '@stdlib/fs/read-file' ).sync;
27+
var CLI = require( '@stdlib/cli/ctor' );
28+
var detect = require( './../lib' );
29+
30+
31+
// MAIN //
32+
33+
/**
34+
* Main execution sequence.
35+
*
36+
* @private
37+
*/
38+
function main() {
39+
var flags;
40+
var cli;
41+
42+
// Create a command-line interface:
43+
cli = new CLI({
44+
'pkg': require( './../package.json' ),
45+
'options': require( './../etc/cli_opts.json' ),
46+
'help': readFileSync( resolve( __dirname, '..', 'docs', 'usage.txt' ), {
47+
'encoding': 'utf8'
48+
})
49+
});
50+
51+
// Get any provided command-line options:
52+
flags = cli.flags();
53+
if ( flags.help || flags.version ) {
54+
return;
55+
}
56+
57+
console.log( detect() ); // eslint-disable-line no-console
58+
}
59+
60+
main();
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
{{alias}}()
3+
Tests for native `Symbol.hasInstance` support.
4+
5+
Returns
6+
-------
7+
bool: boolean
8+
Boolean indicating if an environment has native `Symbol.hasInstance`
9+
support.
10+
11+
Examples
12+
--------
13+
> var bool = {{alias}}()
14+
<boolean>
15+
16+
See Also
17+
--------
18+

0 commit comments

Comments
 (0)