Skip to content

Commit

Permalink
[ci] release (beta) (#5911)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and matthewp committed Jan 26, 2023
1 parent 3ef84b4 commit 25bfd4a
Show file tree
Hide file tree
Showing 52 changed files with 220 additions and 87 deletions.
12 changes: 12 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"angry-spoons-flow",
"beige-beds-smile",
"beige-pumpkins-pump",
"beige-waves-wave",
"calm-emus-raise",
"calm-peas-doubt",
"chatty-planes-bathe",
Expand All @@ -82,10 +83,16 @@
"gold-baboons-tie",
"grumpy-days-yell",
"kind-beers-give",
"kind-panthers-doubt",
"kind-seahorses-reply",
"large-hotels-give",
"large-steaks-film",
"lemon-bobcats-kick",
"lemon-eagles-worry",
"lovely-terms-drive",
"lovely-worms-invite",
"lucky-ants-push",
"lucky-tigers-know",
"mean-suits-cover",
"modern-bulldogs-film",
"neat-eagles-trade",
Expand All @@ -98,13 +105,16 @@
"quick-impalas-rush",
"quiet-actors-agree",
"real-nails-clean",
"real-rules-occur",
"red-snakes-fetch",
"rotten-cups-happen",
"selfish-tigers-do",
"serious-cats-jog",
"shaggy-bags-attend",
"shaggy-keys-turn",
"shaggy-melons-tap",
"six-carpets-talk",
"six-dingos-add",
"smart-clouds-applaud",
"smooth-guests-perform",
"spicy-parrots-beam",
Expand All @@ -113,9 +123,11 @@
"stupid-wolves-explain",
"sweet-rocks-count",
"swift-kangaroos-decide",
"ten-paws-obey",
"thick-walls-smell",
"thin-beers-drive",
"thin-seahorses-worry",
"three-comics-share",
"tricky-rabbits-count",
"twelve-cooks-tickle",
"twenty-boxes-know",
Expand Down
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.3"
"astro": "^2.0.0-beta.4"
}
}
2 changes: 1 addition & 1 deletion examples/blog/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.3",
"astro": "^2.0.0-beta.4",
"@astrojs/mdx": "^0.15.0-beta.0",
"@astrojs/rss": "^2.1.0-beta.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.3"
"astro": "^2.0.0-beta.4"
},
"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.3"
"astro": "^2.0.0-beta.4"
},
"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.3",
"astro": "^2.0.0-beta.4",
"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.3",
"astro": "^2.0.0-beta.4",
"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.3",
"astro": "^2.0.0-beta.4",
"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.3",
"astro": "^2.0.0-beta.4",
"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.2",
"@astrojs/svelte": "^2.0.0-beta.3",
"@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.3",
"astro": "^2.0.0-beta.4",
"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.3",
"astro": "^2.0.0-beta.4",
"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.3",
"astro": "^2.0.0-beta.4",
"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.2",
"astro": "^2.0.0-beta.3"
"@astrojs/svelte": "^2.0.0-beta.3",
"astro": "^2.0.0-beta.4"
}
}
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.3",
"astro": "^2.0.0-beta.4",
"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.3"
"astro": "^2.0.0-beta.4"
}
}
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.3"
"astro": "^2.0.0-beta.4"
},
"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.3"
"astro": "^2.0.0-beta.4"
}
}
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.3"
"astro": "^2.0.0-beta.4"
}
}
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.3"
"astro": "^2.0.0-beta.4"
}
}
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.3",
"astro": "^2.0.0-beta.4",
"svelte": "^3.48.0",
"@astrojs/svelte": "^2.0.0-beta.2",
"@astrojs/svelte": "^2.0.0-beta.3",
"@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.3",
"astro": "^2.0.0-beta.4",
"@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.3"
"astro": "^2.0.0-beta.4"
}
}
2 changes: 1 addition & 1 deletion examples/with-mdx/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.3",
"astro": "^2.0.0-beta.4",
"preact": "^10.6.5",
"@astrojs/preact": "^2.0.0-beta.0",
"@astrojs/mdx": "^0.15.0-beta.0"
Expand Down
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.3",
"astro": "^2.0.0-beta.4",
"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 @@ -12,9 +12,9 @@
},
"dependencies": {
"@astrojs/mdx": "^0.15.0-beta.0",
"@astrojs/tailwind": "^3.0.0-beta.1",
"@astrojs/tailwind": "^3.0.0-beta.2",
"@types/canvas-confetti": "^1.4.3",
"astro": "^2.0.0-beta.3",
"astro": "^2.0.0-beta.4",
"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.3",
"astro": "^2.0.0-beta.4",
"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.3",
"astro": "^2.0.0-beta.4",
"vitest": "^0.20.3"
}
}
57 changes: 57 additions & 0 deletions packages/astro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,62 @@
# astro

## 2.0.0-beta.4

### Major Changes

- [#5941](https://github.com/withastro/astro/pull/5941) [`304823811`](https://github.com/withastro/astro/commit/304823811eddd8e72aa1d8e2d39b40ab5cda3565) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Content collections: Introduce a new `slug` frontmatter field for overriding the generated slug. This replaces the previous `slug()` collection config option from Astro 1.X and the 2.0 beta.

When present in a Markdown or MDX file, this will override the generated slug for that entry.

```diff
# src/content/blog/post-1.md
---
title: Post 1
+ slug: post-1-custom-slug
---
```

Astro will respect this slug in the generated `slug` type and when using the `getEntryBySlug()` utility:

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

// Retrieve `src/content/blog/post-1.md` by slug with type safety
const post = await getEntryBySlug('blog', 'post-1-custom-slug');
---
```

#### Migration

If you relied on the `slug()` config option, you will need to move all custom slugs to `slug` frontmatter properties in each collection entry.

Additionally, Astro no longer allows `slug` as a collection schema property. This ensures Astro can manage the `slug` property for type generation and performance. Remove this property from your schema and any relevant `slug()` configuration:

```diff
const blog = defineCollection({
schema: z.object({
- slug: z.string().optional(),
}),
- slug({ defaultSlug, data }) {
- return data.slug ?? defaultSlug;
- },
})
```

### Patch Changes

- [#5499](https://github.com/withastro/astro/pull/5499) [`4987d6f44`](https://github.com/withastro/astro/commit/4987d6f44cfd0d81d88f21f5c380503403dc1e6a) Thanks [@bluwy](https://github.com/bluwy)! - Handle custom injected entry files during build

- [#5917](https://github.com/withastro/astro/pull/5917) [`7325df412`](https://github.com/withastro/astro/commit/7325df412107fc0e65cd45c1b568fb686708f723) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Fix duplicate CSS in dev mode when `vite.css.devSourcemap` is provided

- [#5905](https://github.com/withastro/astro/pull/5905) [`a8d3e7924`](https://github.com/withastro/astro/commit/a8d3e79246605d252dcddad159e358e2d79bd624) Thanks [@bluwy](https://github.com/bluwy)! - Fix CLI node version check

- [#5909](https://github.com/withastro/astro/pull/5909) [`5fd9208d4`](https://github.com/withastro/astro/commit/5fd9208d447f5ab8909a2188b6c2491a0debd49d) Thanks [@jasikpark](https://github.com/jasikpark)! - Update compiler to 1.0.1

- Updated dependencies [[`46ecd5de3`](https://github.com/withastro/astro/commit/46ecd5de34df619e2ee73ccea39a57acd37bc0b8)]:
- @astrojs/webapi@2.0.0-beta.1

## 2.0.0-beta.3

### Major Changes
Expand Down
4 changes: 2 additions & 2 deletions 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.3",
"version": "2.0.0-beta.4",
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
"type": "module",
"author": "withastro",
Expand Down Expand Up @@ -103,7 +103,7 @@
"@astrojs/language-server": "^0.28.3",
"@astrojs/markdown-remark": "^2.0.0-beta.2",
"@astrojs/telemetry": "^2.0.0-beta.0",
"@astrojs/webapi": "^2.0.0-beta.0",
"@astrojs/webapi": "^2.0.0-beta.1",
"@babel/core": "^7.18.2",
"@babel/generator": "^7.18.2",
"@babel/parser": "^7.18.4",
Expand Down
8 changes: 8 additions & 0 deletions packages/create-astro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# create-astro

## 2.0.0-beta.1

### Patch Changes

- [#5898](https://github.com/withastro/astro/pull/5898) [`d8919b1a2`](https://github.com/withastro/astro/commit/d8919b1a2197616b70ec57f0fb00b0bde6943e43) Thanks [@TheOtterlord](https://github.com/TheOtterlord)! - Support headless runs with `-y` / `--yes`

- [#5920](https://github.com/withastro/astro/pull/5920) [`f27bb3d79`](https://github.com/withastro/astro/commit/f27bb3d79f9774f01037e60e656b1f9d8e03367d) Thanks [@delucis](https://github.com/delucis)! - Improve error message for third-party template 404s

## 2.0.0-beta.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/create-astro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-astro",
"version": "2.0.0-beta.0",
"version": "2.0.0-beta.1",
"type": "module",
"author": "withastro",
"license": "MIT",
Expand Down
Loading

0 comments on commit 25bfd4a

Please sign in to comment.