Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] release (beta) #5856

Merged
merged 1 commit into from
Jan 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,19 @@
},
"changesets": [
"angry-pots-boil",
"angry-spoons-flow",
"beige-beds-smile",
"beige-pumpkins-pump",
"calm-emus-raise",
"calm-peas-doubt",
"chatty-planes-bathe",
"chatty-rivers-camp",
"chilled-geese-worry",
"curvy-beds-warn",
"curvy-foxes-reply",
"dull-rabbits-relax",
"eleven-bulldogs-provide",
"few-rice-report",
"fluffy-mirrors-swim",
"fluffy-onions-wink",
"giant-chefs-rule",
Expand All @@ -81,9 +85,14 @@
"lemon-eagles-worry",
"lovely-terms-drive",
"lovely-worms-invite",
"mean-suits-cover",
"modern-bulldogs-film",
"neat-eagles-trade",
"new-lies-guess",
"ninety-garlics-fly",
"odd-mirrors-beam",
"poor-chicken-film",
"poor-ladybugs-thank",
"pretty-planes-promise",
"quick-impalas-rush",
"quiet-actors-agree",
Expand All @@ -96,6 +105,8 @@
"shaggy-melons-tap",
"six-carpets-talk",
"smart-clouds-applaud",
"smooth-guests-perform",
"spicy-parrots-beam",
"spicy-tips-dream",
"spotty-bees-switch",
"stupid-wolves-explain",
Expand All @@ -105,7 +116,12 @@
"thin-beers-drive",
"thin-seahorses-worry",
"tricky-rabbits-count",
"twelve-cooks-tickle",
"twenty-boxes-know",
"twenty-llamas-type",
"two-geese-eat",
"two-needles-buy"
"two-needles-buy",
"wicked-clouds-obey",
"witty-pugs-drum"
]
}
2 changes: 1 addition & 1 deletion examples/basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2"
"astro": "^2.0.0-beta.3"
}
}
4 changes: 2 additions & 2 deletions examples/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2",
"@astrojs/mdx": "^1.0.0-beta.2",
"astro": "^2.0.0-beta.3",
"@astrojs/mdx": "^0.15.0-beta.0",
"@astrojs/rss": "^2.0.0",
"@astrojs/sitemap": "^1.0.0"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^2.0.0-beta.2"
"astro": "^2.0.0-beta.3"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/deno/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2"
"astro": "^2.0.0-beta.3"
},
"devDependencies": {
"@astrojs/deno": "^4.0.0-beta.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2",
"astro": "^2.0.0-beta.3",
"preact": "^10.7.3",
"react": "^18.1.0",
"react-dom": "^18.1.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-alpine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2",
"astro": "^2.0.0-beta.3",
"alpinejs": "^3.10.2",
"@astrojs/alpinejs": "^0.1.2",
"@types/alpinejs": "^3.7.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-lit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2",
"astro": "^2.0.0-beta.3",
"lit": "^2.2.5",
"@astrojs/lit": "^1.0.2-beta.0",
"@webcomponents/template-shadowroot": "^0.1.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/framework-multiple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2",
"astro": "^2.0.0-beta.3",
"preact": "^10.7.3",
"react": "^18.1.0",
"react-dom": "^18.1.0",
Expand All @@ -21,7 +21,7 @@
"@astrojs/preact": "^2.0.0-beta.0",
"@astrojs/react": "^2.0.0-beta.0",
"@astrojs/solid-js": "^2.0.0-beta.0",
"@astrojs/svelte": "^2.0.0-beta.1",
"@astrojs/svelte": "^2.0.0-beta.2",
"@astrojs/vue": "^2.0.0-beta.1"
}
}
2 changes: 1 addition & 1 deletion examples/framework-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2",
"astro": "^2.0.0-beta.3",
"preact": "^10.7.3",
"@astrojs/preact": "^2.0.0-beta.0",
"@preact/signals": "^1.1.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2",
"astro": "^2.0.0-beta.3",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"@astrojs/react": "^2.0.0-beta.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2",
"astro": "^2.0.0-beta.3",
"solid-js": "^1.4.3",
"@astrojs/solid-js": "^2.0.0-beta.0"
}
Expand Down
4 changes: 2 additions & 2 deletions examples/framework-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"svelte": "^3.48.0",
"@astrojs/svelte": "^2.0.0-beta.1",
"astro": "^2.0.0-beta.2"
"@astrojs/svelte": "^2.0.0-beta.2",
"astro": "^2.0.0-beta.3"
}
}
2 changes: 1 addition & 1 deletion examples/framework-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2",
"astro": "^2.0.0-beta.3",
"vue": "^3.2.37",
"@astrojs/vue": "^2.0.0-beta.1"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/hackernews/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
},
"dependencies": {
"@astrojs/node": "^5.0.0-beta.1",
"astro": "^2.0.0-beta.2"
"astro": "^2.0.0-beta.3"
}
}
2 changes: 1 addition & 1 deletion examples/integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^2.0.0-beta.2"
"astro": "^2.0.0-beta.3"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2"
"astro": "^2.0.0-beta.3"
}
}
2 changes: 1 addition & 1 deletion examples/non-html-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2"
"astro": "^2.0.0-beta.3"
}
}
2 changes: 1 addition & 1 deletion examples/portfolio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2"
"astro": "^2.0.0-beta.3"
}
}
4 changes: 2 additions & 2 deletions examples/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"server": "node dist/server/entry.mjs"
},
"dependencies": {
"astro": "^2.0.0-beta.2",
"astro": "^2.0.0-beta.3",
"svelte": "^3.48.0",
"@astrojs/svelte": "^2.0.0-beta.1",
"@astrojs/svelte": "^2.0.0-beta.2",
"@astrojs/node": "^5.0.0-beta.1",
"concurrently": "^7.2.1",
"unocss": "^0.15.6",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-markdown-plugins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2",
"astro": "^2.0.0-beta.3",
"@astrojs/markdown-remark": "^2.0.0-beta.2",
"hast-util-select": "5.0.1",
"rehype-autolink-headings": "^6.1.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-markdown-shiki/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2"
"astro": "^2.0.0-beta.3"
}
}
4 changes: 2 additions & 2 deletions examples/with-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2",
"astro": "^2.0.0-beta.3",
"preact": "^10.6.5",
"@astrojs/preact": "^2.0.0-beta.0",
"@astrojs/mdx": "^1.0.0-beta.2"
"@astrojs/mdx": "^0.15.0-beta.0"
}
}
2 changes: 1 addition & 1 deletion examples/with-nanostores/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2",
"astro": "^2.0.0-beta.3",
"preact": "^10.7.3",
"@astrojs/preact": "^2.0.0-beta.0",
"nanostores": "^0.5.12",
Expand Down
4 changes: 2 additions & 2 deletions examples/with-tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^1.0.0-beta.2",
"@astrojs/mdx": "^0.15.0-beta.0",
"@astrojs/tailwind": "^3.0.0-beta.1",
"@types/canvas-confetti": "^1.4.3",
"astro": "^2.0.0-beta.2",
"astro": "^2.0.0-beta.3",
"autoprefixer": "^10.4.7",
"canvas-confetti": "^1.5.1",
"postcss": "^8.4.14",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-vite-plugin-pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.2",
"astro": "^2.0.0-beta.3",
"vite-plugin-pwa": "0.11.11",
"workbox-window": "^6.5.3"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/with-vitest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
"astro": "^2.0.0-beta.2",
"astro": "^2.0.0-beta.3",
"vitest": "^0.20.3"
}
}
64 changes: 64 additions & 0 deletions packages/astro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,69 @@
# astro

## 2.0.0-beta.3

### Major Changes

- [#5891](https://github.com/withastro/astro/pull/5891) [`05caf445d`](https://github.com/withastro/astro/commit/05caf445d4d2728f1010aeb2179a9e756c2fd17d) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Remove deprecated Markdown APIs from Astro v0.X. This includes `getHeaders()`, the `.astro` property for layouts, and the `rawContent()` and `compiledContent()` error messages for MDX.

- [#5893](https://github.com/withastro/astro/pull/5893) [`be901dc98`](https://github.com/withastro/astro/commit/be901dc98c4a7f6b5536540aa8f7ba5108e939a0) Thanks [@matthewp](https://github.com/matthewp)! - Move getEntry to getEntryBySlug

This change moves `getEntry` to `getEntryBySlug` and accepts a slug rather than an id.

In order to improve support in `[id].astro` routes, particularly in SSR where you do not know what the id of a collection is. Using `getEntryBySlug` instead allows you to map the `[id]` param in your route to the entry. You can use it like this:

```astro
---
import { getEntryBySlug } from 'astro:content';

const entry = await getEntryBySlug('docs', Astro.params.id);

if (!entry) {
return new Response(null, {
status: 404,
});
}
---

<!-- You have an entry! Use it! -->
```

- [#5608](https://github.com/withastro/astro/pull/5608) [`899214298`](https://github.com/withastro/astro/commit/899214298cee5f0c975c7245e623c649e1842d73) Thanks [@konojunya](https://github.com/konojunya)! - A trailing slash will not be automatically appended to `import.meta.env.SITE`. Instead, it will be the value of the `site` config as is. This may affect usages of `${import.meta.env.SITE}image.png`, which will need to be updated accordingly.

- [#5862](https://github.com/withastro/astro/pull/5862) [`1ca81c16b`](https://github.com/withastro/astro/commit/1ca81c16b8b66236e092e6eb6ec3f73f5668421c) Thanks [@bluwy](https://github.com/bluwy)! - Remove unused exports

### Minor Changes

- [#5901](https://github.com/withastro/astro/pull/5901) [`a342a486c`](https://github.com/withastro/astro/commit/a342a486c2831461e24e6c2f1ca8a9d3e15477b6) Thanks [@bluwy](https://github.com/bluwy)! - The fallback Svelte preprocessor will only be applied if a custom `preprocess` option is not passed to the `svelte()` integration option, or in the `svelte.config.js` file.

To support IDE autocompletion, or if you're migrating from `@astrojs/svelte` v1, you can create a `svelte.config.js` file with:

```js
import { vitePreprocess } from '@astrojs/svelte';

export default {
preprocess: vitePreprocess(),
};
```

This file will also be generated by `astro add svelte` by default.

### Patch Changes

- [#5855](https://github.com/withastro/astro/pull/5855) [`16dc36a87`](https://github.com/withastro/astro/commit/16dc36a870df47a4151a8ed2d91d0bd1bb812458) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Remove legacy compiler error handling

- [#5884](https://github.com/withastro/astro/pull/5884) [`ce5c5dbd4`](https://github.com/withastro/astro/commit/ce5c5dbd46afbe738b03600758bf5c35113de522) Thanks [@MoustaphaDev](https://github.com/MoustaphaDev)! - Add a theme toggle button to the error overlay

- [#5845](https://github.com/withastro/astro/pull/5845) [`e818cc046`](https://github.com/withastro/astro/commit/e818cc0466a942919ea3c41585e231c8c80cb3d0) Thanks [@bluwy](https://github.com/bluwy)! - Fix importing client-side components with alias

- [#5849](https://github.com/withastro/astro/pull/5849) [`8c100a6fe`](https://github.com/withastro/astro/commit/8c100a6fe6cc652c3799d1622e12c2c969f30510) Thanks [@bluwy](https://github.com/bluwy)! - Handle server restart from Vite plugins

- [#5896](https://github.com/withastro/astro/pull/5896) [`64b8082e7`](https://github.com/withastro/astro/commit/64b8082e776b832f1433ed288e6f7888adb626d0) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Update `@astrojs/compiler` to `v1.0.0`

- [#5852](https://github.com/withastro/astro/pull/5852) [`3a00ecb3e`](https://github.com/withastro/astro/commit/3a00ecb3eb4bc44be758c064f2bde6e247e8a593) Thanks [@rishi-raj-jain](https://github.com/rishi-raj-jain)! - Respect `vite.envPrefix` if provided

- [#5872](https://github.com/withastro/astro/pull/5872) [`b66d7195c`](https://github.com/withastro/astro/commit/b66d7195c17a55ea0931bc3744888bd4f5f01ce6) Thanks [@bluwy](https://github.com/bluwy)! - Enable `skipLibCheck` by default

## 2.0.0-beta.2

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "astro",
"version": "2.0.0-beta.2",
"version": "2.0.0-beta.3",
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
"type": "module",
"author": "withastro",
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"tiny-glob": "^0.2.9"
},
"peerDependencies": {
"astro": "workspace:^2.0.0-beta.2"
"astro": "workspace:^2.0.0-beta.3"
},
"devDependencies": {
"astro": "workspace:*",
Expand Down
Loading