diff options
author | 2023-11-22 06:14:05 -0800 | |
---|---|---|
committer | 2023-11-22 09:14:05 -0500 | |
commit | 4d1274c47987bf3c247f0ad02309f3c2b9968d6e (patch) | |
tree | 06a49d2f1386b57a854bf2a1444a78ea0a371a5c /packages | |
parent | cba6cf32d9bf1f5c3268808f185a4824d6fbd7f4 (diff) | |
download | astro-4d1274c47987bf3c247f0ad02309f3c2b9968d6e.tar.gz astro-4d1274c47987bf3c247f0ad02309f3c2b9968d6e.tar.zst astro-4d1274c47987bf3c247f0ad02309f3c2b9968d6e.zip |
[ci] release (#9165)astro@3.6.0
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/astro/CHANGELOG.md | 28 | ||||
-rw-r--r-- | packages/astro/package.json | 2 |
2 files changed, 29 insertions, 1 deletions
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 4a37187f7..1e6a1769a 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,33 @@ # astro +## 3.6.0 + +### Minor Changes + +- [#9090](https://github.com/withastro/astro/pull/9090) [`c87223c21`](https://github.com/withastro/astro/commit/c87223c21ab5d515fb8f04ee10be5c0ca51e0b29) Thanks [@martrapp](https://github.com/martrapp)! - Take full control over the behavior of view transitions! + + Three new events now complement the existing `astro:after-swap` and `astro:page-load` events: + + ```javascript + astro: before - preparation; // Control how the DOM and other resources of the target page are loaded + astro: after - preparation; // Last changes before taking off? Remove that loading indicator? Here you go! + astro: before - swap; // Control how the DOM is updated to match the new page + ``` + + The `astro:before-*` events allow you to change properties and strategies of the view transition implementation. + The `astro:after-*` events are notifications that a phase is complete. + Head over to docs to see [the full view transitions lifecycle](https://docs.astro.build/en/guides/view-transitions/#lifecycle-events) including these new events! + +- [#9092](https://github.com/withastro/astro/pull/9092) [`0ea4bd47e`](https://github.com/withastro/astro/commit/0ea4bd47e0d7cc98c43568a55aa87da772bd2e0a) Thanks [@smitbarmase](https://github.com/smitbarmase)! - Changes the fallback prefetch behavior on slow connections and when data saver mode is enabled. Instead of disabling prefetch entirely, the `tap` strategy will be used. + +- [#9166](https://github.com/withastro/astro/pull/9166) [`cba6cf32d`](https://github.com/withastro/astro/commit/cba6cf32d9bf1f5c3268808f185a4824d6fbd7f4) Thanks [@matthewp](https://github.com/matthewp)! - The Picture component is no longer experimental + + The `<Picture />` component, part of `astro:assets`, has exited experimental status and is now recommended for use. There are no code changes to the component, and no upgrade to your project is necessary. + + This is only a change in documentation/recommendation. If you were waiting to use the `<Picture />` component until it had exited the experimental stage, wait no more! + +- [#9092](https://github.com/withastro/astro/pull/9092) [`0ea4bd47e`](https://github.com/withastro/astro/commit/0ea4bd47e0d7cc98c43568a55aa87da772bd2e0a) Thanks [@smitbarmase](https://github.com/smitbarmase)! - Adds a `ignoreSlowConnection` option to the `prefetch()` API to prefetch even on data saver mode or slow connection. + ## 3.5.7 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index d4dd53b34..95c8b1d88 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "3.5.7", + "version": "3.6.0", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro", |