Skip to content

Commit 55eb1c3

Browse files
committed
Auto-generated commit
1 parent c3c74e1 commit 55eb1c3

File tree

6 files changed

+25
-31
lines changed

6 files changed

+25
-31
lines changed

.github/workflows/npm_downloads.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ jobs:
8686
8787
# Upload the download data:
8888
- name: 'Upload data'
89-
# Pin action to full length commit SHA corresponding to v3.1.3
90-
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
89+
# Pin action to full length commit SHA
90+
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
9191
with:
9292
# Define a name for the uploaded artifact (ensuring a unique name for each job):
9393
name: npm_downloads

.github/workflows/publish.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,10 @@ jobs:
124124
mv ./package.json.tmp ./package.json
125125
fi
126126
done
127-
jq -r '.devDependencies | keys[]' ./package.json | while read -r dep; do
128-
if [[ "$dep" != "@stdlib"* ]]; then
129-
continue
130-
fi
131-
dep=$(echo "$dep" | xargs)
132-
if ! find lib -name "*.js" -exec grep -q "$dep" {} + && ! grep -q -s "$dep" manifest.json && ! grep -q -s "$dep" include.gypi; then
133-
jq --indent 2 "del(.devDependencies[\"$dep\"])" ./package.json > ./package.json.tmp
134-
mv ./package.json.tmp ./package.json
135-
fi
136-
done
127+
128+
# Set `devDependencies` to an empty object:
129+
jq --indent 2 '.devDependencies = {}' ./package.json > ./package.json.tmp
130+
mv ./package.json.tmp ./package.json
137131
138132
# Remove CLI section:
139133
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?<section class=\"cli\">[\s\S]+?<\!\-\- \/.cli \-\->//"

.github/workflows/test_bundles.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ jobs:
168168

169169
# Install Deno:
170170
- name: 'Install Deno'
171-
# Pin action to full length commit SHA corresponding to v1.1.2
172-
uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31
171+
# Pin action to full length commit SHA
172+
uses: denoland/setup-deno@041b854f97b325bd60e53e9dc2de9cb9f9ac0cba # v1.1.4
173173
with:
174174
deno-version: vx.x.x
175175

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ limitations under the License.
2929
<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>
3030
</details>
3131

32-
# Convert
32+
# convertSame
3333

3434
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
3535

@@ -70,10 +70,10 @@ To view installation and usage instructions specific to each branch build, be su
7070
## Usage
7171

7272
```javascript
73-
var convertArraySame = require( '@stdlib/array-convert-same' );
73+
var convertSame = require( '@stdlib/array-convert-same' );
7474
```
7575

76-
#### convertArraySame( x, y )
76+
#### convertSame( x, y )
7777

7878
Converts an array to the same data type as a second input array.
7979

@@ -83,7 +83,7 @@ var Float32Array = require( '@stdlib/array-float32' );
8383
var x = [ 1.0, 2.0, 3.0 ];
8484
var y = new Float32Array( 0 );
8585

86-
var out = convertArraySame( x, y );
86+
var out = convertSame( x, y );
8787
// returns <Float32Array>[ 1.0, 2.0, 3.0 ]
8888
```
8989

@@ -129,7 +129,7 @@ var discreteUniform = require( '@stdlib/random-base-discrete-uniform' ).factory;
129129
var filledarrayBy = require( '@stdlib/array-filled-by' );
130130
var dtypes = require( '@stdlib/array-dtypes' );
131131
var ctors = require( '@stdlib/array-ctors' );
132-
var convertArraySame = require( '@stdlib/array-convert-same' );
132+
var convertSame = require( '@stdlib/array-convert-same' );
133133

134134
// Create a generic array:
135135
var arr = filledarrayBy( 5, 'generic', discreteUniform( -100, 100 ) );
@@ -141,7 +141,7 @@ var DTYPES = dtypes();
141141
var out;
142142
var i;
143143
for ( i = 0; i < DTYPES.length; i++ ) {
144-
out = convertArraySame( arr, new ( ctors( DTYPES[ i ] ) )( 0 ) );
144+
out = convertSame( arr, new ( ctors( DTYPES[ i ] ) )( 0 ) );
145145
console.log( out );
146146
}
147147
```
@@ -211,8 +211,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
211211
[npm-image]: http://img.shields.io/npm/v/@stdlib/array-convert-same.svg
212212
[npm-url]: https://npmjs.org/package/@stdlib/array-convert-same
213213

214-
[test-image]: https://github.com/stdlib-js/array-convert-same/actions/workflows/test.yml/badge.svg?branch=v0.2.0
215-
[test-url]: https://github.com/stdlib-js/array-convert-same/actions/workflows/test.yml?query=branch:v0.2.0
214+
[test-image]: https://github.com/stdlib-js/array-convert-same/actions/workflows/test.yml/badge.svg?branch=main
215+
[test-url]: https://github.com/stdlib-js/array-convert-same/actions/workflows/test.yml?query=branch:main
216216

217217
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/array-convert-same/main.svg
218218
[coverage-url]: https://codecov.io/github/stdlib-js/array-convert-same?branch=main

examples/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var discreteUniform = require( '@stdlib/random-base-discrete-uniform' ).factory;
2222
var filledarrayBy = require( '@stdlib/array-filled-by' );
2323
var dtypes = require( '@stdlib/array-dtypes' );
2424
var ctors = require( '@stdlib/array-ctors' );
25-
var convertArraySame = require( './../lib' );
25+
var convertSame = require( './../lib' );
2626

2727
// Create a generic array:
2828
var arr = filledarrayBy( 5, 'generic', discreteUniform( -100, 100 ) );
@@ -34,6 +34,6 @@ var DTYPES = dtypes();
3434
var out;
3535
var i;
3636
for ( i = 0; i < DTYPES.length; i++ ) {
37-
out = convertArraySame( arr, new ( ctors( DTYPES[ i ] ) )( 0 ) );
37+
out = convertSame( arr, new ( ctors( DTYPES[ i ] ) )( 0 ) );
3838
console.log( out );
3939
}

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@
4343
"@stdlib/types": "^0.3.1"
4444
},
4545
"devDependencies": {
46-
"@stdlib/array-complex128": "^0.1.0",
47-
"@stdlib/array-complex64": "^0.1.0",
48-
"@stdlib/array-ctors": "^0.1.0",
46+
"@stdlib/array-complex128": "^0.2.0",
47+
"@stdlib/array-complex64": "^0.2.0",
48+
"@stdlib/array-ctors": "^0.2.0",
4949
"@stdlib/array-dtypes": "^0.2.0",
50-
"@stdlib/array-filled-by": "^0.1.0",
50+
"@stdlib/array-filled-by": "^0.2.0",
5151
"@stdlib/array-float32": "^0.2.0",
5252
"@stdlib/array-float64": "^0.2.0",
5353
"@stdlib/array-int16": "^0.2.0",
@@ -60,9 +60,9 @@
6060
"@stdlib/assert-is-array": "^0.2.0",
6161
"@stdlib/assert-is-collection": "^0.2.0",
6262
"@stdlib/assert-is-complex128": "^0.2.0",
63-
"@stdlib/assert-is-complex128array": "^0.1.0",
63+
"@stdlib/assert-is-complex128array": "^0.2.0",
6464
"@stdlib/assert-is-complex64": "^0.2.0",
65-
"@stdlib/assert-is-complex64array": "^0.1.0",
65+
"@stdlib/assert-is-complex64array": "^0.2.0",
6666
"@stdlib/assert-is-float32array": "^0.2.0",
6767
"@stdlib/assert-is-float64array": "^0.2.0",
6868
"@stdlib/assert-is-int16array": "^0.2.0",
@@ -77,7 +77,7 @@
7777
"@stdlib/complex-real": "^0.2.0",
7878
"@stdlib/complex-realf": "^0.2.0",
7979
"@stdlib/math-base-special-pow": "^0.2.0",
80-
"@stdlib/random-base-discrete-uniform": "^0.1.0",
80+
"@stdlib/random-base-discrete-uniform": "^0.2.0",
8181
"@stdlib/strided-base-reinterpret-complex128": "^0.2.0",
8282
"@stdlib/strided-base-reinterpret-complex64": "^0.2.0",
8383
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",

0 commit comments

Comments
 (0)