astro

The web framework for content-driven websites. ⭐️ Star to support our work!

OTHER License

Downloads
8.9M
Stars
43K
Committers
807
astro - [email protected]

Published by astrobot-houston 12 months ago

Minor Changes

Patch Changes

astro - [email protected]

Published by astrobot-houston 12 months ago

Patch Changes

astro - [email protected]

Published by astrobot-houston 12 months ago

Minor Changes

  • #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.

astro - [email protected]

Published by astrobot-houston 12 months ago

Patch Changes

  • #8911 b236d88ad Thanks @natemoo-re! - Ensure an existing template's package.json scripts are respected when modifying build.
astro - @astrojs/[email protected]

Published by astrobot-houston 12 months ago

Patch Changes

  • #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.

astro - @astrojs/[email protected]

Published by astrobot-houston 12 months ago

Minor Changes

  • #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
        }),
    });
    

Patch Changes

astro - @astrojs/[email protected]

Published by astrobot-houston 12 months ago

Patch Changes

astro - @astrojs/[email protected]

Published by astrobot-houston 12 months ago

Patch Changes

astro - @astrojs/[email protected]

Published by astrobot-houston 12 months ago

Minor Changes

  • #8802 73b8d60f8 Thanks @AndyClifford! - Added ignoreIndentation as a markdoc integration option to enable better readability of source code.

Patch Changes

astro - [email protected]

Published by astrobot-houston 12 months ago

Minor Changes

  • #8853 ce807a2bf Thanks @rayriffy! - Automatically installs the required dependencies to run the astro check command when the user indicates they plan to write TypeScript.

Patch Changes

  • #8841 f2dd895d7 Thanks @Genteure! - No longer attempts to delete the directory after a template download fails if the path is ., ./ or starts with ../.
astro - [email protected]

Published by astrobot-houston 12 months ago

Patch Changes

astro - @astrojs/[email protected]

Published by astrobot-houston about 1 year ago

Patch Changes

astro - [email protected]

Published by astrobot-houston about 1 year ago

Patch Changes

astro - @astrojs/[email protected]

Published by astrobot-houston about 1 year ago

Patch Changes

astro - [email protected]

Published by astrobot-houston about 1 year ago

Minor Changes

astro - [email protected]

Published by astrobot-houston about 1 year ago

Patch Changes

astro - @astrojs/[email protected]

Published by astrobot-houston about 1 year ago

Patch Changes

astro - [email protected]

Published by astrobot-houston about 1 year ago

Patch Changes

astro - @astrojs/[email protected]

Published by astrobot-houston about 1 year ago

Minor Changes

  • #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.

Patch Changes

astro - @astrojs/[email protected]

Published by astrobot-houston about 1 year ago

Package Rankings
Top 0.43% on Npmjs.org
Top 8.17% on Proxy.golang.org
Badges
Extracted from project README
CI License npm version astro version create-astro version @astrojs/react version @astrojs/preact version @astrojs/solid version @astrojs/svelte version @astrojs/vue version @astrojs/lit version @astrojs/node version @astrojs/vercel version @astrojs/cloudflare version @astrojs/partytown version @astrojs/sitemap version @astrojs/tailwind version @astrojs/alpinejs version @astrojs/mdx version @astrojs/db version @astrojs/rss version @astrojs/netlify version CII Best Practices Astro's sponsors.