diff --git a/.changeset/angry-dryers-hang.md b/.changeset/angry-dryers-hang.md deleted file mode 100644 index 7c1e4c3f44..0000000000 --- a/.changeset/angry-dryers-hang.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/rss": patch ---- - -Restores `rssSchema` to a zod object diff --git a/.changeset/breezy-plants-smoke.md b/.changeset/breezy-plants-smoke.md deleted file mode 100644 index 034ab448a5..0000000000 --- a/.changeset/breezy-plants-smoke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Fixes types generation from Content Collections config file diff --git a/.changeset/heavy-beers-tickle.md b/.changeset/heavy-beers-tickle.md deleted file mode 100644 index f6b19aa74b..0000000000 --- a/.changeset/heavy-beers-tickle.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -"@astrojs/alpinejs": minor ---- - -Allows extending Alpine using the new `entrypoint` configuration - -You can extend Alpine by setting the `entrypoint` option to a root-relative import specifier (for example, `entrypoint: "/src/entrypoint"`). - -The default export of this file should be a function that accepts an Alpine instance prior to starting, allowing the use of custom directives, plugins and other customizations for advanced use cases. - -```js -// astro.config.mjs -import { defineConfig } from 'astro/config'; -import alpine from '@astrojs/alpinejs'; - -export default defineConfig({ - // ... - integrations: [alpine({ entrypoint: '/src/entrypoint' })], -}); -``` - -```js -// src/entrypoint.ts -import type { Alpine } from 'alpinejs' - -export default (Alpine: Alpine) => { - Alpine.directive('foo', el => { - el.textContent = 'bar'; - }) -} -``` \ No newline at end of file diff --git a/.changeset/itchy-monkeys-fail.md b/.changeset/itchy-monkeys-fail.md new file mode 100644 index 0000000000..5e638e5da4 --- /dev/null +++ b/.changeset/itchy-monkeys-fail.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Fixes an issue where some astro commands failed if the astro config file or an integration used the global `crypto` object. diff --git a/.changeset/poor-llamas-chew.md b/.changeset/poor-llamas-chew.md new file mode 100644 index 0000000000..695b78f0d4 --- /dev/null +++ b/.changeset/poor-llamas-chew.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Simplifies internal Vite preview server teardown diff --git a/.changeset/seven-kiwis-join.md b/.changeset/seven-kiwis-join.md deleted file mode 100644 index 328d9a342a..0000000000 --- a/.changeset/seven-kiwis-join.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-astro": patch ---- - -Fixes `@astrojs/check` and `typescript` addition to `package.json` dependencies when the user has decided not to auto-install dependencies diff --git a/.changeset/spicy-tips-remember.md b/.changeset/spicy-tips-remember.md deleted file mode 100644 index d1a3b6f5e6..0000000000 --- a/.changeset/spicy-tips-remember.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Adds telemetry for when apps are toggled in the dev toolbar. This data is completely anonymous and only the names of built-in apps are shared with us. This data will help us monitor how much the dev toolbar is used and which apps are used more. For more information on how Astro collects telemetry, visit the following page: https://astro.build/telemetry/ diff --git a/.changeset/strange-students-shake.md b/.changeset/strange-students-shake.md deleted file mode 100644 index 9e5bd382bf..0000000000 --- a/.changeset/strange-students-shake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Fixes environment variables replacement for `export const prerender` diff --git a/.changeset/tame-crabs-reply.md b/.changeset/tame-crabs-reply.md deleted file mode 100644 index e20c17528e..0000000000 --- a/.changeset/tame-crabs-reply.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Refactors internals of the `astro:i18n` module to be more maintainable. diff --git a/.changeset/two-ducks-give.md b/.changeset/two-ducks-give.md deleted file mode 100644 index 5782469390..0000000000 --- a/.changeset/two-ducks-give.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/vercel": patch ---- - -Fixes an issue where the serverless function ignored cookies added using Astro.cookies. diff --git a/.eslintrc.cjs b/.eslintrc.cjs index c14bc0cb4c..552033711b 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -7,15 +7,17 @@ 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', '@typescript-eslint/array-type': ['error', { default: 'array-simple' }], '@typescript-eslint/no-unused-vars': [ 'warn', @@ -71,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: [ { diff --git a/.github/scripts/announce.mjs b/.github/scripts/announce.mjs index 6ac4c2d3ba..346e0f112b 100755 --- a/.github/scripts/announce.mjs +++ b/.github/scripts/announce.mjs @@ -132,7 +132,7 @@ async function generateMessage() { } if (message.length < 2000) { - console.log(message); + return message; } else { const { name, version, url } = packages.find((pkg) => pkg.name === 'astro') ?? packages[0]; message = `${emoji} Some ${descriptor} ${pluralize(verb)}\n\n`; @@ -158,11 +158,8 @@ async function generateMessage() { } async function run() { - if (!process.env.DISCORD_WEBHOOK) { - console.error('No DISCORD_WEBHOOK variable detected!'); - process.exit(1); - } const content = await generateMessage(); + console.log(content); setOutput('DISCORD_MESSAGE', content); } diff --git a/.github/scripts/bundle-size.mjs b/.github/scripts/bundle-size.mjs index f1c9ceab02..690d6e9284 100644 --- a/.github/scripts/bundle-size.mjs +++ b/.github/scripts/bundle-size.mjs @@ -68,7 +68,7 @@ async function bundle(files) { sourcemap: false, target: ['es2018'], outdir: 'out', - external: ['astro:*'], + external: ['astro:*', 'aria-query', 'axobject-query'], metafile: true, }) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 49d5665533..59bc9cca5b 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -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 @@ -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 @@ -63,7 +63,7 @@ jobs: shell: bash # main benchmark - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: persist-credentials: false ref: "main" @@ -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 }} diff --git a/.github/workflows/check-merge.yml b/.github/workflows/check-merge.yml index 2a56115418..0951081ed5 100644 --- a/.github/workflows/check-merge.yml +++ b/.github/workflows/check-merge.yml @@ -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: @@ -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@v35 + uses: tj-actions/changed-files@v42 if: steps.blocked.outputs.result != 'true' with: files: | @@ -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 }} @@ -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 }} diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 268c577ce5..8484b8bb2b 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 339f03594e..88d5aaa4a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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" @@ -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" @@ -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 @@ -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" @@ -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" @@ -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 @@ -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: diff --git a/.github/workflows/cleanup-cache.yml b/.github/workflows/cleanup-cache.yml index cf03bbfee5..9d8205cc53 100644 --- a/.github/workflows/cleanup-cache.yml +++ b/.github/workflows/cleanup-cache.yml @@ -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' diff --git a/.github/workflows/issue-opened.yml b/.github/workflows/issue-opened.yml index 005d372085..7171a1b9b7 100644 --- a/.github/workflows/issue-opened.yml +++ b/.github/workflows/issue-opened.yml @@ -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({ diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8e2fd8af4b..01a44d6a31 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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" @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 68a1c97176..e6098e0959 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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" diff --git a/.github/workflows/scripts.yml b/.github/workflows/scripts.yml index a22ec467bc..e3b9db4992 100644 --- a/.github/workflows/scripts.yml +++ b/.github/workflows/scripts.yml @@ -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 @@ -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" @@ -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') diff --git a/.github/workflows/snapshot-release.yml b/.github/workflows/snapshot-release.yml index b5cc835610..fa72d9964a 100644 --- a/.github/workflows/snapshot-release.yml +++ b/.github/workflows/snapshot-release.yml @@ -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; @@ -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 @@ -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" @@ -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 }} diff --git a/.github/workflows/test-hosts.yml b/.github/workflows/test-hosts.yml index c60d80e311..018f97162e 100644 --- a/.github/workflows/test-hosts.yml +++ b/.github/workflows/test-hosts.yml @@ -2,7 +2,7 @@ name: Hosted tests on: schedule: - - cron: '0 0 * * 0' + - cron: '0 0 * * 0' env: ASTRO_TELEMETRY_DISABLED: true @@ -19,33 +19,30 @@ jobs: runs-on: ubuntu-latest 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" + cache: 'pnpm' - name: Install dependencies run: pnpm install - + - name: Build Astro - run: pnpm turbo build --filter astro --filter @astrojs/vercel + run: pnpm turbo build --filter astro --filter @astrojs/vercel - name: Build test project working-directory: ./packages/integrations/vercel/test/hosted/hosted-astro-project - run: - pnpm run build - + run: pnpm run build + - name: Deploy to Vercel working-directory: ./packages/integrations/vercel/test/hosted/hosted-astro-project - run: - pnpm dlx vercel --prod --prebuilt + run: pnpm dlx vercel --prod --prebuilt - name: Test - run: - pnpm run test:e2e:hosts + run: pnpm run test:e2e:hosts diff --git a/.gitignore b/.gitignore index da6e08ed05..82c2ac20d5 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ package-lock.json *.env packages/astro/src/**/*.prebuilt.ts +packages/astro/src/**/*.prebuilt-dev.ts !packages/astro/vendor/vite/dist packages/integrations/**/.netlify/ diff --git a/benchmark/bench/render.js b/benchmark/bench/render.js index ac733bdeaa..20c9abb0f3 100644 --- a/benchmark/bench/render.js +++ b/benchmark/bench/render.js @@ -6,7 +6,7 @@ import path from 'node:path'; import { fileURLToPath } from 'node:url'; import { waitUntilBusy } from 'port-authority'; import { calculateStat, astroBin } from './_util.js'; -import { renderFiles } from '../make-project/render-default.js'; +import { renderPages } from '../make-project/render-default.js'; const port = 4322; @@ -57,7 +57,7 @@ export async function run(projectDir, outputFile) { async function benchmarkRenderTime() { /** @type {Record} */ const result = {}; - for (const fileName of Object.keys(renderFiles)) { + for (const fileName of renderPages) { // Render each file 100 times and push to an array for (let i = 0; i < 100; i++) { const pathname = '/' + fileName.slice(0, -path.extname(fileName).length); diff --git a/benchmark/make-project/render-default.js b/benchmark/make-project/render-default.js index 3a01dcc479..f42340fd3b 100644 --- a/benchmark/make-project/render-default.js +++ b/benchmark/make-project/render-default.js @@ -3,31 +3,68 @@ import { loremIpsumHtml, loremIpsumMd } from './_util.js'; // Map of files to be generated and tested for rendering. // Ideally each content should be similar for comparison. -export const renderFiles = { - 'astro.astro': `\ +const renderFiles = { + 'components/ListItem.astro': `\ +--- +const { className, item, attrs } = Astro.props; +const nested = item !== 0; +--- +
  • + + {item} + +
  • + `, + 'components/Sublist.astro': `\ +--- +import ListItem from '../components/ListItem.astro'; +const { items } = Astro.props; +const className = "text-red-500"; +const style = { color: "red" }; +--- + + `, + 'pages/astro.astro': `\ --- const className = "text-red-500"; const style = { color: "red" }; -const items = Array.from({ length: 1000 }, (_, i) => i); +const items = Array.from({ length: 10000 }, (_, i) => ({i})); --- - My Site

    List

    - + ${Array.from({ length: 1000 }) .map(() => `

    ${loremIpsumHtml}

    `) .join('\n')} `, - 'md.md': `\ + 'pages/md.md': `\ # List ${Array.from({ length: 1000 }, (_, i) => i) @@ -38,7 +75,7 @@ ${Array.from({ length: 1000 }) .map(() => loremIpsumMd) .join('\n\n')} `, - 'mdx.mdx': `\ + 'pages/mdx.mdx': `\ export const className = "text-red-500"; export const style = { color: "red" }; export const items = Array.from({ length: 1000 }, (_, i) => i); @@ -57,16 +94,24 @@ ${Array.from({ length: 1000 }) `, }; +export const renderPages = []; +for (const file of Object.keys(renderFiles)) { + if (file.startsWith('pages/')) { + renderPages.push(file.replace('pages/', '')); + } +} + /** * @param {URL} projectDir */ export async function run(projectDir) { await fs.rm(projectDir, { recursive: true, force: true }); await fs.mkdir(new URL('./src/pages', projectDir), { recursive: true }); + await fs.mkdir(new URL('./src/components', projectDir), { recursive: true }); await Promise.all( Object.entries(renderFiles).map(([name, content]) => { - return fs.writeFile(new URL(`./src/pages/${name}`, projectDir), content, 'utf-8'); + return fs.writeFile(new URL(`./src/${name}`, projectDir), content, 'utf-8'); }) ); diff --git a/examples/basics/package.json b/examples/basics/package.json index 6d4f97825b..71f1f46325 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.2.4" + "astro": "^4.4.0" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 8a988f43cd..cd34a1db49 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^2.1.0", - "@astrojs/rss": "^4.0.3", + "@astrojs/mdx": "^2.1.1", + "@astrojs/rss": "^4.0.5", "@astrojs/sitemap": "^3.0.5", - "astro": "^4.2.4" + "astro": "^4.4.0" } } diff --git a/examples/blog/src/components/HeaderLink.astro b/examples/blog/src/components/HeaderLink.astro index 3dd439be1a..bb600fb65a 100644 --- a/examples/blog/src/components/HeaderLink.astro +++ b/examples/blog/src/components/HeaderLink.astro @@ -6,7 +6,8 @@ type Props = HTMLAttributes<'a'>; const { href, class: className, ...props } = Astro.props; const { pathname } = Astro.url; -const isActive = href === pathname || href === pathname.replace(/\/$/, ''); +const subpath = pathname.match(/[^\/]+/g); +const isActive = href === pathname || href === '/' + subpath?.[0]; --- diff --git a/examples/blog/src/pages/index.astro b/examples/blog/src/pages/index.astro index 5113c8e8d9..46975d8fbd 100644 --- a/examples/blog/src/pages/index.astro +++ b/examples/blog/src/pages/index.astro @@ -11,7 +11,7 @@ import { SITE_TITLE, SITE_DESCRIPTION } from '../consts'; -
    +

    🧑‍🚀 Hello, Astronaut!

    diff --git a/examples/component/package.json b/examples/component/package.json index e34db92c04..f7fc654c7c 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^4.2.4" + "astro": "^4.4.0" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index d6dba38a79..2828ea1da1 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/alpinejs": "^0.3.2", + "@astrojs/alpinejs": "^0.4.0", "@types/alpinejs": "^3.13.5", "alpinejs": "^3.13.3", - "astro": "^4.2.4" + "astro": "^4.4.0" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 57a0cb109a..b6ec446278 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/lit": "^4.0.1", "@webcomponents/template-shadowroot": "^0.2.1", - "astro": "^4.2.4", - "lit": "^2.8.0" + "astro": "^4.4.0", + "lit": "^3.1.2" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index aed44ca945..6d6f15b187 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -12,11 +12,11 @@ }, "dependencies": { "@astrojs/preact": "^3.1.0", - "@astrojs/react": "^3.0.9", + "@astrojs/react": "^3.0.10", "@astrojs/solid-js": "^4.0.1", "@astrojs/svelte": "^5.0.3", "@astrojs/vue": "^4.0.8", - "astro": "^4.2.4", + "astro": "^4.4.0", "preact": "^10.19.2", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 4ddaa990a7..05a20ac554 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/preact": "^3.1.0", "@preact/signals": "^1.2.1", - "astro": "^4.2.4", + "astro": "^4.4.0", "preact": "^10.19.2" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index f03359a0d7..bfc2185a31 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -11,10 +11,10 @@ "astro": "astro" }, "dependencies": { - "@astrojs/react": "^3.0.9", + "@astrojs/react": "^3.0.10", "@types/react": "^18.2.37", "@types/react-dom": "^18.2.15", - "astro": "^4.2.4", + "astro": "^4.4.0", "react": "^18.2.0", "react-dom": "^18.2.0" } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index df5af1cd14..0d5d1ad826 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/solid-js": "^4.0.1", - "astro": "^4.2.4", + "astro": "^4.4.0", "solid-js": "^1.8.5" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index f2c35fd7c4..47bad67779 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/svelte": "^5.0.3", - "astro": "^4.2.4", + "astro": "^4.4.0", "svelte": "^4.2.5" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 5ff5b2cefb..1e4d48f73d 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/vue": "^4.0.8", - "astro": "^4.2.4", + "astro": "^4.4.0", "vue": "^3.3.8" } } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index b07972e132..5de5ce72e0 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "@astrojs/node": "^8.0.0", - "astro": "^4.2.4" + "@astrojs/node": "^8.2.0", + "astro": "^4.4.0" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index 192a5d86a0..fe1cc6956c 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^4.2.4" + "astro": "^4.4.0" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/middleware/package.json b/examples/middleware/package.json index dfc479a1ae..bc45d6c581 100644 --- a/examples/middleware/package.json +++ b/examples/middleware/package.json @@ -12,8 +12,8 @@ "server": "node dist/server/entry.mjs" }, "dependencies": { - "@astrojs/node": "^8.0.0", - "astro": "^4.2.4", + "@astrojs/node": "^8.2.0", + "astro": "^4.4.0", "html-minifier": "^4.0.0" }, "devDependencies": { diff --git a/examples/minimal/package.json b/examples/minimal/package.json index bf67cd4aeb..c38793704c 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.2.4" + "astro": "^4.4.0" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 57c4a3a0dc..e4fe1319c6 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.2.4" + "astro": "^4.4.0" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 24a8771d30..d1718dcd16 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.2.4" + "astro": "^4.4.0" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 2b37fc9ea9..d09f8b6c37 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -12,9 +12,9 @@ "server": "node dist/server/entry.mjs" }, "dependencies": { - "@astrojs/node": "^8.0.0", + "@astrojs/node": "^8.2.0", "@astrojs/svelte": "^5.0.3", - "astro": "^4.2.4", + "astro": "^4.4.0", "svelte": "^4.2.5" } } diff --git a/examples/starlog/package.json b/examples/starlog/package.json index cc877fb2bc..29574c27cc 100644 --- a/examples/starlog/package.json +++ b/examples/starlog/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.2.4", + "astro": "^4.4.0", "sass": "^1.69.5", "sharp": "^0.32.6" } diff --git a/examples/view-transitions/package.json b/examples/view-transitions/package.json index 39b0101b0f..ca15bfaf96 100644 --- a/examples/view-transitions/package.json +++ b/examples/view-transitions/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/tailwind": "^5.1.0", - "@astrojs/node": "^8.0.0", - "astro": "^4.2.4" + "@astrojs/node": "^8.2.0", + "astro": "^4.4.0" } } diff --git a/examples/view-transitions/src/components/Nav.astro b/examples/view-transitions/src/components/Nav.astro index 1fc229160d..4d11be24e6 100644 --- a/examples/view-transitions/src/components/Nav.astro +++ b/examples/view-transitions/src/components/Nav.astro @@ -1,7 +1,5 @@