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

8332 commits

Author SHA1 Message Date
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
Emanuele Stoppa
17d2eedaaf [ci] format 2024-07-17 16:01:58 +00:00
Emanuele Stoppa
7e9c4a134c
fix: avoid response rewrite inside the dev server (#11477)
* fix: avoid response rewrite inside the dev server

* breakdown logic of reroute and rewrite
2024-07-17 17:01:07 +01:00
Luiz Ferraz
1df7c8489e [ci] format 2024-07-17 15:59:44 +00:00
Luiz Ferraz
2e70741362
feat: Refactor integration hooks type (#11304)
* feat: Refactor integration hooks type

* Revert formatting changes

* More detailed changelog

* Add changeset for Astro DB

* Apply suggestions from code review

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-07-17 11:58:57 -04:00
Florian Lefebvre
683417f334 [ci] format 2024-07-17 15:39:31 +00:00
Florian Lefebvre
e9334d05ca
feat(astro): clean sync (#11415) 2024-07-17 17:38:32 +02:00
Matteo Manfredi
c34fc99fe9 [ci] format 2024-07-17 15:28:08 +00:00
Matteo Manfredi
36e30a3309
Expose inferRemoteSize function (#11098)
* feat: expose and rename `inferSize`

* feat: separate `ISize` type

* feat: reformat function to use `ImageMetadata`

* nit(assets): re-use image-metadata code for remote images

* chore: changeset

* chore: changeset

* feat(assets): Export from `astro:assets`

* fix: proper errors

* fix: dont export from astro/assets

* fix: ests

* Update .changeset/large-geese-play.md

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

* fix: ests

* Update .changeset/large-geese-play.md

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

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-07-17 11:27:04 -04:00
Bjorn Lu
3161b6789c
Support import astro components with vite queries (#11478) 2024-07-17 22:57:10 +08:00
Takeo Sawada
48d926c27e [ci] format 2024-07-17 14:56:40 +00:00
Takeo Sawada
a75145871b
feat: add first and last to the Page interface (#11176)
* feat: add first and last to the Page interface

* Update .changeset/twenty-maps-glow.md

* Update .changeset/twenty-maps-glow.md

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

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-07-17 10:55:53 -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
Simon He
f4870e59ec [ci] format 2024-07-17 13:04:41 +00:00
Simon He
6e459f03c6
refactor(astro): code refactor (#11343) 2024-07-17 21:03:45 +08: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
Fugi
20fc99b6ab [ci] format 2024-07-17 12:24:18 +00:00
Fugi
0e6684983b
Fix action form parsing for .nullish (#11452) 2024-07-17 20:23:30 +08: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
Florian Lefebvre
3b94324228 [ci] format 2024-07-17 10:36:48 +00:00
Florian Lefebvre
645e128537
feat: better astro:env errors (#11455) 2024-07-17 12:36:00 +02:00
Ryan Christian
2cdb685ce7
refactor(preact): Drop preact-ssr-prepass in favor of renderToStringAsync (#11464) 2024-07-17 15:51:20 +08:00
Bjorn Lu
3f4735ee9b [ci] format 2024-07-17 07:49:14 +00:00
Bjorn Lu
b498461e27
Fix prerendering with unused dynamic chunks (#11387) 2024-07-17 15:48:28 +08:00
Chris Swithinbank
cb4e6d09de
Only add framework component formats to Vite’s optimizeDeps (#11472)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-07-17 15:35:02 +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
Ricky Chon
2c437ff99c [ci] format 2024-07-16 16:51:40 +00:00
Ricky Chon
17e048de0e
fix(astro): do not open new tab when saving config files (#11456) 2024-07-16 18:50:51 +02: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
Ming-jun Lu
bc2e74de38
fix(audit): remove false positive warnings on elements with tabpanel role (#11459)
* fix(audit): add `tabpanel` to `aria_non_interactive_roles`

* fix(audit): allow `tabIndex` on elements with `tabpanel` role

See: d32a27fb64/docs/rules/no-noninteractive-tabindex.md (rule-options)

* chore: add changeset
2024-07-12 13:46:15 +02:00
Ben Holmes
88e2b43305
fix: bad Handler type (#11448) 2024-07-10 14:11:39 +02:00
Ben Holmes
619f07db70
Actions: expose utility types (#11438)
* feat: expose ACTION_ERROR_CODES util

* feat: expose ActionHandler util type

* chore: changeset
2024-07-10 08:02:10 -04:00
Ben
0d6f3563a5 [ci] format 2024-07-10 11:33:46 +00:00
Ben
6ccb30e610
feat: astro:env allow schema keys to include numbers (#11437)
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-07-10 13:32:56 +02:00
Ben Holmes
ea4bc04e94
feat: ActionReturnType (#11443)
* feat: ActionReturnType util

* feat(test): ActionReturnType

* chore: changeset
2024-07-10 07:05:13 -04:00
Ben Holmes
7dca68ff2e
Fix: Actions accept type completions (#11436)
* fix: `accept` type completions

* chore: changeset

* Edit: fix -> fixes astro:actions

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

* feat(test): accept types

---------

Co-authored-by: bholmesdev <bholmesdev@gmail.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-07-09 16:35:28 -04:00
Ben Holmes
aa73316f20 [ci] format 2024-07-09 19:55:39 +00: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
Florian Lefebvre
ea8582f4fc [ci] format 2024-07-09 17:47:29 +00:00
Florian Lefebvre
0a4b31ffeb
feat: astro:env validateSecrets (#11337)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-07-09 19:46:37 +02: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
Matthew Phillips
b9e906f8e7
Revert "Fix attribute rendering for boolean values (#11369)" (#11408)
* Revert "Fix attribute rendering for boolean values (#11369)"

This reverts commit e6de11f4a9.

* Add a changeset
2024-07-03 17:44:51 -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
d958e08576 [ci] format 2024-07-01 13:56:26 +00: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
Emanuele Stoppa
93993b77cf
fix(i18n): update strategy when defining manually astro i18n middleware (#11362) 2024-07-01 14:42:07 +01:00