Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] release #7578

Merged
merged 1 commit into from
Jul 6, 2023
Merged

[ci] release #7578

merged 1 commit into from
Jul 6, 2023

Conversation

astrobot-houston
Copy link
Contributor

@astrobot-houston astrobot-houston commented Jul 5, 2023

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

astro@2.8.0

Minor Changes

  • #7532 9e5fafa2b Thanks @ematipico! - The astro/middleware module exports a new utility called trySerializeLocals.

    This utility can be used by adapters to validate their locals before sending it
    to the Astro middleware.

    This function will throw a runtime error if the value passed is not serializable, so
    consumers will need to handle that error.

  • #7532 9e5fafa2b Thanks @ematipico! - Astro exposes the middleware file path to the integrations in the hook astro:build:ssr

    // myIntegration.js
    import type { AstroIntegration } from 'astro';
    function integration(): AstroIntegration {
      return {
        name: 'fancy-astro-integration',
        hooks: {
          'astro:build:ssr': ({ middlewareEntryPoint }) => {
            if (middlewareEntryPoint) {
              // do some operations
            }
          },
        },
      };
    }

    The middlewareEntryPoint is only defined if the user has created an Astro middleware.

  • #7432 6e9c29579 Thanks @ematipico! - Adds a new command astro info, useful for sharing debugging information about your current environment when you need help!

    astro info

    Output

    Astro version            v2.6.6
    Package manager          pnpm
    Platform                 darwin
    Architecture             arm64
    Adapter                  @astrojs/vercel/serverless
    Integrations             None
    
  • #7532 9e5fafa2b Thanks @ematipico! - The astro/middleware module exports a new API called createContext.

    This a low-level API that adapters can use to create a context that can be consumed by middleware functions.

  • #7532 9e5fafa2b Thanks @ematipico! - Introduced a new build option for SSR, called build.excludeMiddleware.

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

    When enabled, the code that belongs to be middleware won't be imported
    by the final pages/entry points. The user is responsible for importing it and
    calling it manually.

Patch Changes

@astrojs/vercel@3.7.0

Minor Changes

  • #7532 9e5fafa2b Thanks @ematipico! - Support for Vercel Edge Middleware via Astro middleware.

    When a project uses the new option Astro build.excludeMiddleware, the
    @astrojs/vercel/serverless adapter will automatically create a Vercel Edge Middleware
    that will automatically communicate with the Astro Middleware.

    Check the documentation for more details.

Patch Changes

create-astro@3.1.10

Patch Changes

@astrojs/markdoc@0.4.1

Patch Changes

@astrobot-houston astrobot-houston requested a review from a team as a code owner July 5, 2023 15:48
@github-actions github-actions bot added pkg: svelte Related to Svelte (scope) pkg: vue Related to Vue (scope) pkg: example Related to an example package (scope) pkg: integration Related to any renderer integration (scope) pkg: astro Related to the core `astro` package (scope) labels Jul 5, 2023
@github-actions github-actions bot force-pushed the changeset-release/main branch 4 times, most recently from f322478 to 35ece9d Compare July 5, 2023 16:28
Copy link
Contributor

@matthewp matthewp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocked until tomorrow.

@github-actions github-actions bot force-pushed the changeset-release/main branch 3 times, most recently from 8c5c4bf to 02c9e91 Compare July 6, 2023 12:30
@github-actions github-actions bot force-pushed the changeset-release/main branch from 02c9e91 to a241986 Compare July 6, 2023 12:32
@bluwy bluwy dismissed matthewp’s stale review July 6, 2023 15:15

release day

@bluwy bluwy merged commit f224078 into main Jul 6, 2023
@bluwy bluwy deleted the changeset-release/main branch July 6, 2023 15:16
matthewp pushed a commit that referenced this pull request Jul 11, 2023
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ArmandPhilippot added a commit to ArmandPhilippot/astro-docs that referenced this pull request Jul 29, 2024
* Add missing Since (see withastro/astro#7578 for
`createContext` and `trySerializeLocals`
* Add missing types (see `packages/astro/src/core/build/types.ts` and
`packages/astro/src/@types/astro.ts`)
ArmandPhilippot added a commit to ArmandPhilippot/astro-docs that referenced this pull request Jul 29, 2024
* Add missing Since (see withastro/astro#7578 for
`createContext` and `trySerializeLocals`
* Add missing types (see `packages/astro/src/core/build/types.ts` and
`packages/astro/src/@types/astro.ts`)
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) pkg: integration Related to any renderer integration (scope) pkg: svelte Related to Svelte (scope) pkg: vue Related to Vue (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants