From a2f8c5d85ff15803f5cedf9148cd70ffc138ddef Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 15 Sep 2024 21:53:30 +0200 Subject: [PATCH 01/11] docs: fix Content Layer RFC Link (#12000) --- .changeset/healthy-donuts-yell.md | 5 +++++ packages/astro/src/@types/astro.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/healthy-donuts-yell.md diff --git a/.changeset/healthy-donuts-yell.md b/.changeset/healthy-donuts-yell.md new file mode 100644 index 000000000000..ad9079541061 --- /dev/null +++ b/.changeset/healthy-donuts-yell.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fixes an outdated link used to document Content Layer API diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index 41a874871941..ac281481bf80 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -2279,7 +2279,7 @@ export interface AstroUserConfig { * export const collections = { countries }; * ``` * - * For more advanced loading logic, you can define an object loader. This allows incremental updates and conditional loading while also giving full access to the data store. See the API in [the Content Layer API RFC](https://github.com/withastro/roadmap/blob/content-layer/proposals/0047-content-layer.md#loaders). + * For more advanced loading logic, you can define an object loader. This allows incremental updates and conditional loading while also giving full access to the data store. See the API in [the Content Layer API RFC](https://github.com/withastro/roadmap/blob/content-layer/proposals/0050-content-layer.md#loaders). * * #### Migrating an existing content collection to use the Content Layer API * @@ -2344,7 +2344,7 @@ export interface AstroUserConfig { * * #### Learn more * - * For a complete overview and the full API reference, see [the Content Layer API RFC](https://github.com/withastro/roadmap/blob/content-layer/proposals/0047-content-layer.md) and [share your feedback](https://github.com/withastro/roadmap/pull/982). + * For a complete overview and the full API reference, see [the Content Layer API RFC](https://github.com/withastro/roadmap/blob/content-layer/proposals/0050-content-layer.md) and [share your feedback](https://github.com/withastro/roadmap/pull/982). */ contentLayer?: boolean; }; From b75bfc8cc41f5c631c10055b78670fdc26dff23a Mon Sep 17 00:00:00 2001 From: Johannes Spohr Date: Tue, 17 Sep 2024 14:54:49 +0200 Subject: [PATCH 02/11] Fix vue resetting state when using view transition persistence (#11946) * Fix vue resetting state when using view transition persistence * Avoid calling internal apis when forcing vue component update --- .changeset/five-walls-build.md | 5 ++ .../src/components/VueCounter.vue | 12 +++-- .../src/pages/island-vue-one.astro | 11 +++++ .../src/pages/island-vue-two.astro | 11 +++++ packages/astro/e2e/view-transitions.test.js | 20 +++++++- packages/integrations/vue/client.js | 46 +++++++++++++------ 6 files changed, 87 insertions(+), 18 deletions(-) create mode 100644 .changeset/five-walls-build.md create mode 100644 packages/astro/e2e/fixtures/view-transitions/src/pages/island-vue-one.astro create mode 100644 packages/astro/e2e/fixtures/view-transitions/src/pages/island-vue-two.astro diff --git a/.changeset/five-walls-build.md b/.changeset/five-walls-build.md new file mode 100644 index 000000000000..41f89aa3e2e3 --- /dev/null +++ b/.changeset/five-walls-build.md @@ -0,0 +1,5 @@ +--- +'@astrojs/vue': patch +--- + +Fix vue islands keeping their state when using view transition persistence diff --git a/packages/astro/e2e/fixtures/view-transitions/src/components/VueCounter.vue b/packages/astro/e2e/fixtures/view-transitions/src/components/VueCounter.vue index e75620aff455..e05cf6a1445f 100644 --- a/packages/astro/e2e/fixtures/view-transitions/src/components/VueCounter.vue +++ b/packages/astro/e2e/fixtures/view-transitions/src/components/VueCounter.vue @@ -1,8 +1,8 @@