Skip to content

Commit d188a1d

Browse files
committed
Release v0.1.0
1 parent 2ef9465 commit d188a1d

File tree

5 files changed

+66
-20
lines changed

5 files changed

+66
-20
lines changed

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,8 @@ indent_size = 2
179179
[*.gypi]
180180
indent_style = space
181181
indent_size = 2
182+
183+
# Set properties for citation files:
184+
[*.{cff,cff.txt}]
185+
indent_style = space
186+
indent_size = 2

CITATION.cff

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
cff-version: 1.2.0
2+
title: stdlib
3+
message: >-
4+
If you use this software, please cite it using the
5+
metadata from this file.
6+
7+
type: software
8+
9+
authors:
10+
- name: The Stdlib Authors
11+
url: https://github.com/stdlib-js/stdlib/graphs/contributors
12+
13+
repository-code: https://github.com/stdlib-js/stdlib
14+
url: https://stdlib.io
15+
16+
abstract: |
17+
Standard library for JavaScript and Node.js.
18+
19+
keywords:
20+
- JavaScript
21+
- Node.js
22+
- TypeScript
23+
- standard library
24+
- scientific computing
25+
- numerical computing
26+
- statistical computing
27+
28+
license: Apache-2.0 AND BSL-1.0
29+
30+
date-released: 2016

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ limitations under the License.
1818
1919
-->
2020

21+
22+
<details>
23+
<summary>
24+
About stdlib...
25+
</summary>
26+
<p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p>
27+
<p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p>
28+
<p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p>
29+
<p>To join us in bringing numerical computing to the web, get started by checking us out on <a href="https://github.com/stdlib-js/stdlib">GitHub</a>, and please consider <a href="https://opencollective.com/stdlib">financially supporting stdlib</a>. We greatly appreciate your continued support!</p>
30+
</details>
31+
2132
# someByRight
2233

2334
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
@@ -269,8 +280,8 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
269280
[npm-image]: http://img.shields.io/npm/v/@stdlib/utils-some-by-right.svg
270281
[npm-url]: https://npmjs.org/package/@stdlib/utils-some-by-right
271282

272-
[test-image]: https://github.com/stdlib-js/utils-some-by-right/actions/workflows/test.yml/badge.svg?branch=main
273-
[test-url]: https://github.com/stdlib-js/utils-some-by-right/actions/workflows/test.yml?query=branch:main
283+
[test-image]: https://github.com/stdlib-js/utils-some-by-right/actions/workflows/test.yml/badge.svg?branch=v0.1.0
284+
[test-url]: https://github.com/stdlib-js/utils-some-by-right/actions/workflows/test.yml?query=branch:v0.1.0
274285

275286
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-some-by-right/main.svg
276287
[coverage-url]: https://codecov.io/github/stdlib-js/utils-some-by-right?branch=main

docs/types/index.d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
// TypeScript Version: 2.0
19+
// TypeScript Version: 4.1
2020

2121
/// <reference types="@stdlib/types"/>
2222

@@ -27,15 +27,15 @@ import { Collection } from '@stdlib/types/array';
2727
*
2828
* @returns boolean indicating whether an element in a collection passes a test
2929
*/
30-
type Nullary = () => boolean;
30+
type Nullary<U> = ( this: U ) => boolean;
3131

3232
/**
3333
* Checks whether an element in a collection passes a test.
3434
*
3535
* @param value - collection value
3636
* @returns boolean indicating whether an element in a collection passes a test
3737
*/
38-
type Unary<T> = ( value: T ) => boolean;
38+
type Unary<T, U> = ( this: U, value: T ) => boolean;
3939

4040
/**
4141
* Checks whether an element in a collection passes a test.
@@ -44,7 +44,7 @@ type Unary<T> = ( value: T ) => boolean;
4444
* @param index - collection index
4545
* @returns boolean indicating whether an element in a collection passes a test
4646
*/
47-
type Binary<T> = ( value: T, index: number ) => boolean;
47+
type Binary<T, U> = ( this: U, value: T, index: number ) => boolean;
4848

4949
/**
5050
* Checks whether an element in a collection passes a test.
@@ -54,7 +54,7 @@ type Binary<T> = ( value: T, index: number ) => boolean;
5454
* @param collection - input collection
5555
* @returns boolean indicating whether an element in a collection passes a test
5656
*/
57-
type Ternary<T> = ( value: T, index: number, collection: Collection<T> ) => boolean;
57+
type Ternary<T, U> = ( this: U, value: T, index: number, collection: Collection<T> ) => boolean;
5858

5959
/**
6060
* Checks whether an element in a collection passes a test.
@@ -64,7 +64,7 @@ type Ternary<T> = ( value: T, index: number, collection: Collection<T> ) => bool
6464
* @param collection - input collection
6565
* @returns boolean indicating whether an element in a collection passes a test
6666
*/
67-
type Predicate<T> = Nullary | Unary<T> | Binary<T> | Ternary<T>;
67+
type Predicate<T, U> = Nullary<U> | Unary<T, U> | Binary<T, U> | Ternary<T, U>;
6868

6969
/**
7070
* Tests whether a collection contains at least `n` elements which pass a test implemented by a predicate function, iterating from right to left.
@@ -98,7 +98,7 @@ type Predicate<T> = Nullary | Unary<T> | Binary<T> | Ternary<T>;
9898
* var bool = someByRight( arr, 2, isNegative );
9999
* // returns true
100100
*/
101-
declare function someByRight<T = unknown>( collection: Collection<T>, n: number, predicate: Predicate<T>, thisArg?: ThisParameterType<Predicate<T>> ): boolean;
101+
declare function someByRight<T = unknown, U = unknown>( collection: Collection<T>, n: number, predicate: Predicate<T, U>, thisArg?: ThisParameterType<Predicate<T, U>> ): boolean;
102102

103103

104104
// EXPORTS //

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stdlib/utils-some-by-right",
3-
"version": "0.0.8",
3+
"version": "0.1.0",
44
"description": "Test whether a collection contains at least `n` elements which pass a test implemented by a predicate function, iterating from right to left.",
55
"license": "Apache-2.0",
66
"author": {
@@ -37,19 +37,19 @@
3737
"url": "https://github.com/stdlib-js/stdlib/issues"
3838
},
3939
"dependencies": {
40-
"@stdlib/assert-is-collection": "^0.0.8",
41-
"@stdlib/assert-is-function": "^0.0.8",
42-
"@stdlib/assert-is-positive-integer": "^0.0.7",
43-
"@stdlib/string-format": "^0.0.3",
44-
"@stdlib/types": "^0.0.14"
40+
"@stdlib/assert-is-collection": "^0.1.0",
41+
"@stdlib/assert-is-function": "^0.1.0",
42+
"@stdlib/assert-is-positive-integer": "^0.1.0",
43+
"@stdlib/string-format": "^0.1.0",
44+
"@stdlib/types": "^0.1.0"
4545
},
4646
"devDependencies": {
47-
"@stdlib/array-float64": "^0.0.6",
48-
"@stdlib/assert-is-boolean": "^0.0.8",
49-
"@stdlib/bench": "^0.0.12",
50-
"@stdlib/math-base-assert-is-nan": "^0.0.8",
47+
"@stdlib/array-float64": "^0.1.0",
48+
"@stdlib/assert-is-boolean": "^0.1.0",
49+
"@stdlib/bench": "^0.1.0",
50+
"@stdlib/math-base-assert-is-nan": "^0.1.0",
5151
"@stdlib/random-base-randu": "^0.0.8",
52-
"@stdlib/utils-noop": "^0.0.14",
52+
"@stdlib/utils-noop": "^0.1.0",
5353
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5454
"istanbul": "^0.4.1",
5555
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"

0 commit comments

Comments
 (0)