Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Oct 25, 2024

Bumps astro from 4.8.7 to 4.16.1.

Release notes

Sourced from astro's releases.

astro@4.16.1

Patch Changes

  • #12177 a4ffbfa Thanks @​matthewp! - Ensure we target scripts for execution in the router

    Using document.scripts is unsafe because if the application has a name="scripts" this will shadow the built-in document.scripts. Fix is to use getElementsByTagName to ensure we're only grabbing real scripts.

  • #12173 2d10de5 Thanks @​ematipico! - Fixes a bug where Astro Actions couldn't redirect to the correct pathname when there was a rewrite involved.

astro@4.16.0

Minor Changes

  • #12039 710a1a1 Thanks @​ematipico! - Adds a markdown.shikiConfig.langAlias option that allows aliasing a non-supported code language to a known language. This is useful when the language of your code samples is not a built-in Shiki language, but you want your Markdown source to contain an accurate language while also displaying syntax highlighting.

    The following example configures Shiki to highlight cjs code blocks using the javascript syntax highlighter:

    import { defineConfig } from 'astro/config';
    export default defineConfig({
    markdown: {
    shikiConfig: {
    langAlias: {
    cjs: 'javascript',
    },
    },
    },
    });

    Then in your Markdown, you can use the alias as the language for a code block for syntax highlighting:

    ```cjs
    'use strict';
    function commonJs() {
    return 'I am a commonjs file';
    }
    </code></pre>
    </li>
    <li>
    <p><a href="https://redirect.github.com/withastro/astro/pull/11984">#11984</a> <a href="https://github.com/withastro/astro/commit/3ac2263ff6070136bec9cffb863c38bcc31ccdfe"><code>3ac2263</code></a> Thanks <a href="https://github.com/chaegumi"><code>@​chaegumi</code></a>! - Adds a new <code>build.concurreny</code> configuration option to specify the number of pages to build in parallel</p>
    <p><strong>In most cases, you should not change the default value of <code>1</code>.</strong></p>
    <p>Use this option only when other attempts to reduce the overall rendering time (e.g. batch or cache long running tasks like fetch calls or data access) are not possible or are insufficient.</p>
    <p>Use this option only if the refactors are not possible. If the number is set too high, the page rendering may slow down due to insufficient memory resources and because JS is single-threaded.</p>
    </li>
    </ul>
    <!-- raw HTML omitted -->
    </blockquote>
    <p>... (truncated)</p>
    </details>
    <details>
    <summary>Changelog</summary>
    <p><em>Sourced from <a href="https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md&quot;&gt;astro's changelog</a>.</em></p>
    <blockquote>
    <h2>4.16.1</h2>
    <h3>Patch Changes</h3>
    <ul>
    <li>
    <p><a href="https://redirect.github.com/withastro/astro/pull/12177&quot;&gt;#12177&lt;/a> <a href="https://github.com/withastro/astro/commit/a4ffbfaa5cb460c12bd486fd75e36147f51d3e5e&quot;&gt;&lt;code&gt;a4ffbfa&lt;/code&gt;&lt;/a> Thanks <a href="https://github.com/matthewp&quot;&gt;&lt;code&gt;@​matthewp&lt;/code&gt;&lt;/a>! - Ensure we target scripts for execution in the router</p>
    <p>Using <code>document.scripts</code> is unsafe because if the application has a <code>name=&quot;scripts&quot;</code> this will shadow the built-in <code>document.scripts</code>. Fix is to use <code>getElementsByTagName</code> to ensure we're only grabbing real scripts.</p>
    </li>
    <li>
    <p><a href="https://redirect.github.com/withastro/astro/pull/12173&quot;&gt;#12173&lt;/a> <a href="https://github.com/withastro/astro/commit/2d10de5f212323e6e19c7ea379826dcc18fe739c&quot;&gt;&lt;code&gt;2d10de5&lt;/code&gt;&lt;/a> Thanks <a href="https://github.com/ematipico&quot;&gt;&lt;code&gt;@​ematipico&lt;/code&gt;&lt;/a>! - Fixes a bug where Astro Actions couldn't redirect to the correct pathname when there was a rewrite involved.</p>
    </li>
    </ul>
    <h2>4.16.0</h2>
    <h3>Minor Changes</h3>
    <ul>
    <li>
    <p><a href="https://redirect.github.com/withastro/astro/pull/12039&quot;&gt;#12039&lt;/a> <a href="https://github.com/withastro/astro/commit/710a1a11f488ff6ed3da6d3e0723b2322ccfe27b&quot;&gt;&lt;code&gt;710a1a1&lt;/code&gt;&lt;/a> Thanks <a href="https://github.com/ematipico&quot;&gt;&lt;code&gt;@​ematipico&lt;/code&gt;&lt;/a>! - Adds a <code>markdown.shikiConfig.langAlias</code> option that allows <a href="https://shiki.style/guide/load-lang#custom-language-aliases&quot;&gt;aliasing a non-supported code language to a known language</a>. This is useful when the language of your code samples is not <a href="https://shiki.style/languages&quot;&gt;a built-in Shiki language</a>, but you want your Markdown source to contain an accurate language while also displaying syntax highlighting.</p>
    <p>The following example configures Shiki to highlight <code>cjs</code> code blocks using the <code>javascript</code> syntax highlighter:</p>
    <pre lang="js"><code>import { defineConfig } from 'astro/config';
    export default defineConfig({
    markdown: {
    shikiConfig: {
    langAlias: {
    cjs: 'javascript',
    },
    },
    },
    });
    </code></pre>
    <p>Then in your Markdown, you can use the alias as the language for a code block for syntax highlighting:</p>
    <pre lang="md"><code>```cjs
    'use strict';
    function commonJs() {
    return 'I am a commonjs file';
    }
    

  • #11984 3ac2263 Thanks @​chaegumi! - Adds a new build.concurreny configuration option to specify the number of pages to build in parallel

    In most cases, you should not change the default value of 1.

    Use this option only when other attempts to reduce the overall rendering time (e.g. batch or cache long running tasks like fetch calls or data access) are not possible or are insufficient.

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Summary by Sourcery

Bump Astro from version 4.8.7 to 4.16.1, introducing new features such as markdown language aliasing and build concurrency configuration. Fix bugs related to script execution and routing in Astro Actions. Update the pnpm lockfile to version 9.0 to accommodate dependency changes.

New Features:

  • Add a markdown.shikiConfig.langAlias option for aliasing non-supported code languages to known languages.
  • Introduce a build.concurrency configuration option to specify the number of pages to build in parallel.

Bug Fixes:

  • Fix a bug where Astro Actions couldn't redirect to the correct pathname when there was a rewrite involved.
  • Ensure scripts are correctly targeted for execution in the router by using getElementsByTagName instead of document.scripts.

Enhancements:

  • Update Astro from version 4.8.7 to 4.16.1, including various dependency updates and improvements.

Build:

  • Update pnpm-lock.yaml to lockfileVersion 9.0, reflecting changes in dependencies and their versions.

Bumps [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) from 4.8.7 to 4.16.1.
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/astro@4.16.1/packages/astro)

---
updated-dependencies:
- dependency-name: astro
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Oct 25, 2024
@sourcery-ai
Copy link

sourcery-ai bot commented Oct 25, 2024

Reviewer's Guide by Sourcery

This PR updates the Astro dependency from version 4.8.7 to 4.16.1, along with updates to its dependencies and peer dependencies. The changes primarily involve version bumps and dependency management adjustments in the pnpm-lock.yaml file.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Update Astro to version 4.16.1
  • Upgrade Astro from 4.8.7 to 4.16.1
  • Add new dependencies like @oslojs/encoding and xxhash-wasm
  • Update various internal Astro dependencies to their latest versions
  • Modify peer dependency requirements and optional dependencies
pnpm-lock.yaml
Update Astro's core dependencies
  • Update @astrojs/compiler from 2.8.0 to 2.10.3
  • Update @astrojs/markdown-remark from 5.1.0 to 5.3.0
  • Update @babel packages to newer versions
  • Update shiki from 1.6.0 to 1.22.1
pnpm-lock.yaml
Update development and build tool dependencies
  • Update esbuild from 0.21.3 to 0.21.5
  • Update vite related dependencies
  • Update typescript-related packages
  • Update various utility packages like devalue and magic-string
pnpm-lock.yaml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, dependabot[bot]!). We assume it knows what it's doing!

micromark@4.0.0:
resolution: {integrity: sha512-o/sd0nMof8kYff+TqcDx3VSrgBTcZpSvYcAHIfHhv5VAuNmisCxjhx6YmxS8PFEpb9z5WKWKPdzf0jM23ro3RQ==}

micromatch@4.0.7:

Choose a reason for hiding this comment

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

⚠️ Codacy found a medium Security issue: Insecure dependency micromatch@4.0.7 (CVE-2024-4067: micromatch: vulnerable to Regular Expression Denial of Service) (update to 4.0.8)

The issue identified by the Trivy linter is a security vulnerability in the micromatch package version 4.0.7. This version is susceptible to a Regular Expression Denial of Service (ReDoS) attack, identified by CVE-2024-4067. ReDoS vulnerabilities occur when an attacker can exploit the time complexity of regular expression processing, potentially causing a service to become unresponsive.

To fix this issue, you should update the micromatch package to a version that has resolved this vulnerability. In this case, updating to version 4.0.8, which addresses the security concern, is recommended.

Here's the code suggestion to update the package version:

Suggested change
micromatch@4.0.7:
micromatch@4.0.8:

This comment was generated by an experimental AI tool.

@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Dec 18, 2024

Superseded by #8.

@dependabot dependabot bot closed this Dec 18, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/astro-4.16.1 branch December 18, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants