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

fix(deps): update dependency astro to v4.14.2 #214

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 14, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
astro (source) 4.13.3 -> 4.14.2 age adoption passing confidence

Release Notes

withastro/astro (astro)

v4.14.2

Compare Source

Patch Changes

v4.14.1

Compare Source

Patch Changes
  • #​11725 6c1560f Thanks @​ascorbic! - Prevents content layer importing node builtins in runtime

  • #​11692 35af73a Thanks @​matthewp! - Prevent errant HTML from crashing server islands

    When an HTML minifier strips away the server island comment, the script can't correctly know where the end of the fallback content is. This makes it so that it simply doesn't remove any DOM in that scenario. This means the fallback isn't removed, but it also doesn't crash the browser.

  • #​11727 3c2f93b Thanks @​florian-lefebvre! - Fixes a type issue when using the Content Layer in dev

v4.14.0

Compare Source

Minor Changes
  • #​11657 a23c69d Thanks @​bluwy! - Deprecates the option for route-generating files to export a dynamic value for prerender. Only static values are now supported (e.g. export const prerender = true or = false). This allows for better treeshaking and bundling configuration in the future.

    Adds a new "astro:route:setup" hook to the Integrations API to allow you to dynamically set options for a route at build or request time through an integration, such as enabling on-demand server rendering.

    To migrate from a dynamic export to the new hook, update or remove any dynamic prerender exports from individual routing files:

    // src/pages/blog/[slug].astro
    - export const prerender = import.meta.env.PRERENDER

    Instead, create an integration with the "astro:route:setup" hook and update the route's prerender option:

    // astro.config.mjs
    import { defineConfig } from 'astro/config';
    import { loadEnv } from 'vite';
    
    export default defineConfig({
      integrations: [setPrerender()],
    });
    
    function setPrerender() {
      const { PRERENDER } = loadEnv(process.env.NODE_ENV, process.cwd(), '');
    
      return {
        name: 'set-prerender',
        hooks: {
          'astro:route:setup': ({ route }) => {
            if (route.component.endsWith('/blog/[slug].astro')) {
              route.prerender = PRERENDER;
            }
          },
        },
      };
    }
  • #​11360 a79a8b0 Thanks @​ascorbic! - Adds a new injectTypes() utility to the Integration API and refactors how type generation works

    Use injectTypes() in the astro:config:done hook to inject types into your user's project by adding a new a *.d.ts file.

    The filename property will be used to generate a file at /.astro/integrations/<normalized_integration_name>/<normalized_filename>.d.ts and must end with ".d.ts".

    The content property will create the body of the file, and must be valid TypeScript.

    Additionally, injectTypes() returns a URL to the normalized path so you can overwrite its content later on, or manipulate it in any way you want.

    // my-integration/index.js
    export default {
      name: 'my-integration',
      'astro:config:done': ({ injectTypes }) => {
        injectTypes({
          filename: 'types.d.ts',
          content: "declare module 'virtual:my-integration' {}",
        });
      },
    };

    Codegen has been refactored. Although src/env.d.ts will continue to work as is, we recommend you update it:

    - /// <reference types="astro/client" />
    + /// <reference path="../.astro/types.d.ts" />
    - /// <reference path="../.astro/env.d.ts" />
    - /// <reference path="../.astro/actions.d.ts" />
  • #​11605 d3d99fb Thanks @​jcayzac! - Adds a new property meta to Astro's built-in <Code /> component.

    This allows you to provide a value for Shiki's meta attribute to pass options to transformers.

    The following example passes an option to highlight lines 1 and 3 to Shiki's tranformerMetaHighlight:

v4.13.4

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

cloudflare-workers-and-pages bot commented Aug 14, 2024

Deploying astro-tips with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3307c4a
Status: ✅  Deploy successful!
Preview URL: https://5dc0478d.astro-tips-blf.pages.dev
Branch Preview URL: https://renovate-astro-monorepo.astro-tips-blf.pages.dev

View logs

@florian-lefebvre
Copy link
Member

IIRC there's an issue with server islands, so i'd wait for 4.13.5 or 4.14.0

@alexanderniebuhr
Copy link
Member

@florian-lefebvre what do you mean?

@florian-lefebvre
Copy link
Member

This issue withastro/astro#11700

@renovate renovate bot force-pushed the renovate/astro-monorepo branch from 3f2d4f9 to 90137e4 Compare August 15, 2024 12:11
@renovate renovate bot changed the title fix(deps): update dependency astro to v4.13.4 fix(deps): update dependency astro to v4.14.0 Aug 15, 2024
@alexanderniebuhr
Copy link
Member

alexanderniebuhr commented Aug 15, 2024

Interesting that the preview yesterday did work 🤔
But yeah let's wait until 4.14 regression is fixed.

@renovate renovate bot force-pushed the renovate/astro-monorepo branch from 90137e4 to befc190 Compare August 15, 2024 16:41
@renovate renovate bot changed the title fix(deps): update dependency astro to v4.14.0 fix(deps): update dependency astro to v4.14.1 Aug 15, 2024
@renovate renovate bot changed the title fix(deps): update dependency astro to v4.14.1 fix(deps): update dependency astro to v4.14.2 Aug 15, 2024
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from befc190 to 3307c4a Compare August 15, 2024 20:09
@florian-lefebvre florian-lefebvre merged commit d2e25e9 into main Aug 16, 2024
1 check passed
@florian-lefebvre florian-lefebvre deleted the renovate/astro-monorepo branch August 16, 2024 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants