Skip to content

Releases: withastro/astro

@astrojs/[email protected]

31 Oct 09:09
731b697
Compare
Choose a tag to compare
Pre-release

Major Changes

  • #12231 90ae100 Thanks @bluwy! - Handles the breaking change in Astro where content pages (including .mdx pages located within src/pages/) no longer respond with charset=utf-8 in the Content-Type header.

    For MDX pages without layouts, @astrojs/mdx will automatically add the <meta charset="utf-8"> tag to the page by default. This reduces the boilerplate needed to write with non-ASCII characters. If your MDX pages have a layout, the layout component should include the <meta charset="utf-8"> tag.

    If you require charset=utf-8 to render your page correctly, make sure that your layout components have the <meta charset="utf-8"> tag added.

[email protected]

22 Oct 12:12
d2b399d
Compare
Choose a tag to compare

Patch Changes

  • #12263 e9e8080 Thanks @Fryuni! - Fixes conflict between server islands and on-demand dynamic routes in the form of /[...rest] or /[paramA]/[paramB].

  • #12279 b781f88 Thanks @jsparkdev! - Update wrong error message

  • #12273 c2ee963 Thanks @ascorbic! - Fixes an issue with some package managers where sites would not build if TypeScript was not installed.

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

  • #11839 ff522b9 Thanks @icaliman! - Fixes error when returning a top-level null from an Astro file frontmatter

  • #12272 388d237 Thanks @ascorbic! - Correctly handles local images when using a base path in SSR

@astrojs/[email protected]

22 Oct 12:12
d2b399d
Compare
Choose a tag to compare

Patch Changes

[email protected]

17 Oct 12:59
d6f1704
Compare
Choose a tag to compare

Patch Changes

  • #11823 a3d30a6 Thanks @DerTimonius! - fix: improve error message when inferSize is used in local images with the Image component

  • #12227 8b1a641 Thanks @florian-lefebvre! - Fixes a case where environment variables would not be refreshed when using astro:env

  • #12239 2b6daa5 Thanks @ematipico! - BREAKING CHANGE to the experimental Container API only

    Changes the default page rendering behavior of Astro components in containers, and adds a new option partial: false to render full Astro pages as before.

    Previously, the Container API was rendering all Astro components as if they were full Astro pages containing <!DOCTYPE html> by default. This was not intended, and now by default, all components will render as page partials: only the contents of the components without a page shell.

    To render the component as a full-fledged Astro page, pass a new option called partial: false to renderToString() and renderToResponse():

    import { experimental_AstroContainer as AstroContainer } from 'astro/container';
    import Card from '../src/components/Card.astro';
    
    const container = AstroContainer.create();
    
    await container.renderToString(Card); // the string will not contain `<!DOCTYPE html>`
    await container.renderToString(Card, { partial: false }); // the string will contain `<!DOCTYPE html>`

[email protected]

15 Oct 17:11
5a4edeb
Compare
Choose a tag to compare

Patch Changes

  • #12232 ff68ba5 Thanks @martrapp! - Fixes an issue with cssesc in dev mode when setting vite.ssr.noExternal: true

[email protected]

15 Oct 07:38
6df5bba
Compare
Choose a tag to compare

Patch Changes

  • #12223 79ffa5d Thanks @ArmandPhilippot! - Fixes a false positive reported by the dev toolbar Audit app where a label was considered missing when associated with a button

    The button element can be used with a label (e.g. to create a switch) and should not be reported as an accessibility issue when used as a child of a label.

  • #12199 c351352 Thanks @ematipico! - Fixes a regression in the computation of Astro.currentLocale

  • #12222 fb55695 Thanks @ematipico! - Fixes an issue where the edge middleware couldn't correctly compute the client IP address when calling ctx.clientAddress()

@astrojs/[email protected]

15 Oct 07:38
6df5bba
Compare
Choose a tag to compare

Patch Changes

@astrojs/[email protected]

15 Oct 17:11
5a4edeb
Compare
Choose a tag to compare

Patch Changes

[email protected]

15 Oct 17:50
c929e5d
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Minor Changes

  • #12226 51d13e2 Thanks @ematipico! - The following renderer fields and integration fields now accept URL as a type:

    Renderers:

    • AstroRenderer.clientEntrpoint
    • AstroRenderer.serverEntrypoint

    Integrations:

    • InjectedRoute.entrypoint
    • AstroIntegrationMiddleware.entrypoint
    • DevToolbarAppEntry.entrypoint

Patch Changes

  • #12168 1cd3085 Thanks @ascorbic! - Allows "slug" as a field in content layer data

  • #12169 15fa9ba Thanks @ematipico! - Fixes a bug where configured redirects were incorrectly constructed when reading the file system.

    This caused an issue where configuring a redirect in astro.config.mjs like { /old: /new }, failed to trigger the correct redirect in the dev server.

  • #12169 15fa9ba Thanks @ematipico! - Fixes a bug where the dev server was not providing a consistent user experience for configured redirects.

    With the fix, when you configure a redirect in astro.config.mjs like this { /old: "/new" }, the dev server return an HTML response that matches the one emitted by a static build.

@astrojs/[email protected]

15 Oct 17:50
c929e5d
Compare
Choose a tag to compare
Pre-release

@astrojs/markdoc

0.11.5-beta.1

Patch Changes

0.11.5-beta.0

Patch Changes

1.0.0-alpha.1

Patch Changes

1.0.0-alpha.0

Patch Changes

0.11.5

Patch Changes

0.11.4

Patch Changes

  • #11846 ed7bbd9 Thanks @HiDeoo! - Fixes an issue preventing to use Astro components as Markdoc tags and nodes when configured using the extends property.

0.11.3

Patch Changes

0.11.2

Patch Changes

0.11.1

Patch Changes

0.11.0

Minor Changes

Patch Changes

  • #10833 8d5f3e8 Thanks @renovate! - Updates esbuild dependency to v0.20. This should not affect projects in most cases.

0.10.0

Minor Changes

Patch Changes

0.9.5

Patch Changes

  • #10649 90cfade88c2b9a34d8a5fe711ce329732d690409 Thanks @bholmesdev! - Add automatic resolution for Markdoc partials. This allows you to render other Markdoc files inside of a given entry. Reference files using the partial tag with a file attribute for the relative file path:

    <!--src/content/blog/post.mdoc-->
    
    {% partial file="my-partials/_diagram.mdoc" /%}
    
    <!--src/content/blog/my-partials/_diagram.mdoc-->
    
    ## Diagram
    
    This partial will render inside of `post.mdoc.`
    
    ![Diagram](./diagram.png)

0.9.4

Patch Changes

0.9.3

Patch Changes

0.9.2

Patch Changes

0.9.1

Patch Changes

0.9.0

Minor Changes

  • #9958 14ce8a6ebfc9daf951d2dca54737d857c229667c Thanks @Princesseuh! - Adds support for using a custom tag (component) for optimized images

    Starting from this version, when a tag called image is used, its src attribute will automatically be resolved if it's a local image. Astro will pass the result ImageMetadata object to the underlying component as the src prop. For non-local images (i.e. images using URLs or absolute paths), Astro will continue to pass the src as a string.

    // markdoc.config.mjs
    import { component, defineMarkdocConfig, nodes } from '@astrojs/markdoc/config';
    
    export default defineMarkdocConfig({
      tags: {
        image: {
          attributes: nodes.image.attributes,
          render: component('./src/components/MarkdocImage.astro'),
        },
      },
    });
    ---
    // src/components/MarkdocImage.astro
    import { Image } from 'astro:assets';
    
    interface Props {
      src: ImageMetadata | string;
      alt: string;
      width: number;
      height: number;
    }
    
    const { src, alt, width, height } = Astro.props;
    ---
    
    <Image {src} {alt} {width} {height} />
    {% image src="./astro-logo.png" alt="Astro Logo" width="100" height="100" %}

0.8.3

Patch Changes

0.8.2

Patch Changes

0.8.1

Patch Changes

0.8.0

Minor Changes

1.0.0-beta.1

Minor Changes

Read more