0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00
Commit graph

3067 commits

Author SHA1 Message Date
Houston (Bot)
d854330571
[ci] release (#9541)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-02 10:26:33 -05:00
Bjorn Lu
ec71f03cfd
Remove telemetry for unhandled errors (#9571) 2024-01-02 23:14:09 +08:00
Canaris
67e06f9db1
yarn add should be used to install packages instead of yarn install (#9562)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-02 22:52:22 +08:00
Syg
8b873bf1f3
Add 'starlight' to displayed options under 'add' option in CLI (#9559)
* Add 'starlight' to displayed options under 'add' option in CLI

* Create tall-mayflies-deliver.md

* Update tall-mayflies-deliver.md

---------

Co-authored-by: syg <sygint@users.noreply.github.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-01-02 12:12:58 +00:00
Mati
8cc3d6aa46
Implement i18n's getLocaleByPath function (#9504)
* Implement getLocaleByPath function

* Fix param naming in getLocaleByPath function for users

* Add changeset

* Change changeset to patch astro

* Add i18n getLocaleByPath e2e test

* Add astro e2e i18n in pnpm-lock.yaml
2024-01-02 12:08:17 +00:00
Bjorn Lu
9f6453cf49
Document --host and --port flag for preview (#9572) 2024-01-02 17:45:56 +08:00
Michael Thomas
e496b2e3b8
Fix asynchronous appEntrypoint support (#9558) 2024-01-01 15:44:17 +08:00
Bjorn Lu
22f42d11a4
Prevent render ansi in error overlay (#9547) 2023-12-30 18:06:40 +07:00
Bjorn Lu
8049f0cd91
Fix error overlay display on malformed uri (#9548) 2023-12-29 23:52:43 +08:00
Arsh
7b586a6e23
fix(vercel): prevent build failure with node 21 (#9550)
* fix(vercel): prevent build failure with node 21

* add changeset
2023-12-29 21:18:15 +05:30
Arsh
48f47b50a0
fix(node): prevent crash on stream error (#9533)
* fix(node): prevent crash on stream error

* add changeset

* Apply suggestions from code review
2023-12-29 21:17:52 +05:30
Alex Nguyen
ede3f7fef6
Toggle dev toolbar hitbox height when toolbar is visible (#9446)
* Toggle dev toolbar hitbox height when toolbar is visible

* Add hitbox above height const

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2023-12-29 00:59:01 -05:00
Alex Waldron
16e61fcacb
fix: handle srcset local image paths with spaces (#9537)
* fix: handle srcset local image paths with spaces

* replaced janky 'replaceAll' with encodeURI

* Update .changeset/weak-oranges-relate.md

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

* fix: encodeURI the returned filepath directly

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Princesseuh <3019731+Princesseuh@users.noreply.github.com>
2023-12-28 16:23:46 -05:00
Matthew Phillips
7f212f0831
Support remote images with encoded characters (#9540)
* Support remote images with encoded characters

* Add a changeset

* Update .changeset/small-snakes-build.md

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

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2023-12-28 15:08:04 -05:00
Houston (Bot)
98fa8f02ab
[ci] release (#9491)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-27 13:34:07 -05:00
Arsh
89a2a07c2e
fix(content): helpful message for DuplicateContentEntry (#9492)
* helpful message for DuplicateContentEntry

* add changeset
2023-12-27 12:56:42 -05:00
Arsh
7f7a7f1aea
qol(routing): warn when api route method doesn't match the casing of an export (#9497)
* fix(routing): improve messaging for getting the case wrong

* add changeset

* lint: no shadowing

* remove old APIRoute signature

* Apply suggestions from code review

Co-authored-by: Voxel <voxelmc@hotmail.com>

---------

Co-authored-by: Voxel <voxelmc@hotmail.com>
2023-12-27 12:56:10 -05:00
Bjorn Lu
337ca508bd
Forward Svelte client error (#9530) 2023-12-27 12:35:36 -05:00
Bjorn Lu
662f06fd9f
Fix duplicated CSS modules inlining (#9531)
* Fix duplicated CSS modules inlining

* Remove unused mode param
2023-12-27 12:34:59 -05:00
Bjorn Lu
7224809b73
Prevent double uri decoding (#9532) 2023-12-27 12:34:28 -05:00
Bjorn Lu
d252fc61b0
Add tailwindcss nesting support (#9529)
* Add tailwindcss nesting support

* Update lockfile
2023-12-27 12:34:01 -05:00
Nikhil Kothari
cf993bc263
Filter out Svelte's unknown data prop warnings (#9510) 2023-12-27 18:08:20 +08:00
Ming-jun Lu
1469e0e5a9
Prevent dev toolbar tooltip from overflowing (#9512)
* fix: prevent dev toolbar toolip from overflowing

* test: add a test case for dev toolbar toolip position

* Create small-emus-deny.md

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-12-26 12:01:04 -05:00
Martijn van der Ven
bb1438d20d
Add autocomplete to button JSX type (#9522)
* Add autocomplete to button JSX type

This is “nonstandard and Firefox-specific” but often required when working with dynamic disabled state.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#autocomplete

* Run `pnpm exec changeset`
2023-12-25 11:18:42 -05:00
Erika
eb36e95596
feat: export JSX types from jsx-runtime (#9501)
* feat: export JSX types from jsx-runtime

* fix: i wont make the same mistakes three times

* chore: changeset
2023-12-23 02:52:04 -05:00
Erika
3b0eaed3b5
fix(deps): Update Sharp optionalDep version (#9463)
* fix(deps): Update Sharp optionalDep version

* chore: changeset
2023-12-22 10:52:01 +00:00
Sarah Rainsberger
1baf0b0d3c
[docs] minimal integration READMEs (#9479)
Co-authored-by: Emanuele Stoppa <602478+ematipico@users.noreply.github.com>
Co-authored-by: Elian <15145918+ElianCodes@users.noreply.github.com>
Co-authored-by: Alexander Niebuhr <45965090+alexanderniebuhr@users.noreply.github.com>
2023-12-21 16:35:11 -04:00
Arsh
dfef925e1f
chore: improve type fidelity for internal error class (#9478)
* chore: improve type fidelity for internal error class

* add changeset

* simplify

* fix: adjust for new error

---------

Co-authored-by: Princesseuh <3019731+Princesseuh@users.noreply.github.com>
2023-12-21 02:43:50 +05:30
Nate Moore
72b26daf69
Skip check for known Qwik components (#9482) 2023-12-20 12:59:49 -06:00
Houston (Bot)
97342d218e
[ci] release (#9457)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-20 17:39:13 +00:00
Emanuele Stoppa
19169db1f1
chore: smoother logging when building pages (#9487)
* chore: smoother logging when building pages

* chore: improve logging during the build

* fix: put `newLine` top `LogMessage`

* Update .changeset/popular-meals-yell.md

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

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2023-12-20 16:48:06 +00:00
Erika
c384f6924e
fix(a11y): Fix some audit false positives (#9483)
* fix(a11y): Fix some audit false positives

* chore: changeset

* Update packages/astro/src/runtime/client/dev-overlay/plugins/audit/a11y.ts

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* fix: apply feedback

* nit: add comment

---------

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-12-20 10:25:41 -05:00
Martin Trapp
f6714f677c
view transition's form handling honors default prevention (#9486)
* add missing check to honor prevented default

* added changeset

* Update .changeset/fresh-games-confess.md

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

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2023-12-20 14:44:48 +01:00
Ken Powers
5062d27a18
Respect forms with enctype set for view transitions (#9466)
* Respect forms with enctype set for view transitions

* Add changeset

* Revert "Respect forms with enctype set for view transitions"

This reverts commit 6d3e04a959.

* Review feedback

* Handle submitter case

* Move comment

* Update .changeset/rude-geckos-rush.md

* Add tests

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-12-20 13:37:48 +01:00
Florian Lefebvre
e83b5095f1
chore: upgrade vite to latest (close #9443) (#9452)
* chore: upgrade vite to latest

* chore: add changeset

* fix: enforce type

* fix: postcss

* chore: log messages

* fix: take vite re-optimizing message into account

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-12-20 11:54:25 +00:00
Emanuele Stoppa
7ae4928f30
fix: remove the manifest file from the dist/ folder (#9475) 2023-12-19 21:56:46 +00:00
Luiz Ferraz
faf6c7e110
Fix transitions with non-recommended headers (#9464)
* Reproduce edge case in test

* Fix edge case

* Add changeset

* Update .changeset/khaki-ducks-give.md

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

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-12-19 20:59:13 +01:00
Tom MacWright
f515b1421a
Descriptive image error (#9352)
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Princesseuh <3019731+Princesseuh@users.noreply.github.com>
2023-12-19 11:14:58 -05:00
Dawid Kobierski
354a62c86e
fix: handle external hoisted scripts correctly (#9437) 2023-12-19 14:09:06 +00:00
Arsh
5ae6578822
fix(redirects): handle non-verbatim targets (#9089)
* add tests

* implement fix

* add changeset

* `for const in` -> `for const of`

* reskip: external redirects are still not ignored
2023-12-19 13:59:00 +00:00
Alex Nguyen
6bf470cfb8
Fix typo in @astrojs/node README (#9471) 2023-12-19 08:28:43 +00:00
Emanuele Stoppa
fa3078ce9f
fix: handle middleware loading error (#9458)
* fix: handle middleware loading error

* remove the try/catch

* rethrow error

* Update packages/astro/src/core/middleware/loadMiddleware.ts

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>

---------

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2023-12-19 08:28:04 +00:00
Simon Knott
429be8cc3e
fix: update netlify import (#9461)
* fix: update netlify import

* fix: update one comment
2023-12-18 21:41:01 +00:00
Erika
047d285be1
fix(assets): Prevent concurrency from being set to 0 (#9460) 2023-12-18 12:49:54 -05:00
Ken Powers
7eb9fe8a71
Fix Preact Forwarded Ref components not working in astro files when React integration is enabled (#9403)
* Fix Preact Forwarded Ref components not working in astro files when React integration is enabled

* Handle undefined $$typeof

* Add changeset

* Use Symbol.for

* 

* Update .changeset/breezy-hairs-yell.md

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-12-18 13:41:44 +00:00
Bjorn Lu
1e984389ba
Fix import dev toolbar apps on windows (#9400) 2023-12-18 13:41:11 +00:00
Houston (Bot)
8a0def2b6c
[ci] release (#9432)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-15 15:26:00 -06:00
Nate Moore
f963d07f22
Upgrade compiler (#9445) 2023-12-15 14:53:32 -06:00
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