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

9179 commits

Author SHA1 Message Date
renovate[bot]
eb78aafc03
fix(deps): update all non-major dependencies 2025-01-06 17:20:52 +00:00
Houston (Bot)
84b07969dd
[ci] release ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-06 18:17:11 +01:00
Florian Lefebvre
88b493cade
fix: do not generate a stub for content types () 2025-01-06 16:11:52 +01:00
Florian Lefebvre
011fa0f00c
fix: do not generate a stub for content types () 2025-01-06 16:11:34 +01:00
Florian Lefebvre
96dade6778 [ci] format 2025-01-06 14:53:23 +00:00
Florian Lefebvre
dbf1275987
fix: pass server island route to astro:build:done routes () 2025-01-06 15:52:37 +01:00
Matt Kane
2d89492d73
fix: don't match all paths when returning empty array from getStaticPaths () 2025-01-06 11:49:39 +00:00
Matt Kane
383c2abc1f
chore(examples): add node types dep () 2025-01-06 10:05:00 +00:00
Florian Lefebvre
7fdbd4384d
fix(underscore-redirects): force type () 2025-01-06 11:04:50 +01:00
Eric Park
694e4cd835 [ci] format 2025-01-05 19:58:42 +00:00
Eric Park
3acc65444c
fix: match index files only by using entire basename ()
* fix: match index files only by using entire basename

The previous code would cause file names like `index.xml.ts` to be
treated as index files, when they aren't (the file basename excluding
the extension `.ts` is `index.xml`, and `index` should be the index
file). To match index files only, match the entire first half of the
basename when splitting by the last occurrence of the period/file
extension delimiter.

Pedantically this might not be correct -- i.e. some file extensions
actually span multiple delimiters, like index.tar.gz. But in that case
it's not an index file as well, so I think this is fine.

Fixes 

* Add changeset
2025-01-05 19:57:53 +00:00
Chris Kanich
fbac92f8bd
fix: clone session data on .set() ()
* fix: clone session data on .set()

* weird race condition, +1 test for URL() thing

* cleanup

* ensure directory exists before using fs-lite sessions

* minor wording change

* alternate ensure-dir-exists implementation

* await session persistence before returning response

* update changeset

* formatting

* two changesets
2025-01-05 19:54:41 +00:00
Bjorn Lu
73a078835e
Fix sourcemap warning in server islands plugin () 2025-01-03 22:43:22 +08:00
renovate[bot]
78bcad952e
chore(deps): update dependency @codspeed/vitest-plugin to v4 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-03 13:36:21 +00:00
renovate[bot]
cbd9bab89f
fix(deps): update dependency @preact/signals to v2 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-03 20:32:00 +08:00
renovate[bot]
047589dbd4
fix(deps): update dependency @astrojs/node to v9 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-03 20:30:07 +08:00
renovate[bot]
e2dc04bfee
chore(deps): update dependency undici to v7 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-03 20:29:09 +08:00
renovate[bot]
5997af826f
fix(deps): update dependency htmlparser2 to v10 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-03 20:17:23 +08:00
Matt Kane
d7e97a775d
fix: add render() to stub content type defs ()
* fix: add render() to stub content type defs

* Better wording
2025-01-03 12:01:33 +00:00
Bjorn Lu
6bbb3f5e5e
Bump vitest to v3 beta () 2025-01-03 16:55:53 +08:00
Matt Kane
a6a4a66f10 [ci] format 2025-01-02 19:49:55 +00:00
Matt Kane
579bd93794
fix: wait for content layer sync before starting dev server ()
* fix: wait for content layer sync before starting dev server

* Load config earlier

* Wait for fs flush

* Add delay

* Test utils fixes

* Ignore files in dotastro

* Wait for loading config

* Fix test

* Defer watching data store
2025-01-02 19:49:02 +00:00
sinskiy
7b5dc6f0f1
fix: add noindex to server island headers ()
* fix: add noindex to server island headers

* test: check if server island has noindex header

* chore: changeset

* refactor: set X-Robots-Tag: noindex in handler

* fix tests

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2025-01-02 15:20:23 +00:00
Houston (Bot)
161df286c3
[ci] release ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-02 13:29:02 +00:00
Emanuele Stoppa
7fb21844df
fix: injected route entrypoint () 2025-01-02 13:26:55 +00:00
Emanuele Stoppa
f12f1118bc
fix: missing log () 2025-01-02 13:26:35 +00:00
Matt Kane
e109002c3d
fix: pass emulated entry to getCollection filter function ()
* fix: pass emulated entry to getCollection filter function

* Add test
2025-01-02 12:16:57 +00:00
Emanuele Stoppa
ac00c64ee7 [ci] format 2025-01-02 11:56:54 +00:00
Emanuele Stoppa
524c855075
fix(core): add error log for server islands ()
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Matt Kane <m@mk.gg>
2025-01-02 11:55:48 +00:00
Matt Kane
892dd9f6cd
fix: pass cookie options to delete () 2025-01-02 11:19:09 +00:00
Chris Kanich
440d8a54f7
fix: session regeneration ()
Co-authored-by: Matt Kane <m@mk.gg>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2025-01-02 10:39:17 +00:00
Amine Ilidrissi
8809b85747
Fix Vue & Svelte server renderer types ()
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2025-01-02 09:56:07 +00:00
Matt Kane
96c4b92533
fix: make reference() a sync transform () 2025-01-02 09:49:20 +00:00
Bjorn Lu
f7068995aa
Fix sync-examples workflow () 2024-12-31 20:34:17 +08:00
Chloe Arciniega
ebe2aa95c7
fix(@astrojs/rss): revert incorrect Content-Type header applied for RSS XML file ()
* fix: revert content-type changes

* chore: changeset
2024-12-26 08:52:34 +00:00
Scott Davis
1fab2f2ef6
patch: update partytown dependencies () 2024-12-24 11:21:20 +00:00
Louis Escher
5ab724c633 [ci] format 2024-12-23 12:21:38 +00:00
Louis Escher
70a9f0b984
Fix server island script breaking when charset is added to content-type () 2024-12-23 12:20:39 +00:00
Emanuele Stoppa
98f9e833a5
fix(toolbar): assign label to icons () 2024-12-20 15:23:35 +00:00
Matt Kane
7b0cb852f6
fix: better logs for invalid content config ()
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2024-12-20 15:08:43 +00:00
Houston (Bot)
5f4c543609
[ci] release ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-20 12:10:36 +00:00
Matt Kane
739dbfba42
fix(deps): upgrade Vite () 2024-12-20 12:01:14 +00:00
Hiromasa Fujimori
f3d83854aa
update comment in packages/astro/src/types/public/common.ts () 2024-12-20 07:17:39 +00:00
Matt Kane
49cc5d7266 [ci] format 2024-12-19 16:49:51 +00:00
Matt Kane
f632b94527
fix: pass raw frontmatter to when parsing markdown in glob loader () 2024-12-19 16:49:01 +00:00
Emanuele Stoppa
5e9d1bcf80
chore: move files to .mjs () 2024-12-19 14:24:00 +00:00
Matt Kane
73b6c8b1b3
chore: fix links in session errors () 2024-12-19 12:28:36 +00:00
Houston (Bot)
3f557b2e32
[ci] release ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-19 12:23:46 +00:00
Emanuele Stoppa
e56af4a3d7
chore: changeset () 2024-12-19 12:21:13 +00:00
Emanuele Stoppa
4353fc5ccf
fix: correctly return 404.astro in i18n () 2024-12-19 11:22:25 +00:00