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

1447 commits

Author SHA1 Message Date
Houston (Bot)
49db00444e
[ci] release (#11524)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-30 11:54:54 -04:00
Emanuele Stoppa
02c85b5412
fix: cache collections using file name too (#11553)
* fix: cache collections using file name too

* oops
2024-07-25 18:14:08 +01:00
renovate[bot]
536209aa74
fix(deps): update all non-major dependencies (#11522)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-07-23 11:43:14 +08:00
Houston (Bot)
a6c4e67544
[ci] release (#11504)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-19 10:06:49 -04:00
Houston (Bot)
745ce44dd3
[ci] release (#11492)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-18 23:30:35 +02:00
Houston (Bot)
aa05be3313
[ci] release (#11481)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-18 16:05:23 +01:00
Matthew Phillips
fe3afebd65
Fix Server Islands in Vercel (#11491)
* Fix Server Islands in Vercel

* Add a changeset

* Get server islands pattern from the segments

* Move getPattern so it can be used at runtime

* Fix build
2024-07-18 16:03:39 +01:00
Erika
34f9c25740
fix: pin boxen to avoid JSON import (#11483) 2024-07-17 20:57:58 +02:00
Matthew Phillips
d495df5361
Server islands (#11305)
* Spike

* Server Islands

* Remove extra stuff

* Fix build, a little

* Fix build

* astro metadata can be undefined

* Add server:defer type

* Add support for the build to Server Islands (#11372)

* Add support for the build to Server Islands

* Use command instead

* editor tips

* Add comment about defaultRoutes

* Use renderChunk instead of generateBundle

* Server islands tests (#11405)

* Add support for the build to Server Islands

* Use command instead

* editor tips

* Add comment about defaultRoutes

* Use renderChunk instead of generateBundle

* Adds tests for server islands

* linting

* Pass slots to server islands (#11431)

* Require the experimental flag to use server islands (#11432)

* Require the experimental flag to use server islands

* Add flag to tests/examples

* Protect SSR against SI not being enabled

* Update the docs in the API ref

* Upgrade to compiler 2.9.0

* Update packages/astro/src/@types/astro.ts

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

* Update packages/astro/src/@types/astro.ts

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

* Update packages/astro/src/@types/astro.ts

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

* Update packages/astro/src/@types/astro.ts

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

* Update packages/astro/src/@types/astro.ts

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

* Update packages/astro/src/@types/astro.ts

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

* Update packages/astro/src/@types/astro.ts

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

* Fix lockfile

* Add a changeset

* Update .changeset/five-rocks-vanish.md

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

* Update .changeset/five-rocks-vanish.md

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

* Update .changeset/five-rocks-vanish.md

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

* Update .changeset/five-rocks-vanish.md

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

* Update lockfile

* Update .changeset/five-rocks-vanish.md

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-07-17 13:37:36 -04:00
Marco Campos
49b5145158
Feature: add support for shiki defaultColors option (#11341)
* feat: add shiki option for default color

* feat: propagate shiki option for default color to astro config

* feat: add tests for default color

* chore: add change set

* fix: add complete type to shiki default color config

* fix: remove unneeded heavy shiki theme from fixture

* fix: add literals to schema validation

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

* Update .changeset/cold-crabs-arrive.md

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

* feat: improve changeset

* grammar tweak

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-07-17 10:55:04 -04:00
Houston (Bot)
e30cf49ee4
[ci] release (#11442)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-17 14:47:16 +02:00
Peter Schilling
eb303e1ad5
feat(markdoc): Support markdown-it's typographer option (#11450)
* Support markdoc-it's typographer option in markdoc

* Update .changeset/forty-scissors-jog.md [skip ci]

* Update .changeset/forty-scissors-jog.md [skip ci]

* Fix typo in changeset

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-07-17 14:14:35 +02:00
Ryan Christian
2cdb685ce7
refactor(preact): Drop preact-ssr-prepass in favor of renderToStringAsync (#11464) 2024-07-17 15:51:20 +08:00
renovate[bot]
3070691a86
fix(deps): update dependency p-limit to v6 (#11427)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-17 15:25:53 +08:00
renovate[bot]
49463c03e5
fix(deps): update dependency preferred-pm to v4 (#11428)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-17 15:23:19 +08:00
renovate[bot]
b482f912e0
fix(deps): update dependency which-pm to v3 (#11429)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-17 15:23:10 +08:00
renovate[bot]
2113a56933
fix(deps): update all non-major dependencies (#11426)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-07-17 14:48:07 +08:00
renovate[bot]
16ed760f99
fix(deps): update dependency vitest to v2 (#11468)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-15 21:07:50 +08:00
renovate[bot]
db809b5fb0
fix(deps): update dependency boxen to v8 (#11467) 2024-07-15 18:22:56 +08:00
Ben Holmes
08baf56f32
Actions: expand isInputError to accept unknown (#11439)
* feat: allow type `unknown` on `isInputError`

* chore: move ErrorInferenceObject to internal utils

* chore: changeset

* deps: expect-type

* feat: first types test

* chore: add types test to general test command

* refactor: use describe and it for organization
2024-07-09 15:54:49 -04:00
Houston (Bot)
75d118bf7f
[ci] release (#11409)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-03 18:03:29 -04:00
Houston (Bot)
571e184d5a
[ci] release (#11351)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-03 10:10:40 -04:00
Emanuele Stoppa
a55ee0268e
fix(rewrite): correctly update the status code during a rewrite (#11352)
* fix(rewrite): correctly update the status code during a rewrite

* rebase

* remove `.only`

* remove log
2024-07-01 14:55:33 +01:00
renovate[bot]
e60aab9a9f
fix(deps): update all non-major dependencies (#11383)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-07-01 16:32:17 +08:00
Houston (Bot)
d7ae91c83c
[ci] release (#11346)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-26 21:09:08 +08:00
Houston (Bot)
d9e6190a0d
[ci] release (#11336)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-26 11:29:13 +02:00
Bjorn Lu
f1b78a4960
Remove resolve package and refactor db & studio exports (#11331) 2024-06-26 11:19:16 +02:00
Florian Lefebvre
41121fbe00
fix(astro): astro sync and astro:env (#11326) 2024-06-25 14:51:55 +02:00
Houston (Bot)
ce310f8292
[ci] release (#11297)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-24 12:49:52 -04:00
renovate[bot]
47e78d4752
fix(deps): update all non-major dependencies (#11318)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-06-24 22:33:33 +08:00
Emanuele Stoppa
44c61ddfd8
fix(routing): return correct status code for 500.astro and 404.astro (#11308)
* fix(routing): return correct status code for `500.astro` and `404.astro`

* changeset

* fix regression

* use `route` instead
2024-06-24 13:21:27 +01:00
renovate[bot]
edd35d3c69
fix(deps): update dependency sitemap to v8 (#11321)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-24 17:40:23 +08:00
renovate[bot]
6b8bcd1c07
fix(deps): update dependency vite-svg-loader to v5 (#11322)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-24 17:39:23 +08:00
Emanuele Stoppa
dc41ece28f
chore(deps): remove deprecated pkg, preferred-pm now ships its types (#11294) 2024-06-20 13:25:08 +01:00
Houston (Bot)
58a321193e
[ci] release (#11276)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-20 11:58:37 +01:00
Emanuele Stoppa
53e8bb6d5f
chore: update biome (#11288) 2024-06-20 07:10:23 +01:00
Florian Lefebvre
9042be0491
feat: 500.astro improvements (#11134)
* feat: better error handling

* feat: allow passing props to render context render

* feat: work on tests

* Update 500.astro

* feat: test preview custom 500

* feat: test for custom 500 failing

* feat: add changeset

* Update rich-dolls-compete.md

* Delete packages/astro/e2e/custom-500.test.js

* Apply suggestions from code review

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

* fix: merge

* Update packages/astro/test/custom-500.test.js

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

* Apply suggestions from code review

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

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

* feat: update

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2024-06-19 10:00:16 -04:00
Emanuele Stoppa
ea987d7da5
fix(rewrite): allow to rewrite 404 and take base into consideration (#11272)
* fix(rewrite): allow to rewrite 404

* add changesets

* rebase

* apply suggestion

* Update .changeset/honest-shirts-trade.md

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

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-06-19 14:25:27 +01:00
Matt Kane
f4b029b082
fix: support HTTP/2 in astro dev (#11284)
* wip

* chore: add tests

* Add changeset

* Add comments
2024-06-19 12:42:50 +01:00
Houston (Bot)
83c565b36c
[ci] release (#11233)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-17 15:39:57 +02:00
Bjorn Lu
e22be22e57
Refactor prerendering chunk handling (#11245) 2024-06-17 14:23:10 +08:00
renovate[bot]
68f1d0d13e
chore(deps): update all non-major dependencies (#11269)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-17 14:18:41 +08:00
renovate[bot]
67d5a73b12
fix(deps): update dependency @vitejs/plugin-vue-jsx to v4 (#11270)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-17 14:04:38 +08: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
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
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
e4fc2a0baf
fix: provide a plugin to resolve the virtual module (#11242) 2024-06-12 11:28:26 +01:00
Florian Lefebvre
02e561723f
feat: upgrade pnpm (#11146) 2024-06-11 15:49:03 +02:00