summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/breezy-walls-guess.md5
-rw-r--r--.changeset/clean-bottles-drive.md13
-rw-r--r--.changeset/cool-ravens-occur.md18
-rw-r--r--.changeset/empty-students-occur.md5
-rw-r--r--.changeset/five-stingrays-collect.md5
-rw-r--r--.changeset/fresh-ladybugs-think.md5
-rw-r--r--.changeset/giant-cycles-search.md7
-rw-r--r--.changeset/khaki-humans-sort.md5
-rw-r--r--.changeset/modern-elephants-burn.md19
-rw-r--r--.changeset/neat-snakes-know.md5
-rw-r--r--.changeset/new-pianos-boil.md7
-rw-r--r--.changeset/pre.json68
-rw-r--r--.changeset/silver-foxes-bathe.md5
-rw-r--r--.changeset/sour-socks-enjoy.md5
-rw-r--r--.changeset/strange-kings-add.md5
-rw-r--r--.changeset/stupid-pots-give.md5
-rw-r--r--.changeset/thick-ravens-chew.md5
-rw-r--r--.changeset/yellow-trees-clean.md5
-rw-r--r--.changeset/young-rules-draw.md5
-rw-r--r--examples/blog-multiple-authors/package.json2
-rw-r--r--examples/blog/package.json2
-rw-r--r--examples/component/demo/package.json2
-rw-r--r--examples/component/package.json2
-rw-r--r--examples/docs/package.json2
-rw-r--r--examples/env-vars/package.json2
-rw-r--r--examples/framework-alpine/package.json2
-rw-r--r--examples/framework-lit/package.json2
-rw-r--r--examples/framework-multiple/package.json2
-rw-r--r--examples/framework-preact/package.json2
-rw-r--r--examples/framework-react/package.json2
-rw-r--r--examples/framework-solid/package.json2
-rw-r--r--examples/framework-svelte/package.json2
-rw-r--r--examples/framework-vue/package.json2
-rw-r--r--examples/minimal/package.json2
-rw-r--r--examples/non-html-pages/package.json2
-rw-r--r--examples/portfolio-svelte/package.json2
-rw-r--r--examples/portfolio/package.json2
-rw-r--r--examples/ssr/package.json2
-rw-r--r--examples/starter/package.json2
-rw-r--r--examples/subpath/package.json2
-rw-r--r--examples/with-markdown-plugins/package.json2
-rw-r--r--examples/with-markdown-shiki/package.json2
-rw-r--r--examples/with-markdown/package.json2
-rw-r--r--examples/with-nanostores/package.json2
-rw-r--r--examples/with-tailwindcss/package.json2
-rw-r--r--examples/with-vite-plugin-pwa/package.json2
-rw-r--r--packages/astro-parser/CHANGELOG.md2
-rw-r--r--packages/astro-parser/package.json2
-rw-r--r--packages/astro/CHANGELOG.md129
-rw-r--r--packages/astro/package.json4
-rw-r--r--pnpm-lock.yaml56
51 files changed, 165 insertions, 279 deletions
diff --git a/.changeset/breezy-walls-guess.md b/.changeset/breezy-walls-guess.md
deleted file mode 100644
index 160423173..000000000
--- a/.changeset/breezy-walls-guess.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': minor
----
-
-Introduce a new --host flag + host devOption to expose your server on a network IP
diff --git a/.changeset/clean-bottles-drive.md b/.changeset/clean-bottles-drive.md
deleted file mode 100644
index cb9c6af51..000000000
--- a/.changeset/clean-bottles-drive.md
+++ /dev/null
@@ -1,13 +0,0 @@
----
-'astro': patch
----
-
-Update `Astro.slots` API with new public `has` and `render` methods.
-
-This is a backwards-compatible change—`Astro.slots.default` will still be `true` if the component has been passed a `default` slot.
-
-```ts
-if (Astro.slots.has("default")) {
- const content = await Astro.slots.render("default");
-}
-```
diff --git a/.changeset/cool-ravens-occur.md b/.changeset/cool-ravens-occur.md
deleted file mode 100644
index fb934ae06..000000000
--- a/.changeset/cool-ravens-occur.md
+++ /dev/null
@@ -1,18 +0,0 @@
----
-'astro': patch
----
-
-Add user-configurable `sitemapFilter` option.
-
-This option can be used to ensure certain pages are excluded from your final sitemap.
-
-```ts
-// astro.config.ts
-import type { AstroUserConfig } from 'astro'
-
-const config: AstroUserConfig = {
- sitemap: true,
- sitemapFilter: (page: string) => !page.includes('secret-page')
-}
-export default config
-```
diff --git a/.changeset/empty-students-occur.md b/.changeset/empty-students-occur.md
deleted file mode 100644
index d903a8c5f..000000000
--- a/.changeset/empty-students-occur.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Update `@astrojs/compiler` to `0.12.0`
diff --git a/.changeset/five-stingrays-collect.md b/.changeset/five-stingrays-collect.md
deleted file mode 100644
index b4d51aa5b..000000000
--- a/.changeset/five-stingrays-collect.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fixes the static build to write to 404.html
diff --git a/.changeset/fresh-ladybugs-think.md b/.changeset/fresh-ladybugs-think.md
deleted file mode 100644
index bdf29ac19..000000000
--- a/.changeset/fresh-ladybugs-think.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fixes use of private .env variables with the static build
diff --git a/.changeset/giant-cycles-search.md b/.changeset/giant-cycles-search.md
deleted file mode 100644
index 44a538825..000000000
--- a/.changeset/giant-cycles-search.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-'astro': minor
----
-
-Visual redesign of the `astro dev` CLI, including new `astro --help` and `astro --version` outputs.
-
-These changes introduce a new startup screen, make it more obvious when a file triggers in-place HMR (`update`) or a full reload (`reload`), and improve the way Astro surfaces errors during dev.
diff --git a/.changeset/khaki-humans-sort.md b/.changeset/khaki-humans-sort.md
deleted file mode 100644
index e9e34adb2..000000000
--- a/.changeset/khaki-humans-sort.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-update esbuild@0.14.25
diff --git a/.changeset/modern-elephants-burn.md b/.changeset/modern-elephants-burn.md
deleted file mode 100644
index b868ecfb6..000000000
--- a/.changeset/modern-elephants-burn.md
+++ /dev/null
@@ -1,19 +0,0 @@
----
-'astro': minor
----
-
-New default build strategy
-
-This change marks the "static build" as the new default build strategy. If you are unfamiliar with this build strategy check out the [migration guide](https://docs.astro.build/en/migrate/#planned-deprecations) on how to change your code to be compatible with this new bulid strategy.
-
-If you'd like to keep using the old build strategy, use the flag `--legacy-build` both in your `astro dev` and `astro build` scripts, for ex:
-
-```json
-{
- "scripts": {
- "build": "astro build --legacy-build"
- }
-}
-```
-
-Note that the legacy build *is* deprecated and will be removed in a future version. You should only use this flag until you have the time to migration your code.
diff --git a/.changeset/neat-snakes-know.md b/.changeset/neat-snakes-know.md
deleted file mode 100644
index 1440fad71..000000000
--- a/.changeset/neat-snakes-know.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Astro's logger has been redesigned for an improved experience! In addition to deduping identical messages, we've surfaced more error details and exposed new events like `update` (for in-place HMR) and `reload` (for full-reload HMR).
diff --git a/.changeset/new-pianos-boil.md b/.changeset/new-pianos-boil.md
deleted file mode 100644
index bb3c1a728..000000000
--- a/.changeset/new-pianos-boil.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-'astro': minor
----
-
-## Updated `<head>` and `<body>` behavior
-
-Since `astro@0.21`, Astro placed certain restrictions on what files could use `<head>` or `<body>` tags. In `astro@0.24`, the restrictions have been lifted. Astro will be able to correctly handle `<head>` and `<body>` tags in _any_ component, not just those in `src/pages/` or `src/layouts/`.
diff --git a/.changeset/pre.json b/.changeset/pre.json
deleted file mode 100644
index 2253942bd..000000000
--- a/.changeset/pre.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "mode": "exit",
- "tag": "next",
- "initialVersions": {
- "@example/blog": "0.0.1",
- "@example/blog-multiple-authors": "0.0.1",
- "@example/component": "0.0.1",
- "@example/my-component-demo": "0.0.1",
- "@example/my-component": "0.0.1",
- "@example/docs": "0.0.1",
- "@example/env-vars": "0.0.1",
- "@example/framework-alpine": "0.0.1",
- "@example/framework-lit": "0.0.1",
- "@example/framework-multiple": "0.0.1",
- "@example/framework-preact": "0.0.1",
- "@example/framework-react": "0.0.1",
- "@example/framework-solid": "0.0.1",
- "@example/framework-svelte": "0.0.1",
- "@example/framework-vue": "0.0.1",
- "@example/minimal": "0.0.1",
- "@example/non-html-pages": "0.0.1",
- "@example/portfolio": "0.0.1",
- "@example/portfolio-svelte": "0.0.1",
- "@example/ssr": "0.0.1",
- "@example/starter": "0.0.1",
- "@example/subpath": "0.0.1",
- "@example/with-markdown": "0.0.1",
- "@example/with-markdown-plugins": "0.0.2",
- "@example/with-markdown-shiki": "0.0.1",
- "@example/with-nanostores": "0.0.1",
- "@example/with-tailwindcss": "0.0.1",
- "@example/with-vite-plugin-pwa": "0.0.1",
- "astro": "0.23.3",
- "@astrojs/parser": "0.22.1",
- "@astrojs/prism": "0.4.0",
- "@astrojs/test-custom-element-renderer": "0.1.0",
- "@astrojs/test-static-build-pkg": "0.0.3",
- "create-astro": "0.7.1",
- "@astrojs/markdown-remark": "0.6.2",
- "@astrojs/renderer-lit": "0.4.0",
- "@astrojs/renderer-preact": "0.5.0",
- "@astrojs/renderer-react": "0.5.0",
- "@astrojs/renderer-solid": "0.4.0",
- "@astrojs/renderer-svelte": "0.4.0",
- "@astrojs/renderer-vue": "0.4.0",
- "astro-scripts": "0.0.1",
- "astro.build": "0.0.1",
- "docs": "0.0.7",
- "@astrojs/webapi": "0.11.0"
- },
- "changesets": [
- "clean-bottles-drive",
- "cool-ravens-occur",
- "five-stingrays-collect",
- "fresh-ladybugs-think",
- "giant-cycles-search",
- "khaki-humans-sort",
- "modern-elephants-burn",
- "neat-snakes-know",
- "new-pianos-boil",
- "silver-foxes-bathe",
- "sour-socks-enjoy",
- "stupid-pots-give",
- "thick-ravens-chew",
- "yellow-trees-clean",
- "young-rules-draw"
- ]
-}
diff --git a/.changeset/silver-foxes-bathe.md b/.changeset/silver-foxes-bathe.md
deleted file mode 100644
index f0f63c274..000000000
--- a/.changeset/silver-foxes-bathe.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Remove a bad dev warning
diff --git a/.changeset/sour-socks-enjoy.md b/.changeset/sour-socks-enjoy.md
deleted file mode 100644
index aa9b56485..000000000
--- a/.changeset/sour-socks-enjoy.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': minor
----
-
-Escape HTML inside of expressions by default. Please see [our migration guide](https://docs.astro.build/en/migrate/#deprecated-unescaped-html) for more details.
diff --git a/.changeset/strange-kings-add.md b/.changeset/strange-kings-add.md
deleted file mode 100644
index baf354513..000000000
--- a/.changeset/strange-kings-add.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fixes loading astro/client/\* on Windows in dev
diff --git a/.changeset/stupid-pots-give.md b/.changeset/stupid-pots-give.md
deleted file mode 100644
index 176970b67..000000000
--- a/.changeset/stupid-pots-give.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Add CLI warnings when running a prerelease or outdated version of Astro
diff --git a/.changeset/thick-ravens-chew.md b/.changeset/thick-ravens-chew.md
deleted file mode 100644
index 3e7710d42..000000000
--- a/.changeset/thick-ravens-chew.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"astro": patch
----
-
-Replace `send` dependency with `sirv`
diff --git a/.changeset/yellow-trees-clean.md b/.changeset/yellow-trees-clean.md
deleted file mode 100644
index efd2c364b..000000000
--- a/.changeset/yellow-trees-clean.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Update server start message to use localhost for local hostnames
diff --git a/.changeset/young-rules-draw.md b/.changeset/young-rules-draw.md
deleted file mode 100644
index dad5cfc35..000000000
--- a/.changeset/young-rules-draw.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'astro': patch
----
-
-Fix - show 404 for bad static paths with console message, rather than a 500
diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json
index 57619ff2c..5dbc29a52 100644
--- a/examples/blog-multiple-authors/package.json
+++ b/examples/blog-multiple-authors/package.json
@@ -10,7 +10,7 @@
},
"devDependencies": {
"@astrojs/renderer-preact": "^0.5.0",
- "astro": "^0.24.0-next.2",
+ "astro": "^0.24.0",
"sass": "^1.49.9"
}
}
diff --git a/examples/blog/package.json b/examples/blog/package.json
index dd37a0d27..9b442d722 100644
--- a/examples/blog/package.json
+++ b/examples/blog/package.json
@@ -9,7 +9,7 @@
"preview": "astro preview"
},
"devDependencies": {
- "astro": "^0.24.0-next.2",
+ "astro": "^0.24.0",
"@astrojs/renderer-preact": "^0.5.0"
}
}
diff --git a/examples/component/demo/package.json b/examples/component/demo/package.json
index 53c3cb994..efa65c2c5 100644
--- a/examples/component/demo/package.json
+++ b/examples/component/demo/package.json
@@ -10,6 +10,6 @@
},
"devDependencies": {
"@example/my-component": "workspace:*",
- "astro": "^0.24.0-next.2"
+ "astro": "^0.24.0"
}
}
diff --git a/examples/component/package.json b/examples/component/package.json
index 70f86c2f4..10b4d7466 100644
--- a/examples/component/package.json
+++ b/examples/component/package.json
@@ -8,6 +8,6 @@
"serve": "astro --project-root demo preview"
},
"devDependencies": {
- "astro": "^0.24.0-next.2"
+ "astro": "^0.24.0"
}
}
diff --git a/examples/docs/package.json b/examples/docs/package.json
index 818e2618d..fe62069fd 100644
--- a/examples/docs/package.json
+++ b/examples/docs/package.json
@@ -19,6 +19,6 @@
"devDependencies": {
"@astrojs/renderer-preact": "^0.5.0",
"@astrojs/renderer-react": "^0.5.0",
- "astro": "^0.24.0-next.2"
+ "astro": "^0.24.0"
}
}
diff --git a/examples/env-vars/package.json b/examples/env-vars/package.json
index 7e2925a39..6661562e4 100644
--- a/examples/env-vars/package.json
+++ b/examples/env-vars/package.json
@@ -9,6 +9,6 @@
"preview": "astro preview"
},
"devDependencies": {
- "astro": "^0.24.0-next.2"
+ "astro": "^0.24.0"
}
}
diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json
index 01554b2e8..c83c4dddd 100644
--- a/examples/framework-alpine/package.json
+++ b/examples/framework-alpine/package.json
@@ -9,6 +9,6 @@
"preview": "astro preview"
},
"devDependencies": {
- "astro": "^0.24.0-next.2"
+ "astro": "^0.24.0"
}
}
diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json
index 01c98ecd9..f1ec89755 100644
--- a/examples/framework-lit/package.json
+++ b/examples/framework-lit/package.json
@@ -10,6 +10,6 @@
},
"devDependencies": {
"@astrojs/renderer-lit": "^0.4.0",
- "astro": "^0.24.0-next.2"
+ "astro": "^0.24.0"
}
}
diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json
index 1ef650bf7..258197f06 100644
--- a/examples/framework-multiple/package.json
+++ b/examples/framework-multiple/package.json
@@ -15,6 +15,6 @@
"@astrojs/renderer-solid": "^0.4.0",
"@astrojs/renderer-svelte": "^0.5.1",
"@astrojs/renderer-vue": "^0.4.0",
- "astro": "^0.24.0-next.2"
+ "astro": "^0.24.0"
}
}
diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json
index 64ddd2faf..dfce1f910 100644
--- a/examples/framework-preact/package.json
+++ b/examples/framework-preact/package.json
@@ -10,6 +10,6 @@
},
"devDependencies": {
"@astrojs/renderer-preact": "^0.5.0",
- "astro": "^0.24.0-next.2"
+ "astro": "^0.24.0"
}
}
diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json
index 2d50a527e..c48dc74eb 100644
--- a/examples/framework-react/package.json
+++ b/examples/framework-react/package.json
@@ -10,6 +10,6 @@
},
"devDependencies": {
"@astrojs/renderer-react": "^0.5.0",
- "astro": "^0.24.0-next.2"
+ "astro": "^0.24.0"
}
}
diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json
index d43fa9027..d662f1ecd 100644
--- a/examples/framework-solid/package.json
+++ b/examples/framework-solid/package.json
@@ -10,6 +10,6 @@
},
"devDependencies": {
"@astrojs/renderer-solid": "^0.4.0",
- "astro": "^0.24.0-next.2"
+ "astro": "^0.24.0"
}
}
diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json
index 805d09a16..a9cbffe08 100644
--- a/examples/framework-svelte/package.json
+++ b/examples/framework-svelte/package.json
@@ -10,6 +10,6 @@
},
"devDependencies": {
"@astrojs/renderer-svelte": "^0.5.1",
- "astro": "^0.24.0-next.2"
+ "astro": "^0.24.0"
}
}
diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json
index 98e7bcee9..332b4be59 100644
--- a/examples/framework-vue/package.json
+++ b/examples/framework-vue/package.json
@@ -10,6 +10,6 @@
},
"devDependencies": {
"@astrojs/renderer-vue": "^0.4.0",
- "astro": "^0.24.0-next.2"
+ "astro": "^0.24.0"
}
}
diff --git a/examples/minimal/package.json b/examples/minimal/package.json
index e379798dd..d6f53ff8f 100644
--- a/examples/minimal/package.json
+++ b/examples/minimal/package.json
@@ -9,6 +9,6 @@
"preview": "astro preview"
},
"devDependencies": {
- "astro": "^0.24.0-next.2"
+ "astro": "^0.24.0"
}
}
diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json
index 5dd0f64ba..d7a1651a6 100644
--- a/examples/non-html-pages/package.json
+++ b/examples/non-html-pages/package.json
@@ -9,6 +9,6 @@
"preview": "astro preview"
},
"devDependencies": {
- "astro": "^0.24.0-next.2"
+ "astro": "^0.24.0"
}
}
diff --git a/examples/portfolio-svelte/package.json b/examples/portfolio-svelte/package.json
index d0d13b3ef..130642daa 100644
--- a/examples/portfolio-svelte/package.json
+++ b/examples/portfolio-svelte/package.json
@@ -10,7 +10,7 @@
},
"devDependencies": {
"@astrojs/renderer-svelte": "^0.5.1",
- "astro": "^0.24.0-next.2",
+ "astro": "^0.24.0",
"sass": "^1.49.9"
}
}
diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json
index 4a991a49f..16bb86750 100644
--- a/examples/portfolio/package.json
+++ b/examples/portfolio/package.json
@@ -10,7 +10,7 @@
},
"devDependencies": {
"@astrojs/renderer-preact": "^0.5.0",
- "astro": "^0.24.0-next.2",
+ "astro": "^0.24.0",
"sass": "^1.49.9"
}
}
diff --git a/examples/ssr/package.json b/examples/ssr/package.json
index 772a52936..7d8921db0 100644
--- a/examples/ssr/package.json
+++ b/examples/ssr/package.json
@@ -12,7 +12,7 @@
},
"devDependencies": {
"@astrojs/renderer-svelte": "^0.5.1",
- "astro": "^0.24.0-next.2",
+ "astro": "^0.24.0",
"unocss": "^0.15.6",
"vite-imagetools": "^4.0.3"
}
diff --git a/examples/starter/package.json b/examples/starter/package.json
index 40e2023d6..a248940b2 100644
--- a/examples/starter/package.json
+++ b/examples/starter/package.json
@@ -9,6 +9,6 @@
"preview": "astro preview"
},
"devDependencies": {
- "astro": "^0.24.0-next.2"
+ "astro": "^0.24.0"
}
}
diff --git a/examples/subpath/package.json b/examples/subpath/package.json
index 3b95dba4e..fc209b93b 100644
--- a/examples/subpath/package.json
+++ b/examples/subpath/package.json
@@ -10,7 +10,7 @@
},
"devDependencies": {
"@astrojs/renderer-react": "^0.5.0",
- "astro": "^0.24.0-next.2",
+ "astro": "^0.24.0",
"sass": "^1.49.9"
}
}
diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json
index 56ffca6c7..3edcfe082 100644
--- a/examples/with-markdown-plugins/package.json
+++ b/examples/with-markdown-plugins/package.json
@@ -10,7 +10,7 @@
},
"devDependencies": {
"@astrojs/markdown-remark": "^0.6.4",
- "astro": "^0.24.0-next.2",
+ "astro": "^0.24.0",
"hast-util-select": "5.0.1",
"rehype-autolink-headings": "^6.1.1",
"rehype-slug": "^5.0.1",
diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json
index 8d5b2fa04..b7326bbe8 100644
--- a/examples/with-markdown-shiki/package.json
+++ b/examples/with-markdown-shiki/package.json
@@ -10,6 +10,6 @@
},
"devDependencies": {
"@astrojs/markdown-remark": "^0.6.4",
- "astro": "^0.24.0-next.2"
+ "astro": "^0.24.0"
}
}
diff --git a/examples/with-markdown/package.json b/examples/with-markdown/package.json
index 2ca1aa4bf..741d59c5e 100644
--- a/examples/with-markdown/package.json
+++ b/examples/with-markdown/package.json
@@ -14,6 +14,6 @@
"@astrojs/renderer-react": "^0.5.0",
"@astrojs/renderer-svelte": "^0.5.1",
"@astrojs/renderer-vue": "^0.4.0",
- "astro": "^0.24.0-next.2"
+ "astro": "^0.24.0"
}
}
diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json
index b84077b74..b9d5bdda1 100644
--- a/examples/with-nanostores/package.json
+++ b/examples/with-nanostores/package.json
@@ -25,6 +25,6 @@
"@astrojs/renderer-solid": "^0.4.0",
"@astrojs/renderer-svelte": "^0.5.1",
"@astrojs/renderer-vue": "^0.4.0",
- "astro": "^0.24.0-next.2"
+ "astro": "^0.24.0"
}
}
diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json
index a7fd0ca40..a0a2a7eeb 100644
--- a/examples/with-tailwindcss/package.json
+++ b/examples/with-tailwindcss/package.json
@@ -10,7 +10,7 @@
},
"devDependencies": {
"@astrojs/renderer-preact": "^0.5.0",
- "astro": "^0.24.0-next.2",
+ "astro": "^0.24.0",
"autoprefixer": "^10.4.2",
"postcss": "^8.4.8",
"tailwindcss": "^3.0.23"
diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json
index b699c3478..bf8dd9b66 100644
--- a/examples/with-vite-plugin-pwa/package.json
+++ b/examples/with-vite-plugin-pwa/package.json
@@ -9,7 +9,7 @@
"preview": "astro preview"
},
"devDependencies": {
- "astro": "^0.24.0-next.2",
+ "astro": "^0.24.0",
"vite-plugin-pwa": "0.11.11",
"workbox-window": "^6.5.1"
}
diff --git a/packages/astro-parser/CHANGELOG.md b/packages/astro-parser/CHANGELOG.md
index c59c8b69d..971f1be76 100644
--- a/packages/astro-parser/CHANGELOG.md
+++ b/packages/astro-parser/CHANGELOG.md
@@ -1,5 +1,7 @@
# @astrojs/parser
+## 0.22.2
+
## 0.22.1
## 0.22.0
diff --git a/packages/astro-parser/package.json b/packages/astro-parser/package.json
index 92ec2f4f8..b26eaf846 100644
--- a/packages/astro-parser/package.json
+++ b/packages/astro-parser/package.json
@@ -1,6 +1,6 @@
{
"name": "@astrojs/parser",
- "version": "0.22.1",
+ "version": "0.22.2",
"type": "commonjs",
"author": "withastro",
"license": "MIT",
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md
index 0df51bc5a..2b557bee3 100644
--- a/packages/astro/CHANGELOG.md
+++ b/packages/astro/CHANGELOG.md
@@ -1,5 +1,86 @@
# astro
+## 0.24.0
+
+### Minor Changes
+
+- [#2760](https://github.com/withastro/astro/pull/2760) [`77b9c953`](https://github.com/withastro/astro/commit/77b9c95352f441021b8a0b03f891ea6ad00117ce) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Introduce a new --host flag + host devOption to expose your server on a network IP
+
+* [`af075d81`](https://github.com/withastro/astro/commit/af075d81579d0a77f773435bbce391e42f9dff21) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Visual redesign of the `astro dev` CLI, including new `astro --help` and `astro --version` outputs.
+
+ These changes introduce a new startup screen, make it more obvious when a file triggers in-place HMR (`update`) or a full reload (`reload`), and improve the way Astro surfaces errors during dev.
+
+- [#2705](https://github.com/withastro/astro/pull/2705) [`72c2c86e`](https://github.com/withastro/astro/commit/72c2c86e9d7c9b2ce6be13ddb273d4b0b11a5723) Thanks [@natemoo-re](https://github.com/natemoo-re)! - New default build strategy
+
+ This change marks the "static build" as the new default build strategy. If you are unfamiliar with this build strategy check out the [migration guide](https://docs.astro.build/en/migrate/#planned-deprecations) on how to change your code to be compatible with this new bulid strategy.
+
+ If you'd like to keep using the old build strategy, use the flag `--legacy-build` both in your `astro dev` and `astro build` scripts, for ex:
+
+ ```json
+ {
+ "scripts": {
+ "build": "astro build --legacy-build"
+ }
+ }
+ ```
+
+ Note that the legacy build _is_ deprecated and will be removed in a future version. You should only use this flag until you have the time to migration your code.
+
+* [#2705](https://github.com/withastro/astro/pull/2705) [`72c2c86e`](https://github.com/withastro/astro/commit/72c2c86e9d7c9b2ce6be13ddb273d4b0b11a5723) Thanks [@natemoo-re](https://github.com/natemoo-re)! - ## Updated `<head>` and `<body>` behavior
+
+ Since `astro@0.21`, Astro placed certain restrictions on what files could use `<head>` or `<body>` tags. In `astro@0.24`, the restrictions have been lifted. Astro will be able to correctly handle `<head>` and `<body>` tags in _any_ component, not just those in `src/pages/` or `src/layouts/`.
+
+- [#2747](https://github.com/withastro/astro/pull/2747) [`05b66bd6`](https://github.com/withastro/astro/commit/05b66bd68b173d30921c9f0565b3dc2379039fcd) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Escape HTML inside of expressions by default. Please see [our migration guide](https://docs.astro.build/en/migrate/#deprecated-unescaped-html) for more details.
+
+### Patch Changes
+
+- [#2695](https://github.com/withastro/astro/pull/2695) [`ae8d9256`](https://github.com/withastro/astro/commit/ae8d925666dac0008d8a607afa5f6223f95689a4) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Update `Astro.slots` API with new public `has` and `render` methods.
+
+ This is a backwards-compatible change—`Astro.slots.default` will still be `true` if the component has been passed a `default` slot.
+
+ ```ts
+ if (Astro.slots.has('default')) {
+ const content = await Astro.slots.render('default');
+ }
+ ```
+
+* [#2755](https://github.com/withastro/astro/pull/2755) [`10843aba`](https://github.com/withastro/astro/commit/10843aba634c9cae663d8181b9d90d3213cb9142) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Add user-configurable `sitemapFilter` option.
+
+ This option can be used to ensure certain pages are excluded from your final sitemap.
+
+ ```ts
+ // astro.config.ts
+ import type { AstroUserConfig } from 'astro'
+
+ const config: AstroUserConfig = {
+ sitemap: true,
+ sitemapFilter: (page: string) => !page.includes('secret-page')
+ }
+ export default config
+ ```
+
+- [#2767](https://github.com/withastro/astro/pull/2767) [`2bb2c2f7`](https://github.com/withastro/astro/commit/2bb2c2f7d153863319652dbc93396bedd1a16756) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Update `@astrojs/compiler` to `0.12.0`
+
+* [#2705](https://github.com/withastro/astro/pull/2705) [`72c2c86e`](https://github.com/withastro/astro/commit/72c2c86e9d7c9b2ce6be13ddb273d4b0b11a5723) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Fixes the static build to write to 404.html
+
+- [#2705](https://github.com/withastro/astro/pull/2705) [`72c2c86e`](https://github.com/withastro/astro/commit/72c2c86e9d7c9b2ce6be13ddb273d4b0b11a5723) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Fixes use of private .env variables with the static build
+
+* [#2750](https://github.com/withastro/astro/pull/2750) [`79fc3204`](https://github.com/withastro/astro/commit/79fc320480b2a638ef707079a624519bd54f1550) Thanks [@FredKSchott](https://github.com/FredKSchott)! - update esbuild@0.14.25
+
+- [#2737](https://github.com/withastro/astro/pull/2737) [`e8d4e568`](https://github.com/withastro/astro/commit/e8d4e56803d21cd187bd7d72899ba5d545522786) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Astro's logger has been redesigned for an improved experience! In addition to deduping identical messages, we've surfaced more error details and exposed new events like `update` (for in-place HMR) and `reload` (for full-reload HMR).
+
+* [#2733](https://github.com/withastro/astro/pull/2733) [`6bf124fb`](https://github.com/withastro/astro/commit/6bf124fb2f8ffd3909148ccc0e253c1f72f364cb) Thanks [@FredKSchott](https://github.com/FredKSchott)! - Remove a bad dev warning
+
+- [#2768](https://github.com/withastro/astro/pull/2768) [`49c0d997`](https://github.com/withastro/astro/commit/49c0d9970fe362af06c6ac70c25c1b6b0c4dd393) Thanks [@matthewp](https://github.com/matthewp)! - Fixes loading astro/client/\* on Windows in dev
+
+* [#2758](https://github.com/withastro/astro/pull/2758) [`499fb6a3`](https://github.com/withastro/astro/commit/499fb6a3356967123a7cb9b28f94d9a3bf1dff91) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Add CLI warnings when running a prerelease or outdated version of Astro
+
+- [#2705](https://github.com/withastro/astro/pull/2705) [`72c2c86e`](https://github.com/withastro/astro/commit/72c2c86e9d7c9b2ce6be13ddb273d4b0b11a5723) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Replace `send` dependency with `sirv`
+
+* [#2732](https://github.com/withastro/astro/pull/2732) [`0ae96bb7`](https://github.com/withastro/astro/commit/0ae96bb7491a60eb2032bab23377ca54951a67a7) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Update server start message to use localhost for local hostnames
+
+- [#2743](https://github.com/withastro/astro/pull/2743) [`a14075e2`](https://github.com/withastro/astro/commit/a14075e2a4d8897e24e2928318e653b63637ebe3) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Fix - show 404 for bad static paths with console message, rather than a 500
+
## 0.24.0-next.2
### Patch Changes
@@ -43,7 +124,7 @@
```ts
if (Astro.slots.has('default')) {
- const content = await Astro.slots.render('default');
+ const content = await Astro.slots.render('default');
}
```
@@ -67,9 +148,9 @@
```json
{
- "scripts": {
- "build": "astro build --legacy-build"
- }
+ "scripts": {
+ "build": "astro build --legacy-build"
+ }
}
```
@@ -181,12 +262,12 @@
```typescript
// src/pages/company.json.ts
export async function get() {
- return {
- body: JSON.stringify({
- name: 'Astro Technology Company',
- url: 'https://astro.build/',
- }),
- };
+ return {
+ body: JSON.stringify({
+ name: 'Astro Technology Company',
+ url: 'https://astro.build/',
+ }),
+ };
}
```
@@ -348,12 +429,12 @@
```typescript
// src/pages/company.json.ts
export async function get() {
- return {
- body: JSON.stringify({
- name: 'Astro Technology Company',
- url: 'https://astro.build/',
- }),
- };
+ return {
+ body: JSON.stringify({
+ name: 'Astro Technology Company',
+ url: 'https://astro.build/',
+ }),
+ };
}
```
@@ -1708,10 +1789,10 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve
```js
export default {
- markdownOptions: {
- remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]],
- rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]],
- },
+ markdownOptions: {
+ remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]],
+ rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]],
+ },
};
```
@@ -1731,10 +1812,10 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve
```js
export default {
- name: '@matthewp/my-renderer',
- server: './server.js',
- client: './client.js',
- hydrationPolyfills: ['./my-polyfill.js'],
+ name: '@matthewp/my-renderer',
+ server: './server.js',
+ client: './client.js',
+ hydrationPolyfills: ['./my-polyfill.js'],
};
```
diff --git a/packages/astro/package.json b/packages/astro/package.json
index 844b32a89..bfbe0c215 100644
--- a/packages/astro/package.json
+++ b/packages/astro/package.json
@@ -1,6 +1,6 @@
{
"name": "astro",
- "version": "0.24.0-next.2",
+ "version": "0.24.0",
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
"type": "module",
"author": "withastro",
@@ -111,7 +111,7 @@
"zod": "^3.13.4"
},
"devDependencies": {
- "@astrojs/parser": "^0.22.1",
+ "@astrojs/parser": "^0.22.2",
"@babel/types": "^7.17.0",
"@types/babel__core": "^7.1.18",
"@types/babel__traverse": "^7.14.2",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 31a8d1cb6..c76385280 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -44,7 +44,7 @@ importers:
examples/blog:
specifiers:
'@astrojs/renderer-preact': ^0.5.0
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
devDependencies:
'@astrojs/renderer-preact': link:../../packages/renderers/renderer-preact
astro: link:../../packages/astro
@@ -52,7 +52,7 @@ importers:
examples/blog-multiple-authors:
specifiers:
'@astrojs/renderer-preact': ^0.5.0
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
sass: ^1.49.9
devDependencies:
'@astrojs/renderer-preact': link:../../packages/renderers/renderer-preact
@@ -61,14 +61,14 @@ importers:
examples/component:
specifiers:
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
devDependencies:
astro: link:../../packages/astro
examples/component/demo:
specifiers:
'@example/my-component': workspace:*
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
devDependencies:
'@example/my-component': link:../packages/my-component
astro: link:../../../packages/astro
@@ -84,7 +84,7 @@ importers:
'@docsearch/css': ^3.0.0
'@docsearch/react': ^3.0.0
'@types/react': ^17.0.40
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
react: ^17.0.2
react-dom: ^17.0.2
dependencies:
@@ -101,20 +101,20 @@ importers:
examples/env-vars:
specifiers:
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
devDependencies:
astro: link:../../packages/astro
examples/framework-alpine:
specifiers:
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
devDependencies:
astro: link:../../packages/astro
examples/framework-lit:
specifiers:
'@astrojs/renderer-lit': ^0.4.0
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
devDependencies:
'@astrojs/renderer-lit': link:../../packages/renderers/renderer-lit
astro: link:../../packages/astro
@@ -127,7 +127,7 @@ importers:
'@astrojs/renderer-solid': ^0.4.0
'@astrojs/renderer-svelte': ^0.5.1
'@astrojs/renderer-vue': ^0.4.0
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
devDependencies:
'@astrojs/renderer-lit': link:../../packages/renderers/renderer-lit
'@astrojs/renderer-preact': link:../../packages/renderers/renderer-preact
@@ -140,7 +140,7 @@ importers:
examples/framework-preact:
specifiers:
'@astrojs/renderer-preact': ^0.5.0
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
devDependencies:
'@astrojs/renderer-preact': link:../../packages/renderers/renderer-preact
astro: link:../../packages/astro
@@ -148,7 +148,7 @@ importers:
examples/framework-react:
specifiers:
'@astrojs/renderer-react': ^0.5.0
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
devDependencies:
'@astrojs/renderer-react': link:../../packages/renderers/renderer-react
astro: link:../../packages/astro
@@ -156,7 +156,7 @@ importers:
examples/framework-solid:
specifiers:
'@astrojs/renderer-solid': ^0.4.0
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
devDependencies:
'@astrojs/renderer-solid': link:../../packages/renderers/renderer-solid
astro: link:../../packages/astro
@@ -164,7 +164,7 @@ importers:
examples/framework-svelte:
specifiers:
'@astrojs/renderer-svelte': ^0.5.1
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
devDependencies:
'@astrojs/renderer-svelte': link:../../packages/renderers/renderer-svelte
astro: link:../../packages/astro
@@ -172,27 +172,27 @@ importers:
examples/framework-vue:
specifiers:
'@astrojs/renderer-vue': ^0.4.0
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
devDependencies:
'@astrojs/renderer-vue': link:../../packages/renderers/renderer-vue
astro: link:../../packages/astro
examples/minimal:
specifiers:
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
devDependencies:
astro: link:../../packages/astro
examples/non-html-pages:
specifiers:
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
devDependencies:
astro: link:../../packages/astro
examples/portfolio:
specifiers:
'@astrojs/renderer-preact': ^0.5.0
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
sass: ^1.49.9
devDependencies:
'@astrojs/renderer-preact': link:../../packages/renderers/renderer-preact
@@ -202,7 +202,7 @@ importers:
examples/portfolio-svelte:
specifiers:
'@astrojs/renderer-svelte': ^0.5.1
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
sass: ^1.49.9
devDependencies:
'@astrojs/renderer-svelte': link:../../packages/renderers/renderer-svelte
@@ -212,7 +212,7 @@ importers:
examples/ssr:
specifiers:
'@astrojs/renderer-svelte': ^0.5.1
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
unocss: ^0.15.6
vite-imagetools: ^4.0.3
devDependencies:
@@ -223,14 +223,14 @@ importers:
examples/starter:
specifiers:
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
devDependencies:
astro: link:../../packages/astro
examples/subpath:
specifiers:
'@astrojs/renderer-react': ^0.5.0
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
sass: ^1.49.9
devDependencies:
'@astrojs/renderer-react': link:../../packages/renderers/renderer-react
@@ -244,7 +244,7 @@ importers:
'@astrojs/renderer-react': ^0.5.0
'@astrojs/renderer-svelte': ^0.5.1
'@astrojs/renderer-vue': ^0.4.0
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
devDependencies:
'@astrojs/markdown-remark': link:../../packages/markdown/remark
'@astrojs/renderer-preact': link:../../packages/renderers/renderer-preact
@@ -256,7 +256,7 @@ importers:
examples/with-markdown-plugins:
specifiers:
'@astrojs/markdown-remark': ^0.6.4
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
hast-util-select: 5.0.1
rehype-autolink-headings: ^6.1.1
rehype-slug: ^5.0.1
@@ -274,7 +274,7 @@ importers:
examples/with-markdown-shiki:
specifiers:
'@astrojs/markdown-remark': ^0.6.4
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
devDependencies:
'@astrojs/markdown-remark': link:../../packages/markdown/remark
astro: link:../../packages/astro
@@ -289,7 +289,7 @@ importers:
'@nanostores/preact': ^0.1.3
'@nanostores/react': ^0.1.5
'@nanostores/vue': ^0.4.1
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
nanostores: ^0.5.11
preact: ^10.6.6
react: ^17.0.2
@@ -317,7 +317,7 @@ importers:
examples/with-tailwindcss:
specifiers:
'@astrojs/renderer-preact': ^0.5.0
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
autoprefixer: ^10.4.2
postcss: ^8.4.8
tailwindcss: ^3.0.23
@@ -330,7 +330,7 @@ importers:
examples/with-vite-plugin-pwa:
specifiers:
- astro: ^0.24.0-next.2
+ astro: ^0.24.0
vite-plugin-pwa: 0.11.11
workbox-window: ^6.5.1
devDependencies:
@@ -343,7 +343,7 @@ importers:
'@astrojs/compiler': ^0.12.0
'@astrojs/language-server': ^0.8.10
'@astrojs/markdown-remark': ^0.6.4
- '@astrojs/parser': ^0.22.1
+ '@astrojs/parser': ^0.22.2
'@astrojs/prism': 0.4.0
'@astrojs/renderer-preact': ^0.5.0
'@astrojs/renderer-react': 0.5.0