diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 29bf533e..06a9a75f 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -45,7 +45,7 @@ jobs: # Install Node.js: - name: 'Install Node.js' - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 timeout-minutes: 5 diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml index a7a7f51c..a00dbe5d 100644 --- a/.github/workflows/cancel.yml +++ b/.github/workflows/cancel.yml @@ -44,7 +44,7 @@ jobs: # Cancel existing workflow runs: - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.9.0 + uses: styfle/cancel-workflow-action@0.11.0 with: workflow_id: >- benchmark.yml, diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 39b16130..7902a7de 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -45,7 +45,7 @@ jobs: # Install Node.js: - name: 'Install Node.js' - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 timeout-minutes: 5 diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml index 879bbcf1..e05c8eb1 100644 --- a/.github/workflows/npm_downloads.yml +++ b/.github/workflows/npm_downloads.yml @@ -50,7 +50,7 @@ jobs: # Install Node.js: - name: 'Install Node.js' - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 timeout-minutes: 5 @@ -60,7 +60,7 @@ jobs: id: package_name run: | name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "::set-output name=package_name::$name" + echo "package_name=$name" >> $GITHUB_OUTPUT timeout-minutes: 5 # Fetch download data: @@ -72,7 +72,7 @@ jobs: data=$(curl "$url") mkdir ./tmp echo "$data" > ./tmp/npm_downloads.json - echo "::set-output name=data::$data" + echo "data=$data" >> $GITHUB_OUTPUT timeout-minutes: 5 # Print summary of download data: @@ -84,7 +84,7 @@ jobs: # Upload the download data: - name: 'Upload data' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: # Define a name for the uploaded artifact (ensuring a unique name for each job): name: npm_downloads @@ -99,7 +99,7 @@ jobs: # Send data to events server: - name: 'Post data' - uses: distributhor/workflow-webhook@v2 + uses: distributhor/workflow-webhook@v3 env: webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml index 5094681b..9113bfe8 100644 --- a/.github/workflows/productionize.yml +++ b/.github/workflows/productionize.yml @@ -56,7 +56,7 @@ jobs: # Install Node.js: - name: 'Install Node.js' - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 timeout-minutes: 5 @@ -141,7 +141,7 @@ jobs: # Install Node.js: - name: 'Install Node.js' - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 timeout-minutes: 5 @@ -198,9 +198,9 @@ jobs: git fetch --all git ls-remote --exit-code --heads origin deno if [ $? -eq 0 ]; then - echo "::set-output name=remote-exists::true" + echo "remote-exists=true" >> $GITHUB_OUTPUT else - echo "::set-output name=remote-exists::false" + echo "remote-exists=false" >> $GITHUB_OUTPUT fi # If `deno` exists, delete everything in branch and merge `production` into it @@ -242,7 +242,7 @@ jobs: # Install Node.js: - name: 'Install Node.js' - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 timeout-minutes: 5 @@ -364,9 +364,9 @@ jobs: git fetch --all git ls-remote --exit-code --heads origin umd if [ $? -eq 0 ]; then - echo "::set-output name=remote-exists::true" + echo "remote-exists=true" >> $GITHUB_OUTPUT else - echo "::set-output name=remote-exists::false" + echo "remote-exists=false" >> $GITHUB_OUTPUT fi # If `umd` exists, delete everything in branch and merge `production` into it @@ -400,7 +400,7 @@ jobs: # Install Node.js - name: 'Install Node.js' - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 timeout-minutes: 5 @@ -417,7 +417,7 @@ jobs: id: extract-alias run: | alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "::set-output name=alias::${alias}" + echo "alias=${alias}" >> $GITHUB_OUTPUT # Create Universal Module Definition (UMD) Node.js bundle: - name: 'Create Universal Module Definition (UMD) Node.js bundle' @@ -528,9 +528,9 @@ jobs: git fetch --all git ls-remote --exit-code --heads origin esm if [ $? -eq 0 ]; then - echo "::set-output name=remote-exists::true" + echo "remote-exists=true" >> $GITHUB_OUTPUT else - echo "::set-output name=remote-exists::false" + echo "remote-exists=false" >> $GITHUB_OUTPUT fi # If `esm` exists, delete everything in branch and merge `production` into it @@ -572,7 +572,7 @@ jobs: # Install Node.js: - name: 'Install Node.js' - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 timeout-minutes: 5 @@ -695,10 +695,10 @@ jobs: VERSION_CHANGE_PKG_JSON=$(git diff HEAD~1 HEAD package.json | grep '"version":') if [ -z "$VERSION_CHANGE_PKG_JSON" ]; then echo "This workflow was not triggered by a version bump." - echo "::set-output name=bump::false" + echo "bump=false" >> $GITHUB_OUTPUT else echo "This workflow was triggered by a version bump." - echo "::set-output name=bump::true" + echo "bump=true" >> $GITHUB_OUTPUT fi # Configure git: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 108695a0..ad8ed19d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -50,7 +50,7 @@ jobs: # Install Node.js: - name: 'Install Node.js' - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 timeout-minutes: 5 @@ -105,7 +105,7 @@ jobs: # Cancel any running or queued workflow runs: - name: 'Cancel running or queued workflow runs' - uses: styfle/cancel-workflow-action@0.9.0 + uses: styfle/cancel-workflow-action@0.11.0 with: workflow_id: >- benchmark.yml, diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 520be8fd..bdcb9576 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -57,7 +57,7 @@ jobs: # Install Node.js: - name: 'Install Node.js' - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 timeout-minutes: 5 diff --git a/.github/workflows/test_bundles.yml b/.github/workflows/test_bundles.yml index c3b2290f..e9df6a01 100644 --- a/.github/workflows/test_bundles.yml +++ b/.github/workflows/test_bundles.yml @@ -55,7 +55,7 @@ jobs: # Install Node.js: - name: 'Install Node.js' - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 17 @@ -119,7 +119,7 @@ jobs: # Install Node.js: - name: 'Install Node.js' - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 17 diff --git a/.github/workflows/test_coverage.yml b/.github/workflows/test_coverage.yml index be781ee7..6d8aa0b6 100644 --- a/.github/workflows/test_coverage.yml +++ b/.github/workflows/test_coverage.yml @@ -50,7 +50,7 @@ jobs: # Install Node.js: - name: 'Install Node.js' - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 timeout-minutes: 5 @@ -88,11 +88,11 @@ jobs: id: extract-coverage run: | coverage=`cat reports/coverage/lcov-report/index.html | grep "fraction" | grep -oP '\d+/\d+' | printf %s "$(cat)" | jq -R -s -c 'split("\n")'` - echo "::set-output name=coverage::$coverage" + echo "coverage=$coverage" >> $GITHUB_OUTPUT # Format coverage as Markdown table row: table=`echo $coverage | sed -e 's/,/|/g; s/"/ /g; s/\[/|/; s/\]/|/'` - echo "::set-output name=table::$table" + echo "table=$table" >> $GITHUB_OUTPUT # Print coverage report to GitHub Actions log: - name: 'Print coverage report to GitHub Actions log' @@ -115,7 +115,7 @@ jobs: # Send data to events server: - name: 'Post data' - uses: distributhor/workflow-webhook@v2 + uses: distributhor/workflow-webhook@v3 env: webhook_url: ${{ secrets.STDLIB_COVERAGE_URL }} webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index fd373134..259bd7eb 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -62,7 +62,7 @@ jobs: # Install Node.js: - name: 'Install Node.js' - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 timeout-minutes: 5 diff --git a/base/README.md b/base/README.md index b1b4c262..343e30c1 100644 --- a/base/README.md +++ b/base/README.md @@ -39,7 +39,7 @@ var ns = string; // returns {...} ``` -The namespace has the following sub-namespaces: +The namespace contains the following functions: