@astrojs/compiler breaking changes
@astrojs/compiler 4.0.0 (April 27, 2026) is its newest release with breaking changes, 3 of them. The first: Behavior changed templateEnter. Every breaking API change we have recorded in @astrojs/compiler on npm: 8 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.0.0, released April 27, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 3.0.0 to 4.0.0: 3 breaking changes in 1 version.
- From 2.0.0 to 4.0.0: 7 breaking changes in 3 versions.
@astrojs/compiler 4.0.0 breaking changes
- Behavior changed
templateEnter
Major release: templateEnter is called when emitting a template element. Code that depended on the earlier calls should be checked and updated. github.com - Behavior changed
templateExit
Major release: templateExit is called when emitting a template element. Code that depended on the earlier calls should be checked and updated. github.com - Signature changed
TransformOptions.compact
Was compact?: boolean; now compact?: boolean | 'jsx'. npmjs.com
@astrojs/compiler 3.0.0 breaking changes
- Removed
$$result.createAstro
createAstro no longer accepts an AstroGlobalPartial as its first argument; drop that argument and call $$result.createAstro($$props, $$slots). github.com - Removed
TransformOptions.experimentalScriptOrder
experimentalScriptOrder is gone from TransformOptions; its behavior is now always on, so stop passing it. npmjs.com - Removed
TransformOptions.renderScript
renderScript is gone from TransformOptions; its behavior is now always on, so stop passing it. npmjs.com
@astrojs/compiler 3.0.0-beta.0 breaking changes
- Removed
$$result.createAstro
createAstro no longer accepts an AstroGlobalPartial as its first argument; drop that argument and call $$result.createAstro($$props, $$slots). github.com
@astrojs/compiler 2.0.0 breaking changes
- Behavior changed
The compiler's scope hash is now lowercase to match HTML attribute name rules, since it is used in data attribute names. Code that relied on the previous mixed-case hash value must be updated. github.com
Related packages
- @astrojs/cloudflare
- @astrojs/markdown-remark
- @astrojs/markdown-satteri
- @astrojs/mdx
- @astrojs/node
- @astrojs/react
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.