diff --git a/.changeset/calm-houses-carry.md b/.changeset/calm-houses-carry.md
new file mode 100644
index 000000000..4e614e623
--- /dev/null
+++ b/.changeset/calm-houses-carry.md
@@ -0,0 +1,5 @@
+---
+"astro": patch
+---
+
+fix(astro): add support for `src/content/config.mts` files
diff --git a/.changeset/chatty-walls-happen.md b/.changeset/chatty-walls-happen.md
deleted file mode 100644
index 58fe5e6ed..000000000
--- a/.changeset/chatty-walls-happen.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fixed a case where dynamic imports tried to preload inlined stylesheets.
diff --git a/.changeset/empty-rings-bow.md b/.changeset/empty-rings-bow.md
deleted file mode 100644
index fd928d548..000000000
--- a/.changeset/empty-rings-bow.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fixes remote assets caching logic to not use expired assets
diff --git a/.changeset/fair-countries-admire.md b/.changeset/fair-countries-admire.md
deleted file mode 100644
index 1868ab016..000000000
--- a/.changeset/fair-countries-admire.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/svelte': patch
----
-
-Removed vite warnings.
diff --git a/.changeset/friendly-clocks-act.md b/.changeset/friendly-clocks-act.md
deleted file mode 100644
index 43c694880..000000000
--- a/.changeset/friendly-clocks-act.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-'create-astro': patch
-'astro': patch
----
-
-Support detecting Bun when logging messages with package manager information.
diff --git a/.changeset/gold-weeks-hammer.md b/.changeset/gold-weeks-hammer.md
new file mode 100644
index 000000000..4f6946116
--- /dev/null
+++ b/.changeset/gold-weeks-hammer.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Minify the HTML of the redicts emitted during the build.
diff --git a/.changeset/gorgeous-dancers-divide.md b/.changeset/gorgeous-dancers-divide.md
new file mode 100644
index 000000000..f9b8217e9
--- /dev/null
+++ b/.changeset/gorgeous-dancers-divide.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Do not add type="text/css" to inline style tag
diff --git a/.changeset/grumpy-hotels-heal.md b/.changeset/grumpy-hotels-heal.md
new file mode 100644
index 000000000..f171c91fb
--- /dev/null
+++ b/.changeset/grumpy-hotels-heal.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Prevent client:only styles from being removed in dev (View Transitions)
diff --git a/.changeset/hip-cats-jump.md b/.changeset/hip-cats-jump.md
deleted file mode 100644
index f728408a0..000000000
--- a/.changeset/hip-cats-jump.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fix missing type for `imageConfig` export from `astro:assets`
diff --git a/.changeset/itchy-clouds-design.md b/.changeset/itchy-clouds-design.md
new file mode 100644
index 000000000..b6d5046e3
--- /dev/null
+++ b/.changeset/itchy-clouds-design.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+chore: correct description of `attribute` option in `scopedStyleStrategy`
diff --git a/.changeset/modern-guests-float.md b/.changeset/modern-guests-float.md
deleted file mode 100644
index cda74642a..000000000
--- a/.changeset/modern-guests-float.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/vercel': patch
----
-
-Fix serverless function naming conflicts for routes with identical filenames but different directory structures
diff --git a/.changeset/poor-pears-wash.md b/.changeset/poor-pears-wash.md
new file mode 100644
index 000000000..5a7117e93
--- /dev/null
+++ b/.changeset/poor-pears-wash.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Fix lang unspecified code blocks (markdownlint MD040)
diff --git a/.changeset/smart-dragons-taste.md b/.changeset/smart-dragons-taste.md
new file mode 100644
index 000000000..3b79d9410
--- /dev/null
+++ b/.changeset/smart-dragons-taste.md
@@ -0,0 +1,5 @@
+---
+'@astrojs/cloudflare': minor
+---
+
+Add support for Cloudflare Runtime (env vars, caches and req object), using `astro dev`
diff --git a/.changeset/spotty-glasses-grin.md b/.changeset/spotty-glasses-grin.md
deleted file mode 100644
index 3a903b79d..000000000
--- a/.changeset/spotty-glasses-grin.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@astrojs/mdx': patch
----
-
-Add location data to MDX compile errors
diff --git a/.changeset/spotty-tools-rhyme.md b/.changeset/spotty-tools-rhyme.md
new file mode 100644
index 000000000..a54691a48
--- /dev/null
+++ b/.changeset/spotty-tools-rhyme.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+fix(types): make `image.service` optional
diff --git a/.changeset/twelve-cars-tell.md b/.changeset/twelve-cars-tell.md
deleted file mode 100644
index a1812d637..000000000
--- a/.changeset/twelve-cars-tell.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fix markdown page HMR
diff --git a/.changeset/weak-kids-roll.md b/.changeset/weak-kids-roll.md
deleted file mode 100644
index 7d6d61f42..000000000
--- a/.changeset/weak-kids-roll.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fix scroll position when navigating back from page w/o ViewTransitions
diff --git a/.changeset/witty-readers-behave.md b/.changeset/witty-readers-behave.md
new file mode 100644
index 000000000..ec999f763
--- /dev/null
+++ b/.changeset/witty-readers-behave.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Bugfixes for back navigation in the view transition client-side router
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 01c573e10..cab1fd79f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -108,7 +108,7 @@ jobs:
strategy:
matrix:
OS: [ubuntu-latest]
- NODE_VERSION: [18, 20]
+ NODE_VERSION: [18, 20.5.1]
include:
- os: macos-latest
NODE_VERSION: 18
diff --git a/.github/workflows/cleanup-cache.yml b/.github/workflows/cleanup-cache.yml
index a3c4d25a4..cf03bbfee 100644
--- a/.github/workflows/cleanup-cache.yml
+++ b/.github/workflows/cleanup-cache.yml
@@ -1,19 +1,28 @@
name: Cleanup cache
on:
+ schedule:
+ - cron: "0 11 * * *"
pull_request:
types:
- closed
-# Workflow copied from https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
-
- - name: Cleanup
+
+ - name: Cleanup caches older than 5 days
+ if: github.event_name == 'schedule'
+ uses: MyAlbum/purge-cache@v2
+ with:
+ max-age: 432000
+
+ # https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries
+ - name: Cleanup on PR close
+ if: github.event_name == 'pull_request'
run: |
gh extension install actions/gh-actions-cache
diff --git a/.prettierignore b/.prettierignore
index f53f92086..af84e3433 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -1,10 +1,3 @@
-# Ignoring these files for now due to https://github.com/withastro/compiler/issues/585
-examples/basics/src/layouts
-examples/with-nanostores/src/layouts
-
-# Ignoring this file for now due to https://github.com/withastro/compiler/issues/485
-packages/markdown/component/Markdown.astro
-
# Benchmark artifacts
benchmark/projects/
benchmark/results/
diff --git a/.prettierrc.cjs b/.prettierrc.cjs
deleted file mode 100644
index 39911db2c..000000000
--- a/.prettierrc.cjs
+++ /dev/null
@@ -1,24 +0,0 @@
-// Heads up: This file should be renamed to `.cjs`, however if we did that, changesets wouldn't be able to load it
-module.exports = {
- printWidth: 100,
- semi: true,
- singleQuote: true,
- tabWidth: 2,
- trailingComma: 'es5',
- useTabs: true,
- plugins: ['prettier-plugin-astro'],
- overrides: [
- {
- files: ['.*', '*.json', '*.md', '*.toml', '*.yml'],
- options: {
- useTabs: false,
- },
- },
- {
- files: ['**/*.astro'],
- options: {
- parser: 'astro',
- },
- },
- ],
-};
diff --git a/README.md b/README.md
index 3a28ad530..c49b4760e 100644
--- a/README.md
+++ b/README.md
@@ -83,7 +83,7 @@ Several official projects are maintained outside of this repo:
## Sponsors
-Astro is generously supported by Netlify, Storyblok, and several other amazing organizations.
+Astro is free, open source software made possible by these wonderful sponsors.
[❤️ Sponsor Astro! ❤️](https://github.com/withastro/.github/blob/main/FUNDING.md)
@@ -91,7 +91,7 @@ Astro is generously supported by Netlify, Storyblok, and several other amazing o
[![Astro's sponsors.](https://astro.build/sponsors.png "Astro's sponsors.
-Platinum sponsors: Netlify, storyblok, Vercel, Ship Shape, Google Chrome
+Platinum sponsors: Vercel, storyblok, Netlify, Ship Shape, Google Chrome
Gold sponsors: ‹div›RIOTS, DEEPGRAM, Transloadit, CloudCannon
Sponsors: Monogram, Qoddi, Dimension")](https://github.com/sponsors/withastro)
diff --git a/examples/README.md b/examples/README.md
index ab0e5a6c0..1482084d4 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -2,7 +2,7 @@
The easiest way to check out one of these examples on your machine is by running this command in an empty directory:
-```
+```sh
npm create astro@latest -- --template [EXAMPLE_NAME]
```
@@ -10,12 +10,12 @@ npm create astro@latest -- --template [EXAMPLE_NAME]
Visit [awesome-astro](https://github.com/one-aalam/awesome-astro) for a full list of community examples. You can use `npm create astro@latest` to check out any community examples:
-```
+```sh
npm create astro@latest -- --template [GITHUB_USER]/[REPO_NAME]
```
Paths to examples nested inside of a repo are also supported:
-```
+```sh
npm create astro@latest -- --template [GITHUB_USER]/[REPO_NAME]/path/to/example
```
diff --git a/examples/basics/README.md b/examples/basics/README.md
index 5369073b9..1db3fb399 100644
--- a/examples/basics/README.md
+++ b/examples/basics/README.md
@@ -1,6 +1,6 @@
# Astro Starter Kit: Basics
-```
+```sh
npm create astro@latest -- --template basics
```
@@ -16,7 +16,7 @@ npm create astro@latest -- --template basics
Inside of your Astro project, you'll see the following folders and files:
-```
+```text
/
├── public/
│ └── favicon.svg
diff --git a/examples/basics/package.json b/examples/basics/package.json
index 8bca8d927..d3f7c6b75 100644
--- a/examples/basics/package.json
+++ b/examples/basics/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
}
}
diff --git a/examples/basics/src/layouts/Layout.astro b/examples/basics/src/layouts/Layout.astro
index 3345b887c..7b552be19 100644
--- a/examples/basics/src/layouts/Layout.astro
+++ b/examples/basics/src/layouts/Layout.astro
@@ -1,4 +1,4 @@
----
+---
interface Props {
title: string;
}
@@ -6,11 +6,11 @@ interface Props {
const { title } = Astro.props;
---
-
+
-
+
@@ -25,15 +25,27 @@ const { title } = Astro.props;
--accent: 136, 58, 234;
--accent-light: 224, 204, 250;
--accent-dark: 49, 10, 101;
- --accent-gradient: linear-gradient(45deg, rgb(var(--accent)), rgb(var(--accent-light)) 30%, white 60%);
+ --accent-gradient: linear-gradient(
+ 45deg,
+ rgb(var(--accent)),
+ rgb(var(--accent-light)) 30%,
+ white 60%
+ );
}
html {
font-family: system-ui, sans-serif;
- background: #13151A;
+ background: #13151a;
background-size: 224px;
}
code {
- font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
- Bitstream Vera Sans Mono, Courier New, monospace;
+ font-family:
+ Menlo,
+ Monaco,
+ Lucida Console,
+ Liberation Mono,
+ DejaVu Sans Mono,
+ Bitstream Vera Sans Mono,
+ Courier New,
+ monospace;
}
diff --git a/examples/blog/README.md b/examples/blog/README.md
index 67d0cfc2e..758716e07 100644
--- a/examples/blog/README.md
+++ b/examples/blog/README.md
@@ -1,6 +1,6 @@
# Astro Starter Kit: Blog
-```
+```sh
npm create astro@latest -- --template blog
```
@@ -25,7 +25,7 @@ Features:
Inside of your Astro project, you'll see the following folders and files:
-```
+```text
├── public/
├── src/
│ ├── components/
diff --git a/examples/blog/package.json b/examples/blog/package.json
index 347540e05..1ce63f5b7 100644
--- a/examples/blog/package.json
+++ b/examples/blog/package.json
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/mdx": "^1.0.0",
+ "@astrojs/mdx": "^1.0.3",
"@astrojs/rss": "^3.0.0",
"@astrojs/sitemap": "^3.0.0",
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
}
}
diff --git a/examples/blog/src/pages/blog/index.astro b/examples/blog/src/pages/blog/index.astro
index a5c329a87..ebbcd3042 100644
--- a/examples/blog/src/pages/blog/index.astro
+++ b/examples/blog/src/pages/blog/index.astro
@@ -11,7 +11,7 @@ const posts = (await getCollection('blog')).sort(
);
---
-
+
diff --git a/examples/blog/src/pages/index.astro b/examples/blog/src/pages/index.astro
index 26f070da5..1c8be6135 100644
--- a/examples/blog/src/pages/index.astro
+++ b/examples/blog/src/pages/index.astro
@@ -5,7 +5,7 @@ import Footer from '../components/Footer.astro';
import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
---
-
+
@@ -16,14 +16,14 @@ import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
🧑🚀 Hello, Astronaut!
Welcome to the official Astro blog starter template. This
- template serves as a lightweight, minimally-styled starting point for anyone looking to build
- a personal website, blog, or portfolio with Astro.
+ template serves as a lightweight, minimally-styled starting point for anyone looking to
+ build a personal website, blog, or portfolio with Astro.
This template comes with a few integrations already configured in your
astro.config.mjs
file. You can customize your setup with
- Astro Integrations to add tools like Tailwind,
- React, or Vue to your project.
+ Astro Integrations to add tools like
+ Tailwind, React, or Vue to your project.
Here are a few ideas on how to get started with the template:
diff --git a/examples/component/README.md b/examples/component/README.md
index c92a01a95..f51958529 100644
--- a/examples/component/README.md
+++ b/examples/component/README.md
@@ -2,7 +2,7 @@
This is a template for an Astro component library. Use this template for writing components to use in multiple projects or publish to NPM.
-```
+```sh
npm create astro@latest -- --template component
```
@@ -14,7 +14,7 @@ npm create astro@latest -- --template component
Inside of your Astro project, you'll see the following folders and files:
-```
+```text
/
├── index.ts
├── src
diff --git a/examples/component/package.json b/examples/component/package.json
index 39290c2b5..1bc40f01e 100644
--- a/examples/component/package.json
+++ b/examples/component/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
diff --git a/examples/deno/README.md b/examples/deno/README.md
index af49ebcb7..17deeb3b9 100644
--- a/examples/deno/README.md
+++ b/examples/deno/README.md
@@ -4,7 +4,7 @@
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/deno)
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/deno/devcontainer.json)
-```
+```sh
npm create astro@latest -- --template deno
```
@@ -16,7 +16,7 @@ npm create astro@latest -- --template deno
Inside of your Astro project, you'll see the following folders and files:
-```
+```text
/
├── public/
│ └── favicon.svg
diff --git a/examples/deno/package.json b/examples/deno/package.json
index ac233a386..ea8122579 100644
--- a/examples/deno/package.json
+++ b/examples/deno/package.json
@@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
},
"devDependencies": {
"@astrojs/deno": "^5.0.0"
diff --git a/examples/deno/src/components/Layout.astro b/examples/deno/src/components/Layout.astro
index 7d329d0a4..7bcbd218c 100644
--- a/examples/deno/src/components/Layout.astro
+++ b/examples/deno/src/components/Layout.astro
@@ -6,7 +6,7 @@ interface Props {
const { title } = Astro.props as Props;
---
-
+
@@ -46,8 +46,15 @@ const { title } = Astro.props as Props;
}
:global(code) {
- font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
- Bitstream Vera Sans Mono, Courier New, monospace;
+ font-family:
+ Menlo,
+ Monaco,
+ Lucida Console,
+ Liberation Mono,
+ DejaVu Sans Mono,
+ Bitstream Vera Sans Mono,
+ Courier New,
+ monospace;
}
diff --git a/examples/framework-alpine/README.md b/examples/framework-alpine/README.md
index 9c61ea1b0..22cc75374 100644
--- a/examples/framework-alpine/README.md
+++ b/examples/framework-alpine/README.md
@@ -1,6 +1,6 @@
# Astro + AlpineJS Example
-```
+```sh
npm create astro@latest -- --template framework-alpine
```
diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json
index 9e933f622..bcdba561c 100644
--- a/examples/framework-alpine/package.json
+++ b/examples/framework-alpine/package.json
@@ -14,6 +14,6 @@
"@astrojs/alpinejs": "^0.3.0",
"@types/alpinejs": "^3.7.2",
"alpinejs": "^3.12.3",
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
}
}
diff --git a/examples/framework-lit/README.md b/examples/framework-lit/README.md
index 9afdb987c..714d179da 100644
--- a/examples/framework-lit/README.md
+++ b/examples/framework-lit/README.md
@@ -1,6 +1,6 @@
# Astro + Lit Example
-```
+```sh
npm create astro@latest -- --template framework-lit
```
diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json
index 0596fbd8d..c8f184131 100644
--- a/examples/framework-lit/package.json
+++ b/examples/framework-lit/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/lit": "^3.0.0",
"@webcomponents/template-shadowroot": "^0.2.1",
- "astro": "^3.0.8",
+ "astro": "^3.0.12",
"lit": "^2.8.0"
}
}
diff --git a/examples/framework-lit/src/pages/index.astro b/examples/framework-lit/src/pages/index.astro
index a351b8248..5ef314f6f 100644
--- a/examples/framework-lit/src/pages/index.astro
+++ b/examples/framework-lit/src/pages/index.astro
@@ -7,7 +7,7 @@ import { MyCounter } from '../components/my-counter.js';
// https://docs.astro.build/core-concepts/astro-components/
---
-
+
diff --git a/examples/framework-multiple/README.md b/examples/framework-multiple/README.md
index 385b0ade7..30b020eff 100644
--- a/examples/framework-multiple/README.md
+++ b/examples/framework-multiple/README.md
@@ -1,6 +1,6 @@
# Kitchen Sink: Microfrontends with Astro
-```
+```sh
npm create astro@latest -- --template framework-multiple
```
diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json
index 4246c6c1c..0f8905159 100644
--- a/examples/framework-multiple/package.json
+++ b/examples/framework-multiple/package.json
@@ -12,11 +12,11 @@
},
"dependencies": {
"@astrojs/preact": "^3.0.0",
- "@astrojs/react": "^3.0.0",
- "@astrojs/solid-js": "^3.0.0",
- "@astrojs/svelte": "^4.0.0",
+ "@astrojs/react": "^3.0.2",
+ "@astrojs/solid-js": "^3.0.1",
+ "@astrojs/svelte": "^4.0.2",
"@astrojs/vue": "^3.0.0",
- "astro": "^3.0.8",
+ "astro": "^3.0.12",
"preact": "^10.17.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
diff --git a/examples/framework-preact/README.md b/examples/framework-preact/README.md
index 8bebec195..04efb2d6e 100644
--- a/examples/framework-preact/README.md
+++ b/examples/framework-preact/README.md
@@ -1,6 +1,6 @@
# Astro + Preact Example
-```
+```sh
npm create astro@latest -- --template framework-preact
```
diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json
index a97ff70e2..fdc06847a 100644
--- a/examples/framework-preact/package.json
+++ b/examples/framework-preact/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.0.0",
"@preact/signals": "^1.2.1",
- "astro": "^3.0.8",
+ "astro": "^3.0.12",
"preact": "^10.17.1"
}
}
diff --git a/examples/framework-react/README.md b/examples/framework-react/README.md
index 57afd632a..f036afa8c 100644
--- a/examples/framework-react/README.md
+++ b/examples/framework-react/README.md
@@ -1,6 +1,6 @@
# Astro + React Example
-```
+```sh
npm create astro@latest -- --template framework-react
```
diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json
index 562a551ce..997d69646 100644
--- a/examples/framework-react/package.json
+++ b/examples/framework-react/package.json
@@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/react": "^3.0.0",
+ "@astrojs/react": "^3.0.2",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
- "astro": "^3.0.8",
+ "astro": "^3.0.12",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
diff --git a/examples/framework-solid/README.md b/examples/framework-solid/README.md
index f95f8d8f5..2943a7692 100644
--- a/examples/framework-solid/README.md
+++ b/examples/framework-solid/README.md
@@ -1,6 +1,6 @@
# Astro + Solid.js Example
-```
+```sh
npm create astro@latest -- --template framework-solid
```
diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json
index f00813c91..36e41d672 100644
--- a/examples/framework-solid/package.json
+++ b/examples/framework-solid/package.json
@@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/solid-js": "^3.0.0",
- "astro": "^3.0.8",
+ "@astrojs/solid-js": "^3.0.1",
+ "astro": "^3.0.12",
"solid-js": "^1.7.11"
}
}
diff --git a/examples/framework-svelte/README.md b/examples/framework-svelte/README.md
index abf0679cc..5c5a24cc0 100644
--- a/examples/framework-svelte/README.md
+++ b/examples/framework-svelte/README.md
@@ -1,6 +1,6 @@
# Astro + Svelte Example
-```
+```sh
npm create astro@latest -- --template framework-svelte
```
diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json
index c232e9e15..46937ad43 100644
--- a/examples/framework-svelte/package.json
+++ b/examples/framework-svelte/package.json
@@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/svelte": "^4.0.0",
- "astro": "^3.0.8",
+ "@astrojs/svelte": "^4.0.2",
+ "astro": "^3.0.12",
"svelte": "^4.2.0"
}
}
diff --git a/examples/framework-vue/README.md b/examples/framework-vue/README.md
index 07f94e1c3..14e778765 100644
--- a/examples/framework-vue/README.md
+++ b/examples/framework-vue/README.md
@@ -1,6 +1,6 @@
# Astro + Vue Example
-```
+```sh
npm create astro@latest -- --template framework-vue
```
diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json
index 34fc9a29e..e24bcdad3 100644
--- a/examples/framework-vue/package.json
+++ b/examples/framework-vue/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/vue": "^3.0.0",
- "astro": "^3.0.8",
+ "astro": "^3.0.12",
"vue": "^3.3.4"
}
}
diff --git a/examples/hackernews/README.md b/examples/hackernews/README.md
index 042a7807b..55c657dc9 100644
--- a/examples/hackernews/README.md
+++ b/examples/hackernews/README.md
@@ -1,6 +1,6 @@
# Astro Starter Kit: Hackernews
-```
+```sh
npm create astro@latest -- --template hackernews
```
@@ -14,7 +14,7 @@ npm create astro@latest -- --template hackernews
Inside of your Astro project, you'll see the following folders and files:
-```
+```text
/
├── public/
│ └── favicon.svg
diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json
index 305b50d6e..c089ca0f7 100644
--- a/examples/hackernews/package.json
+++ b/examples/hackernews/package.json
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^6.0.0",
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
}
}
diff --git a/examples/hackernews/src/pages/stories/[id].astro b/examples/hackernews/src/pages/stories/[id].astro
index 84383aa9e..9cfad36fd 100644
--- a/examples/hackernews/src/pages/stories/[id].astro
+++ b/examples/hackernews/src/pages/stories/[id].astro
@@ -25,7 +25,7 @@ const story = (await fetchAPI(`item/${id}`)) as IStory;
{story.user}
- {story.time_ago}
+ {story.time_ago}
diff --git a/examples/integration/README.md b/examples/integration/README.md
index a6709d400..4f0880031 100644
--- a/examples/integration/README.md
+++ b/examples/integration/README.md
@@ -2,7 +2,7 @@
This is a template for an Astro integration. Use this template for writing integrations to use in multiple projects or publish to NPM.
-```
+```sh
npm create astro@latest -- --template integration
```
@@ -14,7 +14,7 @@ npm create astro@latest -- --template integration
Inside of your Astro project, you'll see the following folders and files:
-```
+```text
/
├── index.ts
├── tsconfig.json
diff --git a/examples/integration/package.json b/examples/integration/package.json
index 6a6998105..30e91060a 100644
--- a/examples/integration/package.json
+++ b/examples/integration/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
diff --git a/examples/middleware/package.json b/examples/middleware/package.json
index f0c83d7d9..853b33a71 100644
--- a/examples/middleware/package.json
+++ b/examples/middleware/package.json
@@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^6.0.0",
- "astro": "^3.0.8",
+ "astro": "^3.0.12",
"html-minifier": "^4.0.0"
}
}
diff --git a/examples/middleware/src/components/Card.astro b/examples/middleware/src/components/Card.astro
index a1e0ccf6e..1ff16e5fb 100644
--- a/examples/middleware/src/components/Card.astro
+++ b/examples/middleware/src/components/Card.astro
@@ -30,7 +30,9 @@ const { href, title, body } = Astro.props;
border-radius: 0.6rem;
background-position: 100%;
transition: background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1);
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
+ box-shadow:
+ 0 4px 6px -1px rgba(0, 0, 0, 0.1),
+ 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.link-card > a {
diff --git a/examples/middleware/src/layouts/Layout.astro b/examples/middleware/src/layouts/Layout.astro
index b3def2637..90d2fb715 100644
--- a/examples/middleware/src/layouts/Layout.astro
+++ b/examples/middleware/src/layouts/Layout.astro
@@ -6,7 +6,7 @@ interface Props {
const { title } = Astro.props;
---
-
+
@@ -29,7 +29,14 @@ const { title } = Astro.props;
background-color: #f6f6f6;
}
code {
- font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
- Bitstream Vera Sans Mono, Courier New, monospace;
+ font-family:
+ Menlo,
+ Monaco,
+ Lucida Console,
+ Liberation Mono,
+ DejaVu Sans Mono,
+ Bitstream Vera Sans Mono,
+ Courier New,
+ monospace;
}
diff --git a/examples/minimal/README.md b/examples/minimal/README.md
index 20bad6615..e34a99b44 100644
--- a/examples/minimal/README.md
+++ b/examples/minimal/README.md
@@ -1,6 +1,6 @@
# Astro Starter Kit: Minimal
-```
+```sh
npm create astro@latest -- --template minimal
```
@@ -14,7 +14,7 @@ npm create astro@latest -- --template minimal
Inside of your Astro project, you'll see the following folders and files:
-```
+```text
/
├── public/
├── src/
diff --git a/examples/minimal/package.json b/examples/minimal/package.json
index 13ea2c026..8bfc5c2b5 100644
--- a/examples/minimal/package.json
+++ b/examples/minimal/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
}
}
diff --git a/examples/minimal/src/pages/index.astro b/examples/minimal/src/pages/index.astro
index 7264ff502..2d1410736 100644
--- a/examples/minimal/src/pages/index.astro
+++ b/examples/minimal/src/pages/index.astro
@@ -1,4 +1,5 @@
---
+
---
diff --git a/examples/non-html-pages/README.md b/examples/non-html-pages/README.md
index ecdee84b1..c26b01698 100644
--- a/examples/non-html-pages/README.md
+++ b/examples/non-html-pages/README.md
@@ -4,7 +4,7 @@ Documentation for "Non-HTML Pages":
https://docs.astro.build/en/core-concepts/endpoints/#static-file-endpoints
-```
+```sh
npm create astro@latest -- --template non-html-pages
```
@@ -18,7 +18,7 @@ npm create astro@latest -- --template non-html-pages
Inside of your Astro project, you'll see the following folders and files:
-```
+```text
/
├── public/
├── src/
diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json
index 4cd01cc55..be1e12672 100644
--- a/examples/non-html-pages/package.json
+++ b/examples/non-html-pages/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
}
}
diff --git a/examples/portfolio/README.md b/examples/portfolio/README.md
index 3c8ee3aa4..312d18b1c 100644
--- a/examples/portfolio/README.md
+++ b/examples/portfolio/README.md
@@ -1,6 +1,6 @@
# Astro Starter Kit: Portfolio
-```
+```sh
npm create astro@latest -- --template portfolio
```
diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json
index 65d29e849..a1ac1e58d 100644
--- a/examples/portfolio/package.json
+++ b/examples/portfolio/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^3.0.8"
+ "astro": "^3.0.12"
}
}
diff --git a/examples/portfolio/src/components/Nav.astro b/examples/portfolio/src/components/Nav.astro
index bf9ac7869..d0a5857b1 100644
--- a/examples/portfolio/src/components/Nav.astro
+++ b/examples/portfolio/src/components/Nav.astro
@@ -25,7 +25,7 @@ const iconLinks: { label: string; href: string; icon: keyof typeof iconPaths }[]