Skip to content

build(deps-dev): bump @astrojs/compiler-rs from 0.3.0 to 0.3.1#551

Merged
github-actions[bot] merged 1 commit into
Currentfrom
dependabot/npm_and_yarn/astrojs/compiler-rs-0.3.1
Jul 10, 2026
Merged

build(deps-dev): bump @astrojs/compiler-rs from 0.3.0 to 0.3.1#551
github-actions[bot] merged 1 commit into
Currentfrom
dependabot/npm_and_yarn/astrojs/compiler-rs-0.3.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 10, 2026

Copy link
Copy Markdown
Contributor

Bumps @astrojs/compiler-rs from 0.3.0 to 0.3.1.

Release notes

Sourced from @​astrojs/compiler-rs's releases.

@​astrojs/compiler-rs@​0.3.1

Patch Changes

  • 1cbdc51: Fixes client:only causing a component's import to be stripped when the same binding is still used elsewhere, such as another plain instance, a <Scope.Component> sharing the import, or a reference in the frontmatter.

  • f9cf9f2: Fixes empty script tags (i.e. <script></script>) causing the build to fail

  • 584d1c0: Fixes a ${...} inside a set:text or transition:* attribute value (e.g. set:text="${x}") being treated as code instead of literal text, which could break the build or run unintended expressions. The value is now emitted verbatim.

  • d9b63c4: Speeds up code generation by removing redundant string allocations in the printer hot path.

  • 919fbb2: Improves code generation performance by reducing string and vector allocations.

  • 911b54b: Fixes two conditional slot patterns that produced broken output:

    • A guarded conditional such as {show && (cond ? <a slot="s">A</a> : <b slot="s">B</b>)} now places its content in the right slot and keeps the original condition intact.
    • A conditional fragment such as {cond && <>…</>} now renders as the component's default content instead of emitting broken output.
  • 19569d4: Fixes <slot> fallback content ignoring compressHTML, so whitespace around an expression (e.g. <slot name="canonical">\n {cond ? '' : <link />}\n</slot>) is now collapsed like regular template children instead of being emitted verbatim.

  • 911b54b: Fixes Astro.slots.has() reporting a slot as filled when its only slot="..." element sits inside a conditional that doesn't render it, such as {cond ? <span slot="aside" /> : ...} where every branch is currently false. Components that switch their layout based on Astro.slots.has() no longer render a spurious empty wrapper.

  • 2085fd9: Fixes a direct element and an expression slot targeting the same named slot, such as <div slot="x">A</div>{b && <div slot="x">B</div>}, rendering only the last one. Both now render into the slot, matching same-named expression slots.

  • 911b54b: Fixes multiple conditional elements targeting the same named slot, such as {a && <div slot="x">A</div>}{b && <div slot="x">B</div>}, rendering only the last one. All of them now render into the slot.

    • @​astrojs/compiler-binding@​0.3.1
Commits
  • f5a87e4 Version Packages (#65)
  • 584d1c0 fix(codegen): escape expressions in set:text and transition attributes (#76)
  • 19569d4 fix(slots): route <slot> fallback content through whitespace compaction (#73)
  • 919fbb2 perf: reduce allocations (#72)
  • f9cf9f2 fix(scripts): keep empty scripts index-aligned with renderScript calls (#69)
  • d9b63c4 perf: drop format! allocs in printer hot path (#70)
  • 65e0a64 Compiler cleanup (#63)
  • 2085fd9 fix(slots): group same-named direct and expression slots into one key (#68)
  • 1cbdc51 fix(client:only): keep import when binding is referenced elsewhere (#67)
  • 6ce4631 test: regression (#66)
  • Additional commits viewable in compare view

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 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)

Bumps [@astrojs/compiler-rs](https://github.com/withastro/compiler-rs) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/withastro/compiler-rs/releases)
- [Commits](https://github.com/withastro/compiler-rs/compare/@astrojs/compiler-rs@0.3.0...@astrojs/compiler-rs@0.3.1)

---
updated-dependencies:
- dependency-name: "@astrojs/compiler-rs"
  dependency-version: 0.3.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jul 10, 2026
@github-actions
github-actions Bot requested a review from NikolaRHristov July 10, 2026 22:43
@github-actions
github-actions Bot merged commit fc53218 into Current Jul 10, 2026
5 of 8 checks passed
@github-actions
github-actions Bot deleted the dependabot/npm_and_yarn/astrojs/compiler-rs-0.3.1 branch July 10, 2026 22:43
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 javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant