diff --git a/.changeset/cyan-crews-cross.md b/.changeset/cyan-crews-cross.md new file mode 100644 index 000000000000..387e73e30529 --- /dev/null +++ b/.changeset/cyan-crews-cross.md @@ -0,0 +1,19 @@ +--- +'astro': major +--- + +Removes the old `app.render()` signature (Adapter API) + +In Astro 4.0, the `app.render()` signature that allowed passing `routeData` and `locals` as optional arguments was deprecated in favor of a single optional `renderOptions` argument. + +Astro 6.0 removes this signature entirely. Attempting to pass these separate arguments will now cause an error in your project. + +#### What should I do? + +Review your `app.render` calls and pass `routeData` and `locals` as properties of an object instead of as multiple independent arguments: + +```diff +// my-adapter/entrypoint.ts +-app.render(request, routeData, locals) ++app.render(request, { routeData, locals }) +``` diff --git a/.changeset/dull-mangos-travel.md b/.changeset/dull-mangos-travel.md new file mode 100644 index 000000000000..7c33a7a2eba0 --- /dev/null +++ b/.changeset/dull-mangos-travel.md @@ -0,0 +1,20 @@ +--- +'astro': major +--- + +Removes `prefetch()` `with` option + +In Astro 4.8.4, the `with` option of the programmatic `prefetch()` function was deprecated in favor of a more sensible default behavior that no longer required specifying the priority of prefetching for each page. + +Astro 6.0 removes this option entirely and it is no longer possible to configure the priority of prefetching by passing the `with` option. Attempting to do so will now cause errors. + +By default, Astro's prefetching now uses an automatic approach that will always try to use ` +
+-