Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jan 1, 2024
1 parent 573d505 commit 28a71a3
Show file tree
Hide file tree
Showing 17 changed files with 79 additions and 66 deletions.
5 changes: 0 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,6 @@ indent_size = 2
indent_style = space
indent_size = 2

# Set properties for `tslint.json` files:
[tslint.json]
indent_style = space
indent_size = 2

# Set properties for `tsconfig.json` files:
[tsconfig.json]
indent_style = space
Expand Down
1 change: 1 addition & 0 deletions .github/.keepalive
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2024-01-01T05:58:44.586Z
6 changes: 3 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ jobs:

# Checkout the repository:
- name: 'Checkout repository'
# Pin action to full length commit SHA corresponding to v4.1.0
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

# Install Node.js:
- name: 'Install Node.js'
# Pin action to full length commit SHA corresponding to v3.8.1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 16
node-version: 20
timeout-minutes: 5

# Install dependencies:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ jobs:

# Checkout repository:
- name: 'Checkout repository'
# Pin action to full length commit SHA corresponding to v4.1.0
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

# Install Node.js:
- name: 'Install Node.js'
# Pin action to full length commit SHA corresponding to v3.8.1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 16
node-version: 20
timeout-minutes: 5

# Install dependencies:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/npm_downloads.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ jobs:
steps:
# Checkout the repository:
- name: 'Checkout repository'
# Pin action to full length commit SHA corresponding to v4.1.0
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
timeout-minutes: 10

# Install Node.js:
- name: 'Install Node.js'
# Pin action to full length commit SHA corresponding to v3.8.1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 16
node-version: 20
timeout-minutes: 5

# Resolve package name:
Expand Down Expand Up @@ -102,8 +102,8 @@ jobs:

# Send data to events server:
- name: 'Post data'
# Pin action to full length commit SHA corresponding to v3.0.3:
uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629
# Pin action to full length commit SHA
uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3
env:
webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }}
webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }}
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/productionize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ jobs:
steps:
# Checkout main branch of repository:
- name: 'Checkout main branch'
# Pin action to full length commit SHA corresponding to v4.1.0
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
ref: main

Expand All @@ -71,7 +71,7 @@ jobs:
# Pin action to full length commit SHA corresponding to v3.8.1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 16
node-version: 20
timeout-minutes: 5

# Create production branch:
Expand Down Expand Up @@ -134,8 +134,8 @@ jobs:
# Checkout the repository:
- name: 'Checkout repository'
if: ${{ github.event.inputs.require-passing-tests == 'true' }}
# Pin action to full length commit SHA corresponding to v4.1.0
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
# Use the `production` branch:
ref: production
Expand All @@ -146,7 +146,7 @@ jobs:
# Pin action to full length commit SHA corresponding to v3.8.1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 16
node-version: 20
timeout-minutes: 5

# Install dependencies:
Expand Down Expand Up @@ -188,8 +188,8 @@ jobs:
steps:
# Checkout the repository:
- name: 'Checkout repository'
# Pin action to full length commit SHA corresponding to v4.1.0
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

# Configure git:
- name: 'Configure git'
Expand Down Expand Up @@ -259,7 +259,7 @@ jobs:
# Pin action to full length commit SHA corresponding to v3.8.1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 16
node-version: 20
timeout-minutes: 5

# Install dependencies:
Expand Down Expand Up @@ -364,8 +364,8 @@ jobs:
steps:
# Checkout the repository:
- name: 'Checkout repository'
# Pin action to full length commit SHA corresponding to v4.1.0
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

# Configure git:
- name: 'Configure git'
Expand Down Expand Up @@ -427,7 +427,7 @@ jobs:
# Pin action to full length commit SHA corresponding to v3.8.1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 16
node-version: 20
timeout-minutes: 5

# Install dependencies:
Expand Down Expand Up @@ -538,8 +538,8 @@ jobs:
steps:
# Checkout the repository:
- name: 'Checkout repository'
# Pin action to full length commit SHA corresponding to v4.1.0
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

# Configure git:
- name: 'Configure git'
Expand Down Expand Up @@ -609,7 +609,7 @@ jobs:
# Pin action to full length commit SHA corresponding to v3.8.1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 16
node-version: 20
timeout-minutes: 5

# Install dependencies:
Expand Down Expand Up @@ -719,8 +719,8 @@ jobs:

# Checkout the repository:
- name: 'Checkout repository'
# Pin action to full length commit SHA corresponding to v4.1.0
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
fetch-depth: 2

Expand Down
22 changes: 15 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ jobs:

# Checkout the repository:
- name: 'Checkout repository'
# Pin action to full length commit SHA corresponding to v4.1.0
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

# Install Node.js:
- name: 'Install Node.js'
# Pin action to full length commit SHA corresponding to v3.8.1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 16
node-version: 20
timeout-minutes: 5

# Configure git:
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
# For all dependencies, check in all *.js files if they are still used; if not, remove them:
jq -r '.dependencies | keys[]' ./package.json | while read -r dep; do
dep=$(echo "$dep" | xargs)
if ! grep -q "$dep" lib/** && ! grep -q -s "$dep" manifest.json && ! grep -q -s "$dep" include.gypi; then
if ! find lib -name "*.js" -exec grep -q "$dep" {} + && ! grep -q -s "$dep" manifest.json && ! grep -q -s "$dep" include.gypi; then
jq --indent 2 "del(.dependencies[\"$dep\"])" ./package.json > ./package.json.tmp
mv ./package.json.tmp ./package.json
fi
Expand All @@ -129,7 +129,7 @@ jobs:
continue
fi
dep=$(echo "$dep" | xargs)
if ! grep -q "$dep" lib/** && ! grep -q -s "$dep" manifest.json && ! grep -q -s "$dep" include.gypi; then
if ! find lib -name "*.js" -exec grep -q "$dep" {} + && ! grep -q -s "$dep" manifest.json && ! grep -q -s "$dep" include.gypi; then
jq --indent 2 "del(.devDependencies[\"$dep\"])" ./package.json > ./package.json.tmp
mv ./package.json.tmp ./package.json
fi
Expand Down Expand Up @@ -182,7 +182,11 @@ jobs:
fi
# Trim leading and trailing whitespace:
dep=$(echo "$dep" | xargs)
version="^$(npm view $dep version)"
version="$(npm view $dep version)"
if [[ -z "$version" ]]; then
continue
fi
version="^$version"
jq -r --arg dep "$dep" --arg version "$version" '.dependencies[$dep] = $version' package.json > package.json.tmp
mv package.json.tmp package.json
done
Expand All @@ -192,7 +196,11 @@ jobs:
fi
# Trim leading and trailing whitespace:
dep=$(echo "$dep" | xargs)
version="^$(npm view $dep version)"
version="$(npm view $dep version)"
if [[ -z "$version" ]]; then
continue
fi
version="^$version"
jq -r --arg dep "$dep" --arg version "$version" '.devDependencies[$dep] = $version' package.json > package.json.tmp
mv package.json.tmp package.json
done
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ jobs:

# Checkout the repository:
- name: 'Checkout repository'
# Pin action to full length commit SHA corresponding to v4.1.0
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

# Install Node.js:
- name: 'Install Node.js'
# Pin action to full length commit SHA corresponding to v3.8.1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 16
node-version: 20
timeout-minutes: 5

# Install dependencies:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test_bundles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ jobs:
steps:
# Checkout UMD branch of the repository:
- name: 'Checkout branch with UMD build'
# Pin action to full length commit SHA corresponding to v4.1.0
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
ref: umd

Expand All @@ -59,7 +59,7 @@ jobs:
# Pin action to full length commit SHA corresponding to v3.8.1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 17
node-version: 20

# Try loading the UMD bundle:
- name: 'Try loading UMD bundle'
Expand Down Expand Up @@ -116,8 +116,8 @@ jobs:

# Checkout ES modules branch of the repository:
- name: 'Checkout branch with ESM build'
# Pin action to full length commit SHA corresponding to v4.1.0
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
ref: esm

Expand All @@ -126,7 +126,7 @@ jobs:
# Pin action to full length commit SHA corresponding to v3.8.1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 17
node-version: 20

# Try loading the ES module bundle:
- name: 'Try loading ESM'
Expand Down Expand Up @@ -161,8 +161,8 @@ jobs:

# Checkout Deno branch of the repository:
- name: 'Checkout branch with Deno build'
# Pin action to full length commit SHA corresponding to v4.1.0
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
ref: deno

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ jobs:

# Checkout the repository:
- name: 'Checkout repository'
# Pin action to full length commit SHA corresponding to v4.1.0
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

# Install Node.js:
- name: 'Install Node.js'
# Pin action to full length commit SHA corresponding to v3.8.1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 16
node-version: 20
timeout-minutes: 5

# Install dependencies:
Expand Down Expand Up @@ -119,8 +119,8 @@ jobs:

# Send data to events server:
- name: 'Post data'
# Pin action to full length commit SHA corresponding to v3.0.3:
uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629
# Pin action to full length commit SHA
uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3
env:
webhook_url: ${{ secrets.STDLIB_COVERAGE_URL }}
webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ jobs:

# Checkout the repository:
- name: 'Checkout repository'
# Pin action to full length commit SHA corresponding to v4.1.0
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
# Pin action to full length commit SHA
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

# Install Node.js:
- name: 'Install Node.js'
# Pin action to full length commit SHA corresponding to v3.8.1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 16
node-version: 20
timeout-minutes: 5

# Install dependencies:
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

# Files #
#########
CITATION.cff
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Expand Down
Loading

0 comments on commit 28a71a3

Please sign in to comment.