0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-10 23:01:26 -05:00
Commit graph

4405 commits

Author SHA1 Message Date
github-actions[bot]
95eddcd012 [ci] release 2025-03-10 17:40:05 +00:00
Emanuele Stoppa
afadc702d7
fix(config): expose correct types (#13388)
* fix(config): expose correct types

* feat: type tests

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2025-03-10 15:41:02 +00:00
Martin Trapp
249d52a3ff
Extend the simulated viewTransition object with the property (#13381) 2025-03-10 10:48:50 +00:00
Emanuele Stoppa
3ce4ad965f
docs: document utility functions (#13367)
* fix(assets): remove export of internal function

* Apply suggestions from code review

Co-authored-by: Armand Philippot <git@armand.philippot.eu>

---------

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
2025-03-10 08:39:36 +00:00
Bjorn Lu
d83f92a204
Replace internal cssScopeTo implementation to vite.cssScopeTo (#13347)
* Replace internal cssScopeTo implementation to vite.cssScopeTo

* Fix test

* Fix more tests

* Again

* Again :(

* Fix weird name

* Add changeset
2025-03-06 05:47:59 +00:00
Emanuele Stoppa
a793636928
fix(assets): remove export of internal function (#13363)
Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
2025-03-05 14:19:06 +00:00
Hugo Korte
a05e6ab720
bugfix(svelte): fix colliding id's generated from $props.id (#13339)
* bugfix(svelte): fix colliding id's generating from $props.id by utilizing the new `uidPrefix` option exposed for both server and client side rendering.

* bugfix(svelte): changeset

* Add server side ID prefix, not sure how to do this on the client.

* Discard changes to packages/integrations/svelte/client.svelte.js

* Update .changeset/flat-cherries-rule.md

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

* feat: context

* revert peerDep bump

* revert html variable seperation

* feat: rename

* fix lockfile

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2025-03-05 12:55:30 +01:00
Emanuele Stoppa
042d1de901
docs: document asset utilities (#13355)
* docs: document asset utilities

* Apply suggestions from code review

Co-authored-by: Junseong Park <39112954+jsparkdev@users.noreply.github.com>

* Apply suggestions from code review

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

* chore: add defaults

* chore: add changeset

---------

Co-authored-by: Junseong Park <39112954+jsparkdev@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
2025-03-05 08:16:39 +00:00
Houston (Bot)
c67a35138c
[ci] release (#13350)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-04 14:40:29 +00:00
Emanuele Stoppa
0025df37af
refactor(core): move actions inside core (#13262)
* refactor(core): remove middleware from actions

* chore: fix tests

* chore: skip e2e test due to db issues

* chore: import actions later during server life cycle

* chore: rename to just use the word "actions"

* chore: address review

* Update packages/astro/src/actions/loadActions.ts

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

* chore: remove gotcha

---------

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

Co-authored-by: bholmesdev <51384119+bholmesdev@users.noreply.github.com>
Co-authored-by: JacobNWolf <27933270+JacobNWolf@users.noreply.github.com>
Co-authored-by: matthewp <361671+matthewp@users.noreply.github.com>
Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
2025-03-04 13:43:39 +00:00
arnottferels
5c0e0eaa90
feat(partytown): allow overriding copyLibFiles.dest in astro:build:done hook with the lib option (#13109)
* Support overriding copyLibFiles.dest in stro:build:done hook with lib option, defaulting to ~partytown. Remove leading '/' to match ileURLToPath.

* Support overriding copyLibFiles.dest in stro:build:done hook with lib option, defaulting to ~partytown. Remove leading '/' to match ileURLToPath.

* Update .changeset/plenty-coins-destroy.md

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

* Update packages/integrations/partytown/src/index.ts

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

* feat(stro:server:setup): add option for config.lib path

---------

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

Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
Co-authored-by: twodft <64566069+twodft@users.noreply.github.com>
Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
2025-03-04 07:27:55 +00:00
Paul Valladares
a001a75d6e
fix: resolve Astro DB seed failure with paths containing spaces (#13343) 2025-03-03 14:57:51 +00:00
Matthew Phillips
84e94cc85c
Prevent rerunning scripts already ran in router (#12985)
* Prevent rerunning scripts already ran in router

In a long session you might navigate between several pages, some contain
the script and some not, but nevertheless the script should run a total
of 1 time.

This also helps with smaller bundled scripts in production, where some
are inlined.

* Add changeset

* better key

* more concise

* review changes

* move stuff around

* fix types

* take Martin's suggestion

* run detection when executing scripts

* adds an e2e test for data-astro-rerun

* fix support for data-astro-rerun

---------

Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
2025-03-03 09:35:14 -05:00
Matt Kane
fac32ad98d
fix: generate correct responsive srcsets on Vercel (#13351)
* fix: generate correct responsive srcsets on Vercel

* [skipci] Apply suggestions from code review

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2025-03-03 14:32:04 +00:00
Matt Kane
50e2e0b374
fix: escape img attributes in Markdown (#13349) 2025-03-03 10:56:18 +00:00
Houston (Bot)
8483502bb2
[ci] release (#13337)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-28 16:59:28 +00:00
Matt Kane
b5dabe9878
feat: add support session typing (#13320)
* feat: add support session typing

* Add type tests

* Fix test

* Remove unused import
2025-02-28 15:32:57 +00:00
Emanuele Stoppa
5e7646efc1
chore: bump compiler and upgrade packages (#13330)
Co-authored-by: Matt Kane <m@mk.gg>


Co-authored-by: ascorbic <213306+ascorbic@users.noreply.github.com>
Co-authored-by: TheOtterlord <64310361+TheOtterlord@users.noreply.github.com>
Co-authored-by: MoustaphaDev <81974850+MoustaphaDev@users.noreply.github.com>
2025-02-28 14:39:38 +00:00
Emanuele Stoppa
8f632efe99
fix(assets): export again asset utilities (#13336) 2025-02-28 14:39:25 +00:00
Houston (Bot)
9aa5ac1019
[ci] release (#13318)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-27 13:26:41 +00:00
Emanuele Stoppa
80926fadc0
chore(deps): update esbuild and vite versions (#13323)
Co-authored-by: Jisu-Woniu <31986081+Jisu-Woniu@users.noreply.github.com>
Co-authored-by: natemoo-re <7118177+natemoo-re@users.noreply.github.com>
Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
Co-authored-by: ascorbic <213306+ascorbic@users.noreply.github.com>
2025-02-27 10:44:13 +00:00
Emanuele Stoppa
5f72a58935
fix(core): double encoding during match of routes (#13303)
Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
2025-02-26 16:29:32 +00:00
Luiz Ferraz
5be12b2bc9
feat(astro): Exposes extra APIs for script and testing (#12052)
Co-authored-by: Matt Kane <m@mk.gg>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>


Co-authored-by: matthewp <361671+matthewp@users.noreply.github.com>
Co-authored-by: sarah11918 <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
Co-authored-by: bluwy <34116392+bluwy@users.noreply.github.com>
Co-authored-by: ascorbic <213306+ascorbic@users.noreply.github.com>
Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
2025-02-26 11:41:02 +00:00
Martin Trapp
9e7c71d19c
fixes property shadowing for form.attributes (#13313)
Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
2025-02-26 10:55:01 +00:00
Emanuele Stoppa
4a43c4b743
feat: add new allowedHosts option (#13278)
Co-authored-by: Armand Philippot <git@armand.philippot.eu>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>


Co-authored-by: ArmandPhilippot <59021693+ArmandPhilippot@users.noreply.github.com>
Co-authored-by: Eveeifyeve <88671402+Eveeifyeve@users.noreply.github.com>
Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
Co-authored-by: sarah11918 <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Fryuni <11063910+Fryuni@users.noreply.github.com>
2025-02-26 10:33:14 +00:00
Slawek Kolodziej
7ea0aba053
feat(vercel): allow defining ISR exclusions with regular expressions (#13211)
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>


Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
Co-authored-by: sarah11918 <5098874+sarah11918@users.noreply.github.com>
2025-02-26 10:30:22 +00:00
PolyWolf
509fa671a1
feat: Add CSS variables in getImage for experimental.responsiveImages (#13256)
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>


Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
Co-authored-by: ascorbic <213306+ascorbic@users.noreply.github.com>
Co-authored-by: sarah11918 <5098874+sarah11918@users.noreply.github.com>
2025-02-26 10:16:21 +00:00
PolyWolf
1e11f5e8b7
feat: Pass remote Markdown images through image service (#13254)
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>


Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
Co-authored-by: sarah11918 <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: ascorbic <213306+ascorbic@users.noreply.github.com>
2025-02-26 10:15:35 +00:00
Julien Le Bras
797a9480b2
Expose ilike function from drizzle-orm (#13314)
* Expose ilike function from drizzle-orm

* Update .changeset/late-mails-beam.md

---------

Co-authored-by: Julien Le Bras <>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2025-02-26 09:49:11 +00:00
Houston (Bot)
4cb33770d3
[ci] release (#13244)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-24 14:49:05 +01:00
Emanuele Stoppa
6efd57d174
fix: update deps of adapters (#13304) 2025-02-24 13:23:56 +00:00
Bjorn Lu
2e1321e9d5
Replace globby/fast-glob/tiny-glob with tinyglobby (#13299)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>


Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
2025-02-24 12:50:08 +00:00
chaegumi
ea790542e1
feat: fix the use of vite.base in Astro Dev Server (#13003)
* feat: Dev mode supports reverse proxy of nginx subdirectories

* feat: type define

* feat: type define update

* feat: type define update

* feat: base use update

* feat: check obj value

* feat: change patch

* feat: fix test

* feat: update type and update changeset

* feat: add test

* feat: rewrite test

* feat: update config

* feat: update use pipeline.manifest

* feat: update viteBase type and default value

* chore: update package

* chore: install package

* chore: install package

* chore finish refactor

* Update changeset

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Matt Kane <m@mk.gg>
2025-02-24 12:01:14 +00:00
ADTC
6012e061cd
Modify the template README file to reflect the correct package manager (#13257) 2025-02-24 09:44:56 +00:00
Lee Arnold
c6bf6b3b21
fix: update node image.endpoint config structure (#13190)
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>


Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
2025-02-21 09:46:52 +00:00
Eric Kwoka
065157cac7
feat(cloudflare): Includes onerror passthrough (#13201)
*  Includes onerror passthrough param

* 📦 Includes Changeset
2025-02-21 07:40:27 +00:00
Josh Kennedy
32fafeb874
FIX: Ensures that rewrite url contains base path (#13233)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2025-02-20 13:37:51 +00:00
Florian Lefebvre
3842ce5ec9
fix(vue): compiler fallback (#13251)
* fix(vue): compiler fallback

* Update index.ts
2025-02-14 16:24:52 +01:00
Houston (Bot)
adb58f9e71
[ci] release (#13230)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-13 14:18:26 +00:00
Cornelius Roemer
2ed67d5dc5
fix: respond with 200 to HEAD requests for non-prerendered pages as well (#13101)
* fix: respond with 200 to HEAD requests for non-prerendered pages as well

Fixes #13079

Inspired by @joshmkennedy's PR #13100

* chore: add more test cases

* Update .changeset/tricky-toes-drum.md

* chore: remove trace method

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2025-02-13 12:05:27 +00:00
Vitalii Rybachenko
344e9bc480
fix: default head requests for endpoints when no explicit head method… (#13210)
* fix: default head requests for endpoints when no explicit head method implemented

* Update changeset for astro to minor

* Update changeset for default HEAD requests

* Update .changeset/afraid-turkeys-kneel.md

Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>

---------

Co-authored-by: Matt Kane <m@mk.gg>
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
2025-02-13 11:22:19 +00:00
Matt Kane
8d4e566f54
feat: add support for automatic session driver config (#13145)
* feat: add support for automatic session driver config

* chore: fix error logic

* Lint test

* Add node support

* Add node test fixture

* Lock

* Add Netlify support

* Use workspace Astro version

* Format

* Changeset

* Add tests

* Add dep for tests

* chore: fix repo URL

* temp log

* Fix module resoltuion

* [skip ci] Update changeset

* chore: bump peer dependencies

* Changes from review

* Changeset changes from review

* Apply suggestions from code review

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

* More changeset detail

* Lock

---------

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
2025-02-12 14:57:03 +00:00
Matthew Lymer
3b669555d7
fix(astro): Improve ssr performance (astro#11454) (#13195)
* Add alternate rendering paths to avoid use of Promise

* Add run commands

* Remove promise from synchronous components

* Create makefile and update loadtest

* Rename functions, fix implementation of renderArray

* More performance updates

* Minor code cleanup

* incremental

* Add initial rendering tests

* WIP - bad tests

* Fix tests

* Make the tests good, even

* Add more tests

* Finish tests

* Add test to ensure rendering order

* Finalize pr

* Remove code not intended for PR

* Add changeset

* Revert change to minimal example

* Fix linting and formatting errors

* Address code review comments

* Fix mishandling of uncaught synchronous renders

* Update .changeset/shaggy-deers-destroy.md

---------

Co-authored-by: Matt Kane <m@mk.gg>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2025-02-12 14:10:41 +00:00
Dani Fernández
1b5037bd77
Update netlify adapter to integrate includeFiles and excludeFiles options (#13194)
* feat: integrated includeFiles and excludeFiles on netlify adapter

* feat: added netlify include and exclude files tests

* feat: changelogs added

* fix: avoid problems with glob file url on windows

* feat: improved JS Docs to include examples and important information

* feat: removed non necessary root path as glob is already absolute

* Apply suggestions from code review

* Update packages/integrations/netlify/src/index.ts

Co-authored-by: Matt Kane <m@mk.gg>

* Update .changeset/ninety-clouds-judge.md

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

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Matt Kane <m@mk.gg>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
2025-02-12 14:08:38 +00:00
Houston (Bot)
ea9868d7fd
[ci] release (#13189)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-12 12:14:03 +00:00
Josh Kennedy
6bac644241
Fix:changes the paginate function to allow readonly array types (#13213)
* changes the paginate function to allow readonly array types

* Update paginate function to accept readonly arrays

---------

Co-authored-by: Matt Kane <m@mk.gg>
2025-02-12 11:44:43 +00:00
Matt Kane
8e5b89c5eb
chore: unpin vercel routing lib (#13224)
* chore: unpin vercel routing lib

* Lock

* Changeset
2025-02-12 11:42:36 +00:00
Josh Kennedy
fb3884074f
Fix: Adds clarity around output setting log statement (#13212)
* log to clarify buildOutput and output build command

* adds changelog

* labels log statement of what it is internally

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* fix log

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2025-02-12 11:14:44 +00:00
Matt Kane
23094a1f48
fix: use shared helper for file extensions (#13223)
* fix: use shared helper for file extensions

* Lock
2025-02-12 10:34:32 +00:00
Emanuele Stoppa
9d5660223b
fix(i18n): bypass server island with base (#13205)
* fix(i18n): bypass server island with base

* Update packages/astro/src/core/routing/match.ts

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

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2025-02-10 16:34:40 +00:00