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

6965 commits

Author SHA1 Message Date
Alex Nguyen
c01cc4e340
Fixes warning for external URL redirects (#9426)
* Update warning for external URL redirects to use destination address

* Update .changeset/gentle-chefs-glow.md

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

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2023-12-15 17:23:50 +00:00
Oscar Lee-Vermeren
35e4c17fe2
feat: make Houston festive for the holiday season (#9358)
* feat: make Houston festive for the holiday season

* fix: change changeset to minor
2023-12-15 17:22:33 +00:00
Bjorn Lu
41b05b54d4 [ci] format 2023-12-15 17:21:03 +00:00
Bjorn Lu
a5db8d2ad0
Simplify vue appEntrypoint handling (#9362)
* Simplify vue appEntrypoint handling

* Try fix windows

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-12-15 17:19:43 +00:00
Arsh
667539be5a [ci] format 2023-12-15 17:16:14 +00:00
Arsh
6d2d0e279d
fix(error pages): account for trailingSlash (#9126)
* account for trailingSlash

* add changeset

* add tests

* update lock file
2023-12-15 17:15:04 +00:00
Emanuele Stoppa
c01580a2cd
fix: improve error message when a middleware doesn't return a Response (#9434)
* fix: improve error message when a middleware doesn't return a `Response`

* Apply suggestions from code review

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

* fix typo

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-12-15 09:22:22 +00:00
Emanuele Stoppa
fcc2fd5b0f
fix: merge headers from the original response in error pages (#9433)
* fix: merge headers from the original response in error pages

* revert local change

* change test ordering

* apply feedback
2023-12-14 17:41:06 +00:00
Matthew Phillips
745294de94 [ci] format 2023-12-14 15:21:57 +00:00
Matthew Phillips
151bd429b1
Prevent Partytown from hijacking history API (#9419)
* Partytown overrides these methods to... do things, but it breaks ViewTransitions in Firefox.

* Only redefine pushstate/replacestate in the browser
2023-12-14 10:20:56 -05:00
Houston (Bot)
242fd71a6a
[ci] release (#9406)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-14 09:01:03 -05:00
Matthew Phillips
d2340058aa [ci] format 2023-12-14 13:40:07 +00:00
Matthew Phillips
e1a5a2d36a
Handle unhandledrejections in the dev server (#9424)
* Handle unhandledrejections in the dev server

* Adding changeset

* Update .changeset/curvy-lobsters-crash.md

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

* Use AsyncLocalStorage

* Return errorWithMetadata

* Send the error to the browser

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-12-14 08:39:06 -05:00
Jacob Parker
8c9fe0092a
Fix static build when out dir is not within the cwd (#9378)
* Fix static build when out dir is not within the cwd

* Create lorem-ipsum-dolor

Changeset
2023-12-13 10:17:10 -05:00
Matthew Phillips
f8b27b07c0 [ci] format 2023-12-13 14:25:55 +00:00
Matthew Phillips
bda1d294f2
Error when getImage() is passed an undefined src (#9423) 2023-12-13 09:24:46 -05:00
Jacob Lamb
836ab6214e
chore(vercel): Add beta option for status (#9413)
* Add beta option for status

* Create stupid-cheetahs-sell.md

* Add warning for beta

* Update packages/integrations/vercel/src/serverless/adapter.ts

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

* Switch to `minor` and document new API/option

* Update README.md

* Update README.md

* Update packages/integrations/vercel/README.md

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

* Update .changeset/stupid-cheetahs-sell.md

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

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2023-12-13 12:12:48 +00:00
Alex Nguyen
2c168af674
Fix broken link (#9418)
* Fix broken link

* Create old-dragons-kneel.md

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-12-12 16:13:18 -05:00
Geoffrey-Pliez
2287ec6667 [ci] format 2023-12-12 19:36:59 +00:00
Geoffrey-Pliez
b0a71946f4
[@astrojs/lit] lit 3.0 compatibility (#8822)
* updates packages

* [Fix] pnpm-lock

* [Fix] updates

* revert dev dependencies

* Update lockfile

* Update lit version in the e2e tests

* Adding changeset

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-12-12 14:35:40 -05:00
Matthew Phillips
4137927e3c [ci] format 2023-12-12 18:30:01 +00:00
Matthew Phillips
546d92c862
Allow file URLs to be used as import specifiers (#9407)
* Allow file URLs to be used as import specifiers

* Update packages/astro/src/vite-plugin-fileurl/index.ts

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-12-12 13:28:48 -05:00
Simon Knott
63b3cd19ee [ci] format 2023-12-12 10:20:17 +00:00
Simon Knott
bebf38c0cb
fix: mention which feature is experimental/deprecated (#9414) 2023-12-12 10:19:15 +00:00
Arsh
8aeb0b5797
fix(vercel): handle dots in source path for redirects (#9289)
* add fix

* add test

* add changeset
2023-12-12 03:50:22 +05:30
Erika
8aa17a64b4
Add missing global attributes to JSX definition (#9404)
* fix: add some missing attributes to our JSX definitions

* chore: changeset

* fix: use empty string as type
2023-12-11 17:08:12 +01:00
Houston (Bot)
f47b85ce6f
[ci] release (#9365)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-11 11:57:19 +00:00
Nate Moore
d656797fce [ci] format 2023-12-11 10:48:10 +00:00
Nate Moore
a7c75b3339
Ensure astro add only installs stable versions (#9387)
* fix(add): update peerDependency resolution logic to exclude prereleases

* chore: add changeset
2023-12-11 10:47:05 +00:00
Emanuele Stoppa
ea09182599
fix(i18n): correctly pull the ssr entry during build (#9380) 2023-12-11 10:10:59 +00:00
Shinya Fujino
a0dc4a4357
Refactor Vue example to use <script setup> (#9379) 2023-12-11 16:14:28 +08:00
Sarah Rainsberger
bebf5cf22d
[docs] Vercel README - update code samples (#9383) 2023-12-08 16:04:54 -06:00
Arsh
9d29ef11f6 [ci] format 2023-12-08 16:26:49 +00:00
Arsh
1e342e34eb
fix(vercel): clear artifacts from redirects (#9287) 2023-12-08 16:25:39 +00:00
Bjorn Lu
65ddb02711
Preserve generating routes that end with .mjs (#9374) 2023-12-08 23:39:13 +08:00
Bjorn Lu
26f7023d69
Prettify generated route names from integrations (#9375) 2023-12-08 23:38:19 +08:00
Martin Trapp
85c9a61216
fix: markdown formatting issue
Co-authored-by: Florian Lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
2023-12-08 10:16:37 +01:00
__dil__
1a4d593ddb
feat(examples): make content collections type explicit
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Bjorn Lu <34116392+bluwy@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
2023-12-08 09:22:08 +01:00
mischahaenen
a7a46b1a5d
feat(badges): add github badge (#9231)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2023-12-08 09:02:09 +01:00
Arsh
1b4e918981
chore: update peer dependencies (#9366) 2023-12-07 23:34:14 +08:00
Arsh
270c6cc27f
chore: markdown-remark peerDependencies (#9349) 2023-12-07 23:04:48 +08:00
Bjorn Lu
1aa7fe85c1
Allow Svelte 5 render slots as snippets (#9285) 2023-12-07 22:47:04 +08:00
Geoffrey Casper
dfbc707908
Allow async functions in the Vercel edge middleware integration (#9334)
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: lilnasy <69170106+lilnasy@users.noreply.github.com>
2023-12-07 21:43:47 +08:00
Houston (Bot)
3e4109b08f
[ci] release (#9340)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-06 15:09:30 -05:00
Matthew Phillips
1685cc42b5
Define the Vercel adapter's peerDependency (#9348)
* Define the Vercel adapter's peerDependency

* Update .changeset/nasty-carrots-study.md

Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>

---------

Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
2023-12-06 14:58:35 -05:00
Martin Trapp
ab0281aee4
Adds source file properties to HTML elements only if devToolbar is enabled (#9343) 2023-12-06 16:20:08 +01:00
Charles Villard
58d643bcd8 [ci] format 2023-12-06 12:14:25 +00:00
Charles Villard
edfae50e6e
[@astrojs/rss] Quality-of-Life Improvement to items property-related error (#9299)
* This commit addresses a quality-of-life concern when setting up a RSS feed
when using collections. Specifically, it provides more context to the error
message thrown when the object passed to the `items` property is missing any
of the three required keys or if one of those keys is mistyped.

* Add changeset

* Update .changeset with properly formatted update structure

@sarah11918 suggested a change to the verbiage that properly formatted the update detail in question. Accepting the suggestion.

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-12-06 12:13:15 +00:00
Erika
eb942942d6
fix: add types for is:inline on slots (#9342) 2023-12-06 13:09:30 +01:00
Fred K. Schott
c769010655
Fix issue where 404/500 status codes were logged as "[200]" (#9336) 2023-12-06 12:07:52 +00:00