Skip to content

Releases: withastro/astro

[email protected]

14 Oct 08:57
a338041
Compare
Choose a tag to compare

Patch Changes

  • #12220 b049359 Thanks @bluwy! - Fixes accidental internal setOnSetGetEnv parameter rename that caused runtime errors

  • #12197 2aa2dfd Thanks @ematipico! - Fix a regression where a port was incorrectly added to the Astro.url

[email protected]

12 Oct 14:16
bbc72a1
Compare
Choose a tag to compare

Patch Changes

  • #12206 12b0022 Thanks @bluwy! - Reverts #12173 which caused Can't modify immutable headers warnings and 500 errors on Cloudflare Pages

[email protected]

11 Oct 17:21
c73d65d
Compare
Choose a tag to compare

Minor Changes

  • #12154 9988dd6 Thanks @bluwy! - Improves default template download speed by downloading from a branch containing the template only

  • #12186 49c4f64 Thanks @Terfno! - Ensures new line at the end of the generated package.json and tsconfig.json files

[email protected]

11 Oct 17:22
c73d65d
Compare
Choose a tag to compare

Patch Changes

  • #12177 a4ffbfa Thanks @matthewp! - Ensure we target scripts for execution in the router

    Using document.scripts is unsafe because if the application has a name="scripts" this will shadow the built-in document.scripts. Fix is to use getElementsByTagName to ensure we're only grabbing real scripts.

  • #12173 2d10de5 Thanks @ematipico! - Fixes a bug where Astro Actions couldn't redirect to the correct pathname when there was a rewrite involved.

[email protected]

10 Oct 11:22
582f12e
Compare
Choose a tag to compare

Patch Changes

  • #12143 2385d58 Thanks @bluwy! - Uses @bluwy/giget-core instead of giget for smaller installation size when downloading the CLI

[email protected]

10 Oct 11:23
582f12e
Compare
Choose a tag to compare

Minor Changes

  • #12039 710a1a1 Thanks @ematipico! - Adds a markdown.shikiConfig.langAlias option that allows aliasing a non-supported code language to a known language. This is useful when the language of your code samples is not a built-in Shiki language, but you want your Markdown source to contain an accurate language while also displaying syntax highlighting.

    The following example configures Shiki to highlight cjs code blocks using the javascript syntax highlighter:

    import { defineConfig } from 'astro/config';
    
    export default defineConfig({
      markdown: {
        shikiConfig: {
          langAlias: {
            cjs: 'javascript',
          },
        },
      },
    });

    Then in your Markdown, you can use the alias as the language for a code block for syntax highlighting:

    ```cjs
    'use strict';
    
    function commonJs() {
      return 'I am a commonjs file';
    }
    ```
  • #11984 3ac2263 Thanks @chaegumi! - Adds a new build.concurreny configuration option to specify the number of pages to build in parallel

    In most cases, you should not change the default value of 1.

    Use this option only when other attempts to reduce the overall rendering time (e.g. batch or cache long running tasks like fetch calls or data access) are not possible or are insufficient.

    Use this option only if the refactors are not possible. If the number is set too high, the page rendering may slow down due to insufficient memory resources and because JS is single-threaded.

    [!WARNING]
    This feature is stable and is not considered experimental. However, this feature is only intended to address difficult performance issues, and breaking changes may occur in a minor release to keep this option as performant as possible.

    // astro.config.mjs
    import { defineConfig } from 'astro';
    
    export default defineConfig({
      build: {
        concurrency: 2,
      },
    });

Patch Changes

  • #12160 c6fd1df Thanks @louisescher! - Fixes a bug where astro.config.mts and astro.config.cts weren't reloading the dev server upon modifications.

  • #12130 e96bcae Thanks @thehansys! - Fixes a bug in the parsing of x-forwarded-\* Request headers, where multiple values assigned to those headers were not correctly parsed.

    Now, headers like x-forwarded-proto: https,http are correctly parsed.

  • #12147 9db755a Thanks @ascorbic! - Skips setting statusMessage header for HTTP/2 response

    HTTP/2 doesn't support status message, so setting this was logging a warning.

  • #12151 bb6d37f Thanks @ematipico! - Fixes an issue where Astro.currentLocale wasn't incorrectly computed when the defaultLocale belonged to a custom locale path.

  • Updated dependencies [710a1a1]:

@astrojs/[email protected]

10 Oct 11:23
582f12e
Compare
Choose a tag to compare

Patch Changes

  • #12161 8e500f2 Thanks @delucis! - Adds keywords to package.json to improve categorization in the Astro integrations catalog

@astrojs/[email protected]

10 Oct 11:22
582f12e
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

10 Oct 11:22
582f12e
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

10 Oct 11:23
582f12e
Compare
Choose a tag to compare

Minor Changes

  • #12039 710a1a1 Thanks @ematipico! - Adds a markdown.shikiConfig.langAlias option that allows aliasing a non-supported code language to a known language. This is useful when the language of your code samples is not a built-in Shiki language, but you want your Markdown source to contain an accurate language while also displaying syntax highlighting.

    The following example configures Shiki to highlight cjs code blocks using the javascript syntax highlighter:

    import { defineConfig } from 'astro/config';
    
    export default defineConfig({
      markdown: {
        shikiConfig: {
          langAlias: {
            cjs: 'javascript',
          },
        },
      },
    });

    Then in your Markdown, you can use the alias as the language for a code block for syntax highlighting:

    ```cjs
    'use strict';
    
    function commonJs() {
      return 'I am a commonjs file';
    }
    ```