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.
#121732d10de5 Thanks @ematipico! - Fixes a bug where Astro Actions couldn't redirect to the correct pathname when there was a rewrite involved.
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>
</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">astro's changelog</a>.</em></p>
<blockquote>
<h2>4.16.2</h2>
<h3>Patch Changes</h3>
<ul>
<li><a href="https://redirect.github.com/withastro/astro/pull/12206">#12206</a> <a href="https://github.com/withastro/astro/commit/12b00225067445629e5ae451d763d03f70065f88"><code>12b0022</code></a> Thanks <a href="https://github.com/bluwy"><code>@bluwy</code></a>! - Reverts <a href="https://redirect.github.com/withastro/astro/pull/12173">withastro/astro#12173</a> which caused <code>Can't modify immutable headers</code> warnings and 500 errors on Cloudflare Pages</li>
</ul>
<h2>4.16.1</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a href="https://redirect.github.com/withastro/astro/pull/12177">#12177</a> <a href="https://github.com/withastro/astro/commit/a4ffbfaa5cb460c12bd486fd75e36147f51d3e5e"><code>a4ffbfa</code></a> Thanks <a href="https://github.com/matthewp"><code>@matthewp</code></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="scripts"</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">#12173</a> <a href="https://github.com/withastro/astro/commit/2d10de5f212323e6e19c7ea379826dcc18fe739c"><code>2d10de5</code></a> Thanks <a href="https://github.com/ematipico"><code>@ematipico</code></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">#12039</a> <a href="https://github.com/withastro/astro/commit/710a1a11f488ff6ed3da6d3e0723b2322ccfe27b"><code>710a1a1</code></a> Thanks <a href="https://github.com/ematipico"><code>@ematipico</code></a>! - Adds a <code>markdown.shikiConfig.langAlias</code> option that allows <a href="https://shiki.style/guide/load-lang#custom-language-aliases">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">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';
}
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 ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the docs-dependencies group in /docs with 4 updates: @astrojs/starlight, @astrojs/tailwind, astro and typescript.
Updates
@astrojs/starlight
from 0.28.2 to 0.28.3Release notes
Sourced from
@astrojs/starlight
's releases.Changelog
Sourced from
@astrojs/starlight
's changelog.Commits
27feccd
[ci] release (#2382)a0f40b3
fix bottom padding in search dialog (#2443)6bba3d8
Fix type-checking issue (#2388)0b4823d
Fix link formatting issue withbuild.format
set tofile
and abase
(#2408)45d2ed7
[ci] format7b451cf
Loosen i18n schema to pass through unknown keys by default (#2380)Updates
@astrojs/tailwind
from 5.1.1 to 5.1.2Release notes
Sourced from
@astrojs/tailwind
's releases.Changelog
Sourced from
@astrojs/tailwind
's changelog.Commits
582f12e
[ci] release (#12148)8e500f2
Addcss
keyword to Tailwind integration (#12161)2594eb0
fix(deps): update all non-major dependencies (#12003)Updates
astro
from 4.15.11 to 4.16.2Release notes
Sourced from astro's releases.
... (truncated)
Commits
bbc72a1
[ci] release (#12207)12b0022
Revert #12173 (#12206)c73d65d
[ci] release (#12178)650dd22
Fix VT video test fail in firefox (#12188)58e22bd
[ci] format2d10de5
fix(routing): actions should redirect the original pathname (#12173)a4ffbfa
Ensure router only targets scripts for execution (#12177)2f5b28e
Use p-queue instead of fastq (#12189)1f93fca
Fix biome lint warning (#12187)582f12e
[ci] release (#12148)Updates
typescript
from 5.6.2 to 5.6.3Release notes
Sourced from typescript's releases.
Commits
d48a5cf
Bump version to 5.6.3 and LKGfefa70a
🤖 Pick PR #60083 (Don't issue implicit any when obtai...) into release-5.6 (#...ff71692
[release-5.6] Remove tsbuildInfo specification error now that we need it for ...1f44dcf
🤖 Pick PR #60157 (fix automatic type acquisition) into release-5.6 (#60169)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