Skip to content

Commit 6834354

Browse files
committed
Release v0.0.5
1 parent 6c88e7f commit 6834354

File tree

10 files changed

+81
-45
lines changed

10 files changed

+81
-45
lines changed

.editorconfig

Lines changed: 42 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,74 +29,92 @@ trim_trailing_whitespace = true
2929
insert_final_newline = true
3030

3131
# Set properties for JavaScript files:
32-
[*.js]
32+
[*.{js,js.txt}]
3333
indent_style = tab
3434

35+
# Set properties for JavaScript ES module files:
36+
[*.{mjs,mjs.txt}]
37+
indent_style = tab
38+
39+
# Set properties for JavaScript CommonJS files:
40+
[*.{cjs,cjs.txt}]
41+
indent_style = tab
42+
43+
# Set properties for JSON files:
44+
[*.{json,json.txt}]
45+
indent_style = space
46+
indent_size = 2
47+
3548
# Set properties for TypeScript files:
3649
[*.ts]
3750
indent_style = tab
3851

3952
# Set properties for Python files:
40-
[*.py]
53+
[*.{py,py.txt}]
4154
indent_style = space
4255
indent_size = 4
4356

4457
# Set properties for Julia files:
45-
[*.jl]
58+
[*.{jl,jl.txt}]
4659
indent_style = tab
4760

4861
# Set properties for R files:
49-
[*.R]
62+
[*.{R,R.txt}]
5063
indent_style = tab
5164

5265
# Set properties for C files:
53-
[*.c]
66+
[*.{c,c.txt}]
5467
indent_style = tab
5568

5669
# Set properties for C header files:
57-
[*.h]
70+
[*.{h,h.txt}]
5871
indent_style = tab
5972

6073
# Set properties for C++ files:
61-
[*.cpp]
74+
[*.{cpp,cpp.txt}]
6275
indent_style = tab
6376

6477
# Set properties for C++ header files:
65-
[*.hpp]
78+
[*.{hpp,hpp.txt}]
6679
indent_style = tab
6780

6881
# Set properties for Fortran files:
69-
[*.f]
82+
[*.{f,f.txt}]
7083
indent_style = space
7184
indent_size = 2
7285
insert_final_newline = false
7386

7487
# Set properties for shell files:
75-
[*.sh]
88+
[*.{sh,sh.txt}]
7689
indent_style = tab
7790

7891
# Set properties for AWK files:
79-
[*.awk]
92+
[*.{awk,awk.txt}]
8093
indent_style = tab
8194

8295
# Set properties for HTML files:
83-
[*.html]
96+
[*.{html,html.txt}]
97+
indent_style = tab
98+
tab_width = 2
99+
100+
# Set properties for XML files:
101+
[*.{xml,xml.txt}]
84102
indent_style = tab
85103
tab_width = 2
86104

87105
# Set properties for CSS files:
88-
[*.css]
106+
[*.{css,css.txt}]
89107
indent_style = tab
90108

91109
# Set properties for Makefiles:
92110
[Makefile]
93111
indent_style = tab
94112

95-
[*.mk]
113+
[*.{mk,mk.txt}]
96114
indent_style = tab
97115

98116
# Set properties for Markdown files:
99-
[*.md]
117+
[*.{md,md.txt}]
100118
indent_style = space
101119
indent_size = 4
102120
trim_trailing_whitespace = false
@@ -112,7 +130,7 @@ indent_style = space
112130
indent_size = 4
113131

114132
# Set properties for `package.json` files:
115-
[package.json]
133+
[package.{json,json.txt}]
116134
indent_style = space
117135
indent_size = 2
118136

@@ -121,6 +139,11 @@ indent_size = 2
121139
indent_style = space
122140
indent_size = 2
123141

142+
# Set properties for `manifest.json` files:
143+
[manifest.json]
144+
indent_style = space
145+
indent_size = 2
146+
124147
# Set properties for `tslint.json` files:
125148
[tslint.json]
126149
indent_style = space
@@ -132,15 +155,15 @@ indent_style = space
132155
indent_size = 2
133156

134157
# Set properties for LaTeX files:
135-
[*.tex]
158+
[*.{tex,tex.txt}]
136159
indent_style = tab
137160

138161
# Set properties for LaTeX Bibliography files:
139-
[*.bib]
162+
[*.{bib,bib.txt}]
140163
indent_style = tab
141164

142165
# Set properties for YAML files:
143-
[*.yml]
166+
[*.{yml,yml.txt}]
144167
indent_style = space
145168
indent_size = 2
146169

.github/workflows/benchmark.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- uses: actions/checkout@v2
32-
- uses: actions/setup-node@v1
32+
- uses: actions/setup-node@v2
3333
with:
34-
node-version: 15
34+
node-version: 16
35+
timeout-minutes: 5
3536
- name: Install production and development dependencies
3637
run: |
3738
npm install || npm install || npm install
39+
timeout-minutes: 15
3840
- name: Run benchmarks
3941
run: |
4042
npm run benchmark

.github/workflows/examples.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- uses: actions/checkout@v2
32-
- uses: actions/setup-node@v1
32+
- uses: actions/setup-node@v2
3333
with:
34-
node-version: 15
34+
node-version: 16
35+
timeout-minutes: 5
3536
- name: Install production and development dependencies
3637
run: |
3738
npm install || npm install || npm install
39+
timeout-minutes: 15
3840
- name: Run examples
3941
run: |
4042
npm run examples

.github/workflows/publish.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
name: Publish Package
2121

2222
# Workflow triggers:
23-
on: push
23+
on:
24+
push:
25+
tags: v[0-9]+.[0-9]+.[0-9]+
2426

2527
# Workflow jobs:
2628
jobs:
@@ -30,23 +32,24 @@ jobs:
3032
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
3133
steps:
3234
- uses: actions/checkout@v2
33-
- uses: actions/setup-node@v1
35+
- uses: actions/setup-node@v2
3436
with:
35-
node-version: 15
36-
- name: Increment version
37+
node-version: 16
38+
timeout-minutes: 5
39+
- name: Replace all GitHub links to individual packages with npm links
3740
run: |
38-
git config --local user.email "noreply@stdlib.io"
39-
git config --local user.name "stdlib-bot"
40-
npm version patch
41+
find . -type f -name '*.md' -print0 | xargs -0 sed -Ei 's/@stdlib\/([^:]*)\]: https:\/\/github.com\/stdlib-js/@stdlib\/\1\]: https:\/\/www.npmjs.com\/package\/@stdlib/g'
42+
- name: Replace all stdlib GitHub dependencies with the respective npm packages
43+
run: |
44+
find package.json -type f -print0 | xargs -0 sed -Ei 's/"github:stdlib-js[^"]*"/"^0.0.x"/g'
4145
- name: Publish package to npm
4246
uses: JS-DevTools/npm-publish@v1
4347
with:
4448
token: ${{ secrets.NPM_TOKEN }}
4549
access: public
46-
- name: Push changes
50+
- name: Discard any uncommitted changes
4751
run: |
48-
git push origin main
49-
git push --tags
52+
git reset --hard
5053
- uses: act10ns/slack@v1
5154
with:
5255
status: ${{ job.status }}

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ on:
2525
# * is a special character in YAML so you have to quote this string
2626
- cron: '30 1 * * 6'
2727
workflow_dispatch:
28+
push:
2829

2930
# Workflow jobs:
3031
jobs:
@@ -34,13 +35,15 @@ jobs:
3435
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
3536
steps:
3637
- uses: actions/checkout@v2
37-
- uses: actions/setup-node@v1
38+
- uses: actions/setup-node@v2
3839
with:
39-
node-version: 15
40+
node-version: 16
41+
timeout-minutes: 5
4042
- name: Install production and development dependencies
4143
id: install
4244
run: |
4345
npm install || npm install || npm install
46+
timeout-minutes: 15
4447
- name: Run tests
4548
id: tests
4649
run: |

.github/workflows/test_coverage.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,18 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- uses: actions/checkout@v2
35-
- uses: actions/setup-node@v1
35+
- uses: actions/setup-node@v2
3636
with:
37-
node-version: 15
37+
node-version: 16
38+
timeout-minutes: 5
3839
- name: Install production and development dependencies
3940
run: |
4041
npm install || npm install || npm install
42+
timeout-minutes: 15
4143
- name: Calculate test coverage
4244
run: |
4345
npm run test-cov || npm run test-cov || npm run test-cov
46+
timeout-minutes: 15
4447
- name: Upload coverage to Codecov
4548
id: upload
4649
uses: codecov/codecov-action@v1

.github/workflows/test_install.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ jobs:
3636
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
3737
if: ${{ github.event.workflow_run.conclusion == 'success' }}
3838
steps:
39-
- uses: actions/checkout@v1
40-
- uses: actions/setup-node@v1
39+
- uses: actions/checkout@v2
40+
- uses: actions/setup-node@v2
4141
with:
42-
node-version: 15
42+
node-version: 16
43+
timeout-minutes: 5
4344
- name: Install production dependencies via npm
4445
run: |
4546
npm install --only=prod || npm install --only=prod || npm install --only=prod
47+
timeout-minutes: 15
4648
- uses: act10ns/slack@v1
4749
with:
4850
status: ${{ job.status }}

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# Files #
2020
#########
21-
.postinstall.json
21+
package.json.copy
2222

2323
# Directories #
2424
###############
@@ -70,9 +70,6 @@ tmp/
7070
*.tar
7171
*.zip
7272

73-
# Make an exception for compressed distributable files:
74-
!dist/*.gz
75-
7673
# Logs and databases #
7774
######################
7875
*.log

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Makefile
3636
**/examples/
3737
reports/
3838
support/
39+
scripts/
3940
**/tmp/
4041
workshops/
4142

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stdlib/array-pool",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "Typed array pool.",
55
"license": "Apache-2.0",
66
"author": {

0 commit comments

Comments
 (0)