0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-24 23:21:57 -05:00

[ci] release (beta) ()

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Houston (Bot) 2024-10-31 02:07:35 -07:00 committed by GitHub
parent d879c02a26
commit 731b69712b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 143 additions and 62 deletions
.changeset
examples
basics
blog
component
container-with-vitest
framework-alpine
framework-multiple
framework-preact
framework-react
framework-solid
framework-svelte
framework-vue
hackernews
integration
minimal
portfolio
ssr
starlog
toolbar-app
with-markdoc
with-mdx
with-nanostores
with-tailwindcss
with-vitest
packages
pnpm-lock.yaml

View file

@ -44,6 +44,7 @@
"cool-mangos-shop",
"cuddly-shoes-press",
"curvy-walls-kneel",
"dirty-cooks-explode",
"dry-lamps-smile",
"dry-worms-knock",
"dull-moles-talk",
@ -54,10 +55,13 @@
"eighty-ligers-punch",
"five-jars-hear",
"fluffy-jars-live",
"forty-trains-notice",
"fresh-pandas-drive",
"funny-wolves-dream",
"fuzzy-pugs-live",
"gentle-scissors-bow",
"giant-rocks-thank",
"gorgeous-foxes-divide",
"healthy-ads-scream",
"heavy-peas-sneeze",
"heavy-seahorses-poke",
@ -70,9 +74,11 @@
"light-pears-accept",
"long-lions-do",
"long-months-rule",
"loud-cougars-grow",
"lovely-pianos-breathe",
"many-garlics-lick",
"mean-donkeys-switch",
"metal-birds-admire",
"modern-bears-deny",
"moody-waves-think",
"nasty-crabs-worry",
@ -91,6 +97,7 @@
"selfish-cats-crash",
"selfish-impalas-grin",
"sharp-worms-sniff",
"sixty-coins-worry",
"sixty-oranges-walk",
"slimy-mice-dance",
"slimy-queens-hang",
@ -98,8 +105,10 @@
"smooth-panthers-heal",
"spotty-garlics-cheat",
"strange-sheep-film",
"strong-months-grab",
"sweet-timers-smash",
"tame-pumpkins-swim",
"tame-rats-cross",
"ten-students-repair",
"ten-walls-tap",
"three-days-cough",

View file

@ -10,6 +10,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^5.0.0-beta.5"
"astro": "^5.0.0-beta.6"
}
}

View file

@ -10,9 +10,9 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^4.0.0-beta.2",
"@astrojs/mdx": "^4.0.0-beta.3",
"@astrojs/rss": "^4.0.9",
"@astrojs/sitemap": "^3.2.1",
"astro": "^5.0.0-beta.5"
"astro": "^5.0.0-beta.6"
}
}

View file

@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^5.0.0-beta.5"
"astro": "^5.0.0-beta.6"
},
"peerDependencies": {
"astro": "^4.0.0 || ^5.0.0"

View file

@ -11,7 +11,7 @@
"test": "vitest run"
},
"dependencies": {
"astro": "^5.0.0-beta.5",
"astro": "^5.0.0-beta.6",
"@astrojs/react": "^3.6.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",

View file

@ -13,6 +13,6 @@
"@astrojs/alpinejs": "^0.4.0",
"@types/alpinejs": "^3.13.10",
"alpinejs": "^3.14.3",
"astro": "^5.0.0-beta.5"
"astro": "^5.0.0-beta.6"
}
}

View file

@ -14,10 +14,10 @@
"@astrojs/react": "^3.6.2",
"@astrojs/solid-js": "^4.4.2",
"@astrojs/svelte": "^6.0.0-beta.1",
"@astrojs/vue": "^5.0.0-beta.0",
"@astrojs/vue": "^5.0.0-beta.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"astro": "^5.0.0-beta.5",
"astro": "^5.0.0-beta.6",
"preact": "^10.24.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",

View file

@ -12,7 +12,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.3",
"@preact/signals": "^1.3.0",
"astro": "^5.0.0-beta.5",
"astro": "^5.0.0-beta.6",
"preact": "^10.24.3"
}
}

View file

@ -13,7 +13,7 @@
"@astrojs/react": "^3.6.2",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"astro": "^5.0.0-beta.5",
"astro": "^5.0.0-beta.6",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}

View file

@ -11,7 +11,7 @@
},
"dependencies": {
"@astrojs/solid-js": "^4.4.2",
"astro": "^5.0.0-beta.5",
"astro": "^5.0.0-beta.6",
"solid-js": "^1.9.2"
}
}

View file

@ -11,7 +11,7 @@
},
"dependencies": {
"@astrojs/svelte": "^6.0.0-beta.1",
"astro": "^5.0.0-beta.5",
"astro": "^5.0.0-beta.6",
"svelte": "^4.2.19"
}
}

View file

@ -10,8 +10,8 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/vue": "^5.0.0-beta.0",
"astro": "^5.0.0-beta.5",
"@astrojs/vue": "^5.0.0-beta.1",
"astro": "^5.0.0-beta.6",
"vue": "^3.5.12"
}
}

View file

@ -11,6 +11,6 @@
},
"dependencies": {
"@astrojs/node": "^9.0.0-alpha.1",
"astro": "^5.0.0-beta.5"
"astro": "^5.0.0-beta.6"
}
}

View file

@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^5.0.0-beta.5"
"astro": "^5.0.0-beta.6"
},
"peerDependencies": {
"astro": "^4.0.0"

View file

@ -10,6 +10,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^5.0.0-beta.5"
"astro": "^5.0.0-beta.6"
}
}

View file

@ -10,6 +10,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^5.0.0-beta.5"
"astro": "^5.0.0-beta.6"
}
}

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/node": "^9.0.0-alpha.1",
"@astrojs/svelte": "^6.0.0-beta.1",
"astro": "^5.0.0-beta.5",
"astro": "^5.0.0-beta.6",
"svelte": "^4.2.19"
}
}

View file

@ -9,7 +9,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^5.0.0-beta.5",
"astro": "^5.0.0-beta.6",
"sass": "^1.80.3",
"sharp": "^0.33.3"
}

View file

@ -15,6 +15,6 @@
"./app": "./dist/app.js"
},
"devDependencies": {
"astro": "^5.0.0-beta.5"
"astro": "^5.0.0-beta.6"
}
}

View file

@ -11,6 +11,6 @@
},
"dependencies": {
"@astrojs/markdoc": "^0.12.0-beta.0",
"astro": "^5.0.0-beta.5"
"astro": "^5.0.0-beta.6"
}
}

View file

@ -10,9 +10,9 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^4.0.0-beta.2",
"@astrojs/mdx": "^4.0.0-beta.3",
"@astrojs/preact": "^3.5.3",
"astro": "^5.0.0-beta.5",
"astro": "^5.0.0-beta.6",
"preact": "^10.24.3"
}
}

View file

@ -12,7 +12,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.3",
"@nanostores/preact": "^0.5.2",
"astro": "^5.0.0-beta.5",
"astro": "^5.0.0-beta.6",
"nanostores": "^0.11.3",
"preact": "^10.24.3"
}

View file

@ -10,10 +10,10 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^4.0.0-beta.2",
"@astrojs/mdx": "^4.0.0-beta.3",
"@astrojs/tailwind": "^5.1.2",
"@types/canvas-confetti": "^1.6.4",
"astro": "^5.0.0-beta.5",
"astro": "^5.0.0-beta.6",
"autoprefixer": "^10.4.20",
"canvas-confetti": "^1.9.3",
"postcss": "^8.4.47",

View file

@ -11,7 +11,7 @@
"test": "vitest"
},
"dependencies": {
"astro": "^5.0.0-beta.5",
"astro": "^5.0.0-beta.6",
"vitest": "^2.1.3"
}
}

View file

@ -1,5 +1,61 @@
# astro
## 5.0.0-beta.6
### Major Changes
- [#12268](https://github.com/withastro/astro/pull/12268) [`4e9a3ac`](https://github.com/withastro/astro/commit/4e9a3ac0bd30b4013ac0b2caf068552258dfe6d9) Thanks [@ematipico](https://github.com/ematipico)! - The command `astro add vercel` now updates the configuration file differently, and adds `@astrojs/vercel` as module to import.
This is a breaking change because it requires the version `8.*` of `@astrojs/vercel`.
- [#12231](https://github.com/withastro/astro/pull/12231) [`90ae100`](https://github.com/withastro/astro/commit/90ae100cf482529828febed591172433309bc12e) Thanks [@bluwy](https://github.com/bluwy)! - Updates the automatic `charset=utf-8` behavior for Markdown pages, where instead of responding with `charset=utf-8` in the `Content-Type` header, Astro will now automatically add the `<meta charset="utf-8">` tag instead.
This behaviour only applies to Markdown pages (`.md` or similar Markdown files located within `src/pages/`) that do not use Astro's special `layout` frontmatter property. It matches the rendering behaviour of other non-content pages, and retains the minimal boilerplate needed to write with non-ASCII characters when adding individual Markdown pages to your site.
If your Markdown pages use the `layout` frontmatter property, then HTML encoding will be handled by the designated layout component instead, and the `<meta charset="utf-8">` tag will not be added to your page by default.
If you require `charset=utf-8` to render your page correctly, make sure that your layout components contain the `<meta charset="utf-8">` tag. You may need to add this if you have not already done so.
### Minor Changes
- [#12243](https://github.com/withastro/astro/pull/12243) [`eb41d13`](https://github.com/withastro/astro/commit/eb41d13162c84e9495489403611bc875eb190fed) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Improves `defineConfig` type safety. TypeScript will now error if a group of related configuration options do not have consistent types. For example, you will now see an error if your language set for `i18n.defaultLocale` is not one of the supported locales specified in `i18n.locales`.
- [#12150](https://github.com/withastro/astro/pull/12150) [`93351bc`](https://github.com/withastro/astro/commit/93351bc78aed8f4ecff003268bad21c3b93c2f56) Thanks [@bluwy](https://github.com/bluwy)! - Adds support for passing values other than `"production"` or `"development"` to the `--mode` flag (e.g. `"staging"`, `"testing"`, or any custom value) to change the value of `import.meta.env.MODE` or the loaded `.env` file. This allows you take advantage of Vite's [mode](https://vite.dev/guide/env-and-mode#modes) feature.
Also adds a new `--devOutput` flag for `astro build` that will output a development-based build.
Note that changing the `mode` does not change the kind of code transform handled by Vite and Astro:
- In `astro dev`, Astro will transform code with debug information.
- In `astro build`, Astro will transform code with the most optimized output and removes debug information.
- In `astro build --devOutput` (new flag), Astro will transform code with debug information like in `astro dev`.
This enables various usecases like:
```bash
# Run the dev server connected to a "staging" API
astro dev --mode staging
# Build a site that connects to a "staging" API
astro build --mode staging
# Build a site that connects to a "production" API with additional debug information
astro build --devOutput
# Build a site that connects to a "testing" API
astro build --mode testing
```
The different modes can be used to load different `.env` files, e.g. `.env.staging` or `.env.production`, which can be customized for each environment, for example with different `API_URL` environment variable values.
### Patch Changes
- [#12302](https://github.com/withastro/astro/pull/12302) [`7196c24`](https://github.com/withastro/astro/commit/7196c244ea75d2f2aafbec332d91cb681f0a4cb7) Thanks [@ematipico](https://github.com/ematipico)! - Fixes an issue where the origin check middleware run for prendered pages
- [#12341](https://github.com/withastro/astro/pull/12341) [`c1786d6`](https://github.com/withastro/astro/commit/c1786d64c4d8b25ed28f5e178531952466158e04) Thanks [@ematipico](https://github.com/ematipico)! - Fixes and issue where `Astro.currentLocale` always returned the default locale when consumed inside a server island.
- [#12270](https://github.com/withastro/astro/pull/12270) [`25192a0`](https://github.com/withastro/astro/commit/25192a059975f5a31a9c43e5d605541f4e9618bc) Thanks [@ematipico](https://github.com/ematipico)! - Fixes a bug where the params weren't correctly computed when rendering URLs with non-English characters
## 5.0.0-beta.5
### Minor Changes

View file

@ -1,6 +1,6 @@
{
"name": "astro",
"version": "5.0.0-beta.5",
"version": "5.0.0-beta.6",
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
"type": "module",
"author": "withastro",

View file

@ -47,7 +47,7 @@ export async function getProps(opts: GetParamsAndPropsOptions): Promise<Props> {
base,
});
// The pathname used here comes from the server, which already encored.
// The pathname used here comes from the server, which already encored.
// Since we decided to not mess up with encoding anymore, we need to decode them back so the parameters can match
// the ones expected from the users
const params = getParams(route, decodeURI(pathname));

View file

@ -109,7 +109,7 @@ export interface ViteUserConfig extends OriginalViteUserConfig {
/**
* Astro User Config
* Docs: https://docs.astro.build/reference/configuration-reference/
*
*
* Generics do not follow semver and may change at any time.
*/ export interface AstroUserConfig<TLocales extends Locales = never> {
/**

View file

@ -1,7 +1,7 @@
import { describe, it } from 'node:test';
import { expectTypeOf } from 'expect-type';
import { defineConfig } from '../../dist/config/index.js';
import type { AstroUserConfig } from '../../dist/types/public/index.js';
import { expectTypeOf } from 'expect-type';
describe('defineConfig()', () => {
it('Infers generics correctly', () => {

View file

@ -1,5 +1,15 @@
# @astrojs/mdx
## 4.0.0-beta.3
### Major Changes
- [#12231](https://github.com/withastro/astro/pull/12231) [`90ae100`](https://github.com/withastro/astro/commit/90ae100cf482529828febed591172433309bc12e) Thanks [@bluwy](https://github.com/bluwy)! - Handles the breaking change in Astro where content pages (including `.mdx` pages located within `src/pages/`) no longer respond with `charset=utf-8` in the `Content-Type` header.
For MDX pages without layouts, `@astrojs/mdx` will automatically add the `<meta charset="utf-8">` tag to the page by default. This reduces the boilerplate needed to write with non-ASCII characters. If your MDX pages have a layout, the layout component should include the `<meta charset="utf-8">` tag.
If you require `charset=utf-8` to render your page correctly, make sure that your layout components have the `<meta charset="utf-8">` tag added.
## 4.0.0-alpha.2
### Patch Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/mdx",
"description": "Add support for MDX pages in your Astro site",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.3",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",

View file

@ -1,5 +1,11 @@
# @astrojs/vue
## 5.0.0-beta.1
### Patch Changes
- [`81b0bf5`](https://github.com/withastro/astro/commit/81b0bf5734735a0633bfc1089151e174ba9fbc83) Thanks [@bluwy](https://github.com/bluwy)! - New release to include changes from 4.5.2
## 5.0.0-beta.0
### Major Changes

View file

@ -1,6 +1,6 @@
{
"name": "@astrojs/vue",
"version": "5.0.0-beta.0",
"version": "5.0.0-beta.1",
"description": "Use Vue components within Astro",
"type": "module",
"types": "./dist/index.d.ts",

56
pnpm-lock.yaml generated
View file

@ -117,13 +117,13 @@ importers:
examples/basics:
dependencies:
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
examples/blog:
dependencies:
'@astrojs/mdx':
specifier: ^4.0.0-beta.2
specifier: ^4.0.0-beta.3
version: link:../../packages/integrations/mdx
'@astrojs/rss':
specifier: ^4.0.9
@ -132,13 +132,13 @@ importers:
specifier: ^3.2.1
version: link:../../packages/integrations/sitemap
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
examples/component:
devDependencies:
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
examples/container-with-vitest:
@ -147,7 +147,7 @@ importers:
specifier: ^3.6.2
version: link:../../packages/integrations/react
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
react:
specifier: ^18.3.1
@ -178,7 +178,7 @@ importers:
specifier: ^3.14.3
version: 3.14.3
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
examples/framework-multiple:
@ -196,7 +196,7 @@ importers:
specifier: ^6.0.0-beta.1
version: link:../../packages/integrations/svelte
'@astrojs/vue':
specifier: ^5.0.0-beta.0
specifier: ^5.0.0-beta.1
version: link:../../packages/integrations/vue
'@types/react':
specifier: ^18.3.12
@ -205,7 +205,7 @@ importers:
specifier: ^18.3.1
version: 18.3.1
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
preact:
specifier: ^10.24.3
@ -235,7 +235,7 @@ importers:
specifier: ^1.3.0
version: 1.3.0(preact@10.24.3)
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
preact:
specifier: ^10.24.3
@ -253,7 +253,7 @@ importers:
specifier: ^18.3.1
version: 18.3.1
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
react:
specifier: ^18.3.1
@ -268,7 +268,7 @@ importers:
specifier: ^4.4.2
version: link:../../packages/integrations/solid
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
solid-js:
specifier: ^1.9.2
@ -280,7 +280,7 @@ importers:
specifier: ^6.0.0-beta.1
version: link:../../packages/integrations/svelte
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
svelte:
specifier: ^4.2.19
@ -289,10 +289,10 @@ importers:
examples/framework-vue:
dependencies:
'@astrojs/vue':
specifier: ^5.0.0-beta.0
specifier: ^5.0.0-beta.1
version: link:../../packages/integrations/vue
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
vue:
specifier: ^3.5.12
@ -304,25 +304,25 @@ importers:
specifier: ^9.0.0-alpha.1
version: 9.0.0-alpha.1(astro@packages+astro)
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
examples/integration:
devDependencies:
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
examples/minimal:
dependencies:
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
examples/portfolio:
dependencies:
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
examples/ssr:
@ -334,7 +334,7 @@ importers:
specifier: ^6.0.0-beta.1
version: link:../../packages/integrations/svelte
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
svelte:
specifier: ^4.2.19
@ -343,7 +343,7 @@ importers:
examples/starlog:
dependencies:
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
sass:
specifier: ^1.80.3
@ -355,7 +355,7 @@ importers:
examples/toolbar-app:
devDependencies:
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
examples/with-markdoc:
@ -364,19 +364,19 @@ importers:
specifier: ^0.12.0-beta.0
version: link:../../packages/integrations/markdoc
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
examples/with-mdx:
dependencies:
'@astrojs/mdx':
specifier: ^4.0.0-beta.2
specifier: ^4.0.0-beta.3
version: link:../../packages/integrations/mdx
'@astrojs/preact':
specifier: ^3.5.3
version: link:../../packages/integrations/preact
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
preact:
specifier: ^10.24.3
@ -391,7 +391,7 @@ importers:
specifier: ^0.5.2
version: 0.5.2(nanostores@0.11.3)(preact@10.24.3)
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
nanostores:
specifier: ^0.11.3
@ -403,7 +403,7 @@ importers:
examples/with-tailwindcss:
dependencies:
'@astrojs/mdx':
specifier: ^4.0.0-beta.2
specifier: ^4.0.0-beta.3
version: link:../../packages/integrations/mdx
'@astrojs/tailwind':
specifier: ^5.1.2
@ -412,7 +412,7 @@ importers:
specifier: ^1.6.4
version: 1.6.4
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
autoprefixer:
specifier: ^10.4.20
@ -430,7 +430,7 @@ importers:
examples/with-vitest:
dependencies:
astro:
specifier: ^5.0.0-beta.5
specifier: ^5.0.0-beta.6
version: link:../../packages/astro
vitest:
specifier: ^2.1.3