Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored Feb 13, 2024
2 parents 35b9a64 + 2168635 commit dd1de37
Show file tree
Hide file tree
Showing 447 changed files with 8,294 additions and 5,314 deletions.
5 changes: 5 additions & 0 deletions .changeset/breezy-pets-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astrojs/vercel": patch
---

Prevents infinite redirects when Astro `trailingSlash` configuration is set to `"always"` and "vercel.json" `trailingSlash` configuration is set to `true`
5 changes: 0 additions & 5 deletions .changeset/silver-peaches-pump.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/sweet-chicken-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro": patch
---

Clarifies error messages in endpoint routing.
5 changes: 5 additions & 0 deletions .changeset/thin-kangaroos-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro": patch
---

Fixes an issue where ReadableStream wasn't canceled in dev mode
5 changes: 0 additions & 5 deletions .changeset/wet-rivers-do.md

This file was deleted.

6 changes: 5 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ module.exports = {
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:@typescript-eslint/stylistic-type-checked',
'prettier',
'plugin:regexp/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['./packages/*/tsconfig.json', './tsconfig.eslint.json'],
tsconfigRootDir: __dirname,
},
plugins: ['@typescript-eslint', 'prettier', 'no-only-tests'],
plugins: ['@typescript-eslint', 'prettier', 'no-only-tests', 'regexp'],
rules: {
// These off/configured-differently-by-default rules fit well for us
'@typescript-eslint/switch-exhaustiveness-check': 'error',
Expand Down Expand Up @@ -72,6 +73,9 @@ module.exports = {
// These rules enabled by the preset configs don't work well for us
'@typescript-eslint/await-thenable': 'off',
'prefer-const': 'off',

// In some cases, using explicit letter-casing is more performant than the `i` flag
'regexp/use-ignore-case': 'off',
},
overrides: [
{
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/bundle-size.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async function bundle(files) {
sourcemap: false,
target: ['es2018'],
outdir: 'out',
external: ['astro:*'],
external: ['astro:*', 'aria-query', 'axobject-query'],
metafile: true,
})

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
MAIN-BENCH: ${{ steps.benchmark-main.outputs.BENCH_RESULT }}
steps:
# https://github.com/actions/checkout/issues/331#issuecomment-1438220926
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
persist-credentials: false
ref: refs/pull/${{ github.event.issue.number }}/head
Expand All @@ -30,9 +30,9 @@ jobs:
uses: pnpm/action-setup@v2

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 18
cache: "pnpm"

- name: Install dependencies
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
shell: bash

# main benchmark
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
persist-credentials: false
ref: "main"
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
pull-requests: write
steps:
- name: Comment PR
uses: peter-evans/create-or-update-comment@v2
uses: peter-evans/create-or-update-comment@v4
continue-on-error: true
with:
issue-number: ${{ github.event.issue.number }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/check-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- name: Check if there is already a block on this PR
id: blocked
uses: actions/github-script@v6
uses: actions/github-script@v7
env:
issue_number: ${{ github.event.number }}
with:
Expand All @@ -32,14 +32,14 @@ jobs:
return 'false'
result-encoding: string

- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: steps.blocked.outputs.result != 'true'
with:
fetch-depth: 0

- name: Get changed files in the .changeset folder
id: changed-files
uses: tj-actions/changed-files@v41
uses: tj-actions/changed-files@v42
if: steps.blocked.outputs.result != 'true'
with:
files: |
Expand All @@ -63,7 +63,7 @@ jobs:
done
- name: Add label
uses: actions/github-script@v6
uses: actions/github-script@v7
if: steps.check.outputs.found == 'true'
env:
issue_number: ${{ github.event.number }}
Expand All @@ -77,7 +77,7 @@ jobs:
});
- name: Change PR Status
uses: actions/github-script@v6
uses: actions/github-script@v7
if: steps.check.outputs.found == 'true'
env:
issue_number: ${{ github.event.number }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ jobs:
timeout-minutes: 7
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v2

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
run: git config --global core.autocrlf false

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v2

- name: Setup node@${{ matrix.NODE_VERSION }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.NODE_VERSION }}
cache: "pnpm"
Expand All @@ -77,13 +77,13 @@ jobs:
run: git config --global core.autocrlf false

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v2

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
Expand All @@ -110,7 +110,7 @@ jobs:
OS: [ubuntu-latest]
NODE_VERSION: [18, 20.5.1]
include:
- os: macos-latest
- os: macos-14
NODE_VERSION: 18
- os: windows-latest
NODE_VERSION: 18.17.1
Expand All @@ -122,13 +122,13 @@ jobs:
run: git config --global core.autocrlf false

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v2

- name: Setup node@${{ matrix.NODE_VERSION }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.NODE_VERSION }}
cache: "pnpm"
Expand Down Expand Up @@ -159,13 +159,13 @@ jobs:
run: git config --global core.autocrlf false

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v2

- name: Setup node@${{ matrix.NODE_VERSION }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.NODE_VERSION }}
cache: "pnpm"
Expand Down Expand Up @@ -195,19 +195,19 @@ jobs:
run: git config --global core.autocrlf false

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v2

- name: Setup node@${{ matrix.NODE_VERSION }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.NODE_VERSION }}
cache: "pnpm"

- name: Checkout docs
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: withastro/docs
path: smoke/docs
Expand All @@ -227,7 +227,7 @@ jobs:

- name: Check if docs changed
id: changes
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
with:
filters: |
docs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cleanup caches older than 5 days
if: github.event_name == 'schedule'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-opened.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
permissions:
issues: write
steps:
- uses: actions/github-script@v6
- uses: actions/github-script@v7
with:
script: |
github.rest.issues.addLabels({
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:
outputs:
run_job: ${{ steps.check_files.outputs.run_job }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v2

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
if: needs.check_for_update.outputs.run_job == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
contents: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v2

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Checkout Main into tmp
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: main
path: main
Expand All @@ -35,7 +35,7 @@ jobs:
uses: pnpm/action-setup@v2

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
Expand All @@ -44,7 +44,7 @@ jobs:
run: pnpm install

- name: Check Bundle Size
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const { default: script } = await import('${{ github.workspace }}/.github/scripts/bundle-size.mjs')
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/snapshot-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

- name: Extract the snapshot name from comment body
id: getSnapshotName
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const { body } = context.payload.comment;
Expand All @@ -58,7 +58,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ steps.refs.outputs.head_ref }}
fetch-depth: 0
Expand All @@ -69,7 +69,7 @@ jobs:
uses: pnpm/action-setup@v2

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
NO_COLOR: 1

- name: Pull Request Notification
uses: actions/github-script@v6
uses: actions/github-script@v7
env:
TAG: ${{ steps.getSnapshotName.outputs.result }}
STATUS_DATA: ${{ steps.changesets.outputs.status }}
Expand Down
Loading

0 comments on commit dd1de37

Please sign in to comment.