Skip to content

Commit 3ad0a3a

Browse files
Fixes some nits and blog post link in upgrade-to/v6.mdx (#13618)
Co-authored-by: louisescher <66965600+louisescher@users.noreply.github.com>
1 parent 4054edb commit 3ad0a3a

File tree

1 file changed

+7
-7
lines changed
  • src/content/docs/en/guides/upgrade-to

1 file changed

+7
-7
lines changed

src/content/docs/en/guides/upgrade-to/v6.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ If you are an adapter author with a public repository and [include the `astro-ad
472472
473473
If you are seeing warnings because you are using a community adapter that is not yet updated, please reach out to the adapter author directly to let them know. It is ultimately their responsibility to update their adapters. You can also let the Astro core team know in the [`#integrations` channel of our Discord](https://astro.build/chat) and we will attempt to help the adapter author upgrade.
474474
475-
If you have built an adapter, follow these steps to remove the legacy v5 behaviour:
475+
If you have built an adapter, follow these steps to remove the legacy v5 behavior:
476476
477477
<Steps>
478478
@@ -592,7 +592,7 @@ Rename and move this file to `src/content.config.ts`
592592
</details>
593593
594594
<details>
595-
<summary>a collection that does not define a `loader`/ ([`ContentCollectionMissingALoaderError`](/en/reference/errors/content-collection-missing-loader/))</summary>
595+
<summary>a collection that does not define a `loader` / ([`ContentCollectionMissingALoaderError`](/en/reference/errors/content-collection-missing-loader/))</summary>
596596
597597
Import [Astro's built-in `glob()` loader](/en/guides/content-collections/#the-glob-loader) and define the `pattern` and `base` for your collection entries:
598598
@@ -946,7 +946,7 @@ Astro 6.0 removes this signature entirely. Attempting to pass these separate arg
946946
947947
#### What should I do?
948948
949-
Review your `app.render` calls and pass `routeData` and `locals` as properties of an object instead of as multiple independent arguments:
949+
Review your `app.render()` calls and pass `routeData` and `locals` as properties of an object instead of as multiple independent arguments:
950950
951951
```ts title="my-adapter/entrypoint.ts" del={1} ins={2}
952952
app.render(request, routeData, locals)
@@ -1022,7 +1022,7 @@ prefetch('/about');
10221022
10231023
<SourcePR number="14477" title="feat!: remove rewrite from action context"/>
10241024
1025-
In Astro 5.5.6, the `ActionAPIContext.rewrite` method was deprecated because custom endpoints should be used instead of rewrites.
1025+
In Astro 5.5.6, the `ActionAPIContext.rewrite()` method was deprecated because custom endpoints should be used instead of rewrites.
10261026
10271027
Astro 6.0 removes the `rewrite()` method from `ActionAPIContext` entirely and it may no longer be used.
10281028
@@ -1172,7 +1172,7 @@ export default defineConfig({
11721172
- `staticImportMetaEnv` (See below for breaking changes to [`import.meta.env`](#changed-importmetaenv-values-are-always-inlined).)
11731173
- `headingIdCompat` (See below for breaking changes to [Markdown heading ID generation](#changed-markdown-heading-id-generation).)
11741174
1175-
<ReadMore>Read about exciting new features and more in [the v6.0 Blog post](https://astro.build/blog/astro-6-beta/).</ReadMore>
1175+
<ReadMore>Read about exciting new features and more in [the v6.0 Blog post](https://astro.build/blog/astro-6/).</ReadMore>
11761176
11771177
## Changed Defaults
11781178
@@ -1414,7 +1414,7 @@ If you were previously relying on the fact that the image service would automati
14141414
/>
14151415
```
14161416
1417-
<ReadMore>Learn more about [the `format` image property](/en/reference/modules/astro-assets/#format)</ReadMore>
1417+
<ReadMore>Learn more about [the `format` image property](/en/reference/modules/astro-assets/#format).</ReadMore>
14181418
14191419
### Changed: `getImage()` throws when called on the client
14201420
@@ -1612,7 +1612,7 @@ export function getStaticPaths() {
16121612
16131613
<SourcePR number="14895" title="feat: remove Vitest workaround for client environment"/>
16141614
1615-
In Astro 5.x, rendering an Astro component on the client was forbidden. However we temporarily allowed this behavoir in Vitest client environments such as `jsdom` or `happy-dom` using the [experimental Container API](/en/reference/container-reference/).
1615+
In Astro 5.x, rendering an Astro component on the client was forbidden. However we temporarily allowed this behavior in Vitest client environments such as `jsdom` or `happy-dom` using the [experimental Container API](/en/reference/container-reference/).
16161616
16171617
Astro 6.0 removes the ability to render Astro components in Vitest client environments: tests that render Astro components must now run in a server environment like `node`.
16181618

0 commit comments

Comments
 (0)