The web framework for content-driven websites. ⭐️ Star to support our work!
OTHER License
Published by astrobot-houston 12 months ago
Published by astrobot-houston 12 months ago
#8966 262cef248
Thanks @Princesseuh! - Fix Dev Overlay not working properly when view transitions are enabled
#8932 5fed432b0
Thanks @Princesseuh! - Fixed window component appearing over the dev overlay on small windows. Added a maximum length to sections of the tooltip component
#8965 430c470ac
Thanks @matthewp! - Move VT route announcer styles to a class
Doing so allows stricter CSP policies.
#8762 35cd810f0
Thanks @evadecker! - Upgrades Zod to 3.22.4
#8928 ca90b47cf
Thanks @HiDeoo! - Renames dev overlay UI Toolkit component names for consistency.
Published by astrobot-houston 12 months ago
#8755 fe4079f05
Thanks @matthewp! - Page Partials
A page component can now be identified as a partial page, which will render its HTML content without including a <! DOCTYPE html>
declaration nor any <head>
content.
A rendering library, like htmx or Stimulus or even just jQuery can access partial content on the client to dynamically update only parts of a page.
Pages marked as partials do not have a doctype
or any head content included in the rendered result. You can mark any page as a partial by setting this option:
---
export const partial = true;
---
<li>This is a single list item.</li>
Other valid page files that can export a value (e.g. .mdx
) can also be marked as partials.
Read more about Astro page partials in our documentation.
#8821 4740d761a
Thanks @Princesseuh! - Improved image optimization performance
Astro will now generate optimized images concurrently at build time, which can significantly speed up build times for sites with many images. Additionally, Astro will now reuse the same buffer for all variants of an image. This should improve performance for websites with many variants of the same image, especially when using remote images.
No code changes are required to take advantage of these improvements.
#8757 e99586787
Thanks @Princesseuh! - Dev Overlay (experimental)
Provides a new dev overlay for your browser preview that allows you to inspect your page islands, see helpful audits on performance and accessibility, and more. A Dev Overlay Plugin API is also included to allow you to add new features and third-party integrations to it.
You can enable access to the dev overlay and its API by adding the following flag to your Astro config:
// astro.config.mjs
export default {
experimental: {
devOverlay: true,
},
};
Read the Dev Overlay Plugin API documentation for information about building your own plugins to integrate with Astro's dev overlay.
#8880 8c3d4a859
Thanks @alexanderniebuhr! - Moves the logic for overriding the image service out of core and into adapters. Also fixes a regression where a valid astro:assets
image service configuration could be overridden.
Published by astrobot-houston 12 months ago
b236d88ad
Thanks @natemoo-re! - Ensure an existing template's package.json
scripts
are respected when modifying build
.Published by astrobot-houston 12 months ago
#8900 341ef6578
Thanks @FredKSchott! - Track if the Astro CLI is running in a TTY
context.
This information helps us better understand scripted use of Astro vs. direct terminal use of Astro CLI by a user, especially the astro dev
command.
Published by astrobot-houston 12 months ago
#8867 b209e5335
Thanks @lilnasy! - You can now configure how long your functions can run before timing out.
export default defineConfig({
output: "server",
adapter: vercel({
+ maxDuration: 60
}),
});
Published by astrobot-houston 12 months ago
Published by astrobot-houston 12 months ago
#8897 5a3d46da1
Thanks @remcohaszing! - Update the README to suggest that users install the official MDX extension for VS Code.
Updated dependencies [26b77b8fe
]:
Published by astrobot-houston 12 months ago
73b8d60f8
Thanks @AndyClifford! - Added ignoreIndentation as a markdoc integration option to enable better readability of source code.26b77b8fe
]:
Published by astrobot-houston 12 months ago
Published by astrobot-houston 12 months ago
#8877 26b77b8fe
Thanks @bluwy! - Fixes CSS modules ordering by rendering styles before links
Updated dependencies [341ef6578
]:
Published by astrobot-houston about 1 year ago
Published by astrobot-houston about 1 year ago
#8870 5ea6ee0ed
Thanks @xstevenyung! - prevent production install on astro add cmd
#8840 5c888c10b
Thanks @martrapp! - Fixes styles of client:only
components not persisting during view transitions in dev mode
#8814 ad2bb9155
Thanks @lilnasy! - Fix an issue where 500.astro
did not render when the middleware threw an error.
#8863 326e17893
Thanks @florian-lefebvre! - Fixes an issue where the dev server logged the full file path on updates.
Published by astrobot-houston about 1 year ago
10b103820
Thanks @silent1mezzo! - Display output directory in the sitemap build resultPublished by astrobot-houston about 1 year ago
3baab3d93
Thanks @ElianCodes! - feat: make Houston wear scary hats and say new things for spooky seasonPublished by astrobot-houston about 1 year ago
#8852 2c18e2d12
Thanks @rayriffy! - Only use Vite config from astro.config.mjs as source of truth
#8828 11f45b9a3
Thanks @rishi-raj-jain! - fix file system path references
#8779 2b8a459a6
Thanks @ematipico! - Enriches the explanation of the base
configuration with examples.
Published by astrobot-houston about 1 year ago
Published by astrobot-houston about 1 year ago
#8823 8946f2a25
Thanks @Princesseuh! - Fix duplicate images being created in some cases when using densities and/or widths
#8842 b405b039a
Thanks @Princesseuh! - Fixes Picture component not taking into account the fallback format specified
#8827 ce3025cfa
Thanks @rishi-raj-jain! - better error handling there whenever we don't get a normal 200 response
#8817 f8de1983b
Thanks @bluwy! - Fix error overlay syntax highlighting
#8838 2f9e2083d
Thanks @dominikg! - deps: unpin and update tsconfck from 3.0.0-next.9
to ^3.0.0
#8823 8946f2a25
Thanks @Princesseuh! - fix remote srcset images not being resized
Published by astrobot-houston about 1 year ago
#8502 c4270e476
Thanks @bluwy! - Updates the internal shiki
syntax highlighter to shikiji
, an ESM-focused alternative that simplifies bundling and maintenance.
There are no new options and no changes to how you author code blocks and syntax highlighting.
Potentially breaking change: While this refactor should be transparent for most projects, the transition to shikiji
now produces a smaller HTML markup by attaching a fallback color
style to the pre
or code
element, instead of to the line span
directly. For example:
Before:
<code class="astro-code" style="background-color: #24292e">
<pre>
<span class="line" style="color: #e1e4e8">my code</span>
</pre>
</code>
After:
<code class="astro-code" style="background-color: #24292e; color: #e1e4e8">
<pre>
<span class="line">my code<span>
</pre>
</code>
This does not affect the colors as the span
will inherit the color
from the parent, but if you're relying on a specific HTML markup, please check your site carefully after upgrading to verify the styles.
Published by astrobot-houston about 1 year ago