|
1 | 1 | # astro
|
2 | 2 |
|
| 3 | +## 3.0.0-beta.1 |
| 4 | + |
| 5 | +### Major Changes |
| 6 | + |
| 7 | +- [#7924](https://github.com/withastro/astro/pull/7924) [`3c3100851`](https://github.com/withastro/astro/commit/3c31008519ce68b5b1b1cb23b71fbe0a2d506882) Thanks [@matthewp](https://github.com/matthewp)! - Remove support for `Astro.__renderMarkdown` which is used by `@astrojs/markdown-component`. |
| 8 | + |
| 9 | + The `<Markdown />` component was deprecated in Astro v1 and is completely removed in v3. This integration must now be removed from your project. |
| 10 | + |
| 11 | + As an alternative, you can use community packages that provide a similar component like https://github.com/natemoo-re/astro-remote instead. |
| 12 | + |
| 13 | +- [#8019](https://github.com/withastro/astro/pull/8019) [`34cb20021`](https://github.com/withastro/astro/commit/34cb2002161ba88df6bcb72fecfd12ed867c134b) Thanks [@bluwy](https://github.com/bluwy)! - Remove backwards-compatible kebab-case transform for camelCase CSS variable names passed to the `style` attribute. If you were relying on the kebab-case transform in your styles, make sure to use the camelCase version to prevent missing styles. For example: |
| 14 | + |
| 15 | + ```astro |
| 16 | + --- |
| 17 | + const myValue = 'red'; |
| 18 | + --- |
| 19 | +
|
| 20 | + <!-- input --> |
| 21 | + <div style={{ '--myValue': myValue }}></div> |
| 22 | +
|
| 23 | + <!-- output (before) --> |
| 24 | + <div style="--my-value:var(--myValue);--myValue:red"></div> |
| 25 | +
|
| 26 | + <!-- output (after) --> |
| 27 | + <div style="--myValue:red"></div> |
| 28 | + ``` |
| 29 | + |
| 30 | + ```diff |
| 31 | + <style> |
| 32 | + div { |
| 33 | + - color: var(--my-value); |
| 34 | + + color: var(--myValue); |
| 35 | + } |
| 36 | + </style> |
| 37 | + ``` |
| 38 | + |
| 39 | +- [#7893](https://github.com/withastro/astro/pull/7893) [`7bd1b86f8`](https://github.com/withastro/astro/commit/7bd1b86f85c06fdde0a1ed9146d01bac69990671) Thanks [@ematipico](https://github.com/ematipico)! - Implements a new scope style strategy called `"attribute"`. When enabled, styles are applied using `data-*` attributes. |
| 40 | + |
| 41 | + The **default** value of `scopedStyleStrategy` is `"attribute"`. |
| 42 | + |
| 43 | + If you want to use the previous behaviour, you have to use the `"where"` option: |
| 44 | + |
| 45 | + ```diff |
| 46 | + import { defineConfig } from 'astro/config'; |
| 47 | + |
| 48 | + export default defineConfig({ |
| 49 | + + scopedStyleStrategy: 'where', |
| 50 | + }); |
| 51 | + ``` |
| 52 | + |
| 53 | +- [#7878](https://github.com/withastro/astro/pull/7878) [`0f637c71e`](https://github.com/withastro/astro/commit/0f637c71e511cb4c51712128d217a26c8eee4d40) Thanks [@bluwy](https://github.com/bluwy)! - The value of `import.meta.env.BASE_URL`, which is derived from the `base` option, will no longer have a trailing slash added by default or when `trailingSlash: "ignore"` is set. The existing behavior of `base` in combination with `trailingSlash: "always"` or `trailingSlash: "never"` is unchanged. |
| 54 | + |
| 55 | + If your `base` already has a trailing slash, no change is needed. |
| 56 | + |
| 57 | + If your `base` does not have a trailing slash, add one to preserve the previous behaviour: |
| 58 | + |
| 59 | + ```diff |
| 60 | + // astro.config.mjs |
| 61 | + - base: 'my-base', |
| 62 | + + base: 'my-base/', |
| 63 | + ``` |
| 64 | + |
| 65 | +### Patch Changes |
| 66 | + |
| 67 | +- [#7998](https://github.com/withastro/astro/pull/7998) [`65c354969`](https://github.com/withastro/astro/commit/65c354969e6fe0ef6d622e8f4c545e2f717ce8c6) Thanks [@bluwy](https://github.com/bluwy)! - Call `astro sync` once before calling `astro check` |
| 68 | + |
| 69 | +- [#7924](https://github.com/withastro/astro/pull/7924) [`70f34f5a3`](https://github.com/withastro/astro/commit/70f34f5a355f42526ee9e5355f3de8e510002ea2) Thanks [@matthewp](https://github.com/matthewp)! - Remove StreamingCompatibleResponse polyfill |
| 70 | + |
| 71 | +- [#8011](https://github.com/withastro/astro/pull/8011) [`5b1e39ef6`](https://github.com/withastro/astro/commit/5b1e39ef6ec6dcebea96584f95d9530bd9aa715d) Thanks [@bluwy](https://github.com/bluwy)! - Move hoisted script analysis optimization behind the `experimental.optimizeHoistedScript` option |
| 72 | + |
| 73 | +- Updated dependencies [[`b675acb2a`](https://github.com/withastro/astro/commit/b675acb2aa820448e9c0d363339a37fbac873215)]: |
| 74 | + - @astrojs/telemetry@3.0.0-beta.1 |
| 75 | + |
3 | 76 | ## 3.0.0-beta.0
|
4 | 77 |
|
5 | 78 | ### Major Changes
|
|
0 commit comments