Skip to content

Conversation

@astrobot-houston
Copy link
Contributor

@astrobot-houston astrobot-houston commented Feb 28, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@astrojs/[email protected]

Minor Changes

[email protected]

Patch Changes

  • #13336 8f632ef Thanks @ematipico! - Fixes a regression where some asset utilities were move across monorepo, and not re-exported anymore.

  • #13320 b5dabe9 Thanks @{! - Adds support for typing experimental session data

    You can add optional types to your session data by creating a src/env.d.ts file in your project that extends the global App.SessionData interface. For example:

    declare namespace App {
      interface SessionData {
    
          id: string;
          email: string;
        };
        lastLogin: Date;
      }
    }

    Any keys not defined in this interface will be treated as any.

    Then when you access Astro.session in your components, any defined keys will be typed correctly:

    ---
    const user = await Astro.session.get('user');
    //    ^? const: user: { id: string; email: string; } | undefined
    
    const something = await Astro.session.get('something');
    //    ^? const: something: any
    
    Astro.session.set('user', 1);
    //    ^? Argument of type 'number' is not assignable to parameter of type '{ id: string; email: string; }'.
    ---

    See the experimental session docs for more information.

  • #13330 5e7646e Thanks @ematipico! - Fixes an issue with the conditional rendering of scripts.

    This change updates a v5.0 breaking change when experimental.directRenderScript became the default script handling behavior.

    If you have already successfully upgraded to Astro v5, you may need to review your script tags again and make sure they still behave as desired after this release. See the v5 Upgrade Guide for more details.

@github-actions github-actions bot added pkg: example Related to an example package (scope) pkg: astro Related to the core `astro` package (scope) labels Feb 28, 2025
@github-actions github-actions bot force-pushed the changeset-release/main branch 2 times, most recently from c4b31bf to 18b5c0a Compare February 28, 2025 14:42
@codspeed-hq
Copy link

codspeed-hq bot commented Feb 28, 2025

CodSpeed Performance Report

Merging #13337 will create unknown performance changes

Comparing changeset-release/main (38e5abe) with main (5d8f71c)

Summary

🆕 6 new benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
🆕 Rendering: streaming [false], .astro file N/A 920.2 ms N/A
🆕 Rendering: streaming [false], .md file N/A 12.8 ms N/A
🆕 Rendering: streaming [false], .mdx file N/A 713.8 ms N/A
🆕 Rendering: streaming [true], .astro file N/A 940.8 ms N/A
🆕 Rendering: streaming [true], .md file N/A 12.7 ms N/A
🆕 Rendering: streaming [true], .mdx file N/A 719.5 ms N/A

@github-actions github-actions bot force-pushed the changeset-release/main branch 2 times, most recently from 1a47f96 to 473a527 Compare February 28, 2025 15:39
@github-actions github-actions bot force-pushed the changeset-release/main branch from 473a527 to e092217 Compare February 28, 2025 15:55
@ascorbic ascorbic merged commit 8483502 into main Feb 28, 2025
@ascorbic ascorbic deleted the changeset-release/main branch February 28, 2025 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope) pkg: example Related to an example package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants