0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-04-07 23:41:43 -05:00
Commit graph

11566 commits

Author SHA1 Message Date
Houston (Bot)
da71558808
[ci] release (#13449)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-18 13:50:34 +00:00
Emanuele Stoppa
94ada2ab83
chore: changeset should be a patch (#13450) 2025-03-18 13:46:03 +00:00
Emanuele Stoppa
91c95034e0
Revert "[ci] release (#13427)" (#13448)
This reverts commit c64ae01697.
2025-03-18 13:43:11 +00:00
Houston (Bot)
c64ae01697
[ci] release (#13427)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-18 13:40:49 +00:00
Matthew Phillips
9a7dcdec3a [ci] format 2025-03-18 13:03:28 +00:00
Matthew Phillips
9cac9f3142
Handle bad values in x-forwarded-host (#13428)
* Handle bad values in x-forwarded-host

If a bad value is provide by this header, we simply ignore it and
fallback to the host provided by the host header (if there is one).

* Add changeset

* Update packages/astro/src/core/app/node.ts

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

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2025-03-18 09:02:32 -04:00
Matt Kane
65f7e09901
chore: add tests for HEAD requests to endpoints (#13239)
* chore: add tests for HEAD requests to endpoints

* Fix test

* chore: run tests on ssr fixture

Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
2025-03-18 10:33:21 +00:00
Emanuele Stoppa
1a9363745e [ci] format 2025-03-18 09:34:59 +00:00
Emanuele Stoppa
8c21663c4a
feat: add new method insertPageRoute to container (#13358)
* feat: add new method `insertPageRoute` to container

* chore: add back the correct use

* Update .changeset/ninety-cups-decide.md

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

---------

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

Co-authored-by: ascorbic <213306+ascorbic@users.noreply.github.com>
Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
2025-03-18 09:32:24 +00:00
Edward Brunetiere
defad33140
fix: renderToString function not render properly nested slots when they are components (#13432)
* Fix/render to string slots (#1)

* add force HTMLString with local tests

* remove local test & logs

* remove test counter in basic exemple

* re-add test & create SlotString instead of HTMLString

* add test of a nested rendered component inside renderToString slots function

* add changeset on astro package

* Apply suggestions from code review

---------

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

Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
2025-03-18 09:32:07 +00:00
Matt Kane
7783dbf811
fix: race conditions in data store save (#13372)
* fix: race conditions in data store save

* Whitespace change to kick CI

* Flsuh saves to disk

* Remove log
2025-03-18 09:24:38 +00:00
Vardhaman Bhandari
013fa87982
fix(config): handle boolean server.allowedHosts (#13437)
Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
2025-03-18 09:07:28 +00:00
Reuben Tier
bcf1923218
Remove action (#13435)
* Remove action

* Delete .github/workflows/check-merge.yml

---------

Co-authored-by: Fred K. Schott <622227+FredKSchott@users.noreply.github.com>
2025-03-15 07:52:58 -07:00
renovate[bot]
0f74b2a590
chore(deps): update dependency rehype-mathjax to v7 (#13260)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-14 16:50:18 +00:00
Emanuele Stoppa
ea7433666e
chore(deps): update shiki to v3 (#13324)
* chore(deps): update shiki to v3

* chore(deps): update shiki to v3

* update missing dep

* changeset

Co-authored-by: matthewp <361671+matthewp@users.noreply.github.com>
2025-03-14 16:36:32 +00:00
Matt Kane
1eab0b25e6 [ci] format 2025-03-14 13:54:21 +00:00
Matt Kane
565583bd6c
fix: respect --yes flag for third-party integrations (#13426) 2025-03-14 13:53:30 +00:00
Tristan Sweeney
51d2a1acba [ci] format 2025-03-14 12:36:43 +00:00
Tristan Sweeney
382f5db9a9
Enable XSL for sitemap-index.xml (#13421) 2025-03-14 12:35:49 +00:00
Houston (Bot)
61b71544b6
[ci] release (#13418)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-13 15:22:18 +00:00
Emanuele Stoppa
2f039b927a
Revert "Replace internal cssScopeTo implementation to vite.cssScopeTo" (#13420)
* Revert "Replace internal cssScopeTo implementation to vite.cssScopeTo (#13347)"

This reverts commit d83f92a204.

* changeset

* Apply suggestions from code review
2025-03-13 15:19:47 +00:00
Matt Kane
be866a1d1d
fix: reuse storage objects in sessions (#13415) 2025-03-13 14:04:35 +00:00
Emanuele Stoppa
fd65296626
chore: update built dependencies (#13412) 2025-03-13 12:54:47 +00:00
Houston (Bot)
118d3e1f79
[ci] release (#13414)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-13 12:19:20 +00:00
Matt Kane
65903c9954
fix: make preserveScriptOrder an optional flag (#13413) 2025-03-13 12:10:14 +00:00
Houston (Bot)
42772253fa
[ci] release (#13397)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-13 11:42:20 +00:00
Emanuele Stoppa
3b5196ddb8 [ci] format 2025-03-13 10:32:38 +00:00
Emanuele Stoppa
fd70537910
chore: breakdown changelog (#13410)
Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
2025-03-13 10:31:48 +00:00
Armand Philippot
fb6859a7fa
docs: fix formatting of excludeLangs default value (#13408)
Co-authored-by: delucis <357379+delucis@users.noreply.github.com>
2025-03-12 19:15:11 +01:00
Matt Kane
0efdc22b18
fix: rethrow astroerrors in image processing (#13407) 2025-03-12 16:45:09 +00:00
Emanuele Stoppa
854b25e654 [ci] format 2025-03-12 14:33:52 +00:00
Emanuele Stoppa
bb558747a7
docs: apply Sarah's suggestions (#13406)
Co-authored-by: sarah11918 <5098874+sarah11918@users.noreply.github.com>
2025-03-12 14:32:40 +00:00
Emanuele Stoppa
3e7b498dce
feat: experimental flag from compiler (#13402)
* feat: experimental flag from compiler

* better changelog

* apply suggestion

* add space

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* more docs

* Update .changeset/cold-rats-swim.md

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

* Update .changeset/cold-rats-swim.md

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

---------

Co-authored-by: Matt Kane <m@mk.gg>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

Co-authored-by: ascorbic <213306+ascorbic@users.noreply.github.com>
Co-authored-by: sarah11918 <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
2025-03-12 14:32:05 +00:00
Chris Swithinbank
636a196213 [ci] format 2025-03-12 13:59:57 +00:00
Chris Swithinbank
cb886dcde6
Add experimental.headingIdCompat flag (#13352)
* Add `experimental.headingIdCompat` option schema & types

* Markdown and MDX support

* Markdoc support

* Add changeset

* Fix missing argument in Markdoc integration

* Improve JSDoc comment

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

* Refactor to avoid global context object in Markdoc

* Minor changeset tweak

* Make `rehypeHeadingIds()` argument optional for backwards compatibility

* Add doc comment to `rehypeHeadingIds()`

* Document rehype plugin usage in changeset

---------

Co-authored-by: Matt Kane <m@mk.gg>
2025-03-12 13:58:59 +00:00
Chris Chua
a3327ffbe6
feat(markdown): add excludeLangs configuration to syntax highlighting (#13311)
* demonstrative implementation of excludeLangs

* add tests

* add changset

* clean up exclude languages into a const

* update changeset to include astro minor

* update jsdoc

* first cut in moving the config into markdown settings

* format code

* update test

* update changset

* remove old incorrect doc change

* make test stronger yet simplifying it

* refactor tests

* refactor logic for readability

* add syntax highlight defaults

* improve changset doc

* add more documentation

* add more defaults to each part of schema

* attempt to fix js doc parsing

* attempt to fix test

* Extremely draft syntax of what docs should look like!

* Update .changeset/large-dolphins-roll.md

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

* one pass on the documentation

* remove unused import

* gentle change

* use different approach

---------

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2025-03-12 13:58:33 +00:00
Matt Kane
4e78b4d10d
fix: display unhandled AstroErrors in dev server correctly (#13404) 2025-03-12 13:30:40 +00:00
Yan
386efb3310
Fix codeblock formatting in i18n.domains comments (#13398) 2025-03-11 15:33:42 +00:00
Martin Trapp
9bfa6e6d8b
Ensure that all scripts are executed prior to astro:page-load (#13380)
* Ensure that all scripts are executed prior to astro:page-load

* fix broken syntax
2025-03-11 15:26:32 +01:00
renovate[bot]
725bc0d71b
fix(deps): update all non-major dependencies (#13387)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-11 13:51:35 +00:00
Tobias
b68f216851 [ci] format 2025-03-11 12:21:36 +00:00
Tobias
615ae29a6f
Docs: Clarify redirects use case (#13370)
Those changes give visibility to the fact that the use case to redirect from a folder to a file is not supported.
https://github.com/withastro/astro/issues/12532#issuecomment-2703410890

Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
2025-03-11 12:19:19 +00:00
renovate[bot]
6b8fdb8a11
fix(deps): update dependency prismjs to v1.30.0 [security] (#13393)
* fix(deps): update dependency prismjs to v1.30.0 [security]

* add changesest

* Update .changeset/ripe-fans-push.md

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Matt Kane <m@mk.gg>
2025-03-11 13:04:26 +01:00
Martin Trapp
d4bf4aeced [ci] format 2025-03-11 11:06:15 +00:00
Martin Trapp
d59eb22733
ClientRouter: prevent double execution of scripts when custom swap() only swaps parts of the DOM (#13379) 2025-03-11 12:05:17 +01:00
Armand Philippot
7b75bc5c36
docs: fix config types (images, i18n) (#13374)
* fix `image.domains` and `image.remotePatterns` default values

* deduplicate `i18n` type

* remove the `strategy` key in `i18n.routing`

* merge `i18n.routing.manual` docs into `i18n.routing`

* add missing `@docs` tag to `i18n.domains`

* add changeset
2025-03-11 09:38:11 +00:00
Houston (Bot)
10fae31ac1
[ci] release (#13361)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-11 09:23:12 +00:00
Bjorn Lu
6d1c63fa46
Use package-manager-detector (#13395)
* Use package-manager-detector

* Update variable name
2025-03-11 09:20:41 +00:00
duck.lol
acf8dd1d49
Remove trailing spaces from blog example links. (#13389)
A formatter introduced newlines inside the anchor tags on the blog example's home `index.astro` page, causing the link to include a trailing space. Not the worst thing, just looks a little unpolished compared to everything else I've experienced getting to know Astro :)

I've put the anchor tags on their own lines to avoid this issue, _and_ prevent future formatters from re-introducing the issue (tested with Astro extension's formatter, at least). Ran the example locally (`cd examples/blog && npm run dev`) and it fixes the issue.

Co-authored-by: Matt Kane <m@mk.gg>
2025-03-11 09:17:50 +00:00
Florian Lefebvre
e744674e45
fix: astro:config types tests (#13391) 2025-03-10 18:38:56 +01:00