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 v3.6.4 #3

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 7, 2023

Mend Renovate

This PR contains the following updates:

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

Release Notes

withastro/astro (astro)

v3.6.4

Compare Source

Patch Changes
  • #​9226 8f8a40e93 Thanks @​outofambit! - Fix i18n fallback routing with routing strategy of always-prefix

  • #​9179 3f28336d9 Thanks @​lilnasy! - Fixes an issue where the presence of a slot in a page led to an error.

  • #​9219 067a65f5b Thanks @​natemoo-re! - Fix edge case where <style> updates inside of .astro files would ocassionally fail to update without reloading the page.

  • #​9236 27d3e86e4 Thanks @​ematipico! - The configuration i18n.routingStrategy has been replaced with an object called routing.

    export default defineConfig({
      experimental: {
          i18n: {
    -          routingStrategy: "prefix-always",
    +          routing: {
    +              prefixDefaultLocale: true,
    +          }
          }
      }
    })
    export default defineConfig({
      experimental: {
          i18n: {
    -          routingStrategy: "prefix-other-locales",
    +          routing: {
    +              prefixDefaultLocale: false,
    +          }
          }
      }
    })

v3.6.3

Compare Source

Patch Changes

v3.6.2

Compare Source

Patch Changes

v3.6.1

Compare Source

Patch Changes

v3.6.0

Compare Source

Minor Changes
  • #​9090 c87223c21 Thanks @​martrapp! - Take full control over the behavior of view transitions!

    Three new events now complement the existing astro:after-swap and astro:page-load events:

    'astro:before-preparation'; // Control how the DOM and other resources of the target page are loaded
    'astro:after-preparation'; // Last changes before taking off? Remove that loading indicator? Here you go!
    'astro:before-swap'; // Control how the DOM is updated to match the new page

    The astro:before-* events allow you to change properties and strategies of the view transition implementation.
    The astro:after-* events are notifications that a phase is complete.
    Head over to docs to see the full view transitions lifecycle including these new events!

  • #​9092 0ea4bd47e Thanks @​smitbarmase! - Changes the fallback prefetch behavior on slow connections and when data saver mode is enabled. Instead of disabling prefetch entirely, the tap strategy will be used.

  • #​9166 cba6cf32d Thanks @​matthewp! - The Picture component is no longer experimental

    The <Picture /> component, part of astro:assets, has exited experimental status and is now recommended for use. There are no code changes to the component, and no upgrade to your project is necessary.

    This is only a change in documentation/recommendation. If you were waiting to use the <Picture /> component until it had exited the experimental stage, wait no more!

  • #​9092 0ea4bd47e Thanks @​smitbarmase! - Adds a ignoreSlowConnection option to the prefetch() API to prefetch even on data saver mode or slow connection.

v3.5.7

Compare Source

Patch Changes

v3.5.6

Compare Source

Patch Changes

v3.5.5

Compare Source

Patch Changes
  • #​9091 536c6c9fd Thanks @​ematipico! - The routingStrategy prefix-always should not force its logic to endpoints. This fixes some regression with astro:assets and @astrojs/rss.

  • #​9102 60e8210b0 Thanks @​Princesseuh! - In the dev overlay, when there's too many plugins enabled at once, some of the plugins will now be hidden in a separate sub menu to avoid the bar becoming too long

v3.5.4

Compare Source

Patch Changes

v3.5.3

Compare Source

Patch Changes

v3.5.2

Compare Source

Patch Changes

v3.5.1

Compare Source

Patch Changes

v3.5.0

Compare Source

Minor Changes
  • #​8869 f5bdfa272 Thanks @​matthewp! - ## Integration Hooks to add Middleware

    It's now possible in Astro for an integration to add middleware on behalf of the user. Previously when a third party wanted to provide middleware, the user would need to create a src/middleware.ts file themselves. Now, adding third-party middleware is as easy as adding a new integration.

    For integration authors, there is a new addMiddleware function in the astro:config:setup hook. This function allows you to specify a middleware module and the order in which it should be applied:

    // my-package/middleware.js
    import { defineMiddleware } from 'astro:middleware';
    
    export const onRequest = defineMiddleware(async (context, next) => {
      const response = await next();
    
      if (response.headers.get('content-type') === 'text/html') {
        let html = await response.text();
        html = minify(html);
        return new Response(html, {
          status: response.status,
          headers: response.headers,
        });
      }
    
      return response;
    });

    You can now add your integration's middleware and specify that it runs either before or after the application's own defined middleware (defined in src/middleware.{js,ts})

    // my-package/integration.js
    export function myIntegration() {
      return {
        name: 'my-integration',
        hooks: {
          'astro:config:setup': ({ addMiddleware }) => {
            addMiddleware({
              entrypoint: 'my-package/middleware',
              order: 'pre',
            });
          },
        },
      };
    }
  • #​8854 3e1239e42 Thanks @​natemoo-re! - Provides a new, experimental build cache for Content Collections as part of the Incremental Build RFC. This includes multiple refactors to Astro's build process to optimize how Content Collections are handled, which should provide significant performance improvements for users with many collections.

    Users building a static site can opt-in to preview the new build cache by adding the following flag to your Astro config:

    // astro.config.mjs
    export default {
      experimental: {
        contentCollectionCache: true,
      },
    };

    When this experimental feature is enabled, the files generated from your content collections will be stored in the cacheDir (by default, node_modules/.astro) and reused between builds. Most CI environments automatically restore files in node_modules/ by default.

    In our internal testing on the real world Astro Docs project, this feature reduces the bundling step of astro build from 133.20s to 10.46s, about 92% faster. The end-to-end astro build process used to take 4min 58s and now takes just over 1min for a total reduction of 80%.

    If you run into any issues with this experimental feature, please let us know!

    You can always bypass the cache for a single build by passing the --force flag to astro build.

    astro build --force
    
  • #​8963 fda3a0213 Thanks @​matthewp! - Form support in View Transitions router

    The <ViewTransitions /> router can now handle form submissions, allowing the same animated transitions and stateful UI retention on form posts that are already available on <a> links. With this addition, your Astro project can have animations in all of these scenarios:

    • Clicking links between pages.
    • Making stateful changes in forms (e.g. updating site preferences).
    • Manually triggering navigation via the navigate() API.

    This feature is opt-in for semver reasons and can be enabled by adding the handleForms prop to the ` component:

v3.4.4

Compare Source

Patch Changes

v3.4.3

Compare Source

Patch Changes

v3.4.2

Compare Source

Patch Changes

v3.4.1

Compare Source

Patch Changes

v3.4.0

Compare Source

Minor Changes
  • #​8755 fe4079f05 Thanks @​matthewp! - Page Partials

    A page component can now be identified as a partial page, which will render its HTML content without including a <! DOCTYPE html> declaration nor any <head> content.

    A rendering library, like htmx or Stimulus or even just jQuery can access partial content on the client to dynamically update only parts of a page.

    Pages marked as partials do not have a doctype or any head content included in the rendered result. You can mark any page as a partial by setting this option:

v3.3.4

Compare Source

Patch Changes

v3.3.3

Compare Source

Patch Changes

v3.3.2

Compare Source

Patch Changes

v3.3.1

Compare Source

Patch Changes

v3.3.0

Compare Source

Minor Changes
  • #​8808 2993055be Thanks @​delucis! - Adds support for an --outDir CLI flag to astro build

  • #​8502 c4270e476 Thanks @​bluwy! - Updates the internal shiki syntax highlighter to shikiji, an ESM-focused alternative that simplifies bundling and maintenance.

    There are no new options and no changes to how you author code blocks and syntax highlighting.

    Potentially breaking change: While this refactor should be transparent for most projects, the transition to shikiji now produces a smaller HTML markup by attaching a fallback color style to the pre or code element, instead of to the line span directly. For example:

    Before:

    <code class="astro-code" style="background-color: #&#8203;24292e">
      <pre>
        <span class="line" style="color: #e1e4e8">my code</span>
      </pre>
    </code>

    After:

    <code class="astro-code" style="background-color: #&#8203;24292e; color: #e1e4e8">
      <pre>
        <span class="line">my code<span>
      </pre>
    </code>

    This does not affect the colors as the span will inherit the color from the parent, but if you're relying on a specific HTML markup, please check your site carefully after upgrading to verify the styles.

  • #​8798 f369fa250 Thanks @​Princesseuh! - Fixed tsconfig.json's new array format for extends not working. This was done by migrating Astro to use tsconfck instead of tsconfig-resolver to find and parse tsconfig.json files.

  • #​8620 b2ae9ee0c Thanks @​Princesseuh! - Adds experimental support for generating srcset attributes and a new <Picture /> component.

v3.2.4

Compare Source

Patch Changes

v3.2.3

Compare Source

Patch Changes

v3.2.2

Compare Source

Patch Changes

v3.2.1

Compare Source

Patch Changes

v3.2.0

Compare Source

Minor Changes
  • #​8696 2167ffd72 Thanks @​matthewp! - Support adding integrations dynamically

    Astro integrations can now themselves dynamically add and configure additional integrations during set-up. This makes it possible for integration authors to bundle integrations more intelligently for their users.

    In the following example, a custom integration checks whether @astrojs/sitemap is already configured. If not, the integration adds Astro’s sitemap integration, passing any desired configuration options:

    import sitemap from '@&#8203;astrojs/sitemap';
    import type { AstroIntegration } from 'astro';
    
    const MyIntegration = (): AstroIntegration => {
      return {
        name: 'my-integration',
    
        'astro:config:setup': ({ config, updateConfig }) => {
          // Look for sitemap in user-configured integrations.
          const userSitemap = config.integrations.find(
            ({ name }) => name === '@&#8203;astrojs/sitemap'
          );
    
          if (!userSitemap) {
            // If sitemap wasn’t found, add it.
            updateConfig({
              integrations: [sitemap({ /* opts */ }],
            });
          }
        },
      };
    };
  • #​8696 2167ffd72 Thanks @​matthewp! - View transitions can now be triggered from JavaScript!

    Import the client-side router from "astro:transitions/client" and enjoy your new remote control for navigation:

    import { navigate } from 'astro:transitions/client';
    
    // Navigate to the selected option automatically.
    document.querySelector('select').onchange = (ev) => {
      let href = ev.target.value;
      navigate(href);
    };
  • #​8696 2167ffd72 Thanks @​matthewp! - Route Announcer in <ViewTransitions />

    The View Transitions router now does route announcement. When transitioning between pages with a traditional MPA approach, assistive technologies will announce the page title when the page finishes loading. This does not automatically happen during client-side routing, so visitors relying on these technologies to announce routes are not aware when a page has changed.

    The view transitions route announcer runs after the astro:page-load event, looking for the page <title> to announce. If one cannot be found, the announcer falls back to the first <h1> it finds, or otherwise announces the pathname. We recommend you always include a <title> in each page for accessibility.

    See the View Transitions docs for more on how accessibility is handled.

Patch Changes

v3.1.4

Compare Source

Patch Changes

v3.1.3

Compare Source

Patch Changes

v3.1.2

Compare Source

Patch Changes

v3.1.1

Compare Source

Patch Changes

v3.1.0

Compare Source

Minor Changes
  • #​8467 ecc65abbf Thanks @​Princesseuh! - Add a new image.endpoint setting to allow using a custom endpoint in dev and SSR

  • #​8518 2c4fc878b Thanks @​Princesseuh! - Adds support for using AVIF (.avif) files with the Image component. Importing an AVIF file will now correctly return the same object shape as other image file types. See the Image docs for more information on the different properties available on the returned object.

  • #​8464 c92e0acd7 Thanks @​Princesseuh! - Add types for the object syntax for style (ex: style={{color: 'red'}})

Patch Changes

v3.0.13

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.

@github-actions
Copy link

github-actions bot commented Sep 7, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot changed the title fix(deps): update dependency astro to v3.0.10 fix(deps): update dependency astro to v3.0.12 Sep 9, 2023
@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from 7a50de2 to a07a4e4 Compare September 9, 2023 11:39
@github-actions
Copy link

github-actions bot commented Sep 9, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from a07a4e4 to cbbdabe Compare September 13, 2023 05:42
@renovate renovate bot changed the title fix(deps): update dependency astro to v3.0.12 fix(deps): update dependency astro to v3.0.13 Sep 13, 2023
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot changed the title fix(deps): update dependency astro to v3.0.13 fix(deps): update dependency astro to v3.1.0 Sep 15, 2023
@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from cbbdabe to f5af7a0 Compare September 15, 2023 05:28
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot changed the title fix(deps): update dependency astro to v3.1.0 fix(deps): update dependency astro to v3.1.1 Sep 19, 2023
@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from f5af7a0 to 64e5f67 Compare September 19, 2023 20:38
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot changed the title fix(deps): update dependency astro to v3.1.1 fix(deps): update dependency astro to v3.1.2 Sep 22, 2023
@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from 64e5f67 to 51e50ed Compare September 22, 2023 02:51
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from 51e50ed to 60f759f Compare September 26, 2023 12:01
@renovate renovate bot changed the title fix(deps): update dependency astro to v3.1.2 fix(deps): update dependency astro to v3.1.4 Sep 26, 2023
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot changed the title fix(deps): update dependency astro to v3.1.4 fix(deps): update dependency astro to v3.2.0 Sep 29, 2023
@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from 60f759f to d9da205 Compare September 29, 2023 23:17
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot changed the title fix(deps): update dependency astro to v3.2.0 fix(deps): update dependency astro to v3.2.2 Oct 3, 2023
@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from d9da205 to 7b31c9a Compare October 3, 2023 08:29
@github-actions
Copy link

github-actions bot commented Oct 3, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot changed the title fix(deps): update dependency astro to v3.2.2 fix(deps): update dependency astro to v3.2.3 Oct 6, 2023
@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from 7b31c9a to 54a3170 Compare October 6, 2023 05:27
@github-actions
Copy link

github-actions bot commented Oct 6, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot changed the title fix(deps): update dependency astro to v3.2.3 fix(deps): update dependency astro to v3.2.4 Oct 11, 2023
@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from 54a3170 to a0ef34d Compare October 11, 2023 05:44
@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from ad2542d to 42123ac Compare November 12, 2023 08:43
@renovate renovate bot changed the title fix(deps): update dependency astro to v3.5.2 fix(deps): update dependency astro to v3.5.3 Nov 12, 2023
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot changed the title fix(deps): update dependency astro to v3.5.3 fix(deps): update dependency astro to v3.5.4 Nov 15, 2023
@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from 42123ac to fbe2394 Compare November 15, 2023 05:07
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from fbe2394 to 08efceb Compare November 17, 2023 02:51
@renovate renovate bot changed the title fix(deps): update dependency astro to v3.5.4 fix(deps): update dependency astro to v3.5.5 Nov 17, 2023
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot changed the title fix(deps): update dependency astro to v3.5.5 fix(deps): update dependency astro to v3.5.7 Nov 21, 2023
@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from 08efceb to 5be3a2b Compare November 21, 2023 23:22
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot changed the title fix(deps): update dependency astro to v3.5.7 fix(deps): update dependency astro to v3.6.0 Nov 22, 2023
@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from 5be3a2b to e46ba2a Compare November 22, 2023 15:02
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from e46ba2a to 148dd3f Compare November 30, 2023 05:28
@renovate renovate bot changed the title fix(deps): update dependency astro to v3.6.0 fix(deps): update dependency astro to v3.6.3 Nov 30, 2023
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from 148dd3f to f9e6184 Compare December 1, 2023 04:57
@renovate renovate bot changed the title fix(deps): update dependency astro to v3.6.3 fix(deps): update dependency astro to v3.6.4 Dec 1, 2023
Copy link

github-actions bot commented Dec 1, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from f9e6184 to 23cd3aa Compare January 30, 2024 05:51
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from 23cd3aa to 42cc08c Compare February 5, 2024 05:46
Copy link

github-actions bot commented Feb 5, 2024

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@renovate renovate bot force-pushed the renovate/astro-3.x-lockfile branch from 42cc08c to ea45b5e Compare February 26, 2024 05:39
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://red-cliff-0a88f5e0f-3.eastus2.3.azurestaticapps.net

@1kevgriff 1kevgriff merged commit 2910cb0 into main Feb 26, 2024
2 checks passed
@1kevgriff 1kevgriff deleted the renovate/astro-3.x-lockfile branch February 26, 2024 13:41
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