8000 Release v0.1.0 · stdlib-js/ndarray-base-to-array@1252cd6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1252cd6

Browse files
committed
Release v0.1.0
1 parent 7e30ecf commit 1252cd6

15 files changed

+108
-48
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

.github/workflows/productionize.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,6 @@ jobs:
8282
id: transform-error-messages
8383
uses: stdlib-js/transform-errors-action@main
8484

85-
# Format error messages:
86-
- name: 'Replace double quotes with single quotes in rewritten format string error messages'
87-
run: |
88-
find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \;
89-
90-
# Format string literal error messages:
91-
- name: 'Replace double quotes with single quotes in rewritten string literal error messages'
92-
run: |
93-
find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \;
94-
95-
# Format code:
96-
- name: 'Replace double quotes with single quotes in inserted `require` calls'
97-
run: |
98-
find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \;
99-
10085
# Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency:
10186
- name: 'Update dependencies in package.json'
10287
run: |
@@ -349,7 +334,7 @@ jobs:
349334
350335
# Send status to Slack channel if job fails:
351336
- name: 'Send status to Slack channel in case of failure'
352-
uses: act10ns/slack@v1
337+
uses: act10ns/slack@v2
353338
with:
354339
status: ${{ job.status }}
355340
steps: ${{ toJson(steps) }}
@@ -520,7 +505,7 @@ jobs:
520505
521506
# Send status to Slack channel if job fails:
522507
- name: 'Send status to Slack channel in case of failure'
523-
uses: act10ns/slack@v1
508+
uses: act10ns/slack@v2
524509
with:
525510
status: ${{ job.status }}
526511
steps: ${{ toJson(steps) }}
@@ -697,7 +682,7 @@ jobs:
697682
698683
# Send status to Slack channel if job fails:
699684
- name: 'Send status to Slack channel in case of failure'
700-
uses: act10ns/slack@v1
685+
uses: act10ns/slack@v2
701686
with:
702687
status: ${{ job.status }}
703688
steps: ${{ toJson(steps) }}

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ jobs:
149149
# Add link definition for CLI package to README.md:
150150
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/<section class=\"links\">/<section class=\"links\">\n\n[$escapedPkg]: https:\/\/www.npmjs.com\/package\/$escapedPkg/"
151151
152+
# Replace GitHub MathJax equations with SVGs:
153+
- name: 'Replace GitHub MathJax equations with SVGs'
154+
run: |
155+
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/```math\n([\s\S]+?)\n```\n\n//g'
156+
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/<!-- <div class="equation"(.*)(<\/div>\s*-->)/<div class="equation"$1<\/div>/sg'
157+
152158
# Replace GitHub links to individual packages with npm links:
153159
- name: 'Replace all GitHub links to individual packages with npm links'
154160
run: |
@@ -191,7 +197,7 @@ jobs:
191197
192198
# Publish package to npm:
193199
- name: 'Publish package to npm'
194-
uses: JS-DevTools/npm-publish@v1
200+
uses: JS-DevTools/npm-publish@v2
195201
with:
196202
token: ${{ secrets.NPM_TOKEN }}
197203
access: public
@@ -203,7 +209,7 @@ jobs:
203209
204210
# Send status to Slack channel if job fails:
205211
- name: 'Send status to Slack channel in case of failure'
206-
uses: act10ns/slack@v1
212+
uses: act10ns/slack@v2
207213
with:
208214
status: ${{ job.status }}
209215
steps: ${{ toJson(steps) }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
9090
# Send status to Slack channel if job fails:
9191
- name: 'Send status to Slack channel in case of failure'
92-
uses: act10ns/slack@v1
92+
uses: act10ns/slack@v2
9393
with:
9494
status: ${{ job.status }}
9595
steps: ${{ toJson(steps) }}

.github/workflows/test_bundles.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
8989
# Send notification to Slack channel if job fails:
9090
- name: 'Send status to Slack channel in case of failure'
91-
uses: act10ns/slack@v1
91+
uses: act10ns/slack@v2
9292
with:
9393
status: ${{ job.status }}
9494
steps: ${{ toJson(steps) }}
@@ -130,7 +130,7 @@ jobs:
130130
131131
# Send notification to Slack channel if job fails:
132132
- name: 'Send status to Slack channel in case of failure'
133-
uses: act10ns/slack@v1
133+
uses: act10ns/slack@v2
134134
with:
135135
status: ${{ job.status }}
136136
steps: ${{ toJson(steps) }}
@@ -172,7 +172,7 @@ jobs:
172172
173173
# Send notification to Slack channel if job fails:
174174
- name: 'Send status to Slack channel in case of failure'
175-
uses: act10ns/slack@v1
175+
uses: act10ns/slack@v2
176176
with:
177177
status: ${{ job.status }}
178178
steps: ${{ toJson(steps) }}

.github/workflows/test_coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
107107
# Send Slack notification if job fails:
108108
- name: 'Send status to Slack channel in case of failure'
109-
uses: act10ns/slack@v1
109+
uses: act10ns/slack@v2
110110
with:
111111
status: ${{ job.status }}
112112
steps: ${{ toJson(steps) }}

.github/workflows/test_install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575

7676
# Send Slack notification if job fails:
7777
- name: 'Send notification to Slack in case of failure'
78-
uses: act10ns/slack@v1
78+
uses: act10ns/slack@v2
7979
with:
8080
status: ${{ job.status }}
8181
steps: ${{ toJson(steps) }}

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

CONTRIBUTORS

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,37 @@
33
# Contributors listed in alphabetical order.
44

55
Ali Salesi <ali_sal1381@yahoo.com>
6+
Amit Jimiwal <amitjimiwal45@gmail.com>
67
Athan Reines <kgryte@gmail.com>
78
Brendan Graetz <bguiz@users.noreply.github.com>
89
Bruno Fenzl <brunofenzl@gmail.com>
910
Christopher Dambamuromo <chridam@gmail.com>
11+
Dan Rose <danoftheroses@gmail.com>
1012
Dominik Moritz <domoritz@gmail.com>
13+
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
1114
Frank Kovacs <fran70kk@gmail.com>
12-
Harshita Kalani <95532771+HarshitaKalani@users.noreply.github.com>
13-
James <jdgelok@gmail.com>
15+
Harshita Kalani <harshitakalani02@gmail.com>
16+
James Gelok <jdgelok@gmail.com>
1417
Jithin KS <jithinks112@gmail.com>
1518
Joey Reed <joeyrreed@gmail.com>
16-
Jordan-Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
19+
Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
1720
Joris Labie <joris.labie1@gmail.com>
1821
Justin Dennison <justin1dennison@gmail.com>
19-
Marcus <mfantham@users.noreply.github.com>
22+
Marcus Fantham <mfantham@users.noreply.github.com>
2023
Matt Cochrane <matthew.cochrane.eng@gmail.com>
2124
Milan Raj <rajsite@users.noreply.github.com>
2225
Momtchil Momtchev <momtchil@momtchev.com>
26+
Naresh Jagadeesan <naresh.naresh000@gmail.com>
27+
Nithin Katta <88046362+nithinkatta@users.noreply.github.com>
2328
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
2429
Philipp Burckhardt <pburckhardt@outlook.com>
25-
Pranav <85227306+Pranavchiku@users.noreply.github.com>
30+
Pranav Goswami <goswami.4@iitj.ac.in>
2631
Ricky Reusser <rsreusser@gmail.com>
32+
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
2733
Ryan Seal <splrk@users.noreply.github.com>
2834
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
2935
Shraddheya Shendre <shendreshraddheya@gmail.com>
3036
Stephannie Jiménez Gacha <steff456@hotmail.com>
31-
dorrin-sot <59933477+dorrin-sot@users.noreply.github.com>
37+
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
3238
orimiles5 <97595296+orimiles5@users.noreply.github.com>
33-
rei2hu <rei2hu@users.noreply.github.com>
39+
rei2hu <reimu@reimu.ws>

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
# ndarray2array
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] -->
@@ -223,8 +234,8 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
223234
[npm-image]: http://img.shields.io/npm/v/@stdlib/ndarray-base-to-array.svg
224235
[npm-url]: https://npmjs.org/package/@stdlib/ndarray-base-to-array
225236

226-
[test-image]: https://github.com/stdlib-js/ndarray-base-to-array/actions/workflows/test.yml/badge.svg?branch=main
227-
[test-url]: https://github.com/stdlib-js/ndarray-base-to-array/actions/workflows/test.yml?query=branch:main
237+
[test-image]: https://github.com/stdlib-js/ndarray-base-to-array/actions/workflows/test.yml/badge.svg?branch=v0.1.0
238+
[test-url]: https://github.com/stdlib-js/ndarray-base-to-array/actions/workflows/test.yml?query=branch:v0.1.0
228239

229240
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/ndarray-base-to-array/main.svg
230241
[coverage-url]: https://codecov.io/github/stdlib-js/ndarray-base-to-array?branch=main

dist/index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/// <reference path="../docs/types/index.d.ts" />
2+
import ndarray2array from '../docs/types/index';
3+
export = ndarray2array;

dist/index.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
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
/// <reference types="node"/>

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stdlib/ndarray-base-to-array",
3-
"version": "0.0.7",
3+
"version": "0.1.0",
44
"description": "Convert an ndarray buffer to a generic array.",
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/array-base-arraylike2object": "^0.0.2",
41 D105 -
"@stdlib/types": "^0.0.14"
40+
"@stdlib/array-base-arraylike2object": "^0.1.0",
41+
"@stdlib/types": "^0.1.0"
4242
},
4343
"devDependencies": {
44-
"@stdlib/array-complex64": "^0.0.6",
45-
"@stdlib/assert-is-array": "^0.0.7",
46-
"@stdlib/assert-is-array-array": "^0.0.7",
47-
"@stdlib/bench": "^0.0.12",
48-
"@stdlib/complex-imagf": "^0.0.1",
49-
"@stdlib/complex-realf": "^0.0.1",
50-
"@stdlib/ndarray-base-numel": "^0.0.8",
51-
"@stdlib/ndarray-base-shape2strides": "^0.0.8",
52-
"@stdlib/ndarray-base-strides2offset": "^0.0.8",
44+
"@stdlib/array-complex64": "^0.1.0",
45+
"@stdlib/assert-is-array": "^0.1.0",
46+
"@stdlib/assert-is-array-array": "^0.1.0",
47+
"@stdlib/bench": "^0.1.0",
48+
"@stdlib/complex-imagf": "^0.1.0",
49+
"@stdlib/complex-realf": "^0.1.0",
50+
"@stdlib/ndarray-base-numel": "^0.1.0",
51+
"@stdlib/ndarray-base-shape2strides": "^0.1.0",
52+
"@stdlib/ndarray-base-strides2offset": "^0.1.0",
5353
"@stdlib/random-base-discrete-uniform": "^0.0.6",
5454
"@stdlib/random-base-randu": "^0.0.8",
5555
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",

0 commit comments

Comments
 (0)
0