0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00
Commit graph

8347 commits

Author SHA1 Message Date
Emanuele Stoppa
d9397a1cf6 wip 2024-07-18 09:29:17 +01:00
Emanuele Stoppa
697a539adf fix: prevent client hydration when rendering via Container API 2024-07-18 09:29:15 +01:00
Florian Lefebvre
8d0d7044f6 [ci] format 2024-07-18 09:29:02 +01:00
Florian Lefebvre
6059b4234b fix: incorrect astro:env runtime error (#11479)
* fix: incorrect astro:env runtime error

* fix: import

* feat: type check template
2024-07-18 09:29:02 +01:00
Erika
4779b8ef15 fix: pin boxen to avoid JSON import (#11483) 2024-07-18 09:29:02 +01:00
Matthew Phillips
0c534a4129 [ci] format 2024-07-18 09:29:02 +01:00
Matthew Phillips
b26cc7e253 Fix smoke tests (#11484) 2024-07-18 09:29:02 +01:00
RipeApple
463c46005a [ci] format 2024-07-18 09:29:02 +01:00
RipeApple
d6eef33537 Add Shiki's defaultColor option to <Code /> (#11391) 2024-07-18 09:29:02 +01:00
Matthew Phillips
9f06003993 [ci] format 2024-07-18 09:29:02 +01:00
Matthew Phillips
f058e33abb 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-18 09:29:02 +01:00
Emanuele Stoppa
2edbf3dd2c [ci] format 2024-07-18 09:29:02 +01:00
Emanuele Stoppa
16ead9b93e 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-18 09:29:02 +01:00
Luiz Ferraz
7ed2377b0d [ci] format 2024-07-18 09:29:02 +01:00
Luiz Ferraz
b14c2e3952 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-18 09:29:02 +01:00
Florian Lefebvre
a3b2c3230d [ci] format 2024-07-18 09:29:02 +01:00
Florian Lefebvre
b2e17281b9 feat(astro): clean sync (#11415) 2024-07-18 09:29:02 +01:00
Matteo Manfredi
ea94316efd [ci] format 2024-07-18 09:29:02 +01:00
Matteo Manfredi
9bbfad3fc2 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-18 09:29:02 +01:00
Bjorn Lu
d54671fcf0 Support import astro components with vite queries (#11478) 2024-07-18 09:29:02 +01:00
Takeo Sawada
6c768205d7 [ci] format 2024-07-18 09:29:02 +01:00
Takeo Sawada
d7502ee904 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-18 09:29:02 +01:00
Marco Campos
4afb5fe23c 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-18 09:29:02 +01:00
Simon He
567986d5f1 [ci] format 2024-07-18 09:29:02 +01:00
Simon He
1bf863e5c9 refactor(astro): code refactor (#11343) 2024-07-18 09:29:02 +01:00
Houston (Bot)
10ba3d4d6a [ci] release (#11442)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-18 09:29:02 +01:00
Fugi
b7cc96fb30 [ci] format 2024-07-18 09:29:02 +01:00
Fugi
d14f5d9573 Fix action form parsing for .nullish (#11452) 2024-07-18 09:29:02 +01:00
Peter Schilling
83a41d7277 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-18 09:29:02 +01:00
Florian Lefebvre
7b7ad9f3f4 [ci] format 2024-07-18 09:29:02 +01:00
Florian Lefebvre
6975aca738 feat: better astro:env errors (#11455) 2024-07-18 09:29:02 +01:00
Ryan Christian
5ddf5a917c refactor(preact): Drop preact-ssr-prepass in favor of renderToStringAsync (#11464) 2024-07-18 09:29:02 +01:00
Bjorn Lu
0871eaac58 [ci] format 2024-07-18 09:29:02 +01:00
Bjorn Lu
015ac7588b Fix prerendering with unused dynamic chunks (#11387) 2024-07-18 09:29:02 +01:00
Chris Swithinbank
f6a7824597 Only add framework component formats to Vite’s optimizeDeps (#11472)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-07-18 09:29:02 +01:00
renovate[bot]
a3f819f29b fix(deps): update dependency p-limit to v6 (#11427)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-18 09:29:02 +01:00
renovate[bot]
d1b62413f2 fix(deps): update dependency preferred-pm to v4 (#11428)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-18 09:29:02 +01:00
renovate[bot]
99e039e6fb fix(deps): update dependency which-pm to v3 (#11429)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-18 09:29:02 +01:00
renovate[bot]
575d93d787 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-18 09:29:02 +01:00
Ricky Chon
d7c8b9c18d [ci] format 2024-07-18 09:29:02 +01:00
Ricky Chon
224110f307 fix(astro): do not open new tab when saving config files (#11456) 2024-07-18 09:29:02 +01:00
renovate[bot]
33fc991472 fix(deps): update dependency vitest to v2 (#11468)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-18 09:29:02 +01:00
renovate[bot]
22a5e9bfbf fix(deps): update dependency boxen to v8 (#11467) 2024-07-18 09:29:02 +01:00
Ming-jun Lu
3c8076ea94 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-18 09:29:02 +01:00
Ben Holmes
e6b64ebcf0 fix: bad Handler type (#11448) 2024-07-18 09:29:02 +01:00
Ben Holmes
118ae045a3 Actions: expose utility types (#11438)
* feat: expose ACTION_ERROR_CODES util

* feat: expose ActionHandler util type

* chore: changeset
2024-07-18 09:29:02 +01:00
Ben
fb2b9ad21f [ci] format 2024-07-18 09:29:02 +01:00
Ben
46f5ce01dd feat: astro:env allow schema keys to include numbers (#11437)
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-07-18 09:29:02 +01:00
Ben Holmes
5ea0cfa44c feat: ActionReturnType (#11443)
* feat: ActionReturnType util

* feat(test): ActionReturnType

* chore: changeset
2024-07-18 09:29:02 +01:00
Ben Holmes
60fe112b3d 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-18 09:29:02 +01:00