From 1048aca550769415e528016e42b358ffbfd44b61 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Mon, 28 Aug 2023 11:57:21 -0400 Subject: [PATCH 01/10] Lazily initialize ResponseWithEncoding (#8253) * Lazily initialize ResponseWithEncoding * Fix things * Add a TODO about removing the workaround * Remove unused lint ignore * Use canplaythrough instead * Use an inline script * Check the readystate first * Download the video locally * Capture consoles * More debugging * Use autoplay instead of a ready event --- .changeset/grumpy-years-remember.md | 5 ++ .../src/components/Video.astro | 2 +- .../src/pages/video-one.astro | 8 ---- packages/astro/e2e/view-transitions.test.js | 2 +- packages/astro/src/core/endpoint/index.ts | 47 ++++++++++++------- 5 files changed, 37 insertions(+), 27 deletions(-) create mode 100644 .changeset/grumpy-years-remember.md diff --git a/.changeset/grumpy-years-remember.md b/.changeset/grumpy-years-remember.md new file mode 100644 index 000000000..1e1906cd9 --- /dev/null +++ b/.changeset/grumpy-years-remember.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix, lazily initialize ResponseWithEncoding diff --git a/packages/astro/e2e/fixtures/view-transitions/src/components/Video.astro b/packages/astro/e2e/fixtures/view-transitions/src/components/Video.astro index 7235266bc..0a3a22913 100644 --- a/packages/astro/e2e/fixtures/view-transitions/src/components/Video.astro +++ b/packages/astro/e2e/fixtures/view-transitions/src/components/Video.astro @@ -1,3 +1,3 @@ -