Skip to content

Commit c5b2784

Browse files
committed
Merge remote-tracking branch 'origin/production' into esm
2 parents 19649c5 + ce468df commit c5b2784

Some content is hidden

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

41 files changed

+3954
-18
lines changed

.editorconfig

+181
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
#/
2+
# @license Apache-2.0
3+
#
4+
# Copyright (c) 2017 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+
# EditorConfig configuration file (see <http://editorconfig.org/>).
20+
21+
# Indicate that this file is a root-level configuration file:
22+
root = true
23+
24+
# Set properties for all files:
25+
[*]
26+
end_of_line = lf
27+
charset = utf-8
28+
trim_trailing_whitespace = true
29+
insert_final_newline = true
30+
31+
# Set properties for JavaScript files:
32+
[*.{js,js.txt}]
33+
indent_style = tab
34+
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+
48+
# Set properties for `cli_opts.json` files:
49+
[cli_opts.json]
50+
indent_style = tab
51+
52+
# Set properties for TypeScript files:
53+
[*.ts]
54+
indent_style = tab
55+
56+
# Set properties for Python files:
57+
[*.{py,py.txt}]
58+
indent_style = space
59+
indent_size = 4
60+
61+
# Set properties for Julia files:
62+
[*.{jl,jl.txt}]
63+
indent_style = tab
64+
65+
# Set properties for R files:
66+
[*.{R,R.txt}]
67+
indent_style = tab
68+
69+
# Set properties for C files:
70+
[*.{c,c.txt}]
71+
indent_style = tab
72+
73+
# Set properties for C header files:
74+
[*.{h,h.txt}]
75+
indent_style = tab
76+
77+
# Set properties for C++ files:
78+
[*.{cpp,cpp.txt}]
79+
indent_style = tab
80+
81+
# Set properties for C++ header files:
82+
[*.{hpp,hpp.txt}]
83+
indent_style = tab
84+
85+
# Set properties for Fortran files:
86+
[*.{f,f.txt}]
87+
indent_style = space
88+
indent_size = 2
89+
insert_final_newline = false
90+
91+
# Set properties for shell files:
92+
[*.{sh,sh.txt}]
93+
indent_style = tab
94+
95+
# Set properties for AWK files:
96+
[*.{awk,awk.txt}]
97+
indent_style = tab
98+
99+
# Set properties for HTML files:
100+
[*.{html,html.txt}]
101+
indent_style = tab
102+
tab_width = 2
103+
104+
# Set properties for XML files:
105+
[*.{xml,xml.txt}]
106+
indent_style = tab
107+
tab_width = 2
108+
109+
# Set properties for CSS files:
110+
[*.{css,css.txt}]
111+
indent_style = tab
112+
113+
# Set properties for Makefiles:
114+
[Makefile]
115+
indent_style = tab
116+
117+
[*.{mk,mk.txt}]
118+
indent_style = tab
119+
120+
# Set properties for Markdown files:
121+
[*.{md,md.txt}]
122+
indent_style = space
123+
indent_size = 4
124+
trim_trailing_whitespace = false
125+
126+
# Set properties for `usage.txt` files:
127+
[usage.txt]
128+
indent_style = space
129+
indent_size = 2
130+
131+
# Set properties for `repl.txt` files:
132+
[repl.txt]
133+
indent_style = space
134+
indent_size = 4
135+
136+
# Set properties for `package.json` files:
137+
[package.{json,json.txt}]
138+
indent_style = space
139+
indent_size = 2
140+
141+
# Set properties for `datapackage.json` files:
142+
[datapackage.json]
143+
indent_style = space
144+
indent_size = 2
145+
146+
# Set properties for `manifest.json` files:
147+
[manifest.json]
148+
indent_style = space
149+
indent_size = 2
150+
151+
# Set properties for `tsconfig.json` files:
152+
[tsconfig.json]
153+
indent_style = space
154+
indent_size = 2
155+
156+
# Set properties for LaTeX files:
157+
[*.{tex,tex.txt}]
158+
indent_style = tab
159+
160+
# Set properties for LaTeX Bibliography files:
161+
[*.{bib,bib.txt}]
162+
indent_style = tab
163+
164+
# Set properties for YAML files:
165+
[*.{yml,yml.txt}]
166+
indent_style = space
167+
indent_size = 2
168+
169+
# Set properties for GYP files:
170+
[binding.gyp]
171+
indent_style = space
172+
indent_size = 2
173+
174+
[*.gypi]
175+
indent_style = space
176+
indent_size = 2
177+
178+
# Set properties for citation files:
179+
[*.{cff,cff.txt}]
180+
indent_style = space
181+
indent_size = 2

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */

.gitattributes

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#/
2+
# @license Apache-2.0
3+
#
4+
# Copyright (c) 2017 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+
# Configuration file which assigns attributes to pathnames.
20+
#
21+
# [1]: https://git-scm.com/docs/gitattributes
22+
23+
# Automatically normalize the line endings of any committed text files:
24+
* text=auto
25+
26+
# Override line endings for certain files on checkout:
27+
*.crlf.csv text eol=crlf
28+
29+
# Denote that certain files are binary and should not be modified:
30+
*.png binary
31+
*.jpg binary
32+
*.jpeg binary
33+
*.gif binary
34+
*.ico binary
35+
*.gz binary
36+
*.zip binary
37+
*.7z binary
38+
*.mp3 binary
39+
*.mp4 binary
40+
*.mov binary
41+
42+
# Override what is considered "vendored" by GitHub's linguist:
43+
/lib/node_modules/** -linguist-vendored -linguist-generated
44+
45+
# Configure directories which should *not* be included in GitHub language statistics:
46+
/deps/** linguist-vendored
47+
/dist/** linguist-generated
48+
/workshops/** linguist-vendored
49+
50+
benchmark/** linguist-vendored
51+
docs/* linguist-documentation
52+
etc/** linguist-vendored
53+
examples/** linguist-documentation
54+
scripts/** linguist-vendored
55+
test/** linguist-vendored
56+
tools/** linguist-vendored
57+
58+
# Configure files which should *not* be included in GitHub language statistics:
59+
Makefile linguist-vendored
60+
*.mk linguist-vendored
61+
*.jl linguist-vendored
62+
*.py linguist-vendored
63+
*.R linguist-vendored
64+
65+
# Configure files which should be included in GitHub language statistics:
66+
docs/types/*.d.ts -linguist-documentation

.github/.keepalive

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2024-09-01T03:03:22.277Z

.github/PULL_REQUEST_TEMPLATE.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!-- ----------^ Click "Preview"! -->
2+
3+
We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/is-typed-array-length) of the main repository where we’ll review and provide feedback.
4+
5+
If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib.
6+
7+
We look forward to receiving your contribution! :smiley:

.github/workflows/benchmark.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#/
2+
# @license Apache-2.0
3+
#
4+
# Copyright (c) 2021 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+
# Workflow name:
20+
name: benchmark
21+
22+
# Workflow triggers:
23+
on:
24+
# Allow the workflow to be manually run:
25+
workflow_dispatch:
26+
27+
# Workflow jobs:
28+
jobs:
29+
30+
# Define a job to run benchmarks:
31+
benchmark:
32+
33+
# Define a display name:
34+
name: 'Run benchmarks'
35+
36+
# Define the type of virtual host machine:
37+
runs-on: 'ubuntu-latest'
38+
39+
# Define the sequence of job steps...
40+
steps:
41+
42+
# Checkout the repository:
43+
- name: 'Checkout repository'
44+
# Pin action to full length commit SHA
45+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
46+
47+
# Install Node.js:
48+
- name: 'Install Node.js'
49+
# Pin action to full length commit SHA
50+
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
51+
with:
52+
node-version: 20
53+
timeout-minutes: 5
54+
55+
# Install dependencies:
56+
- name: 'Install production and development dependencies'
57+
run: |
58+
npm install || npm install || npm install
59+
timeout-minutes: 15
60+
61+
# Run benchmarks:
62+
- name: 'Run benchmarks'
63+
run: |
64+
npm run benchmark

.github/workflows/cancel.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#/
2+
# @license Apache-2.0
3+
#
4+
# Copyright (c) 2021 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+
# Workflow name:
20+
name: cancel
21+
22+
# Workflow triggers:
23+
on:
24+
# Allow the workflow to be manually run:
25+
workflow_dispatch:
26+
27+
# Workflow jobs:
28+
jobs:
29+
30+
# Define a job to cancel existing workflow runs:
31+
cancel:
32+
33+
# Define a display name:
34+
name: 'Cancel workflow runs'
35+
36+
# Define the type of virtual host machine:
37+
runs-on: 'ubuntu-latest'
38+
39+
# Time limit:
40+
timeout-minutes: 3
41+
42+
# Define the sequence of job steps...
43+
steps:
44+
45+
# Cancel existing workflow runs:
46+
- name: 'Cancel existing workflow runs'
47+
# Pin action to full length commit SHA
48+
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1
49+
with:
50+
workflow_id: >-
51+
benchmark.yml,
52+
examples.yml,
53+
test.yml,
54+
test_coverage.yml,
55+
test_install.yml,
56+
publish.yml
57+
access_token: ${{ github.token }}

0 commit comments

Comments
 (0)