The web framework for content-driven websites. ⭐️ Star to support our work!
OTHER License
Published by astrobot-houston 8 months ago
#10221 4db82d9c7dce3b73fe43b86020fcfa326c1357ec
Thanks @matthewp! - Prevents errors in templates from crashing the server
#10219 afcb9d331179287629b5ffce4020931258bebefa
Thanks @matthewp! - Fix dynamic slots missing hydration scripts
#10220 1eadb1c5290f2f4baf538c34889a09d5fcfb9bd4
Thanks @Princesseuh! - Fixes some built-in apps of the dev toolbar not closing when clicking the page
#10154 e64bd0740b44aed5cfaf67e5c37a1c56ed4442f4
Thanks @Cherry! - Fixes an issue where config.vite.build.assetsInlineLimit
could not be set as a function.
#10196 8fb32f390d40cfa12a82c0645928468d27218866
Thanks @lilnasy! - Fixes an issue where a warning about headers being accessed in static mode is unnecessarily shown when i18n is enabled.
#10199 6aa660ae7abc6841d7a3396b29f10b9fb7910ce5
Thanks @lilnasy! - Fixes an issue where prerendered pages had access to query params in dev mode.
Published by astrobot-houston 8 months ago
ae2a10e1a768e31d243194694222932ffafb54cc
Thanks @mingjunlu! - Fixes an issue where functions were also created for prerendered routes with functionPerRoute
enabled.Published by astrobot-houston 8 months ago
84502b41907316431c911f6f2ab9d432c7327065
Thanks @mwc! - Bumps Svelte 5 peer dependency to ^5.0.0-next.56
and support its latest breaking changesPublished by astrobot-houston 8 months ago
#10223 aa45eb9fa60b254e859750d9cef671daa605b213
Thanks @bholmesdev! - Fix: use correct remote database url during production builds
#10207 5d4ff093a21c072553b2cac6c799d3efa3cb84c0
Thanks @bholmesdev! - Improve error messaging when seeding invalid data.
Published by astrobot-houston 8 months ago
#10195 903eace233033998811b72e27a54c80d8e59ff37
Thanks @1574242600! - Fix build failure caused by read-only files under /public (in the presence of client-side JS).
#10205 459f74bc71748279fe7dce0688f38bd74b51c5c1
Thanks @martrapp! - Adds an error message for non-string transition:name values
#10208 8cd38f02456640c063552aef00b2b8a216b3935d
Thanks @log101! - Fixes custom headers are not added to the Node standalone server responses in preview mode
Published by astrobot-houston 8 months ago
f85ace2e66370e522b5a4e9b54c578a02298fe0e
Thanks @matthewp! - @astrojs/db prereleasePublished by astrobot-houston 8 months ago
a013182d322a3969e39d647aad75ec10f8bd1ed7
Thanks @matthewp! - Fixes edge middleware calling nested routesPublished by astrobot-houston 8 months ago
8cd38f02456640c063552aef00b2b8a216b3935d
Thanks @log101! - Fixes custom headers are not added to the Node standalone server responses in preview modePublished by astrobot-houston 8 months ago
c692d0c66a5062937e47402dc700d41c2a5dfc5c
Thanks @Princesseuh! - Fixes passing children to server-rendered components causing an errorPublished by astrobot-houston 8 months ago
#10143 7c5fcd2fa817472f480bbfbbc11b9ed71a7210ab
Thanks @bluwy! - Improves the default optimizeDeps.entries
Vite config to avoid globbing server endpoints, and respect the srcDir
option
#10197 c856c729404196900a7386c8426b81e79684a6a9
Thanks @Princesseuh! - Fixes errors being logged twice in some cases
#10166 598f30c7cd6c88558e3806d9bc5a15d426d83992
Thanks @bluwy! - Improves Astro style tag HMR when updating imported styles
#10194 3cc20109277813ccb9578ca87a8b0d680a73c35c
Thanks @matthewp! - Fixes an issue related to content collections usage in browser context caused by csssec
Published by astrobot-houston 8 months ago
3cc20109277813ccb9578ca87a8b0d680a73c35c
Thanks @matthewp! - Fix loading client-scripts in dev with ISRPublished by astrobot-houston 8 months ago
a46249173edde66b03c19441144272baa8394fb4
Thanks @ematipico! - Fixes an issue with the i18n.routing
types, where an internal transformation was causing the generation of incorrect types for integrations.Published by astrobot-houston 8 months ago
#10179 6343f6a438d790fa16a0dd268f4a51def4fa0f33
Thanks @ematipico! - Revert https://github.com/withastro/astro/pull/9846
The feature to customize the file name of the sitemap was reverted due to some internal issues with one of the dependencies. With an non-deterministic behaviour, the sitemap file was sometime emitted with incorrect syntax.
#9975 ec7d2ebbd96b8c2dfdadaf076bbf7953007536ed
Thanks @moose96! - Fixes URL generation for routes that rest parameters and start with /
Published by astrobot-houston 8 months ago
#9795 5acc3135ba5309a566def466fbcbabd23f70cd68
Thanks @lilnasy! - Refactors internals relating to middleware, endpoints, and page rendering.
#10105 1f598b372410066c6fcd41cba9915f6aaf7befa8
Thanks @negativems! - Fixes an issue where some astro commands failed if the astro config file or an integration used the global crypto
object.
#10165 d50dddb71d87ce5b7928920f10eb4946a5339f86
Thanks @ematipico! - Fixes an issue where the i18n.routing
object had all its fields defined as mandatory. Now they all are optionals and shouldn't break when using astro.config.mts
.
#10132 1da9c5f2f3fe70b0206d1b3e0c01744fa40d511c
Thanks @bluwy! - Simplifies internal Vite preview server teardown
#10163 b92d35f1026f3e99abb888d1a845bdda4efdc327
Thanks @mingjunlu! - Fixes an issue where audit fails to initialize when encountered <a>
inside <svg>
#10079 80f8996514e6d0546e94bd927650cd4ab2f1fa2f
Thanks @ktym4a! - Fix integrationData fetch to always be called even if View Transition is enabled.
#10139 3c73441eb2eaba767d6dad1b30c0353195d28791
Thanks @bluwy! - Fixes style-only change detection for Astro files if both the markup and styles are updated
Published by astrobot-houston 8 months ago
#9846 9b78c992750cdb99c40a89a00ea2a0d1c00877d7
Thanks @ktym4a! - Adds a new configuration option prefix
that allows you to change the default sitemap-*.xml
file name.
By default, running astro build
creates both sitemap-index.xml
and sitemap-0.xml
in your output directory.
To change the names of these files (e.g. to astrosite-index.xml
and astrosite-0.xml
), set the prefix
option in your sitemap
integration configuration:
import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
export default defineConfig({
site: 'https://example.com',
integrations: [
sitemap({
prefix: 'astrosite-',
}),
],
});
This option is useful when Google Search Console is unable to fetch your default sitemap files, but can read renamed files.
Published by astrobot-houston 8 months ago
#9614 d469bebd7b45b060dc41d82ab1cf18ee6de7e051
Thanks @matthewp! - Improves Node.js streaming performance.
This uses an AsyncIterable
instead of a ReadableStream
to do streaming in Node.js. This is a non-standard enhancement by Node, which is done only in that environment.
#10001 748b2e87cd44d8bcc1ab9d7e504703057e2000cd
Thanks @bholmesdev! - Removes content collection warning when a configured collection does not have a matching directory name. This should resolve i18n
collection warnings for Starlight users.
This also ensures configured collection names are always included in getCollection()
and getEntry()
types even when a matching directory is absent. We hope this allows users to discover typos during development by surfacing type information.
#10074 7443929381b47db0639c49a4d32aec4177bd9102
Thanks @Princesseuh! - Add a UI showing the list of found problems when using the audit app in the dev toolbar
#10099 b340f8fe3aaa81e38c4f1aa41498b159dc733d86
Thanks @martrapp! - Fixes a regression where view transition names containing special characters such as spaces or punctuation stopped working.
Regular use naming your transitions with transition: name
is unaffected.
However, this fix may result in breaking changes if your project relies on the particular character encoding strategy Astro uses to translate transition:name
directives into values of the underlying CSS view-transition-name
property. For example, Welcome to Astro
is now encoded as Welcome_20to_20Astro_2e
.
This mainly affects spaces and punctuation marks but no Unicode characters with codes >= 128.
#9976 91f75afbc642b6e73dd4ec18a1fe2c3128c68132
Thanks @OliverSpeir! - Adds a new optional astro:assets
image attribute inferSize
for use with remote images.
Remote images can now have their dimensions inferred just like local images. Setting inferSize
to true
allows you to use getImage()
and the <Image />
and <Picture />
components without setting the width
and height
properties.
---
import { Image, Picture, getImage } from 'astro:assets';
const myPic = await getImage({ src: 'https://example.com/example.png', inferSize: true });
---
<Image src="https://example.com/example.png" inferSize alt="" />
<Picture src="https://example.com/example.png" inferSize alt="" />
Read more about using inferSize
with remote images in our documentation.
#10015 6884b103c8314a43e926c6acdf947cbf812a21f4
Thanks @Princesseuh! - Adds initial support for performance audits to the dev toolbar
#10116 4bcc249a9f34aaac59658ca626c828bd6dbb8046
Thanks @lilnasy! - Fixes an issue where the dev server froze when typescript aliases were used.
#10096 227cd83a51bbd451dc223fd16f4cf1b87b8e44f8
Thanks @Fryuni! - Fixes regression on routing priority for multi-layer index pages
The sorting algorithm positions more specific routes before less specific routes, and considers index pages to be more specific than a dynamic route with a rest parameter inside of it.
This means that /blog
is considered more specific than /blog/[...slug]
.
But this special case was being applied incorrectly to indexes, which could cause a problem in scenarios like the following:
/
/blog
/blog/[...slug]
The algorithm would make the following comparisons:
/
is more specific than /blog
(incorrect)/blog/[...slug]
is more specific than /
(correct)/blog
is more specific than /blog/[...slug]
(correct)Although the incorrect first comparison is not a problem by itself, it could cause the algorithm to make the wrong decision.
Depending on the other routes in the project, the sorting could perform just the last two comparisons and by transitivity infer the inverse of the third (/blog/[...slug
> /
> /blog
), which is incorrect.
Now the algorithm doesn't have a special case for index pages and instead does the comparison soleley for rest parameter segments and their immediate parents, which is consistent with the transitivity property.
#10120 787e6f52470cf07fb50c865948b2bc8fe45a6d31
Thanks @bluwy! - Updates and supports Vite 5.1
#10096 227cd83a51bbd451dc223fd16f4cf1b87b8e44f8
Thanks @Fryuni! - Fixes edge case on i18n fallback routes
Previously index routes deeply nested in the default locale, like /some/nested/index.astro
could be mistaked as the root index for the default locale, resulting in an incorrect redirect on /
.
#10112 476b79a61165d0aac5e98459a4ec90762050a14b
Thanks @Princesseuh! - Renames the home Astro Devoolbar App to astro:home
#10117 51b6ff7403c1223b1c399e88373075972c82c24c
Thanks @hippotastic! - Fixes an issue where create astro
, astro add
and @astrojs/upgrade
would fail due to unexpected package manager CLI output.
Published by astrobot-houston 8 months ago
51b6ff7403c1223b1c399e88373075972c82c24c
Thanks @hippotastic! - Fixes an issue where create astro
, astro add
and @astrojs/upgrade
would fail due to unexpected package manager CLI output.Published by astrobot-houston 8 months ago
51b6ff7403c1223b1c399e88373075972c82c24c
Thanks @hippotastic! - Fixes an issue where create astro
, astro add
and @astrojs/upgrade
would fail due to unexpected package manager CLI output.Published by astrobot-houston 8 months ago
#9857 73bd900754365b006ee730df9f379ba924e5b3fa
Thanks @iamyunsin! - Fixes false positives in the dev overlay audit when multiple role
values exist.
#10075 71273edbb429b5afdba6f8ee14681b66e4c09ecc
Thanks @lilnasy! - Improves error messages for island hydration.
#10072 8106178043050d142bf385bed2990730518f28e2
Thanks @lilnasy! - Clarifies error messages in endpoint routing.
#9971 d9266c4467ca0faa1213c1a5995164e5655ab375
Thanks @mingjunlu! - Fixes an issue where ReadableStream wasn't canceled in dev mode
Published by astrobot-houston 8 months ago
2ffc5721bc22631c44d90ac43ec27fdb0b5b2d1b
Thanks @florian-lefebvre! - Prevents infinite redirects when Astro trailingSlash
configuration is set to "always"
and "vercel.json" trailingSlash
configuration is set to true