Skip to content

fix(deps): update dependency astro to v2.6.4#10

Merged
meanking merged 1 commit intomainfrom
renovate/astro-2.x-lockfile
Jun 14, 2023
Merged

fix(deps): update dependency astro to v2.6.4#10
meanking merged 1 commit intomainfrom
renovate/astro-2.x-lockfile

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Mar 15, 2023

Mend Renovate

This PR contains the following updates:

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

Release Notes

withastro/astro

v2.6.4

Compare Source

Patch Changes

v2.6.3

Compare Source

Patch Changes

v2.6.2

Compare Source

Patch Changes

v2.6.1

Compare Source

Patch Changes

v2.6.0

Compare Source

Minor Changes
  • #​7067 57f8d14c0 Thanks @​matthewp! - Experimental redirects support

    This change adds support for the redirects RFC, currently in stage 3: https://github.com/withastro/roadmap/pull/587

    Now you can specify redirects in your Astro config:

    import { defineConfig } from 'astro/config';
    
    export defineConfig({
      redirects: {
        '/blog/old-post': '/blog/new-post'
      }
    });

    You can also specify spread routes using the same syntax as in file-based routing:

    import { defineConfig } from 'astro/config';
    
    export defineConfig({
      redirects: {
        '/blog/[...slug]': '/articles/[...slug]'
      }
    });

    By default Astro will build HTML files that contain the <meta http-equiv="refresh"> tag. Adapters can also support redirect routes and create configuration for real HTTP-level redirects in production.

  • #​7237 414eb19d2 Thanks @​bluwy! - Remove experimental flag for custom client directives

  • #​7274 b5213654b Thanks @​Princesseuh! - Update base tsconfig.json template with allowJs: true to provide a better relaxed experience for users unfamilliar with TypeScript. allowJs is still set to false (its default value) when using the strictest preset.

  • #​7180 e3b8c6296 Thanks @​lilnasy! - The Inline Stylesheets RFC is now stable!

    You can now control how Astro bundles your css with a configuration change:

    export default defineConfig({
        ...
        build: {
            inlineStylesheets: "auto"
        }
        ...
    })

    The options:

    • inlineStylesheets: "never": This is the behavior you are familiar with. Every stylesheet is external, and added to the page via a <link> tag. Default.
    • inlineStylesheets: "auto": Small stylesheets are inlined into <style> tags and inserted into <head>, while larger ones remain external.
    • inlineStylesheets: "always": Every style required by the page is inlined.

    As always, css files in the public folder are not affected.

  • #​7260 39403c32f Thanks @​natemoo-re! - Unflags support for output: 'hybrid' mode, which enables pre-rendering by default. The additional experimental.hybridOutput flag can be safely removed from your configuration.

  • #​7109 101f03209 Thanks @​ematipico! - Remove experimental flag for the middleware

Patch Changes

v2.5.7

Compare Source

Patch Changes

v2.5.6

Compare Source

Patch Changes

v2.5.5

Compare Source

Patch Changes

v2.5.4

Compare Source

Patch Changes

v2.5.3

Compare Source

Patch Changes

v2.5.2

Compare Source

Patch Changes

v2.5.1

Compare Source

Patch Changes

v2.5.0

Compare Source

Minor Changes
  • #​7071 e186ecc5e Thanks @​johannesspohr! - Render sibling components in parallel

  • #​6850 c6d7ebefd Thanks @​bholmesdev! - Content collections now support data formats including JSON and YAML. You can also create relationships, or references, between collections to pull information from one collection entry into another. Learn more on our updated Content Collections docs.

  • #​6991 719002ca5 Thanks @​MoustaphaDev! - Enable experimental support for hybrid SSR with pre-rendering enabled by default

    astro.config.mjs

    import { defineConfig } from 'astro/config';
    export defaultdefineConfig({
       output: 'hybrid',
           experimental: {
           hybridOutput: true,
       },
    })

    Then add export const prerender = false to any page or endpoint you want to opt-out of pre-rendering.

    src/pages/contact.astro

v2.4.5

Compare Source

Patch Changes

v2.4.4

Compare Source

Patch Changes

v2.4.3

Compare Source

Patch Changes

v2.4.2

Compare Source

Patch Changes

v2.4.1

Compare Source

Patch Changes

v2.4.0

Compare Source

Minor Changes
  • #​6990 818252acd Thanks @​Princesseuh! - Generated optimized images are now cached inside the node_modules/.astro/assets folder. The cached images will be used to avoid doing extra work and speed up subsequent builds.

  • #​6659 80e3d4d3d Thanks @​lilnasy! - Implement Inline Stylesheets RFC as experimental

  • #​6771 3326492b9 Thanks @​matthewp! - Implements a new class-based scoping strategy

    This implements the Scoping RFC, providing a way to opt in to increased style specificity for Astro component styles.

    This prevents bugs where global styles override Astro component styles due to CSS ordering and the use of element selectors.

    To enable class-based scoping, you can set it in your config:

    import { defineConfig } from 'astro/config';
    
    export default defineConfig({
      scopedStyleStrategy: 'class',
    });

    Note that the 0-specificity :where pseudo-selector is still the default strategy. The intent is to change 'class' to be the default in 3.0.

  • #​6959 cac4a321e Thanks @​bluwy! - Support <Code inline /> to output inline code HTML (no pre tag)

  • #​6721 831b67cdb Thanks @​ematipico! - Implements a new experimental middleware in Astro.

    The middleware is available under the following experimental flag:

    export default defineConfig({
      experimental: {
        middleware: true,
      },
    });

    Or via CLI, using the new argument --experimental-middleware.

    Create a file called middleware.{js,ts} inside the src folder, and
    export a onRequest function.

    From astro/middleware, use the defineMiddleware utility to take advantage of type-safety, and use
    the sequence utility to chain multiple middleware functions.

    Example:

    import { defineMiddleware, sequence } from 'astro/middleware';
    
    const redirects = defineMiddleware((context, next) => {
      if (context.request.url.endsWith('/old-url')) {
        return context.redirect('/new-url');
      }
      return next();
    });
    
    const minify = defineMiddleware(async (context, next) => {
      const repsonse = await next();
      const minifiedHtml = await minifyHtml(response.text());
      return new Response(minifiedHtml, {
        status: 200,
        headers: response.headers,
      });
    });
    
    export const onRequest = sequence(redirects, minify);
  • #​6932 49514e4ce Thanks @​bluwy! - Upgrade shiki to v0.14.1. This updates the shiki theme colors and adds the theme name to the pre tag, e.g. <pre class="astro-code github-dark">.

Patch Changes

v2.3.4

Compare Source

Patch Changes

v2.3.3

Patch Changes

v2.3.2

Patch Changes

v2.3.1

Compare Source

Patch Changes

v2.3.0

Compare Source

Minor Changes
Patch Changes

v2.2.3

Compare Source

Patch Changes

v2.2.2

Compare Source

Patch Changes

v2.2.1

Compare Source

Patch Changes

v2.2.0

Compare Source

Minor Changes
  • #​6703 a1108e037 Thanks @​Princesseuh! - Move image() to come from schema instead to fix it not working with refine and inside complex types

    Migration:

    Remove the image import from astro:content, and instead use a function to generate your schema, like such:

    import { defineCollection, z } from 'astro:content';
    
    defineCollection({
      schema: ({ image }) =>
        z.object({
          image: image().refine((img) => img.width >= 200, {
            message: 'image too small',
          }),
        }),
    });
  • #​6714 ff0430786 Thanks @​bluwy! - Add build.assetsPrefix option for CDN support. If set, all Astro-generated asset links will be prefixed with it. For example, setting it to https://cdn.example.com would generate https://cdn.example.com/_astro/penguin.123456.png links.

    Also adds import.meta.env.ASSETS_PREFIX environment variable that can be used to manually create asset links not handled by Astro.

Patch Changes

v2.1.9

Compare Source

Patch Changes

v2.1.8

Compare Source

Patch Changes

v2.1.7

Compare Source

Patch Changes
  • #​6192 b7194103e Thanks @​erg208! - Updated to fix the Node SSR fails on POST with Express JSON middleware

  • #​6630 cfcf2e2ff Thanks @​bholmesdev! - Support automatic image optimization for Markdoc images when using experimental.assets. You can follow our Assets guide to enable this feature in your project. Then, start using relative or aliased image sources in your Markdoc files for automatic optimization:

    <!--Relative paths-->
    
    ![The Milky Way Galaxy](../assets/galaxy.jpg)
    
    <!--Or configured aliases-->
    
    ![Houston smiling and looking cute](~/assets/houston-smiling.jpg)
  • #​6647 45da39a86 Thanks @​bluwy! - Fix --mode flag for builds

  • #​6638 7daef9a29 Thanks @​matthewp! - Avoid implicit head injection when a head is in the tree

v2.1.6

Compare Source

Patch Changes

v2.1.5

Compare Source

Patch Changes

v2.1.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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate Bot changed the title fix(deps): update dependency astro to v2.1.3 fix(deps): update dependency astro to v2.1.4 Mar 21, 2023
@renovate renovate Bot force-pushed the renovate/astro-2.x-lockfile branch from b3bbb7f to 81dec30 Compare March 21, 2023 12:59
@renovate renovate Bot changed the title fix(deps): update dependency astro to v2.1.4 fix(deps): update dependency astro to v2.1.5 Mar 22, 2023
@renovate renovate Bot force-pushed the renovate/astro-2.x-lockfile branch from 81dec30 to 0f184ef Compare March 22, 2023 15:21
@renovate renovate Bot changed the title fix(deps): update dependency astro to v2.1.5 fix(deps): update dependency astro to v2.1.6 Mar 24, 2023
@renovate renovate Bot force-pushed the renovate/astro-2.x-lockfile branch from 0f184ef to 1e65c47 Compare March 24, 2023 09:55
@renovate renovate Bot changed the title fix(deps): update dependency astro to v2.1.6 fix(deps): update dependency astro to v2.1.7 Mar 24, 2023
@renovate renovate Bot force-pushed the renovate/astro-2.x-lockfile branch from 1e65c47 to cd87d7f Compare March 24, 2023 21:27
@renovate renovate Bot changed the title fix(deps): update dependency astro to v2.1.7 fix(deps): update dependency astro to v2.1.8 Mar 28, 2023
@renovate renovate Bot force-pushed the renovate/astro-2.x-lockfile branch 2 times, most recently from d0bdbdf to 30a7eb1 Compare March 31, 2023 16:11
@renovate renovate Bot changed the title fix(deps): update dependency astro to v2.1.8 fix(deps): update dependency astro to v2.1.9 Mar 31, 2023
@renovate renovate Bot force-pushed the renovate/astro-2.x-lockfile branch from 30a7eb1 to 387ec8c Compare April 5, 2023 20:38
@renovate renovate Bot changed the title fix(deps): update dependency astro to v2.1.9 fix(deps): update dependency astro to v2.2.0 Apr 5, 2023
@renovate renovate Bot force-pushed the renovate/astro-2.x-lockfile branch from 387ec8c to cae2a06 Compare April 8, 2023 01:31
@renovate renovate Bot changed the title fix(deps): update dependency astro to v2.2.0 fix(deps): update dependency astro to v2.2.1 Apr 8, 2023
@renovate renovate Bot changed the title fix(deps): update dependency astro to v2.2.1 fix(deps): update dependency astro to v2.2.2 Apr 11, 2023
@renovate renovate Bot force-pushed the renovate/astro-2.x-lockfile branch from cae2a06 to ab5f2d5 Compare April 11, 2023 19:19
@renovate renovate Bot changed the title fix(deps): update dependency astro to v2.2.2 fix(deps): update dependency astro to v2.3.0 Apr 17, 2023
@renovate renovate Bot force-pushed the renovate/astro-2.x-lockfile branch from ab5f2d5 to 8bf20d6 Compare April 17, 2023 10:17
@renovate renovate Bot force-pushed the renovate/astro-2.x-lockfile branch from 8bf20d6 to 1869a77 Compare May 28, 2023 10:38
@renovate renovate Bot changed the title fix(deps): update dependency astro to v2.3.0 fix(deps): update dependency astro to v2.5.5 May 28, 2023
@renovate renovate Bot changed the title fix(deps): update dependency astro to v2.5.5 fix(deps): update dependency astro to v2.5.6 Jun 1, 2023
@renovate renovate Bot changed the title fix(deps): update dependency astro to v2.5.6 fix(deps): update dependency astro to v2.5.7 Jun 2, 2023
@renovate renovate Bot force-pushed the renovate/astro-2.x-lockfile branch 2 times, most recently from 12c413b to 39ef145 Compare June 6, 2023 18:17
@renovate renovate Bot changed the title fix(deps): update dependency astro to v2.5.7 fix(deps): update dependency astro to v2.6.0 Jun 6, 2023
@renovate renovate Bot force-pushed the renovate/astro-2.x-lockfile branch from 39ef145 to fe86183 Compare June 6, 2023 22:33
@renovate renovate Bot changed the title fix(deps): update dependency astro to v2.6.0 fix(deps): update dependency astro to v2.6.1 Jun 6, 2023
@renovate renovate Bot force-pushed the renovate/astro-2.x-lockfile branch from fe86183 to a4a4718 Compare June 9, 2023 07:02
@renovate renovate Bot changed the title fix(deps): update dependency astro to v2.6.1 fix(deps): update dependency astro to v2.6.2 Jun 9, 2023
@renovate renovate Bot force-pushed the renovate/astro-2.x-lockfile branch from a4a4718 to a48063f Compare June 10, 2023 19:44
@renovate renovate Bot changed the title fix(deps): update dependency astro to v2.6.2 fix(deps): update dependency astro to v2.6.3 Jun 10, 2023
@renovate renovate Bot force-pushed the renovate/astro-2.x-lockfile branch from a48063f to 936d2c2 Compare June 13, 2023 22:16
@renovate renovate Bot changed the title fix(deps): update dependency astro to v2.6.3 fix(deps): update dependency astro to v2.6.4 Jun 13, 2023
@meanking meanking merged commit 16f8833 into main Jun 14, 2023
@renovate renovate Bot deleted the renovate/astro-2.x-lockfile branch June 14, 2023 16:50
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.

1 participant