Skip to content

[pull] main from withastro:main#133

Open
pull[bot] wants to merge 10000 commits intoebfork:mainfrom
withastro:main
Open

[pull] main from withastro:main#133
pull[bot] wants to merge 10000 commits intoebfork:mainfrom
withastro:main

Conversation

@pull
Copy link

@pull pull bot commented May 6, 2022

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

Raanelom and others added 30 commits January 6, 2026 15:40
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
* fix(vue): add HTML attributes to generated TypeScript types

Fixes #14686

* fix: add package exports and update tests for HTML attributes support

* test(vue): add astro check test for HTML attributes

Add test fixture and test case to verify that Vue components
correctly accept HTML attributes (class, style, id, data-*) and
client directives via astro check.

Follows the same pattern as the Svelte integration tests.

* chore: update lockfile for vue prop-types fixture
Co-authored-by: Armand Philippot <git@armand.philippot.eu>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Matt Kane <m@mk.gg>
Co-authored-by:  Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Armand Philippot <git@armand.philippot.eu>
Co-authored-by: Antony Faris <acp325@gmail.com>
Co-authored-by: Erika <Princesseuh@users.noreply.github.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <florian-lefebvre@users.noreply.github.com>
Co-authored-by: Volpeon <76151476+volpeon@users.noreply.github.com>
Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
Co-authored-by: fkatsuhiro <113022468+fkatsuhiro@users.noreply.github.com>
Co-authored-by: Oliver Speir <115520730+OliverSpeir@users.noreply.github.com>
Co-authored-by: Andreas Deininger <andreas@deininger.net>
Co-authored-by: Roman <me@rman.dev>
Co-authored-by: fabon <syobon.hinata.public@gmail.com>
Co-authored-by: Raanelom <code@timid.nl>
Co-authored-by: Rahul Dogra <rahuldogra1998@gmail.com>
fix(ci): Reinstall deps after having published VS Code (#14996)
fix(svelte): allow client directives (#15004)
fix(assets): Fixes missing format option for svgs in the passthrough service (#14987)
fix(deps): update all non-major dependencies (#15020)
fix(content-layer): Try a smarter solution to normalize bare image paths in JSON (#15028)
fix(astro): assets vite build log (#15034)
resolved (#15033)
fix: Remote images: Prevent internal caching from interfering with Astro's cache (#14954)
fix(deps): update astro adapters (#15084)
fix(deps): update all non-major dependencies (#15072)
fix(deps): update astro client runtimes (#15085)
fix: move ts-plugin node_modules to dist (#15083)
fix: components imports paths (#15107)
fix(assets): Use Vite's isFileLoadingAllowed to check if a file can be loaded (#15052)
fix(vscode): Correctly handle TypeScript blocks ending with types (#15109)
fix(svelte): improve Svelte children prop type checking (#15070)
fix Firefox e2e tests for playwright 1.57 (#15113)
fix(deps): update astro dependencies (#15103)
fix: lint vt test (#15114)
fix(deps): update language tools (#15104)
resolver abstraction (#15111)
fix(vue): add HTML attributes to generated TypeScript types (#15016)
Fixes #14686
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>


Co-authored-by: matthewp <361671+matthewp@users.noreply.github.com>
Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* fix(vscode): Don't update @types/vscode automatically

* chore: changeset
* fix: adjust page warning to only show up in more relevant times

* chore: changeset
* fix(routing): route match in dev

* remove internal caching

* fix linting

* fix linting

* remove file

* fix lockfile
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
…#15140)

* fix(assets): hoist nullish coalescing inside JSON.stringify

Moves ?? fallbacks before serialization to eliminate dead code in
generated virtual module. Fixes esbuild suspicious-nullish-coalescing
warning.

* chore: add changeset
* Attempt to reduce falkiness in view transition e2e tests

* try wait for idle state

* next try

* Update view-transitions.test.js
* fix(toolbar): skip image audit for framework components

Images inside astro-island elements (React, Vue, Svelte, etc. with client:* directives) now skip the 'Use the Image component' audit warning, since these components can't directly use Astro's Image component.

Fixes #15048

* test: remove unused image

* test: use smaller test image (22KB instead of 253KB)
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…modules (#15156)

* fix(ci): Move ts-plugin-bundle to node_modules after recreating node_modules

* fix: make itw ork in dev

* chore: changeset
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* collectionsBackwardsCompat docs

* Update .changeset/legacy-collections-backwards-compat-docs.md

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

---------

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
* Fix hydration for framework components in MDX slots using Astro.slots.render()

* Update packages/astro/src/runtime/server/render/slot.ts

Co-authored-by: Luiz Ferraz <luiz@lferraz.com>

---------

Co-authored-by: Luiz Ferraz <luiz@lferraz.com>
renovate bot and others added 30 commits February 4, 2026 14:16
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* fix: stop css collection traversal on propagation stopping point in dev

* chore: try to improve comment

* refactor: use `PROPAGATED_ASSET_FLAG` constant

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
…15268)

* fix: avoid creating unused images during build in Picture component

* add changeset

* oops

* `toSorted` => `Set`

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* chore(cloudflare): remove workerEntryPoint option

* chore: format

* changeset
* feat: better adapter type

* fix

* Discard changes to packages/integrations/cloudflare/src/index.ts

* Apply suggestion from @florian-lefebvre

* feedback
* fix: remove left-over log in CSP

* chore: changeset
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…#15423)

When a dynamic redirect destination doesn't match any existing route,
provide a clear error message instead of the misleading 'getStaticPaths
required' error.

Fixes #12036
* refactor to use buildApp

* fix build

* remove any casting

* refactor: split buildApp into top-level config and post plugin

Move environment builds to top-level builder.buildApp for framework
ownership, add post plugin with enforce:'post' for manifest injection
and page generation. Enables proper coordination with platform plugins.

* feat: add AstroPrerenderer interface for adapter-controlled prerendering

Adds a new prerenderer API allowing adapters to control how pages are
prerendered. Key changes:

- Add AstroPrerenderer interface with setup/getStaticPaths/render/teardown
- Add setPrerenderer to astro:build:start hook
- Create default prerenderer wrapping current Node-based behavior
- Refactor generate.ts to use prerenderer interface
- Add astro:static-paths virtual module for runtime getStaticPaths

* fix: pass allowPrerenderedRoutes=true when matching routes in prerenderer

app.match() filters out prerendered routes by default, causing 404s

* refactor: StaticPaths class for cleaner prerenderer API

- Replace getStaticPaths function with StaticPaths class
- Encapsulates RouteCache internally, adapters just pass app
- Track pathname→route mapping to avoid route priority issues
- Use app.getPathnameFromRequest for base handling
- Fall back to app.match for static routes

* fix: use pipeline.getComponentByRoute for redirect handling

Redirects don't have page modules in pageMap - pipeline method
handles redirects and fallbacks properly.

* refactor: pass routeData to prerenderer.render() to avoid re-matching

getStaticPaths() now returns PathWithRoute[] instead of string[].
render() receives routeData from caller, eliminating path manipulation.

* fix: remove unused PathWithRoute import

* fix: add prerender conflict detection to generate.ts

* fix: lint issues - type import and unused exports

* Fix API to not require routeData

* don't use own prerender entry when prerenderer defined already

* Fix some more tests

* Revert render(request) only approach, restore routeData parameter

The map-based route lookup added complexity and broke i18n fallback tests.
Reverting to pass routeData directly to render() as before.

* Get it working

* Fix build

* fix lint issues

* bad merge thing

* skipping tests

* temp skip netlify

* exclude cloudflare for test

* Add some logging

* Add unhandled rejection logging

* Don't run CSS plugin in prerender

* Some changes

* Fix weird resolution

* Fix lint

* Allow more process listeners

* Add some debug info for handles

* Preoptimize static-paths

* use the exact module name

* Expand when we do this

* no js

* use the virtual module of course

* REmove debugging stuff

* Add a test

* reorder entryType

* Add changesets

* more fixes

* Update packages/astro/src/core/create-vite.ts

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>

* Update .changeset/custom-prerenderer-api.md

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>

* Use an options object.

* Directly pass Prerenderer

* PR comments

* Fix build

* Reorganize timers and build block

* Add astro environment to dev CSS plugin

* Add pnpm override to force single vite version (7.3.1)

* Move entrypoint files to entrypoint/dev and entrypoint/prod

* Refactor prerender endpoints into separate utility module

- Create prerender.ts with documented helper functions
- Add isPrerender flag to virtual cloudflare config (only true in prerender env)
- Guard prerender endpoints so they're only active during build
- Use helper functions for cleaner, more readable handler code

* Improve error message for prerender server startup failure

* Use shared endpoint constants in prerenderer

* Improve error message for static paths fetch failure

* Add comment explaining previewServer cleanup

* Add tests for normalizePathname function

* Upgrade to latest cloudflare vite plugin

* Remove the override

* dedupe

* fix types

* Move constants into constants file

* Fix prerendered styles in cloudflare

* Use astro.config for typing

* Add back missing i18n fallback code

* Add comment explaining why prerender is excluded

* Update .changeset/custom-prerenderer-api.md

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

* Add a better comment

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
…f `inferRemoteSize` behavior (#15231)

* feat: add `getRemoteSize()` to ImageService to enable customization of
`inferRemoteSize` behavior

* add changeset

* update comment

* update changeset

* empty

* Merge branch 'main' into infer-remote-size

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

* remove unnecessary statements from the changeset

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
* Use the beta version of the compiler

* Add changeset
…build (#15345)

* fix: prevent .sql files from being moved to client assets during SSR build

- Use Vite manifest to determine which files are actual client assets
- Only move files listed in css/assets arrays of manifest chunks
- Add test for .sql file imports in Cloudflare adapter

* update lockfile

* chore(cloudflare): remove cloudflareModuleLoader

The Cloudflare Vite plugin now handles additional module types natively,
making the custom cloudflareModuleLoader unnecessary.

- Remove cloudflareModuleLoader plugin
- Remove cloudflareModules option from adapter options
- Remove module-loader tests and fixtures

* Update lockfile

* New implementation

* update package

* fix

* Remove unused rollup

* fix markdoc too

* fix bugs

* Move handle code to utils/assets.ts

* Use stronger type for environment name

* Remove getClientAssets function

* Make collectAssetsFromManifest functional

* Update imports

* Document emitClientAsset

* Lint

* Update lockfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.