From 9630f683c4f2a3812b6ea4b0d997cc73fc4845b6 Mon Sep 17 00:00:00 2001 From: "Fred K. Bot" <108291165+fredkbot@users.noreply.github.com> Date: Wed, 26 Oct 2022 05:35:40 -0700 Subject: [PATCH 1/3] [ci] update lockfile (#5197) Co-authored-by: FredKSchott --- pnpm-lock.yaml | 80 +++++++++++++++++++++++++------------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7debc6d57547..e75bc2e81bbf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -110,10 +110,10 @@ importers: '@algolia/client-search': 4.14.2 '@astrojs/preact': link:../../packages/integrations/preact '@astrojs/react': link:../../packages/integrations/react - '@docsearch/css': 3.2.2 - '@docsearch/react': 3.2.2_gp2f66hjvprqsmo7rewhrpia4e + '@docsearch/css': 3.3.0 + '@docsearch/react': 3.3.0_ozja46d2hdfcawewer6noq2pdi '@types/node': 18.11.5 - '@types/react': 17.0.50 + '@types/react': 17.0.51 '@types/react-dom': 18.0.7 astro: link:../../packages/astro preact: 10.11.2 @@ -129,7 +129,7 @@ importers: dependencies: '@astrojs/alpinejs': link:../../packages/integrations/alpinejs '@types/alpinejs': 3.7.0 - alpinejs: 3.10.4 + alpinejs: 3.10.5 astro: link:../../packages/astro examples/framework-lit: @@ -194,7 +194,7 @@ importers: react-dom: ^18.1.0 dependencies: '@astrojs/react': link:../../packages/integrations/react - '@types/react': 18.0.22 + '@types/react': 18.0.23 '@types/react-dom': 18.0.7 astro: link:../../packages/astro react: 18.2.0 @@ -486,7 +486,7 @@ importers: esbuild: 0.14.54 execa: 6.1.0 fast-glob: 3.2.12 - github-slugger: 1.4.0 + github-slugger: 1.5.0 gray-matter: 4.0.3 html-entities: 2.3.3 html-escaper: 3.0.3 @@ -2759,7 +2759,7 @@ importers: acorn: 8.8.1 es-module-lexer: 0.10.5 estree-util-visit: 1.2.0 - github-slugger: 1.4.0 + github-slugger: 1.5.0 gray-matter: 4.0.3 kleur: 4.1.5 rehype-raw: 6.1.1 @@ -3033,7 +3033,7 @@ importers: '@babel/core': 7.19.6 '@babel/plugin-transform-react-jsx': 7.19.0_@babel+core@7.19.6 devDependencies: - '@types/react': 17.0.50 + '@types/react': 17.0.51 '@types/react-dom': 17.0.17 astro: link:../../astro astro-scripts: link:../../../scripts @@ -3208,7 +3208,7 @@ importers: astro: link:../../astro chai: 4.3.6 cheerio: 1.0.0-rc.12 - github-slugger: 1.4.0 + github-slugger: 1.5.0 mocha: 9.2.2 rehype-autolink-headings: 6.1.1 rehype-slug: 5.0.1 @@ -3352,7 +3352,7 @@ importers: '@astrojs/prism': link:../../astro-prism acorn: 8.8.1 acorn-jsx: 5.3.2_acorn@8.8.1 - github-slugger: 1.4.0 + github-slugger: 1.5.0 hast-util-to-html: 8.0.3 import-meta-resolve: 2.1.0 mdast-util-from-markdown: 1.2.0 @@ -3590,25 +3590,25 @@ packages: react-dom: 18.2.0_react@18.2.0 dev: false - /@algolia/autocomplete-core/1.7.1: - resolution: {integrity: sha512-eiZw+fxMzNQn01S8dA/hcCpoWCOCwcIIEUtHHdzN5TGB3IpzLbuhqFeTfh2OUhhgkE8Uo17+wH+QJ/wYyQmmzg==} + /@algolia/autocomplete-core/1.7.2: + resolution: {integrity: sha512-eclwUDC6qfApNnEfu1uWcL/rudQsn59tjEoUYZYE2JSXZrHLRjBUGMxiCoknobU2Pva8ejb0eRxpIYDtVVqdsw==} dependencies: - '@algolia/autocomplete-shared': 1.7.1 + '@algolia/autocomplete-shared': 1.7.2 dev: false - /@algolia/autocomplete-preset-algolia/1.7.1_qs6lk5nhygj2o3hj4sf6xnr724: - resolution: {integrity: sha512-pJwmIxeJCymU1M6cGujnaIYcY3QPOVYZOXhFkWVM7IxKzy272BwCvMFMyc5NpG/QmiObBxjo7myd060OeTNJXg==} + /@algolia/autocomplete-preset-algolia/1.7.2_qs6lk5nhygj2o3hj4sf6xnr724: + resolution: {integrity: sha512-+RYEG6B0QiGGfRb2G3MtPfyrl0dALF3cQNTWBzBX6p5o01vCCGTTinAm2UKG3tfc2CnOMAtnPLkzNZyJUpnVJw==} peerDependencies: - '@algolia/client-search': ^4.9.1 - algoliasearch: ^4.9.1 + '@algolia/client-search': '>= 4.9.1 < 6' + algoliasearch: '>= 4.9.1 < 6' dependencies: - '@algolia/autocomplete-shared': 1.7.1 + '@algolia/autocomplete-shared': 1.7.2 '@algolia/client-search': 4.14.2 algoliasearch: 4.14.2 dev: false - /@algolia/autocomplete-shared/1.7.1: - resolution: {integrity: sha512-eTmGVqY3GeyBTT8IWiB2K5EuURAqhnumfktAEoHxfDY2o7vg2rSnO16ZtIG0fMgt3py28Vwgq42/bVEuaQV7pg==} + /@algolia/autocomplete-shared/1.7.2: + resolution: {integrity: sha512-QCckjiC7xXHIUaIL3ektBtjJ0w7tTA3iqKcAE/Hjn1lZ5omp7i3Y4e09rAr9ZybqirL7AbxCLLq0Ra5DDPKeug==} dev: false /@algolia/cache-browser-local-storage/4.14.2: @@ -5645,12 +5645,12 @@ packages: postcss-selector-parser: 6.0.10 dev: true - /@docsearch/css/3.2.2: - resolution: {integrity: sha512-VB0Evx4ikS1ZlW1YVUw+vI9b3H/UXMCo4W/ZWy+n56Sho4KOqyCHcINVays91TJt7HTV/CKO3FCbm2VJg5Wipw==} + /@docsearch/css/3.3.0: + resolution: {integrity: sha512-rODCdDtGyudLj+Va8b6w6Y85KE85bXRsps/R4Yjwt5vueXKXZQKYw0aA9knxLBT6a/bI/GMrAcmCR75KYOM6hg==} dev: false - /@docsearch/react/3.2.2_gp2f66hjvprqsmo7rewhrpia4e: - resolution: {integrity: sha512-1Hn2SNQUFVPrzqvaj+vxXZfsfn3rnW8CoyGAJ1LqXMY9py8GbxK8VfmJ5Z6z4LwG9849tGru/N6dp0cQO6r9Ag==} + /@docsearch/react/3.3.0_ozja46d2hdfcawewer6noq2pdi: + resolution: {integrity: sha512-fhS5adZkae2SSdMYEMVg6pxI5a/cE+tW16ki1V0/ur4Fdok3hBRkmN/H8VvlXnxzggkQIIRIVvYPn00JPjen3A==} peerDependencies: '@types/react': '>= 16.8.0 < 19.0.0' react: '>= 16.8.0 < 19.0.0' @@ -5663,10 +5663,10 @@ packages: react-dom: optional: true dependencies: - '@algolia/autocomplete-core': 1.7.1 - '@algolia/autocomplete-preset-algolia': 1.7.1_qs6lk5nhygj2o3hj4sf6xnr724 - '@docsearch/css': 3.2.2 - '@types/react': 17.0.50 + '@algolia/autocomplete-core': 1.7.2 + '@algolia/autocomplete-preset-algolia': 1.7.2_qs6lk5nhygj2o3hj4sf6xnr724 + '@docsearch/css': 3.3.0 + '@types/react': 17.0.51 algoliasearch: 4.14.2 react: 18.2.0 react-dom: 18.2.0_react@18.2.0 @@ -9713,24 +9713,24 @@ packages: /@types/react-dom/17.0.17: resolution: {integrity: sha512-VjnqEmqGnasQKV0CWLevqMTXBYG9GbwuE6x3VetERLh0cq2LTptFE73MrQi2S7GkKXCf2GgwItB/melLnxfnsg==} dependencies: - '@types/react': 17.0.50 + '@types/react': 17.0.51 dev: true /@types/react-dom/18.0.7: resolution: {integrity: sha512-HaXc+BbqAZE1RdsK3tC8SbkFy6UL2xF76lT9rQs5JkPrJg3rWA3Ou/Lhw3YJQzEDkBpmJ79nBsfnd05WrBd2QQ==} dependencies: - '@types/react': 17.0.50 + '@types/react': 17.0.51 dev: false - /@types/react/17.0.50: - resolution: {integrity: sha512-ZCBHzpDb5skMnc1zFXAXnL3l1FAdi+xZvwxK+PkglMmBrwjpp9nKaWuEvrGnSifCJmBFGxZOOFuwC6KH/s0NuA==} + /@types/react/17.0.51: + resolution: {integrity: sha512-YMddzAE+nSH04BiTJ5GydTxk0/3hckqyuOclg0s6zQYj/XzfRVNzHZAFwZb5SCSavkzTYUtcq/gwjLnvt2Y4cg==} dependencies: '@types/prop-types': 15.7.5 '@types/scheduler': 0.16.2 csstype: 3.1.1 - /@types/react/18.0.22: - resolution: {integrity: sha512-4yWc5PyCkZN8ke8K9rQHkTXxHIWHxLzzW6RI1kXVoepkD3vULpKzC2sDtAMKn78h92BRYuzf+7b/ms7ajE6hFw==} + /@types/react/18.0.23: + resolution: {integrity: sha512-R1wTULtCiJkudAN2DJGoYYySbGtOdzZyUWAACYinKdiQC8auxso4kLDUhQ7AJ2kh3F6A6z4v69U6tNY39hihVQ==} dependencies: '@types/prop-types': 15.7.5 '@types/scheduler': 0.16.2 @@ -10369,8 +10369,8 @@ packages: '@algolia/transporter': 4.14.2 dev: false - /alpinejs/3.10.4: - resolution: {integrity: sha512-AC6Xchlb/xURO7F93OSMItooClpzGNZRM5+rDa6/3Y20mPxQs1TQ/wfiwiH4mtcVt8yTxdkOW5dOl8CBCK095A==} + /alpinejs/3.10.5: + resolution: {integrity: sha512-qlvnal44Gof2XVfm/lef8fYpXKxR9fjdSki7aFB/9THyFvbsRKZ6lM5SjxXpIs7B0faJt7bgpK2K25gzrraXJw==} dependencies: '@vue/reactivity': 3.1.5 dev: false @@ -12848,8 +12848,8 @@ packages: /github-from-package/0.0.0: resolution: {integrity: sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==} - /github-slugger/1.4.0: - resolution: {integrity: sha512-w0dzqw/nt51xMVmlaV1+JRzN+oCa1KfcgGEWhxUG16wbdA+Xnt/yoFO8Z8x/V82ZcZ0wy6ln9QDup5avbhiDhQ==} + /github-slugger/1.5.0: + resolution: {integrity: sha512-wIh+gKBI9Nshz2o46B0B3f5k/W+WI9ZAv6y5Dn5WJ5SK1t0TnDimB4WE5rmTD05ZAIn8HALCZVmCsvj0w0v0lw==} /glob-parent/5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} @@ -14216,7 +14216,7 @@ packages: '@types/github-slugger': 1.3.0 '@types/mdast': 3.0.10 extend: 3.0.2 - github-slugger: 1.4.0 + github-slugger: 1.5.0 mdast-util-to-string: 3.1.0 unist-util-is: 5.1.1 unist-util-visit: 3.1.0 @@ -16145,7 +16145,7 @@ packages: resolution: {integrity: sha512-X5v3wV/meuOX9NFcGhJvUpEjIvQl2gDvjg3z40RVprYFt7q3th4qMmYLULiu3gXvbNX1ppx+oaa6JyY1W67pTA==} dependencies: '@types/hast': 2.3.4 - github-slugger: 1.4.0 + github-slugger: 1.5.0 hast-util-has-property: 2.0.0 hast-util-heading-rank: 2.1.0 hast-util-to-string: 2.0.0 From 4efbfdd78d239f708a76eac38c2e971fc956a54e Mon Sep 17 00:00:00 2001 From: "Fred K. Bot" <108291165+fredkbot@users.noreply.github.com> Date: Wed, 26 Oct 2022 05:43:23 -0700 Subject: [PATCH 2/3] [ci] release (#5135) Co-authored-by: github-actions[bot] --- .changeset/chilly-experts-add.md | 9 ---- .changeset/clever-keys-hammer.md | 5 -- .changeset/dry-dragons-greet.md | 5 -- .changeset/gentle-insects-run.md | 5 -- .changeset/nine-roses-explain.md | 5 -- .changeset/smart-chicken-develop.md | 5 -- .changeset/wicked-laws-heal.md | 11 ---- examples/basics/package.json | 2 +- examples/blog/package.json | 4 +- examples/component/package.json | 4 +- examples/deno/package.json | 2 +- examples/docs/package.json | 2 +- examples/framework-alpine/package.json | 2 +- examples/framework-lit/package.json | 2 +- examples/framework-multiple/package.json | 2 +- examples/framework-preact/package.json | 2 +- examples/framework-react/package.json | 2 +- examples/framework-solid/package.json | 2 +- examples/framework-svelte/package.json | 2 +- examples/framework-vue/package.json | 2 +- examples/integration/package.json | 4 +- examples/minimal/package.json | 2 +- examples/non-html-pages/package.json | 2 +- examples/portfolio/package.json | 2 +- examples/ssr/package.json | 2 +- examples/with-markdown-plugins/package.json | 2 +- examples/with-markdown-shiki/package.json | 2 +- examples/with-mdx/package.json | 4 +- examples/with-nanostores/package.json | 2 +- examples/with-tailwindcss/package.json | 4 +- examples/with-vite-plugin-pwa/package.json | 2 +- examples/with-vitest/package.json | 2 +- packages/astro/CHANGELOG.md | 10 ++++ packages/astro/package.json | 2 +- packages/integrations/image/CHANGELOG.md | 18 +++++++ packages/integrations/image/package.json | 2 +- packages/integrations/mdx/CHANGELOG.md | 6 +++ packages/integrations/mdx/package.json | 2 +- packages/integrations/vercel/CHANGELOG.md | 6 +++ packages/integrations/vercel/package.json | 2 +- pnpm-lock.yaml | 56 ++++++++++----------- 41 files changed, 102 insertions(+), 107 deletions(-) delete mode 100644 .changeset/chilly-experts-add.md delete mode 100644 .changeset/clever-keys-hammer.md delete mode 100644 .changeset/dry-dragons-greet.md delete mode 100644 .changeset/gentle-insects-run.md delete mode 100644 .changeset/nine-roses-explain.md delete mode 100644 .changeset/smart-chicken-develop.md delete mode 100644 .changeset/wicked-laws-heal.md diff --git a/.changeset/chilly-experts-add.md b/.changeset/chilly-experts-add.md deleted file mode 100644 index 46c228c7d176..000000000000 --- a/.changeset/chilly-experts-add.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@astrojs/image': minor ---- - -Removes the `content-visibility: auto` styling added by the `` and `` components. - -**Why:** The [content-visibility](https://developer.mozilla.org/en-US/docs/Web/CSS/content-visibility) style is rarely needed for an `` and can actually break certain layouts. - -**Migration:** Do images in your layout actually depend on `content-visibility`? No problem! You can add these styles where needed in your own component styles. diff --git a/.changeset/clever-keys-hammer.md b/.changeset/clever-keys-hammer.md deleted file mode 100644 index 5e91f47e470b..000000000000 --- a/.changeset/clever-keys-hammer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/mdx': patch ---- - -Support recmaPlugins config option diff --git a/.changeset/dry-dragons-greet.md b/.changeset/dry-dragons-greet.md deleted file mode 100644 index 024dd2cdd47c..000000000000 --- a/.changeset/dry-dragons-greet.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix `.css?raw` usage diff --git a/.changeset/gentle-insects-run.md b/.changeset/gentle-insects-run.md deleted file mode 100644 index a2531c521720..000000000000 --- a/.changeset/gentle-insects-run.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Update `@astrojs/compiler` and use the new `resolvePath` option. This allows removing much of the runtime code, which should improve rendering performance for Astro and MDX pages. diff --git a/.changeset/nine-roses-explain.md b/.changeset/nine-roses-explain.md deleted file mode 100644 index 0b4c8e0199d3..000000000000 --- a/.changeset/nine-roses-explain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/vercel': patch ---- - -Edge adapter includes all the generated files (all files inside `dist/`) instead of only `entry.mjs` diff --git a/.changeset/smart-chicken-develop.md b/.changeset/smart-chicken-develop.md deleted file mode 100644 index da87ad0526f8..000000000000 --- a/.changeset/smart-chicken-develop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -`astro add` no longer automatically installs optional peer dependencies diff --git a/.changeset/wicked-laws-heal.md b/.changeset/wicked-laws-heal.md deleted file mode 100644 index bcaac613266e..000000000000 --- a/.changeset/wicked-laws-heal.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@astrojs/image': minor ---- - -HTML attributes included on the `` component are now passed down to the underlying `` element. - -**Why?** - -- when styling a `` the `class` and `style` attributes belong on the `` itself -- `` elements [should not](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture#attributes) actually provide any `aria-` attributes -- `width` and `height` can be added to the `` to help prevent layout shift diff --git a/examples/basics/package.json b/examples/basics/package.json index b70ca6110e47..39a1699fc1c0 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2" + "astro": "^1.5.3" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index d50495adb1e4..d3af8c79f086 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -11,8 +11,8 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2", - "@astrojs/mdx": "^0.11.4", + "astro": "^1.5.3", + "@astrojs/mdx": "^0.11.5", "@astrojs/rss": "^1.0.2", "@astrojs/sitemap": "^1.0.0" } diff --git a/examples/component/package.json b/examples/component/package.json index b963b7cc2687..ab60f220bc2a 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,9 +15,9 @@ ], "scripts": {}, "devDependencies": { - "astro": "^1.5.2" + "astro": "^1.5.3" }, "peerDependencies": { - "astro": "^1.5.2" + "astro": "^1.5.3" } } diff --git a/examples/deno/package.json b/examples/deno/package.json index 86f8afaeda3a..35c8d9bfd677 100644 --- a/examples/deno/package.json +++ b/examples/deno/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2" + "astro": "^1.5.3" }, "devDependencies": { "@astrojs/deno": "^1.2.0" diff --git a/examples/docs/package.json b/examples/docs/package.json index aec6dd2fefba..360201f1a9f0 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -12,7 +12,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2", + "astro": "^1.5.3", "preact": "^10.7.3", "react": "^18.1.0", "react-dom": "^18.1.0", diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index cbd2c7d3f2b1..b5a24b13b546 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2", + "astro": "^1.5.3", "alpinejs": "^3.10.2", "@astrojs/alpinejs": "^0.1.2", "@types/alpinejs": "^3.7.0" diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index e45f09e4fba5..940c382113e1 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2", + "astro": "^1.5.3", "lit": "^2.2.5", "@astrojs/lit": "^1.0.0", "@webcomponents/template-shadowroot": "^0.1.0" diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 6344c2d428da..fc2195cb75a3 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2", + "astro": "^1.5.3", "preact": "^10.7.3", "react": "^18.1.0", "react-dom": "^18.1.0", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index fd1d8c4d30cb..c61e3598927b 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2", + "astro": "^1.5.3", "preact": "^10.7.3", "@astrojs/preact": "^1.2.0", "@preact/signals": "^1.1.0" diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index f4809b7a6df1..a990cbdd7dfb 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2", + "astro": "^1.5.3", "react": "^18.1.0", "react-dom": "^18.1.0", "@astrojs/react": "^1.2.1", diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index bfc67cc7d5f6..41b0e4c76235 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2", + "astro": "^1.5.3", "solid-js": "^1.4.3", "@astrojs/solid-js": "^1.2.1" } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 0c3374ad4d4c..3ce7663c83ef 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -13,6 +13,6 @@ "dependencies": { "svelte": "^3.48.0", "@astrojs/svelte": "^1.0.2", - "astro": "^1.5.2" + "astro": "^1.5.3" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 6eb8da1b0dd3..edf546ae713b 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2", + "astro": "^1.5.3", "vue": "^3.2.37", "@astrojs/vue": "^1.2.1" } diff --git a/examples/integration/package.json b/examples/integration/package.json index adae0a346789..abcfd17b2981 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,9 +15,9 @@ ], "scripts": {}, "devDependencies": { - "astro": "^1.5.2" + "astro": "^1.5.3" }, "peerDependencies": { - "astro": "^1.5.2" + "astro": "^1.5.3" } } diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 1bfe21554d8a..7bf90c8022bb 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2" + "astro": "^1.5.3" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 5c1db8c77e13..6818c334c96b 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2" + "astro": "^1.5.3" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 385a99bd1f37..4dd2fb3dc128 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2" + "astro": "^1.5.3" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 586c2b9d3313..0b3f7c7bb00a 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -12,7 +12,7 @@ "server": "node dist/server/entry.mjs" }, "dependencies": { - "astro": "^1.5.2", + "astro": "^1.5.3", "svelte": "^3.48.0", "@astrojs/svelte": "^1.0.2", "@astrojs/node": "^2.0.1", diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 6b90e09e1559..371e19987f7f 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2", + "astro": "^1.5.3", "@astrojs/markdown-remark": "^1.1.3", "hast-util-select": "5.0.1", "rehype-autolink-headings": "^6.1.1", diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json index 41a336834397..34eed9fad1b6 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2" + "astro": "^1.5.3" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index eb712d7c27a6..34d5424ce342 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2", + "astro": "^1.5.3", "preact": "^10.6.5", "@astrojs/preact": "^1.2.0", - "@astrojs/mdx": "^0.11.4" + "@astrojs/mdx": "^0.11.5" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 9fbe5c4ce688..e73ea6862014 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2", + "astro": "^1.5.3", "preact": "^10.7.3", "@astrojs/preact": "^1.2.0", "nanostores": "^0.5.12", diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 5bc7162cda5d..b33bd0a91339 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -11,10 +11,10 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^0.11.4", + "@astrojs/mdx": "^0.11.5", "@astrojs/tailwind": "^2.1.1", "@types/canvas-confetti": "^1.4.3", - "astro": "^1.5.2", + "astro": "^1.5.3", "autoprefixer": "^10.4.7", "canvas-confetti": "^1.5.1", "postcss": "^8.4.14", diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json index d41074b0dbb9..115e9a9d3eef 100644 --- a/examples/with-vite-plugin-pwa/package.json +++ b/examples/with-vite-plugin-pwa/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.5.2", + "astro": "^1.5.3", "vite-plugin-pwa": "0.11.11", "workbox-window": "^6.5.3" } diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index 8cb091d7a85c..782876289182 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^1.5.2", + "astro": "^1.5.3", "vitest": "^0.20.3" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 33a077cef4d7..95a563de0a6d 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,15 @@ # astro +## 1.5.3 + +### Patch Changes + +- [#5133](https://github.com/withastro/astro/pull/5133) [`1c477dd8d`](https://github.com/withastro/astro/commit/1c477dd8d9026fcbd533b4e6d11908e167ce7247) Thanks [@bluwy](https://github.com/bluwy)! - Fix `.css?raw` usage + +- [#5133](https://github.com/withastro/astro/pull/5133) [`1c477dd8d`](https://github.com/withastro/astro/commit/1c477dd8d9026fcbd533b4e6d11908e167ce7247) Thanks [@bluwy](https://github.com/bluwy)! - Update `@astrojs/compiler` and use the new `resolvePath` option. This allows removing much of the runtime code, which should improve rendering performance for Astro and MDX pages. + +- [#5192](https://github.com/withastro/astro/pull/5192) [`8728ee0b9`](https://github.com/withastro/astro/commit/8728ee0b94ef28524900367a06b9fe806babd574) Thanks [@tony-sull](https://github.com/tony-sull)! - `astro add` no longer automatically installs optional peer dependencies + ## 1.5.2 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index fdfe081e7b8f..527a87e1a061 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "1.5.2", + "version": "1.5.3", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro", diff --git a/packages/integrations/image/CHANGELOG.md b/packages/integrations/image/CHANGELOG.md index 8bc7b470ed33..3c6632685e8a 100644 --- a/packages/integrations/image/CHANGELOG.md +++ b/packages/integrations/image/CHANGELOG.md @@ -1,5 +1,23 @@ # @astrojs/image +## 0.11.0 + +### Minor Changes + +- [#5180](https://github.com/withastro/astro/pull/5180) [`b77200f42`](https://github.com/withastro/astro/commit/b77200f42399ea31b0045bc0e6bfe2c1c5ccc970) Thanks [@tony-sull](https://github.com/tony-sull)! - Removes the `content-visibility: auto` styling added by the `` and `` components. + + **Why:** The [content-visibility](https://developer.mozilla.org/en-US/docs/Web/CSS/content-visibility) style is rarely needed for an `` and can actually break certain layouts. + + **Migration:** Do images in your layout actually depend on `content-visibility`? No problem! You can add these styles where needed in your own component styles. + +- [#5038](https://github.com/withastro/astro/pull/5038) [`ed2dfdae5`](https://github.com/withastro/astro/commit/ed2dfdae5bea93746be883bc528c1fb6407af6eb) Thanks [@emmanuelchucks](https://github.com/emmanuelchucks)! - HTML attributes included on the `` component are now passed down to the underlying `` element. + + **Why?** + + - when styling a `` the `class` and `style` attributes belong on the `` itself + - `` elements [should not](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture#attributes) actually provide any `aria-` attributes + - `width` and `height` can be added to the `` to help prevent layout shift + ## 0.10.0 ### Minor Changes diff --git a/packages/integrations/image/package.json b/packages/integrations/image/package.json index 293a985e29a4..d43da956b361 100644 --- a/packages/integrations/image/package.json +++ b/packages/integrations/image/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/image", "description": "Load and transform images in your Astro site.", - "version": "0.10.0", + "version": "0.11.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/mdx/CHANGELOG.md b/packages/integrations/mdx/CHANGELOG.md index d02c39ea87cc..62ecd2391047 100644 --- a/packages/integrations/mdx/CHANGELOG.md +++ b/packages/integrations/mdx/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/mdx +## 0.11.5 + +### Patch Changes + +- [#5146](https://github.com/withastro/astro/pull/5146) [`308e565ad`](https://github.com/withastro/astro/commit/308e565ad39957e3353d72ca5d3bbce1a1b45008) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Support recmaPlugins config option + ## 0.11.4 ### Patch Changes diff --git a/packages/integrations/mdx/package.json b/packages/integrations/mdx/package.json index 6ef66c27e55f..3275b27a3005 100644 --- a/packages/integrations/mdx/package.json +++ b/packages/integrations/mdx/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/mdx", "description": "Use MDX within Astro", - "version": "0.11.4", + "version": "0.11.5", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/vercel/CHANGELOG.md b/packages/integrations/vercel/CHANGELOG.md index 0d89cb7a09dc..426a470e4cc3 100644 --- a/packages/integrations/vercel/CHANGELOG.md +++ b/packages/integrations/vercel/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/vercel +## 2.3.2 + +### Patch Changes + +- [#5175](https://github.com/withastro/astro/pull/5175) [`abf41da77`](https://github.com/withastro/astro/commit/abf41da774516395a49aca30693dccdc4f8d7114) Thanks [@JuanM04](https://github.com/JuanM04)! - Edge adapter includes all the generated files (all files inside `dist/`) instead of only `entry.mjs` + ## 2.3.1 ### Patch Changes diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json index 4dc43181b7ef..5c2240094ffe 100644 --- a/packages/integrations/vercel/package.json +++ b/packages/integrations/vercel/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/vercel", "description": "Deploy your site to Vercel", - "version": "2.3.1", + "version": "2.3.2", "type": "module", "author": "withastro", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e75bc2e81bbf..c3305b60a887 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -61,16 +61,16 @@ importers: examples/basics: specifiers: - astro: ^1.5.2 + astro: ^1.5.3 dependencies: astro: link:../../packages/astro examples/blog: specifiers: - '@astrojs/mdx': ^0.11.4 + '@astrojs/mdx': ^0.11.5 '@astrojs/rss': ^1.0.2 '@astrojs/sitemap': ^1.0.0 - astro: ^1.5.2 + astro: ^1.5.3 dependencies: '@astrojs/mdx': link:../../packages/integrations/mdx '@astrojs/rss': link:../../packages/astro-rss @@ -79,14 +79,14 @@ importers: examples/component: specifiers: - astro: ^1.5.2 + astro: ^1.5.3 devDependencies: astro: link:../../packages/astro examples/deno: specifiers: '@astrojs/deno': ^1.2.0 - astro: ^1.5.2 + astro: ^1.5.3 dependencies: astro: link:../../packages/astro devDependencies: @@ -102,7 +102,7 @@ importers: '@types/node': ^18.0.0 '@types/react': ^17.0.45 '@types/react-dom': ^18.0.0 - astro: ^1.5.2 + astro: ^1.5.3 preact: ^10.7.3 react: ^18.1.0 react-dom: ^18.1.0 @@ -125,7 +125,7 @@ importers: '@astrojs/alpinejs': ^0.1.2 '@types/alpinejs': ^3.7.0 alpinejs: ^3.10.2 - astro: ^1.5.2 + astro: ^1.5.3 dependencies: '@astrojs/alpinejs': link:../../packages/integrations/alpinejs '@types/alpinejs': 3.7.0 @@ -136,7 +136,7 @@ importers: specifiers: '@astrojs/lit': ^1.0.0 '@webcomponents/template-shadowroot': ^0.1.0 - astro: ^1.5.2 + astro: ^1.5.3 lit: ^2.2.5 dependencies: '@astrojs/lit': link:../../packages/integrations/lit @@ -151,7 +151,7 @@ importers: '@astrojs/solid-js': ^1.2.1 '@astrojs/svelte': ^1.0.2 '@astrojs/vue': ^1.2.1 - astro: ^1.5.2 + astro: ^1.5.3 preact: ^10.7.3 react: ^18.1.0 react-dom: ^18.1.0 @@ -176,7 +176,7 @@ importers: specifiers: '@astrojs/preact': ^1.2.0 '@preact/signals': ^1.1.0 - astro: ^1.5.2 + astro: ^1.5.3 preact: ^10.7.3 dependencies: '@astrojs/preact': link:../../packages/integrations/preact @@ -189,7 +189,7 @@ importers: '@astrojs/react': ^1.2.1 '@types/react': ^18.0.10 '@types/react-dom': ^18.0.5 - astro: ^1.5.2 + astro: ^1.5.3 react: ^18.1.0 react-dom: ^18.1.0 dependencies: @@ -203,7 +203,7 @@ importers: examples/framework-solid: specifiers: '@astrojs/solid-js': ^1.2.1 - astro: ^1.5.2 + astro: ^1.5.3 solid-js: ^1.4.3 dependencies: '@astrojs/solid-js': link:../../packages/integrations/solid @@ -213,7 +213,7 @@ importers: examples/framework-svelte: specifiers: '@astrojs/svelte': ^1.0.2 - astro: ^1.5.2 + astro: ^1.5.3 svelte: ^3.48.0 dependencies: '@astrojs/svelte': link:../../packages/integrations/svelte @@ -223,7 +223,7 @@ importers: examples/framework-vue: specifiers: '@astrojs/vue': ^1.2.1 - astro: ^1.5.2 + astro: ^1.5.3 vue: ^3.2.37 dependencies: '@astrojs/vue': link:../../packages/integrations/vue @@ -232,25 +232,25 @@ importers: examples/integration: specifiers: - astro: ^1.5.2 + astro: ^1.5.3 devDependencies: astro: link:../../packages/astro examples/minimal: specifiers: - astro: ^1.5.2 + astro: ^1.5.3 dependencies: astro: link:../../packages/astro examples/non-html-pages: specifiers: - astro: ^1.5.2 + astro: ^1.5.3 dependencies: astro: link:../../packages/astro examples/portfolio: specifiers: - astro: ^1.5.2 + astro: ^1.5.3 dependencies: astro: link:../../packages/astro @@ -258,7 +258,7 @@ importers: specifiers: '@astrojs/node': ^2.0.1 '@astrojs/svelte': ^1.0.2 - astro: ^1.5.2 + astro: ^1.5.3 concurrently: ^7.2.1 svelte: ^3.48.0 unocss: ^0.15.6 @@ -275,7 +275,7 @@ importers: examples/with-markdown-plugins: specifiers: '@astrojs/markdown-remark': ^1.1.3 - astro: ^1.5.2 + astro: ^1.5.3 hast-util-select: 5.0.1 rehype-autolink-headings: ^6.1.1 rehype-slug: ^5.0.1 @@ -292,15 +292,15 @@ importers: examples/with-markdown-shiki: specifiers: - astro: ^1.5.2 + astro: ^1.5.3 dependencies: astro: link:../../packages/astro examples/with-mdx: specifiers: - '@astrojs/mdx': ^0.11.4 + '@astrojs/mdx': ^0.11.5 '@astrojs/preact': ^1.2.0 - astro: ^1.5.2 + astro: ^1.5.3 preact: ^10.6.5 dependencies: '@astrojs/mdx': link:../../packages/integrations/mdx @@ -312,7 +312,7 @@ importers: specifiers: '@astrojs/preact': ^1.2.0 '@nanostores/preact': ^0.1.3 - astro: ^1.5.2 + astro: ^1.5.3 nanostores: ^0.5.12 preact: ^10.7.3 dependencies: @@ -324,10 +324,10 @@ importers: examples/with-tailwindcss: specifiers: - '@astrojs/mdx': ^0.11.4 + '@astrojs/mdx': ^0.11.5 '@astrojs/tailwind': ^2.1.1 '@types/canvas-confetti': ^1.4.3 - astro: ^1.5.2 + astro: ^1.5.3 autoprefixer: ^10.4.7 canvas-confetti: ^1.5.1 postcss: ^8.4.14 @@ -344,7 +344,7 @@ importers: examples/with-vite-plugin-pwa: specifiers: - astro: ^1.5.2 + astro: ^1.5.3 vite-plugin-pwa: 0.11.11 workbox-window: ^6.5.3 dependencies: @@ -354,7 +354,7 @@ importers: examples/with-vitest: specifiers: - astro: ^1.5.2 + astro: ^1.5.3 vitest: ^0.20.3 dependencies: astro: link:../../packages/astro From d151d9f3f29c0a57c59b8029a18717808ccc7f8f Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 26 Oct 2022 15:46:25 +0200 Subject: [PATCH 3/3] enable access to cloudflare runtime (#5103) * enable access to cloudflare runtime * added get runtime api added context to the runtime in "advanced" mode * added typings and adjusted some return vars * added default types * added usage description to changeset and readme Co-authored-by: AirBorne04 Co-authored-by: AirBorne04 <> --- .changeset/poor-frogs-clean.md | 6 ++++ packages/integrations/cloudflare/README.md | 12 ++++++++ packages/integrations/cloudflare/package.json | 3 +- .../integrations/cloudflare/src/runtime.ts | 28 +++++++++++++++++++ .../cloudflare/src/server.advanced.ts | 4 ++- .../cloudflare/src/server.directory.ts | 9 ++++-- 6 files changed, 58 insertions(+), 4 deletions(-) create mode 100644 .changeset/poor-frogs-clean.md create mode 100644 packages/integrations/cloudflare/src/runtime.ts diff --git a/.changeset/poor-frogs-clean.md b/.changeset/poor-frogs-clean.md new file mode 100644 index 000000000000..353e304daed9 --- /dev/null +++ b/.changeset/poor-frogs-clean.md @@ -0,0 +1,6 @@ +--- +'@astrojs/cloudflare': patch +--- + +enable access to cloudflare runtime [KV, R2, Durable Objects] +- access native cloudflare runtime through `import { getRuntime } from "@astrojs/cloudflare/runtime"` now you can call `getRuntime(Astro.request)` and get access to the runtime environment diff --git a/packages/integrations/cloudflare/README.md b/packages/integrations/cloudflare/README.md index 755451185a71..66f4fdd209e4 100644 --- a/packages/integrations/cloudflare/README.md +++ b/packages/integrations/cloudflare/README.md @@ -68,6 +68,18 @@ $ pnpm install wrangler --save-dev It's then possible to update the preview script in your `package.json` to `"preview": "wrangler pages dev ./dist"`.This will allow you run your entire application locally with [Wrangler](https://github.com/cloudflare/wrangler2), which supports secrets, environment variables, KV namespaces, Durable Objects and [all other supported Cloudflare bindings](https://developers.cloudflare.com/pages/platform/functions/#adding-bindings). +## Access to the cloudflare runtime + +You have the posibility to access all the cloudflare bindings and environment variables from your astro pages and api routes through the adapter API + +``` +import { getRuntime } from "@astrojs/cloudflare/runtime"; + +getRuntime(Astro.request); +``` + +Depending your adapter mode (advanced = worker, directory = pages) the runtime object will look a little different due to the difference in the cloudflare API. + ## Streams Some integrations such as [React](https://github.com/withastro/astro/tree/main/packages/integrations/react) rely on web streams. Currently Cloudflare Pages Functions require enabling a flag to support Streams. diff --git a/packages/integrations/cloudflare/package.json b/packages/integrations/cloudflare/package.json index b33216c09063..df1348a18868 100644 --- a/packages/integrations/cloudflare/package.json +++ b/packages/integrations/cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/cloudflare", - "description": "Deploy your site to cloudflare pages functions", + "description": "Deploy your site to cloudflare workers or cloudflare pages", "version": "3.1.0", "type": "module", "types": "./dist/index.d.ts", @@ -19,6 +19,7 @@ "homepage": "https://docs.astro.build/en/guides/integrations-guide/cloudflare/", "exports": { ".": "./dist/index.js", + "./runtime": "./dist/runtime.js", "./server.advanced.js": "./dist/server.advanced.js", "./server.directory.js": "./dist/server.directory.js", "./package.json": "./package.json" diff --git a/packages/integrations/cloudflare/src/runtime.ts b/packages/integrations/cloudflare/src/runtime.ts new file mode 100644 index 000000000000..ddf372cb4d40 --- /dev/null +++ b/packages/integrations/cloudflare/src/runtime.ts @@ -0,0 +1,28 @@ +export type WorkerRuntime = { + name: 'cloudflare'; + env: T; + waitUntil(promise: Promise): void; + passThroughOnException(): void; +}; + +export type PagesRuntime = { + name: 'cloudflare'; + env: T; + functionPath: string; + params: Record; + data: U; + waitUntil(promise: Promise): void; + next(request: Request): void; +}; + +export function getRuntime( + request: Request +): WorkerRuntime | PagesRuntime { + if (!!request) { + return Reflect.get(request, Symbol.for('runtime')); + } else { + throw new Error( + 'To retrieve the current cloudflare runtime you need to pass in the Astro request object' + ); + } +} diff --git a/packages/integrations/cloudflare/src/server.advanced.ts b/packages/integrations/cloudflare/src/server.advanced.ts index c285ccaba044..502700e0be97 100644 --- a/packages/integrations/cloudflare/src/server.advanced.ts +++ b/packages/integrations/cloudflare/src/server.advanced.ts @@ -5,12 +5,13 @@ import { App } from 'astro/app'; type Env = { ASSETS: { fetch: (req: Request) => Promise }; + name: string; }; export function createExports(manifest: SSRManifest) { const app = new App(manifest, false); - const fetch = async (request: Request, env: Env) => { + const fetch = async (request: Request, env: Env, context: any) => { const { origin, pathname } = new URL(request.url); // static assets @@ -26,6 +27,7 @@ export function createExports(manifest: SSRManifest) { Symbol.for('astro.clientAddress'), request.headers.get('cf-connecting-ip') ); + Reflect.set(request, Symbol.for('runtime'), { env, name: 'cloudflare', ...context }); let response = await app.render(request, routeData); if (app.setCookieHeaders) { diff --git a/packages/integrations/cloudflare/src/server.directory.ts b/packages/integrations/cloudflare/src/server.directory.ts index e51d0ea57c7a..d31e2189fde6 100644 --- a/packages/integrations/cloudflare/src/server.directory.ts +++ b/packages/integrations/cloudflare/src/server.directory.ts @@ -9,12 +9,12 @@ export function createExports(manifest: SSRManifest) { const onRequest = async ({ request, next, + ...runtimeEnv }: { request: Request; next: (request: Request) => void; - }) => { + } & Record) => { const { origin, pathname } = new URL(request.url); - // static assets if (manifest.assets.has(pathname)) { const assetRequest = new Request(`${origin}/static${pathname}`, request); @@ -28,6 +28,11 @@ export function createExports(manifest: SSRManifest) { Symbol.for('astro.clientAddress'), request.headers.get('cf-connecting-ip') ); + Reflect.set(request, Symbol.for('runtime'), { + ...runtimeEnv, + name: 'cloudflare', + next, + }); let response = await app.render(request, routeData); if (app.setCookieHeaders) {