0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
Commit graph

8215 commits

Author SHA1 Message Date
Matthew Phillips
f5f8ed275b
Fix backwards compat with Astro <= 4.9 (#11261) 2024-06-14 16:29:53 -04:00
Łukasz Stankiewicz
9b030239cb
Import Database type from correct file (#11262)
* Import Database type from correct file

* Add changeset
2024-06-14 16:29:21 -04:00
Szymon Chmal
6b541ec468 [ci] format 2024-06-14 20:22:00 +00:00
Szymon Chmal
ba2b14cc28
fix(astro): prerendering issue when path contains underscore (#11243)
* fix(astro): prerendering issue when path contains underscore

* chore: add missing files

* Update .changeset/honest-ravens-double.md

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

---------

Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-06-14 16:21:11 -04:00
Emanuele Stoppa
6582811398 [ci] format 2024-06-14 14:38:55 +00:00
Emanuele Stoppa
dffb765da3
docs: add some useful tips for testing (#11257) 2024-06-14 15:38:00 +01:00
Matt Kane
ec94bb4a4e [ci] format 2024-06-14 12:58:11 +00:00
Matt Kane
d996db6f0b
fix: throw error if rewrite is attempted after body is used (#11258)
* fix: throw error if rewrite is attempted after body is used

* Apply suggestions from code review

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-06-14 13:57:17 +01:00
Mark Gaze
537e971372 [ci] format 2024-06-14 10:39:09 +00:00
Mark Gaze
de60c69aa0
Fix a performance issue with JSON schema generation (#11249) 2024-06-14 11:38:20 +01:00
Jamie Barton
773828a056
[docs] update JSDoc for API Reference links (#11252) 2024-06-14 18:12:00 +08:00
liruifengv
5484114401
fix typo in changeset (#11255)
* fix typo in changeset

* update typo import
2024-06-14 16:19:16 +08:00
Emanuele Stoppa
914d95ec4b
chore: fix CI badge (#11256) 2024-06-14 08:58:56 +01:00
Emanuele Stoppa
d4336a5470 [ci] format 2024-06-14 05:53:12 +00:00
Emanuele Stoppa
fd9da98b19
feat: refine container APIs for renderers (#11251) 2024-06-14 06:52:17 +01:00
Szymon Chmal
1b42229f51
fix(markdown-remark): mark prism package as an internal dependency (#11250) 2024-06-14 12:41:26 +08:00
Emanuele Stoppa
a6df7e877f [ci] format 2024-06-13 13:05:54 +00:00
Emanuele Stoppa
4385bf7a4d
feat(@astrojs/react): export renderer for easy loading (#11234)
* wip

* feat(@astrojs/react): export `renderer` for easy loading

* restore change

* chore: address feedback

* revert changes

* revert changes to react integration

* update changeset
2024-06-13 14:05:06 +01:00
Emanuele Stoppa
d07d2f7ac9
fix: better DX for 500.astro in local development (#11244)
* wip

* catch error in route.ts

* catch error in route.ts

* chore: tidy up error cases

* log the original error

* rebase

* chore: reduce the scope of the 500 handling

* we should not have a default 500

* remove props

* remove unsure  function, not needed

* Update packages/astro/src/core/routing/astro-designed-error-pages.ts

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

* Update packages/astro/src/core/constants.ts

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

* changeset

* relax the assertion

* Update packages/astro/src/vite-plugin-astro-server/route.ts

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

* relax the assertion

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-06-13 10:41:01 +01:00
Matt Kane
8036b9a3fc [ci] format 2024-06-12 12:46:40 +00:00
Matt Kane
39bc3a5e81
fix(astro): handle symlinked content collection directories (#11236)
* fix(astro): handle symlinked content collection directories

* CHeck content dir exists and is a dir

* Handle symlinks when generating chunk names

* wip windows log

* Use posix paths

* Fix normalisation

* :old-man-yells-at-windows-paths:

* Update .changeset/fifty-clouds-clean.md

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

* Changes from review

* Add logging

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-06-12 13:45:47 +01:00
Matt Kane
2851b0aa2e
fix(astro): ignore query params when matching .astro extension (#11240)
* fix: ignore query params when matching .astro extension

* Changeset

* Add test
2024-06-12 12:44:44 +01:00
Emanuele Stoppa
a8c7ceca43 [ci] format 2024-06-12 10:29:16 +00:00
Emanuele Stoppa
e4fc2a0baf
fix: provide a plugin to resolve the virtual module (#11242) 2024-06-12 11:28:26 +01:00
Florian Lefebvre
769f11f23f [ci] format 2024-06-11 18:18:03 +00:00
Florian Lefebvre
94ac7efd70
feat(astro): address astro env rfc feedback (#11213)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-06-11 20:17:16 +02:00
Florian Lefebvre
02e561723f
feat: upgrade pnpm (#11146) 2024-06-11 15:49:03 +02:00
Matthew Phillips
ebe01c7aff [ci] format 2024-06-11 13:33:05 +00:00
Matthew Phillips
24ce8983e1
In Vercel Edge, include cookies set by Astro.cookies.set (#11227) 2024-06-11 09:32:17 -04:00
Houston (Bot)
dd0145d28b
[ci] release (#11225)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-11 13:15:27 +01:00
Emanuele Stoppa
c5152dbea3 [ci] format 2024-06-11 12:00:00 +00:00
Emanuele Stoppa
7d9aac376c
fix(rewrite): purge old data when rewriting (#11207)
* fix(rewrite): purge old data when rewriting

* remove logs

* Update .changeset/fuzzy-eggs-kneel.md

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-06-11 12:58:59 +01:00
Emanuele Stoppa
bd849a4f62 [ci] format 2024-06-11 11:05:57 +00:00
Emanuele Stoppa
58d7dbb5e0
fix: regression for getViteConfig (#11231)
* fix: regression for getViteConfig

* address feedback
2024-06-11 12:05:07 +01:00
renovate[bot]
8725cb2f90
fix(deps): update all non-major dependencies (#11222)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-11 08:59:21 +01:00
Matt Kane
72a3dd31e9 [ci] format 2024-06-10 19:58:24 +00:00
Matt Kane
1e293a1b81
fix(astro): always return cloned content collection (#11228)
* fix: always return cloned content collection

* Update .changeset/early-melons-thank.md

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-06-10 20:57:07 +01:00
Matthew Phillips
28ee6e7f85 [ci] format 2024-06-10 17:39:18 +00:00
Matthew Phillips
66fc0283d3
Close iterator after rendering is complete and no more chunks remain (#11210)
* Close iterator after rendering is complete and no more chunks remain

* Wait for the first whole render before resolving
2024-06-10 13:38:25 -04:00
Oliver Speir
2e6d0d91a0 [ci] format 2024-06-10 15:54:26 +00:00
Oliver Speir
29463dff52
Export type Database from db/runtime (#11216)
* import and export in index.ts

* remove import and export from virtual.ts

* add changset

* Update .changeset/warm-pets-tap.md

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

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-06-10 16:53:38 +01:00
Florian Lefebvre
2bdca27ff4
feat: add support for astro:env to node and vercel (#11199) 2024-06-10 16:43:48 +02:00
Florian Lefebvre
0a6ab6f562
feat(astro): improved validators (#11195) 2024-06-10 13:40:56 +02:00
Ryan Govostes
3305eff3c2
Minor cleanup in the content types generator (#11218) 2024-06-10 12:16:22 +01:00
Emanuele Stoppa
cc432418ce
ci: fix regression in errors data (#11226) 2024-06-10 11:48:04 +01:00
Frank
069a57e698 [ci] format 2024-06-10 10:20:10 +00:00
Frank
7327c6acb1
Fix leading slash creating incorrect conflict resolution between pages generated from static routes and rest parameters (#10607)
* test: added test-case failing like https://github.com/withastro/astro/issues/9103

* fix: replace leading `//` with `/` for generated static paths

* fix: use stringifyParams()-function, removed JSON.stringify on string

* test: align "/test/ing/"-title to other titles

* ci: added changeset

* test: updated test-name to more closely reflect the issue being tested

* test: added test-case for dynamic route-param with leading slash

* Update .changeset/tender-apples-lie.md

---------

Co-authored-by: Frank <62514408+frank371ba@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-06-10 11:19:17 +01:00
Szymon Chmal
416c4ac66d
fix(@astrojs/partytown): prevent crashes when View Transitions are enabled (#11083)
* fix: recover IFrame of Partytown on View Transition

* chore: add changeset entry

---------

Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
2024-06-10 11:16:59 +01:00
Emanuele Stoppa
ad41e1c800 [ci] format 2024-06-10 10:15:55 +00:00
Emanuele Stoppa
75a8fe7e72
fix(i18n): improve error message (#11189)
* fix(i18n): improve error message

* Update packages/astro/src/core/errors/errors-data.ts

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

* Update packages/astro/src/core/errors/errors-data.ts

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-06-10 11:15:06 +01:00