AstroEco is Releasing…
Display your GitHub releases using astro-loader-github-releases
Patch Changes
-
#15415
cc3c46cThanks @ematipico! - Fixes an issue where CSP headers were incorrectly injected in the development server. -
#15412
c546563Thanks @florian-lefebvre! - Improves theAstroAdaptertype and how legacy adapters are handled -
#15421
bf62b6fThanks @Princesseuh! - Removes unintended logging
Major Changes
-
#15400
41eb284Thanks @florian-lefebvre! - Removes theworkerEntryPointoption, which wasn't used anymore. Set themainfield of your wrangler config insteadSee how to migrate
Patch Changes
- Updated dependencies []:
- @astrojs/underscore-redirects@1.0.0
Minor Changes
-
#15258
d339a18Thanks @ematipico! - Stabilizes the adapter featureexperimentalStatiHeaders. If you were using this feature in any of the supported adapters, you'll need to change the name of the flag:export default defineConfig({ adapter: netlify({ - experimentalStaticHeaders: true + staticHeaders: true }) })
Minor Changes
-
#15258
d339a18Thanks @ematipico! - Stabilizes the adapter featureexperimentalStatiHeaders. If you were using this feature in any of the supported adapters, you'll need to change the name of the flag:export default defineConfig({ adapter: netlify({ - experimentalStaticHeaders: true + staticHeaders: true }) })
Patch Changes
-
#15167
4fca170Thanks @HiDeoo! - Fixes an issue where CSS from unused components, when using content collections, could be incorrectly included between page navigations in development mode. -
#15268
54e5cc4Thanks @rururux! - fix: avoid creating unused images during build in Picture component -
#15133
53b125bThanks @HiDeoo! - Fixes an issue where adding or removing<style>tags in Astro components would not visually update styles during development without restarting the development server. -
Updated dependencies [
80f0225]:- @astrojs/markdown-remark@7.0.0-beta.5
Minor Changes
-
#15258
d339a18Thanks @ematipico! - Stabilizes the adapter featureexperimentalStatiHeaders. If you were using this feature in any of the supported adapters, you'll need to change the name of the flag:export default defineConfig({ adapter: netlify({ - experimentalStaticHeaders: true + staticHeaders: true }) })
Minor Changes
-
#15258
d339a18Thanks @ematipico! - Stabilizes the adapter featureexperimentalStatiHeaders. If you were using this feature in any of the supported adapters, you'll need to change the name of the flag:export default defineConfig({ adapter: netlify({ - experimentalStaticHeaders: true + staticHeaders: true }) })
Patch Changes
- Updated dependencies []:
- @astrojs/underscore-redirects@1.0.0
Patch Changes
- Updated dependencies [
80f0225]:- @astrojs/markdown-remark@7.0.0-beta.5
Patch Changes
- Updated dependencies [
80f0225]:- @astrojs/markdown-remark@7.0.0-beta.5
Patch Changes
- Updated dependencies [
240c317]:- @astrojs/internal-helpers@0.8.0-beta.0
Patch Changes
- Updated dependencies [
240c317]:- @astrojs/internal-helpers@0.8.0-beta.0
Minor Changes
-
#14888
4cd3fe4Thanks @OliverSpeir! - Updatesastro add cloudflareto better setup types, by adding./worker-configuration.d.tsto tsconfig includes and agenerate-typesscript to package.json -
#15349
a257c4cThanks @ascorbic! - Passes collection name to live content loadersLive content collection loaders now receive the collection name as part of their parameters. This is helpful for loaders that manage multiple collections or need to differentiate behavior based on the collection being accessed.
export function storeLoader({ field, key }) { return { name: 'store-loader', loadCollection: async ({ filter, collection }) => { // ... }, loadEntry: async ({ filter, collection }) => { // ... }, }; }
Patch Changes
-
#15394
5520f89Thanks @florian-lefebvre! - Fixes a case where using the Fonts API withnetlify devwouldn't work because of query parameters -
#15385
9e16d63Thanks @matthewp! - Fixes content layer loaders that use dynamic importsContent collection loaders can now use
await import()andimport.meta.glob()to dynamically import modules during build. Previously, these would fail with "Vite module runner has been closed." -
#15386
a0234a3Thanks @OliverSpeir! - Updatesastro add cloudflareto use the latest validcompatibility_datein the wrangler config, if available -
#15362
dbf71c0Thanks @jcayzac! - FixesinferSizebeing kept in the HTML attributes of the emitted<img>when that option is used with an image that is not remote. -
Updated dependencies [
240c317]:- @astrojs/internal-helpers@0.8.0-beta.0
- @astrojs/markdown-remark@7.0.0-beta.4
Patch Changes
- Updated dependencies [
240c317]:- @astrojs/internal-helpers@0.8.0-beta.0
- @astrojs/underscore-redirects@1.0.0
Minor Changes
-
#15369
240c317Thanks @florian-lefebvre! - BREAKING CHANGERemoves
collapseDuplicateSlashes(),startsWithForwardSlash(),startsWithDotDotSlash(),startsWithDotSlash()andisAbsolutePath()from the/pathexport
Patch Changes
-
#15391
5d996ccThanks @florian-lefebvre! - Fixes types of thehandle()function exported from/handler, that could be incompatible with types generated bywrangler types -
#15386
a0234a3Thanks @OliverSpeir! - Updatesastro add cloudflareto use the latest validcompatibility_datein the wrangler config, if available -
Updated dependencies [
240c317]:- @astrojs/internal-helpers@0.8.0-beta.0
- @astrojs/underscore-redirects@1.0.0
Patch Changes
- Updated dependencies []:
- @astrojs/markdown-remark@7.0.0-beta.4
Patch Changes
-
#15344
9d87f77Thanks @matthewp! - Fixes a hang that could occur when the npm registry is slow or unresponsive by adding a 10 second timeout to the version check -
#15350
d758b68Thanks @matthewp! - Errors when--addand--no-installflags are used together, as--addrequires dependencies to be installed
Patch Changes
- Updated dependencies [
240c317]:- @astrojs/internal-helpers@0.8.0-beta.0
Patch Changes
-
#15335
75931c2Thanks @matthewp! - Fixes an issue where spreading a built-in Markdoc node config (e.g.,...Markdoc.nodes.fence) and specifying a customrendercomponent would not work because the built-intransform()function was overriding the custom component. Now,renderwins overtransformwhen both are specified. -
Updated dependencies [
240c317]:- @astrojs/internal-helpers@0.8.0-beta.0
- @astrojs/markdown-remark@7.0.0-beta.4
Patch Changes
- #3645
a562096Thanks @mschoeffmann! - Adds icons for Chrome, Edge, Firefox, and Safari
Patch Changes
- Updated dependencies [
7c55f80]:- @astrojs/markdown-remark@7.0.0-beta.3
Major Changes
-
#15332
7c55f80Thanks @matthewp! - Adds frontmatter parsing support torenderMarkdownin content loaders. When markdown content includes frontmatter, it is now extracted and available inmetadata.frontmatter, and excluded from the HTML output. This makesrenderMarkdownbehave consistently with theglobloader.const loader = { name: 'my-loader', load: async ({ store, renderMarkdown }) => { const content = `--- title: My Post --- # Hello World `; const rendered = await renderMarkdown(content); // rendered.metadata.frontmatter is now { title: 'My Post' } // rendered.html contains only the content, not the frontmatter }, };
Minor Changes
-
#15291
89b6cddThanks @florian-lefebvre! - Removes theexperimental.fontsflag and replaces it with a new configuration optionfonts- (v6 upgrade guidance) -
#15332
7c55f80Thanks @matthewp! - Adds afileURLoption torenderMarkdownin content loaders, enabling resolution of relative image paths. When provided, relative image paths in markdown will be resolved relative to the specified file URL and included inmetadata.localImagePaths.const loader = { name: 'my-loader', load: async ({ store, renderMarkdown }) => { const content = ` # My Post  `; // Provide a fileURL to resolve relative image paths const fileURL = new URL('./posts/my-post.md', import.meta.url); const rendered = await renderMarkdown(content, { fileURL }); // rendered.metadata.localImagePaths now contains the resolved image path }, };
-
#15291
89b6cddThanks @florian-lefebvre! - Adds a new Fonts API to provide first-party support for adding custom fonts in Astro.This feature allows you to use fonts from both your file system and several built-in supported providers (e.g. Google, Fontsource, Bunny) through a unified API. Keep your site performant thanks to sensible defaults and automatic optimizations including preloading and fallback font generation.
To enable this feature, configure
fontswith one or more fonts:import { defineConfig, fontProviders } from 'astro/config'; export default defineConfig({ fonts: [ { provider: fontProviders.fontsource(), name: 'Roboto', cssVariable: '--font-roboto', }, ], });
Import and include the
<Font />component with the requiredcssVariableproperty in the head of your page, usually in a dedicatedHead.astrocomponent or in a layout component directly:--- // src/layouts/Layout.astro import { Font } from 'astro:assets'; --- <html> <head> <Font cssVariable="--font-roboto" preload /> </head> <body> <slot /> </body> </html>
In any page rendered with that layout, including the layout component itself, you can now define styles with your font's
cssVariableto apply your custom font.In the following example, the
<h1>heading will have the custom font applied, while the paragraph<p>will not.--- // src/pages/example.astro import Layout from '../layouts/Layout.astro'; --- <Layout> <h1>In a galaxy far, far away...</h1> <p>Custom fonts make my headings much cooler!</p> <style> h1 { font-family: var('--font-roboto'); } </style> </Layout>
Visit the updated fonts guide to learn more about adding custom fonts to your project.
Patch Changes
-
#15337
7ff7b11Thanks @ematipico! - Fixes a bug where the development server couldn't serve newly created new pages while the development server is running. -
#15331
4592be5Thanks @matthewp! - Fixes an issue where API routes would overwrite public files during build. Public files now correctly take priority over generated routes in both dev and build modes. -
Updated dependencies [
7c55f80]:- @astrojs/markdown-remark@7.0.0-beta.3
Patch Changes
- Updated dependencies [
7c55f80]:- @astrojs/markdown-remark@7.0.0-beta.3
Patch Changes
-
#15336
9cce92eThanks @ascorbic! - Fixes a dev server issue where framework components from linked packages would fail to load with a 504 error.This could occur when using
client:onlyor other client directives with components from monorepo packages (linked viafile:or workspace protocol). The first request would trigger Vite's dependency optimizer mid-request, causing concurrent client module requests to fail. -
Updated dependencies []:
- @astrojs/underscore-redirects@1.0.0
Patch Changes
- #3675
0ba556dThanks @controversial! - Excludes the accessible labels for heading anchor links from Pagefind results
Patch Changes
-
#15334
d715f1fThanks @florian-lefebvre! - BREAKING CHANGE to the experimental Fonts API onlyRemoves the
getFontBuffer()helper function exported fromastro:assetswhen using the experimental Fonts APIThis experimental feature introduced in v15.6.13 ended up causing significant memory usage during build. This feature has been removed and will be reintroduced after further exploration and testing.
If you were relying on this function, you can replicate the previous behavior manually:
- On prerendered routes, read the file using
node:fs - On server rendered routes, fetch files using URLs from
fontDataandcontext.url
- On prerendered routes, read the file using
Patch Changes
-
#15309
4b9c8b8Thanks @ematipico! - Update the underneath@cloudflare/workers-typeslibrary to address a warning emitted by the package manager during the installation. -
#15255
a66783aThanks @florian-lefebvre! - Fixes a case where the types ofhandle()could mismatch with the ones from the user's project. They now rely on globals, that can be obtained by runningwrangler types -
Updated dependencies []:
- @astrojs/underscore-redirects@1.0.0
Patch Changes
-
#3534
703fab0Thanks @HiDeoo! - Fixes support for running builds whennpxis unavailable.Previously, Starlight would spawn a process to run the Pagefind search indexing binary using
npx. On platforms wherenpxisn’t available, this could cause issues. Starlight now runs Pagefind using its Node.js API to avoid a separate process. As a side effect, you may notice that logging during builds is now less verbose. -
#3656
a0e6368Thanks @delucis! - Fixes several edge cases in highlighting the current page heading in Starlight’s table of contents -
#3663
00cbf00Thanks @lines-of-codes! - Adds Thai language support -
#3658
ac79329Thanks @delucis! - Avoids adding redundantaria-current="false"attributes to sidebar entries -
#3382
db295c2Thanks @trueberryless! - Fixes an issue where the mobile table of contents is unable to find the first heading when a page has a tall banner.
Patch Changes
- #15264
11efb05Thanks @florian-lefebvre! - Lower the Node version requirement to allow running on Stackblitz until it supports v22
Patch Changes
- #15264
11efb05Thanks @florian-lefebvre! - Lower the Node version requirement to allow running on Stackblitz until it supports v22
Patch Changes
- #15264
11efb05Thanks @florian-lefebvre! - Lower the Node version requirement to allow running on Stackblitz until it supports v22
Patch Changes
-
#15264
11efb05Thanks @florian-lefebvre! - Lower the Node version requirement to allow running on Stackblitz until it supports v22 -
Updated dependencies [
cb99214,11efb05]:- @astrojs/markdown-remark@7.0.0-beta.2
- @astrojs/prism@4.0.0-beta.2
Patch Changes
-
#15264
11efb05Thanks @florian-lefebvre! - Lower the Node version requirement to allow running on Stackblitz until it supports v22 -
Updated dependencies [
cb99214]:- @astrojs/markdown-remark@7.0.0-beta.2
Patch Changes
- #15264
11efb05Thanks @florian-lefebvre! - Lower the Node version requirement to allow running on Stackblitz until it supports v22
Patch Changes
- #15264
11efb05Thanks @florian-lefebvre! - Lower the Node version requirement to allow running on Stackblitz until it supports v22
Patch Changes
- #15264
11efb05Thanks @florian-lefebvre! - Lower the Node version requirement to allow running on Stackblitz until it supports v22
Minor Changes
- #15277
cb99214Thanks @ematipico! - Fixes an issue where the functioncreateShikiHighlighterwould always create a new Shiki highlighter instance. Now the function returns a cached version of the highlighter based on the Shiki options. This should improve the performance for sites that heavily rely on Shiki and code in their pages.
Patch Changes
- Updated dependencies [
11efb05]:- @astrojs/prism@4.0.0-beta.2
Patch Changes
- #15264
11efb05Thanks @florian-lefebvre! - Lower the Node version requirement to allow running on Stackblitz until it supports v22
Patch Changes
-
#15269
6f82aaeThanks @ematipico! - Fixes a regression wherebuild.serverEntrystopped working as expected. -
Updated dependencies []:
- @astrojs/underscore-redirects@1.0.0
Minor Changes
-
#15069
d14dfc2Thanks @webstackdev! - Adds a--db-app-tokenCLI flag toastro dbcommandsexecute,push,query, andverifyThe new Astro DB CLI flags allow you to provide a remote database app token directly instead of
ASTRO_DB_APP_TOKEN. This ensures that no untrusted code (e.g. CI / CD workflows) has access to the secret that is only needed by theastro dbcommands.The following command can be used to safely push database configuration changes to your project database:
astro db push --db-app-token <token>See the Astro DB integration documentation for more information.
Minor Changes
-
#14471
4296373Thanks @Slackluky! - Adds the ability to split sitemap generation into chunks based on customizable logic. This allows for better management of large sitemaps and improved performance. The newchunksoption in the sitemap configuration allows users to define functions that categorize sitemap items into different chunks. Each chunk is then written to a separate sitemap file.integrations: [ sitemap({ serialize(item) { th return item }, chunks: { // this property will be treated last on the configuration 'blog': (item) => { // will produce a sitemap file with `blog` name (sitemap-blog-0.xml) if (/blog/.test(item.url)) { // filter path that will be included in this specific sitemap file item.changefreq = 'weekly'; item.lastmod = new Date(); item.priority = 0.9; // define specific properties for this filtered path return item; } }, 'glossary': (item) => { if (/glossary/.test(item.url)) { item.changefreq = 'weekly'; item.lastmod = new Date(); item.priority = 0.7; return item; } } // the rest of the path will be stored in `sitemap-pages.0.xml` }, }), ],
Patch Changes
- #15199
d8e64efThanks @ArmandPhilippot! - Fixes the links to Astro Docs so that they match the current docs structure.
Patch Changes
-
#15199
d8e64efThanks @ArmandPhilippot! - Fixes the links to Astro Docs so that they match the current docs structure. -
Updated dependencies []:
- @astrojs/underscore-redirects@1.0.0
Patch Changes
- #15199
d8e64efThanks @ArmandPhilippot! - Fixes the links to Astro Docs so that they match the current docs structure.
Patch Changes
- #3648
292666cThanks @maxchang3! - Prevents unwanted font size adjustments on iOS after orientation changes.
Patch Changes
- #15125
6feb0d7Thanks @florian-lefebvre! - Improve Sveltechildrenprop type checking
Patch Changes
- #15125
6feb0d7Thanks @florian-lefebvre! - Updates Node versions data to account for v24 as the default
Patch Changes
- #15125
6feb0d7Thanks @florian-lefebvre! - Adds support for arbitrary HTML attributes on Vue components
Patch Changes
- #15156
9cc2c71Thanks @Princesseuh! - Fixes TypeScript plugin not working
Patch Changes
- #15131
d40ff7dThanks @Princesseuh! - Fixes extension asking for the wrong version of VS Code
Patch Changes
- #15033
dd06779Thanks @florian-lefebvre! - Updates how routes are retrieved to avoid relying on a deprecated API
Patch Changes
-
#15083
241bb31Thanks @fkatsuhiro! - Fix "Find All References" and other TypeScript features by ensuring the plugin bundle is correctly included -
#15109
e062101Thanks @Princesseuh! - Fixes syntax highlighting sometimes not working when the frontmatter or script tags ended with certain TypeScript constructs
Patch Changes
- #15016
12eb4cdThanks @rahuld109! - Adds support for arbitrary HTML attributes on Vue components
Patch Changes
- #15070
fa9c464Thanks @antonyfaris! - Improve Sveltechildrenprop type checking
Patch Changes
- #3647
9f4efc3Thanks @gerstenbergit! - Adds Greek language support
Last fetched: | Scheduled refresh: Every Saturday
See Customizing GitHub Activity Pages to configure your own
Inspired by releases.antfu.me