Skip to content

Commit 9f0166a

Browse files
authored
Merge branch 'stdlib-js:develop' into develop
2 parents ed4f6f0 + bfd5b70 commit 9f0166a

File tree

7,559 files changed

+275218
-31230
lines changed

Some content is hidden

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

7,559 files changed

+275218
-31230
lines changed

.gitattributes

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,27 @@
4040
*.mov binary
4141

4242
# Override what is considered "vendored" by GitHub's linguist:
43-
/deps/** linguist-vendored=false
44-
/lib/node_modules/** linguist-vendored=false linguist-generated=false
45-
test/fixtures/** linguist-vendored=false
46-
tools/** linguist-vendored=false
43+
/lib/node_modules/** -linguist-vendored -linguist-generated
4744

48-
# Override what is considered "documentation" by GitHub's linguist:
49-
examples/** linguist-documentation=false
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/workflows/check_licenses.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
# Checkout the repository:
6060
- name: 'Checkout repository'
6161
# Pin action to full length commit SHA
62-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
62+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
6363
with:
6464
# Specify whether to remove untracked files before checking out the repository:
6565
clean: false
@@ -128,7 +128,7 @@ jobs:
128128
# Upload the log file:
129129
- name: 'Upload log file'
130130
# Pin action to full length commit SHA
131-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
131+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
132132
if: always()
133133
with:
134134
# Define a name for the uploaded artifact:

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
# Checkout the repository:
9494
- name: 'Checkout repository'
9595
# Pin action to full length commit SHA
96-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
96+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
9797
with:
9898
# Specify whether to remove untracked files before checking out the repository:
9999
clean: false

.github/workflows/discussion_bot_response.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
# Run the chatbot action:
5050
- name: 'Run chatbot action'
5151
# Pin action to full length commit SHA
52-
uses: stdlib-js/stdlib-chat-bot@6c0643a5a1eb3c782b2df3bfd11e836d2ac7268e # v0.0.1
52+
uses: stdlib-js/stdlib-chat-bot@aaa9ebbeb4f4ec750bba5df5c152725bb84ee825 # v0.0.2
5353
with:
5454
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
5555
GITHUB_TOKEN: ${{ secrets.CHATBOT_GITHUB_TOKEN }}

.github/workflows/discussion_comment_bot_response.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
# Run the chatbot action:
5050
- name: 'Run chatbot action'
5151
# Pin action to full length commit SHA
52-
uses: stdlib-js/stdlib-chat-bot@6c0643a5a1eb3c782b2df3bfd11e836d2ac7268e # v0.0.1
52+
uses: stdlib-js/stdlib-chat-bot@aaa9ebbeb4f4ec750bba5df5c152725bb84ee825 # v0.0.2
5353
with:
5454
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
5555
GITHUB_TOKEN: ${{ secrets.CHATBOT_GITHUB_TOKEN }}

.github/workflows/lint_autofix.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
# Checkout the repository:
8484
- name: 'Checkout repository'
8585
# Pin action to full length commit SHA
86-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
86+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
8787
with:
8888
# Refers to the branch name of the branch being pushed:
8989
ref: ${{ steps.pr-details.outputs.branch }}
@@ -142,6 +142,13 @@ jobs:
142142
files="${{ steps.changed-files.outputs.files }}"
143143
FIX=1 . "$GITHUB_WORKSPACE/.github/workflows/scripts/lint_javascript_files" "$files"
144144
145+
# Add missing trailing newlines:
146+
- name: 'Add missing trailing newlines'
147+
id: add-trailing-newlines
148+
run: |
149+
files="${{ steps.changed-files.outputs.files }}"
150+
. "$GITHUB_WORKSPACE/.github/workflows/scripts/add_trailing_newlines" "$files"
151+
145152
# Disable Git hooks:
146153
- name: 'Disable Git hooks'
147154
run: |

.github/workflows/lint_changed_files.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
# Checkout the repository:
5353
- name: 'Checkout repository'
5454
# Pin action to full length commit SHA
55-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
55+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
5656
with:
5757
# Specify whether to remove untracked files before checking out the repository:
5858
clean: true
@@ -189,6 +189,15 @@ jobs:
189189
190190
# Lint JavaScript source files:
191191
files=$(echo "${{ steps.changed-files.outputs.files }}" | tr ' ' '\n' | grep '\.js$' | grep -v -e '/examples' -e '/test' -e '/benchmark' -e '^dist/' | tr '\n' ' ' | sed 's/ $//')
192+
193+
# Build native addons if present:
194+
packages=$(echo "${files}" | tr ' ' '\n' | sed 's/^lib\/node_modules\///g' | sed 's/\/lib\/.*//g' | sort | uniq)
195+
for pkg in ${packages}; do
196+
if [ -f "lib/node_modules/${pkg}/binding.gyp" ]; then
197+
NODE_ADDONS_PATTERN="${pkg}" make install-node-addons
198+
fi
199+
done
200+
192201
if [[ -n "${files}" ]]; then
193202
make lint-javascript-files FILES="${files}"
194203
fi
@@ -248,7 +257,7 @@ jobs:
248257
- name: 'Setup R'
249258
if: ( success() || failure() ) && steps.check-r-files.outputs.files != ''
250259
# Pin action to full length commit SHA
251-
uses: r-lib/actions/setup-r@7171bbdc297d5a76f04914d60e5c8144991e3011 # v2.6.4
260+
uses: r-lib/actions/setup-r@929c772977a3a13c8733b363bf5a2f685c25dd91 # v2.6.4
252261
with:
253262
r-version: '3.5.3'
254263

.github/workflows/lint_random_files.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
# Checkout the repository:
9494
- name: 'Checkout repository'
9595
# Pin action to full length commit SHA
96-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
96+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
9797
with:
9898
# Specify whether to remove untracked files before checking out the repository:
9999
clean: true
@@ -272,6 +272,15 @@ jobs:
272272
273273
# Lint JavaScript source files:
274274
files=$(echo "${{ steps.random-files.outputs.files }}" | tr ',' '\n' | grep '\.js$' | grep -v -e '/examples' -e '/test' -e '/benchmark' -e '^dist/' | tr '\n' ' ')
275+
276+
# Build native addons if present:
277+
packages=$(echo "${files}" | tr ' ' '\n' | sed 's/^lib\/node_modules\///g' | sed 's/\/lib\/.*//g' | sort | uniq)
278+
for pkg in ${packages}; do
279+
if [ -f "lib/node_modules/${pkg}/binding.gyp" ]; then
280+
NODE_ADDONS_PATTERN="${pkg}" make install-node-addons
281+
fi
282+
done
283+
275284
if [[ -n "${files}" ]]; then
276285
make lint-javascript-files FIX="${FIX}" FAST_FAIL=0 FILES="${files}"
277286
fi
@@ -317,7 +326,7 @@ jobs:
317326
- name: 'Setup R'
318327
if: ( github.event.inputs.r != 'false' ) && ( success() || failure() )
319328
# Pin action to full length commit SHA
320-
uses: r-lib/actions/setup-r@7171bbdc297d5a76f04914d60e5c8144991e3011 # v2.6.4
329+
uses: r-lib/actions/setup-r@929c772977a3a13c8733b363bf5a2f685c25dd91 # v2.6.4
321330
with:
322331
r-version: '4.3.3'
323332

@@ -417,9 +426,9 @@ jobs:
417426
if: ${{ github.event.inputs.fix == 'true' }} && ( success() || failure() )
418427
id: cpr
419428
# Pin action to full length commit SHA
420-
uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e # v6.0.2
429+
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6.0.5
421430
with:
422-
title: 'Fix lint errors'
431+
title: 'style: fix lint errors'
423432
add-paths: ${{ steps.random-files.outputs.files }}
424433
body: |
425434
This PR

.github/workflows/linux_benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
# Checkout the repository:
138138
- name: 'Checkout repository'
139139
# Pin action to full length commit SHA
140-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
140+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
141141
with:
142142
# Specify whether to remove untracked files before checking out the repository:
143143
clean: false
@@ -251,7 +251,7 @@ jobs:
251251
# Upload the log file:
252252
- name: 'Upload log file'
253253
# Pin action to full length commit SHA
254-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
254+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
255255
if: always()
256256
with:
257257
# Define a name for the uploaded artifact (ensuring a unique name for each job):

.github/workflows/linux_examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
# Checkout the repository:
138138
- name: 'Checkout repository'
139139
# Pin action to full length commit SHA
140-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
140+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
141141
with:
142142
# Specify whether to remove untracked files before checking out the repository:
143143
clean: false
@@ -251,7 +251,7 @@ jobs:
251251
# Upload the log file:
252252
- name: 'Upload log file'
253253
# Pin action to full length commit SHA
254-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
254+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
255255
if: always()
256256
with:
257257
# Define a name for the uploaded artifact (ensuring a unique name for each job):

0 commit comments

Comments
 (0)