Skip to content

build(deps-dev): bump @astrojs/compiler from 2.13.1 to 3.0.0#8025

Merged
ardatan merged 2 commits intomasterfrom
dependabot/npm_and_yarn/astrojs/compiler-3.0.0
Mar 7, 2026
Merged

build(deps-dev): bump @astrojs/compiler from 2.13.1 to 3.0.0#8025
ardatan merged 2 commits intomasterfrom
dependabot/npm_and_yarn/astrojs/compiler-3.0.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 6, 2026

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Bumps @astrojs/compiler from 2.13.1 to 3.0.0.

Release notes

Sourced from @​astrojs/compiler's releases.

@​astrojs/compiler@​3.0.0

Major Changes

  • c05e16e: Removes the first argument of $$result.createAstro()

    $$result.createAstro() does not accept an AstroGlobalPartial as the first argument anymore:

    -const Astro = $$result.createAstro($$Astro, $$props, $$slots);
    +const Astro = $$result.createAstro($$props, $$slots);
  • c05e16e: Removes renderScript from TransformOptions. It is now the default and only behavior

  • c05e16e: Removes experimentalScriptOrder from TransformOptions. It is now the default and only behavior

Patch Changes

  • 811e90f: Fixes an issue where server:defer was treated like a transition directive, causing ViewTransitions CSS to be included even when no transition:* directives were used.

  • 755f046: Fixes a CSS scoping regression where selectors using the nesting selector (&) with pseudo-classes or pseudo-elements (e.g. &:last-of-type, &::before) inside :global() contexts would incorrectly receive a duplicate scope attribute.

  • f89451a: Fixed an issue where explicit <html> and <head> tags were removed from output when a JSX comment appeared between DOCTYPE and the <html> tag.

  • 8275bdd: Fixes a bug where trailing whitespaces were preserved before <style> tags after transformation, in certain cases. Now trailing whitespaces are correctly removed.

  • 56ef0ca: Fixes TSX output to transform top-level returns into throws in order to avoid downstream TypeScript parsing issues

  • e329d20: Fix slot attribute stripped inside expression

  • 02de370: fixed a bug where the Astro compiler incorrectly handled the 'as' property name in Props interfaces.

    This allows Astro components to use 'as' as a prop name (common pattern for polymorphic components) without breaking TypeScript type inference. The Props type is now correctly preserved when destructuring objects with an 'as' property.

  • 615eb21: Fix CSS nesting so nested selectors without an ampersand are parsed and scoped correctly.

@​astrojs/compiler@​3.0.0-beta.1

Patch Changes

  • 755f046: Fixes a CSS scoping regression where selectors using the nesting selector (&) with pseudo-classes or pseudo-elements (e.g. &:last-of-type, &::before) inside :global() contexts would incorrectly receive a duplicate scope attribute.
  • f89451a: Fixed an issue where explicit <html> and <head> tags were removed from output when a JSX comment appeared between DOCTYPE and the <html> tag.
  • 8275bdd: Fixes a bug where trailing whitespaces were preserved before <style> tags after transformation, in certain cases. Now trailing whitespaces are correctly removed.
  • e329d20: Fix slot attribute stripped inside expression
  • 615eb21: Fix CSS nesting so nested selectors without an ampersand are parsed and scoped correctly.

@​astrojs/compiler@​3.0.0-beta.0

Major Changes

  • c05e16e: Removes the first argument of $$result.createAstro()

... (truncated)

Commits
  • 8870738 [ci] release (#1147)
  • 1bd0f7a Exit prerelease mode (#1152)
  • 811e90f Fix inclusion of viewtransition.css when server:defer was used without `t...
  • 02de370 Fix: Props interface not recognized when using 'as' as a prop name (#1102)
  • 56ef0ca fix(tsx): Try transforming top level returns into throws again (#1146)
  • 670135b [ci] release (beta) (#1142)
  • 755f046 fix: avoid double-scoping CSS when nesting selector & is used with pseudo sel...
  • f89451a fix: preserve explicit html and head tags when JSX comment follows DOCTYPE (#...
  • e329d20 fix: slot attribute stripped inside expression (#1132)
  • 615eb21 fix: parse nested selectors without & (#1144)
  • 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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Mar 6, 2026
@changeset-bot
Copy link

changeset-bot bot commented Mar 6, 2026

⚠️ No Changeset found

Latest commit: d127ce2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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

---
updated-dependencies:
- dependency-name: "@astrojs/compiler"
  dependency-version: 3.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/astrojs/compiler-3.0.0 branch from 2be86b7 to 935e5c8 Compare March 6, 2026 21:34
@ardatan ardatan merged commit 41bb550 into master Mar 7, 2026
31 of 32 checks passed
@ardatan ardatan deleted the dependabot/npm_and_yarn/astrojs/compiler-3.0.0 branch March 7, 2026 22:23
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

💻 Website Preview

The latest changes are available as preview in: https://pr-8025.graphql-tools.pages.dev

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