0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
Commit graph

6896 commits

Author SHA1 Message Date
Aleksandr Kadykov
65e50eb7b6
Fix JPEG image size determination (#12542) 2024-11-27 13:05:56 +00:00
Bjorn Lu
9f440196dc
Update Vite to 6.0.0 (#12524) 2024-11-27 18:00:35 +08:00
renovate[bot]
6fc29e3c24
fix(deps): update all non-major dependencies (#12410)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-11-27 16:20:16 +08:00
Emanuele Stoppa
cf0d8b08a0
fix(i18n): render 404.astro when i18n is enabled (#12525)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>


Co-authored-by: delucis <357379+delucis@users.noreply.github.com>
Co-authored-by: bluwy <34116392+bluwy@users.noreply.github.com>
2024-11-26 15:21:06 +00:00
Houston (Bot)
a2f90ced77
[ci] release (beta) (#12503)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-26 11:38:33 +00:00
Emanuele Stoppa
c34803205e Merge branch 'main' into next 2024-11-26 11:37:16 +00:00
Emanuele Stoppa
1b61fdf038
refactor(mdx): add entrypoint as full path file (#12533)
Co-authored-by: Princesseuh <3019731+Princesseuh@users.noreply.github.com>
2024-11-26 11:31:32 +00:00
Houston (Bot)
36d8d921db
[ci] release (#12501)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-26 09:03:38 +00:00
Michael Stramel
cb9322c763
fix: handle other elements before the svg element (#12516)
* fix multiple root nodes

* add changeset

* remove conditional

* handle no svg case
2024-11-25 20:27:01 +00:00
Sarah Rainsberger
1ec852e204
Update links in errors-data.ts (#12523) 2024-11-25 11:33:46 -04:00
Matt Kane
33b0e305fe
fix: allow content config in underscored dir (#12522) 2024-11-25 13:59:31 +00:00
Ben Holmes
14feaf30e1
Rename Action query param to _action (#12510)
* rename _astroAction to _action

* changeset
2024-11-25 08:43:15 +00:00
Sarah Rainsberger
30c78ba306
[docs] remove legacy/experimental flags from config reference (#12487)
* remove legacy and experimental flags from config reference

* only docs tag deleted

* fix indentation
2024-11-25 08:41:57 +00:00
Michael Stramel
d023682d6c
Fix SVG Component sprite ids (#12511)
* fix: sprite ids per page

* update tests to cover the failed scenario

* add changeset
2024-11-23 09:52:31 +00:00
Erika
a326c2f1da
feat(examples): New basics template (#12472)
Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
2024-11-22 22:47:10 +01:00
Matt Kane
a0811758e3 Merge branch 'main' into next 2024-11-22 11:06:44 +00:00
Emanuele Stoppa
b140a3f6d8
fix(routing): don't access Request headers (#12498)
Co-authored-by: ascorbic <213306+ascorbic@users.noreply.github.com>
2024-11-22 10:26:48 +00:00
Houston (Bot)
10beb174e5
[ci] release (beta) (#12491)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-21 11:12:29 -05:00
Matthew Phillips
23dc937435
Merge main into next (#12493)
* [ci] release (#12490)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Update solid version

* update lockfile

* fix vue changelog

---------

Co-authored-by: Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-21 10:51:47 -05:00
Houston (Bot)
3bed8050b9
[ci] release (#12490)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-21 09:47:58 -05:00
Matthew Phillips
dc3d842e4c
Call server island early so it can set headers (#12486)
Add changeset

Proper fix

changeup
2024-11-21 08:00:03 -05:00
Houston (Bot)
a9ce785146
[ci] release (beta) (#12430)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-21 12:45:51 +00:00
Emanuele Stoppa
285c6e3598 chore: merge fixes 2024-11-21 12:02:21 +00:00
Florian Lefebvre
8309c61f0d
feat(next): astro:routes:resolved (#12329)
Co-authored-by: Luiz Ferraz <luiz@lferraz.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-11-21 12:30:49 +01:00
Houston (Bot)
b9c05f45b2
[ci] release (#12452)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-21 11:12:37 +00:00
Eldar Kasmamytov
8a46e8074d
Resolve peer dependency problem in the integration packages (SolidJS, Vue, Svelte, React) (#12481)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
Co-authored-by: bluwy <34116392+bluwy@users.noreply.github.com>
2024-11-21 11:12:00 +00:00
Matt Kane
3f02d5f12b
feat: support new location for content config (#12475)
* feat: support new location for content config

* Test fixes

* Handle missing dir

* Handle missing content dir

* chore: changes from review

* Revert legacy fixtures

* Clarify changeset
2024-11-21 10:45:02 +00:00
Arpan Patel
e329657a00 [ci] format 2024-11-21 09:32:06 +00:00
Arpan Patel
a23985b021
fix: return correct locale in root 404 and 500 page with i18n (#12365)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-11-21 09:31:17 +00:00
Emanuele Stoppa
28dd3ce522
fix: server island hydration (#12444) 2024-11-20 15:08:26 +00:00
Matt Kane
e1a5e65ad7
chore: clarify wording of responsive image props (#12482) 2024-11-20 13:12:17 +00:00
Emanuele Stoppa
ab0580bc94
refactor(build): don't emit middleware.mjs (#12479) 2024-11-20 11:21:40 +00:00
Matthew Phillips
c3b7e7cfa1
Remove default throw behavior in astro:env (#12480)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-11-20 11:09:43 +00:00
Michael Stramel
c48916cc4e
feat(astro): add Built-in SVG component support (#12067)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-11-19 16:51:37 +00:00
Emanuele Stoppa
46f6b386b3
fix(build): generated entry (#12477) 2024-11-19 16:12:40 +00:00
Florian Lefebvre
80a9a5299a
fix: content layer glob deletion (#12476) 2024-11-19 16:56:28 +01:00
oliverlynch
25baa4ed0c
Ensure final asset directory exists before writing cached files (#12418)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-11-15 18:25:42 +01:00
Sarah Rainsberger
e246dc5232
Update markdown.shiki configuration docs (#12447) 2024-11-15 12:45:46 -04:00
Bjorn Lu
cec4af8fe5
Add publint checks (#12445) 2024-11-15 23:43:34 +08:00
Matt Kane
af867f3910
feat: experimental responsive images (#12377)
* chore: changeset

* feat: add experimental responsive images config option (#12378)

* feat: add experimental responsive images config option

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update config types

* Move config into `images`

* Move jsdocs

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* feat: add responsive image component (#12381)

* feat: add experimental responsive images config option

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update config types

* Move config into `images`

* Move jsdocs

* wip: responsive image component

* Improve srcset logic

* Improve fixture

* Lock

* Update styling

* Fix style prop handling

* Update test (there's an extra style for images now)

* Safely access the src props

* Remove unused export

* Handle priority images

* Consolidate styles

* Update tests

* Comment

* Refactor srcset

* Avoid dupes of original image

* Calculate missing dimensions

* Bugfixes

* Add tests

* Fix test

* Correct order

* Lint

* Fix fspath

* Update test

* Fix test

* Conditional component per flag

* Fix class concatenation

* Remove logger

* Rename helper

* Add comments

* Format

* Fix markdoc tests

* Add test for style tag

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* feat: add crop support to image services (#12414)

* wip: add crop support to image services

* Add tests

* Strip crop attributes

* Don't upscale

* Format

* Get build working properly

* Changes from review

* Fix jsdoc

* feat: add responsive support to picture component (#12423)

* feat: add responsive support to picture component

* Add picture tests

* Fix test

* Implement own define vars

* Share logic

* Prevent extra astro-* class

* Use dataset scoping

* Revert unit test

* Revert "Fix test"

This reverts commit f9ec6e2938.

* Changes from review

* docs: add docs for responsive images (#12429)

* docs: add responsive images flag docs

* docs: adds jsdoc for image components

* chore: updates from review

* Fix jsdoc

* Changes from review

* Add breakpoints option

* typo

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-11-15 13:29:52 +00:00
Matt Kane
c8f877cad2
fix: skip legacy typegen by default (#12438) 2024-11-15 13:28:40 +00:00
Houston (Bot)
8e135b6f03
[ci] release (#12443)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-15 20:59:51 +08:00
Bjorn Lu
bde49f186e
Publish missing file for svelte integration (#12442) 2024-11-15 20:50:01 +08:00
bluwy
671f50c7d3 Merge branch 'main' into next 2024-11-15 19:37:28 +08:00
Houston (Bot)
5509117415
[ci] release (#12427)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-15 19:27:27 +08:00
Martin Trapp
453ec6b12f
prevents access to the history state if not set (#12436) 2024-11-15 16:09:05 +08:00
Jacob Jenkins
9fc2ab8cc8
Update to svelte 5 (#12364)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-11-14 23:31:51 +08:00
Emanuele Stoppa
4364bff273
fix(actions): internal symbol check (#12424) 2024-11-14 12:41:16 +00:00
Arpan Patel
bdc0890061 [ci] format 2024-11-14 08:34:43 +00:00
Arpan Patel
0462219612
Fix script injection during build (#12392)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-11-14 08:33:57 +00:00
Houston (Bot)
b745e382f1
[ci] release (beta) (#12405)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-13 14:32:01 +00:00
Emanuele Stoppa
3c72cdbc61 Merge branch 'main' into next 2024-11-13 14:25:36 +00:00
Houston (Bot)
3b3bc9b8cd
[ci] release (#12422)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-13 14:21:47 +00:00
Emanuele Stoppa
acac0af534
fix(routing): middleware in dev (#12420) 2024-11-13 13:34:35 +00:00
Houston (Bot)
e723e9e8ea
[ci] release (#12403)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-12 19:00:58 -05:00
Emanuele Stoppa
bdb75a87f2
fix(routing): emit error for forbidden rewrite (#12339)
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Reuben Tier <otterlord.dev@gmail.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-11-11 15:03:27 +00:00
Sarah Rainsberger
471e7127a3 [ci] format 2024-11-11 13:50:33 +00:00
Sarah Rainsberger
95d52a0236
update markdown config docs (#12382)
Co-authored-by: ArmandPhilippot <59021693+ArmandPhilippot@users.noreply.github.com>
Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
Co-authored-by: jsparkdev <39112954+jsparkdev@users.noreply.github.com>
Co-authored-by: bluwy <34116392+bluwy@users.noreply.github.com>
2024-11-11 09:49:46 -04:00
Ben Holmes
d10f91815e
Actions middleware (#12373)
* add manual middleware config option with getMiddlewareContext()

* refactor requestInfo to action object

* set action error response status from render context

* update automatic middleware to plain POST handler

* fix missing Locals type

* test: add separate POST and cookie forwarding tests

* remove actions.middleware flag

* add docs on actionResultAlreadySet

* test: use Astro.rewrite instead of middleware next(). TODO: fix next()

* fix type errors from rebase

* test: remove middleware handler

* test: use cookie forwarding for 'lots of fields'

* refactor: _isPrerendered -> ctx.isPrerendered

* expose getOriginPathname as middleware utility

* add support for handling RPC action results from middleware

* test: RPC security middleware

* refactor POST route handler to use getMiddlewareContext()

* remove unused actionRedirect flag

* changeset

* test: add expectedd rewrite failure for Ema to debug

* fix e2e test

* nit: form -> from

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

* rename getMiddlewareContext -> getActionContext

* rename form-action -> form

* move /_actions/ route pattern to const

* move type defs to user-accessible ActionMiddlewareContext type

* export action middleware context type

* strip omitted fields for Action API Context

* add satisfies to type for good measure

* move getOriginPathname to shared ctx.originPathname

* remove `next()` rewrite because it isn't supported

* fix empty forms raising a 415

* fix missing async on cookie example

* nit: ctx -> context

* fix json parse error when content length is 0

* refactor body parsing to function

* edit: migration -> updating your HTML form actions

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* update changeset to match docs v5 guide

* add absolute urls to changeset links

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-11-08 17:03:57 -05:00
Ben Holmes
9cca108439
Fix incorrect status code in dev server for action errors (#12401)
* remove default status that swallows response.status

* refactor status compute to be more readable

* changeset
2024-11-08 14:06:19 -05:00
Emanuele Stoppa
823e73b164
fix(actions): better runtime check for invalid usages (#12402) 2024-11-08 15:55:53 +00:00
Florian Lefebvre
f5f71094ec
fix: error overlay message escape (#12305)
Co-authored-by: Princesseuh <3019731+Princesseuh@users.noreply.github.com>
2024-11-08 16:07:40 +01:00
Houston (Bot)
d63d87dcae
[ci] release (beta) (#12370)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-06 23:47:57 +08:00
bluwy
b21a075002 Add svelte changeset 2024-11-06 23:34:10 +08:00
bluwy
7db86cf2b7 Merge branch 'main' into next 2024-11-06 23:17:39 +08:00
Houston (Bot)
e10b03e88c
[ci] release (#12369)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-06 22:55:41 +08:00
Bjorn Lu
c280655655
Update to Vite 6.0.0-beta.6 (#12323) 2024-11-06 22:51:55 +08:00
Bjorn Lu
4a35c505e4 [ci] format 2024-11-06 14:16:10 +00:00
Bjorn Lu
6fd3d5960f
Add support for Svelte 5 @render syntax (#12390)
Co-authored-by: Jonas Robertsson <jonas.robertsson@icloud.com>
2024-11-06 22:09:22 +08:00
renovate[bot]
b7e46910fb
fix(deps): update all non-major dependencies (#12366)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-11-06 21:47:42 +08:00
Sujal Gurung
bf2723e831
add checked to htmlBooleanAttributes (#12311)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-11-06 13:32:05 +00:00
Arpan Patel
c4726d7ba8
fix: show file name with invalid frontmatter errors for MDX (#12355)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Princesseuh <3019731+Princesseuh@users.noreply.github.com>
2024-11-06 21:22:38 +08:00
Luiz Ferraz
222f71894c
Fix astro add generated import identifier (#12363) 2024-11-06 14:16:34 +08:00
Erika
9263e96593
create-astro updates (#12083)
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Reuben Tier <otterlord.dev@gmail.com>
2024-11-04 16:15:11 +01:00
Bjorn Lu
493fe43cd3
Improve tinyexec errors (#12368) 2024-11-04 22:49:33 +08:00
Houston (Bot)
ec3113d25a
[ci] release (#12345)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-04 15:20:48 +01:00
Paul Welsh
7680349873
fix: honor getViteConfig inlineAstroConfig.logLevel setting (#12358)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-11-04 10:01:09 +00:00
Hippo
35795a1a54
Fix watchfile multiple dev server restart (#12353) 2024-11-04 16:19:54 +08:00
Florian Lefebvre
5751488165
fix: revert #12227 (#12351) 2024-11-01 16:53:15 +01:00
Vladislav Mamon
c480b8f2c4 [ci] format 2024-11-01 10:50:42 +00:00
Vladislav Mamon
1fc83d3ba8
fix(assets): fix getImage options type (#12349) 2024-11-01 11:49:55 +01:00
Bjorn Lu
20e5a843c8
Fix prefetch sourcemap generation (#12346) 2024-11-01 16:01:19 +08:00
Matt Callaway
836cd91c37
fix: Destroy the node http server response stream if there was a caught error (#12333) 2024-10-31 13:47:32 +00:00
Houston (Bot)
731b69712b
[ci] release (beta) (#12250)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-31 17:07:35 +08:00
bluwy
d879c02a26 Fix merge error 2024-10-31 16:29:56 +08:00
bluwy
63b4ab95b9 Merge branch 'main' into next 2024-10-31 16:16:00 +08:00
Houston (Bot)
5f7bf49d38
[ci] release (#12290)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-31 15:56:38 +08:00
liruifengv
ffc836bac0
Fix cli command typo (#12342)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-10-31 15:51:39 +08:00
situ2001
c414eec6ac [ci] format 2024-10-31 03:14:42 +00:00
situ2001
9ca89b3e13
fix(cli): reset NODE_ENV to ensure install command run in dev mode (#12338) 2024-10-31 11:13:50 +08:00
Emanuele Stoppa
c1786d64c4
fix(i18n): default locale in server islands (#12341) 2024-10-30 19:38:10 +00:00
Fredrik Löwenhamn
e2056c218e [ci] format 2024-10-30 11:56:26 +00:00
Fredrik Löwenhamn
ea85546487
Fix base not working with server actions (#12280)
Co-authored-by: Fredrik Löwenhamn <fredrik.lowenhamn@gmail.com>
2024-10-30 11:55:39 +00:00
Emanuele Stoppa
25192a0599
fix(routing): match against decoded pathname (#12270) 2024-10-30 11:45:42 +00:00
Sarah Rainsberger
413503e52c
Update image error messages (#12331)
Co-authored-by: Atharva <atharvapise19@gmail.com>
2024-10-29 12:17:11 -03:00
Sarah Rainsberger
5376acf082
Update link in error message (#12334) 2024-10-29 11:13:05 -03:00
koyopro
feb87c21be [ci] format 2024-10-29 04:15:08 +00:00
koyopro
5642ef9029
Fix: The problem getViteConfig() duplicates some config (#12312)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-10-29 12:14:20 +08:00
Arpan Patel
0cfc69d499
fix(actions): pass actionAPIContext to action handler instead of APIContext (#12301)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-10-28 22:10:18 +08:00
renovate[bot]
ecc4402b3a
fix(deps): update all non-major dependencies (#12316)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-28 22:00:15 +08:00
Sarah Rainsberger
e482762cb2
[docs] update a link in error reference (#12298) 2024-10-25 17:35:45 -03:00
Emanuele Stoppa
7196c244ea
fix(routing): don't check headers for prenredered pages (#12302) 2024-10-25 15:16:54 +01:00
Emanuele Stoppa
4e9a3ac0bd
feat: update astro add vercel (#12268) 2024-10-25 14:17:36 +01:00
Benjamin MENANT
5407f4e227 [ci] format 2024-10-25 10:18:10 +00:00
Benjamin MENANT
1d4f6a4989
fix(@astro/mdx): add components property to RenderResult type definition (#12245) 2024-10-25 11:17:23 +01:00
Bjorn Lu
90ae100cf4
Unset charset=utf-8 content-type for md/mdx pages (#12231)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-24 17:13:22 +08:00
Florian Lefebvre
9d6bcdb88f
fix: astro:env warning (#12286) 2024-10-23 09:44:49 +01:00
Matt Kane
64695180df chore: fix test setup 2024-10-22 14:15:06 +01:00
Emanuele Stoppa
57dedbf28d Merge branch 'main' into next 2024-10-22 13:16:51 +01:00
Houston (Bot)
d2b399d668
[ci] release (#12258)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-22 13:10:39 +01:00
renovate[bot]
2edcad1490
fix(deps): update all non-major dependencies (#12266)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-22 13:07:28 +01:00
Junseong Park
4ddc63b39c [ci] format 2024-10-22 09:26:15 +00:00
Junseong Park
b781f8860c
fix: update wrong action error message (#12279)
* fix: update wrong action error message

* add changeset

* Update .changeset/seven-elephants-suffer.md

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-10-22 10:25:30 +01:00
Florian Lefebvre
eb41d13162
feat(next): make defineConfig generic (#12243)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-21 18:26:00 +02:00
Luiz Ferraz
e9e8080a81
Add server island route to the front of the route list (#12263)
* Add server island route to the front of the route list

* Add changeset
2024-10-21 12:13:52 -04:00
Matt Kane
388d2375b6
fix: handle base path with images (#12272) 2024-10-21 16:50:30 +01:00
Matt Kane
c2ee963cb6
fix: dynamically load zod-to-ts (#12273) 2024-10-21 15:19:58 +01:00
bluwy
166ea961fe Fix fs-fixture version 2024-10-21 21:03:33 +08:00
haivuw
f32a7a8388
fix: astrodb vite plugin throws in vitest and cannot seed database (#11435)
* fix: ASTRO_DATABASE_FILE is undefined in virtual module

* changeset

* handle undefined

* Update .changeset/lemon-beans-admire.md

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

* use JSON.stringify

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-10-21 12:07:44 +01:00
Ion Căliman
ff522b96a0
fix: Cannot read properties of null (reading 'Symbol(astro.headAndContent)') (#11839)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-10-19 11:02:50 +08:00
Emanuele Stoppa
a75bc5e306
fix(routing): actions should redirect the original pathname (#12173) (#12235)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-10-18 11:09:22 +01:00
Bjorn Lu
93351bc78a
Support custom mode (#12150)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-17 23:01:35 +08:00
Emanuele Stoppa
58d1d9e000 Merge branch 'main' into next 2024-10-17 15:08:42 +01:00
Houston (Bot)
d6f17044d3
[ci] release (#12240)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-17 13:58:23 +01:00
Bjorn Lu
c5cd5be36a
Fix test:vite-ci script (#12246) 2024-10-17 08:59:50 +01:00
Florian Lefebvre
0bbf2fb526 [ci] format 2024-10-16 13:53:31 +00:00
Florian Lefebvre
8b1a641be9
fix: do not override process.env (#12227)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-10-16 15:51:03 +02:00
Emanuele Stoppa
2b6daa5840
fix(container): emit components as partials (#12239)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-16 14:07:59 +01:00
Timon Jurschitsch
a3d30a602a
fix: improve error for inferSize and Image component (#11823)
* fix: improve error for inferSize and Image component

* add changeset

* move isRemovePath check

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-10-16 12:47:37 +02:00
Houston (Bot)
c929e5d8c8
[ci] release (beta) (#12170)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-15 19:48:59 +02:00
Chris Swithinbank
157e266141
Merge branch 'main' into next 2024-10-15 19:21:15 +02:00
Houston (Bot)
5a4edebfd2
[ci] release (#12234)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-15 19:10:48 +02:00
Ben Holmes
67bb22e5a1 [ci] format 2024-10-15 15:14:01 +00:00
Ben Holmes
925cff31bc
Improved rss readme (#12157)
* docs: improved rss readme

* chore: changeset

* fix: remove empty title

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

* edit: slash wording

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* edit: installation and use

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* edit: see the guide

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* edit: remove confusing guide link

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* edit: clarify what enclosure is used for

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* edit: remove description vs. content blurb

* new: expand xmlns guide to explain usage

---------

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-15 11:13:09 -04:00
Martin Trapp
ff68ba5e1c
Fixes an issue with cssesc in dev mode when setting vite.ssr.noExternal: true (#12232)
* Fixes an issue with cssesc in dev mode when setting vite.noExternal: true

* Update dirty-bags-double.md
2024-10-15 16:27:05 +02:00
Emanuele Stoppa
51d13e2f6c
feat: accept URL for entry points (#12226)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-10-15 15:07:18 +01:00
bluwy
a393154906 Merge branch 'main' into next 2024-10-15 16:19:58 +08:00
Houston (Bot)
6df5bba870
[ci] release (#12225)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-15 15:37:22 +08:00
Bjorn Lu
64bb796c0f
Use real filesystem for unit testing (#12172) 2024-10-15 15:34:42 +08:00
Reuben Tier
ce1f53cd84
Remove start comand from templates (next) (#12200) 2024-10-15 14:43:46 +08:00
renovate[bot]
5ab2d980aa
fix(deps): update all non-major dependencies (#12218)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-10-15 14:42:58 +08:00
Armand Philippot
79ffa5d9f7
fix(dev-toolbar): false positive in Audit with a11y check on labels (#12223)
* fix(dev-toolbar): false positive in Audit with a11y check on labels

* test: add e2e test for a11y audit on labelable elements

* docs: complete changeset to explain why this is a problem
2024-10-14 17:14:23 +01:00
Emanuele Stoppa
fb5569583b
fix(middleware): compute client address (#12222)
* fix(middleware): compute client address

* add unit test
2024-10-14 15:35:24 +01:00
Emanuele Stoppa
d6f03e405d [ci] format 2024-10-14 13:59:30 +00:00
Emanuele Stoppa
c351352360
fix(i18n): correctly compute the current locale (#12199)
* fix(i18n): correctly compute the current locale

* Update packages/astro/test/fixtures/i18n-routing-dynamic/src/pages/[language].astro

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

* make code more readable

* rebase

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-10-14 14:58:33 +01:00
Ming-jun Lu
07754f5873
fix(sitemap): add missing xslURL property to SitemapOptions type (#12156) 2024-10-14 20:45:24 +08:00
Houston (Bot)
a33804110d
[ci] release (#12221)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-14 09:55:46 +01:00
Emanuele Stoppa
59a2fbc213 [ci] format 2024-10-14 08:45:25 +00:00
Emanuele Stoppa
2aa2dfd05d
fix: revert regression of port computation (#12197)
* fix: revert regression of port computation

* revert tests failing

* address feedback

* revert logic to how it was before
2024-10-14 09:44:39 +01:00
Bjorn Lu
b0493596dc
Fix setOnSetGetEnv parameter name (#12220)
Co-authored-by: Fugi <Fugiman47@gmail.com>
2024-10-14 15:12:42 +08:00