github withastro/astro astro@3.0.0-rc.5

latest releases: astro@5.0.0-beta.2, @astrojs/vue@5.0.0-beta.0, @astrojs/svelte@6.0.0-beta.0...
pre-release13 months ago

Major Changes

  • #8142 81545197a Thanks @natemoo-re! - Fixes for the class:list directive

    • Previously, class:list would ocassionally not be merged the class prop when passed to Astro components. Now, class:list is always converted to a class prop (as a string value).
    • Previously, class:list diverged from clsx in a few edge cases. Now, class:list uses clsx directly.
      • class:list used to deduplicate matching values, but it no longer does
      • class:list used to sort individual values, but it no longer does
      • class:list used to support Set and other iterables, but it no longer does
  • #8179 6011d52d3 Thanks @matthewp! - Astro 3.0 Release Candidate

  • #8170 be6bbd2c8 Thanks @bluwy! - Remove deprecated config option types, deprecated script/style attributes, and deprecated image export from astro:content

  • #8180 f003e7364 Thanks @ematipico! - The scoped hash created by the Astro compiler is now lowercase.

  • #8169 e79e3779d Thanks @bluwy! - Remove pre-shiki v0.14 theme names for compatibility. Please rename to the new theme names to migrate:

    • material-darker -> material-theme-darker
    • material-default -> material-theme
    • material-lighter -> material-theme-lighter
    • material-ocean -> material-theme-ocean
    • material-palenight -> material-theme-palenight

Patch Changes

  • #8147 adf9fccfd Thanks @astrobot-houston! - Do not throw Error when users pass an object with a "type" property

  • #8152 582132328 Thanks @andremralves! - Displays a new config error if outDir is placed within publicDir.

  • #8147 42785c7b7 Thanks @astrobot-houston! - Improve fidelity of time stats when running astro build

  • #8171 95120efbe Thanks @Princesseuh! - Fix missing type for imageConfig export from astro:assets

  • #8147 2ae9d37f0 Thanks @astrobot-houston! - Open to configured base when astro dev --open runs

  • #8099 732111cdc Thanks @bluwy! - Deprecate the markdown.drafts configuration option.

    If you'd like to create draft pages that are visible in dev but not in production, you can migrate to content collections and manually filter out pages with the draft: true frontmatter property instead.

  • #8147 33b8910cf Thanks @astrobot-houston! - On back navigation only animate view transitions that were animated going forward.

  • #8163 179796405 Thanks @delucis! - Make typing of defineCollection more permissive to support advanced union and intersection types

  • #8147 a87cbe400 Thanks @astrobot-houston! - fix: reinsert attribute to specify direction of ViewTransition (forward / back)

  • #8132 767eb6866 Thanks @bluwy! - Deprecate returning simple objects from endpoints. Endpoints should only return a Response.

    To return a result with a custom encoding not supported by a Response, you can use the ResponseWithEncoding utility class instead.

    Before:

    export function GET() {
      return {
        body: '...',
        encoding: 'binary',
      };
    }

    After:

    export function GET({ ResponseWithEncoding }) {
      return new ResponseWithEncoding('...', undefined, 'binary');
    }
  • Updated dependencies [6011d52d3, e79e3779d]:

    • @astrojs/markdown-remark@3.0.0-rc.1
    • @astrojs/telemetry@3.0.0-rc.3
    • @astrojs/internal-helpers@0.2.0-rc.2

Don't miss a new astro release

NewReleases is sending notifications on new releases.