Skip to content

Commit 4049549

Browse files
benchmark: replace Array constructor with literal and fix formatting
1 parent a04c190 commit 4049549

File tree

4,061 files changed

+73570
-8242
lines changed

Some content is hidden

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

4,061 files changed

+73570
-8242
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ reports/
3030
# Node.js #
3131
###########
3232
/node_modules/
33-
!/**/node_modules/*
33+
3434

3535
# Git #
3636
#######

.github/workflows/check_pr_issue_references.lock.yml

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

.github/workflows/generate_monthly_changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
# Import GPG key to sign commits:
107107
- name: 'Import GPG key to sign commits'
108108
# Pin action to full length commit SHA
109-
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
109+
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0
110110
with:
111111
gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }}
112112
passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }}

.github/workflows/git_note_amend_message.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
# Import GPG key to sign commits:
121121
- name: 'Import GPG key to sign commits'
122122
# Pin action to full length commit SHA
123-
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
123+
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0
124124
with:
125125
gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }}
126126
passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }}

.github/workflows/git_note_filter_packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ jobs:
129129
# Import GPG key to sign commits:
130130
- name: 'Import GPG key to sign commits'
131131
# Pin action to full length commit SHA
132-
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
132+
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0
133133
with:
134134
gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }}
135135
passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }}

.github/workflows/lint_autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161
# Import GPG key to sign commits:
162162
- name: 'Import GPG key to sign commits'
163163
# Pin action to full length commit SHA
164-
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
164+
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0
165165
with:
166166
gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }}
167167
passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }}

.github/workflows/lint_changed_files.yml

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
# Restore cache if up-to-date:
7676
- name: 'Restore cache if up-to-date'
7777
# Pin action to full length commit SHA
78-
uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
78+
uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
7979
id: cache
8080
with:
8181
path: |
@@ -138,7 +138,7 @@ jobs:
138138
# Save cache after editorconfig-checker binary has been downloaded:
139139
- name: 'Save cache after editorconfig-checker binary has been downloaded'
140140
if: always() && steps.cache.outputs.cache-hit != 'true'
141-
uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
141+
uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
142142
with:
143143
path: ${{ github.workspace }}/node_modules
144144
key: ${{ steps.cache.outputs.cache-primary-key }}
@@ -274,7 +274,7 @@ jobs:
274274
# Pin action to full length commit SHA
275275
uses: r-lib/actions/setup-r@6f6e5bc62fba3a704f74e7ad7ef7676c5c6a2590 # v2.11.4
276276
with:
277-
r-version: '4.2.0'
277+
r-version: '4.3.3'
278278

279279
# Lint R files:
280280
- name: 'Lint R files'
@@ -341,6 +341,43 @@ jobs:
341341
make lint-typescript-declarations-files FILES="${files}"
342342
fi
343343
344+
# Lint TypeScript declarations test files:
345+
- name: 'Lint TypeScript declarations test files'
346+
if: success() || failure()
347+
run: |
348+
# Determine root directory:
349+
root=$(git rev-parse --show-toplevel)
350+
351+
# Define the path to ESLint configuration file for linting TypeScript tests:
352+
eslint_typescript_tests_conf="${root}/etc/eslint/.eslintrc.typescript.tests.js"
353+
354+
# Get changed files:
355+
changed_files=$(echo "${{ steps.changed-files.outputs.files }}" | tr ' ' '\n')
356+
357+
# Get directly changed `test.ts` files:
358+
files=$(echo "${changed_files}" | grep '/docs/types/test\.ts$' | tr '\n' ' ' | sed 's/ $//')
359+
360+
# Also get `test.ts` files corresponding to changed `index.d.ts` files...
361+
declaration_files=$(echo "${changed_files}" | grep '/docs/types/.*\.d\.ts$' | sed 's/ $//')
362+
if [[ -n "${declaration_files}" ]]; then
363+
while IFS= read -r decl_file; do
364+
# Only process index.d.ts files (skip other .d.ts files)
365+
if [[ "${decl_file}" == */index.d.ts ]]; then
366+
# Replace `index.d.ts` with `test.ts` to get the test file path:
367+
test_file="${decl_file%index.d.ts}test.ts"
368+
369+
# Check if the test file exists and isn't already in the list:
370+
if [[ -f "${test_file}" ]] && [[ ! " ${files} " =~ [[:space:]]${test_file}[[:space:]] ]]; then
371+
files="${files} ${test_file}"
372+
fi
373+
fi
374+
done <<< "${declaration_files}"
375+
fi
376+
377+
if [[ -n "${files}" ]]; then
378+
make lint-typescript-declarations-files FILES="${files}" ESLINT_TS_CONF="${eslint_typescript_tests_conf}"
379+
fi
380+
344381
# Lint license headers:
345382
- name: 'Lint license headers'
346383
if: success() || failure()

.github/workflows/lint_random_files.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ jobs:
374374
# Pin action to full length commit SHA
375375
uses: r-lib/actions/setup-r@6f6e5bc62fba3a704f74e7ad7ef7676c5c6a2590 # v2.11.4
376376
with:
377-
r-version: '4.2.0'
377+
r-version: '4.3.3'
378378

379379
# Lint R files:
380380
- name: 'Lint R files'
@@ -573,7 +573,7 @@ jobs:
573573
- name: 'Import GPG key to sign commits'
574574
if: ${{ github.event.inputs.fix == 'true' }} && ( success() || failure() )
575575
# Pin action to full length commit SHA
576-
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
576+
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0
577577
with:
578578
gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }}
579579
passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }}

.github/workflows/markdown_equations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
# Import GPG key to sign commits:
100100
- name: 'Import GPG key to sign commits'
101101
# Pin action to full length commit SHA
102-
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
102+
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0
103103
with:
104104
gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }}
105105
passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }}

.github/workflows/markdown_pkg_urls.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
# Import GPG key to sign commits:
112112
- name: 'Import GPG key to sign commits'
113113
# Pin action to full length commit SHA
114-
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
114+
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0
115115
with:
116116
gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }}
117117
passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }}

0 commit comments

Comments
 (0)