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

4186 commits

Author SHA1 Message Date
Matt Kane
0e4fecbb13
fix: handle uppercase image file extensions (#12623) 2024-12-04 12:34:24 +00:00
kyr0
62939add0b
Remove misleading warning when using a custom renderer (#12461)
* fix: this message adds no value to developers; it checks against a static list of renderers while Astro allows to dynamically add custom  renderers

* feat: added framework-custom example to demonstrate the use of custom renderers with the log message fixed

* chore: changeset added and package lock updated

* chore: fix lint issue, but keeping arguments commented out for reference (real-world use)

* chore: removed the example and updated the changeset accordingly

* test: added fixture and test to prove the new behaviour

* test: removing this specific test since it's only guarding if we ever revert this PR

* Update test

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-12-04 10:29:12 +00:00
Arpan Patel
19b3ac0036
fix(upgrade): verify astro installation before upgrade to prevent false success (#12576) 2024-12-04 15:17:07 +08:00
Houston (Bot)
44af543c0d
[ci] release (#12606)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-03 23:28:40 +01:00
Matt Kane
072492982b
fix: include undefined in types for getEntry with content layer (#12601) 2024-12-03 16:16:42 +00:00
Houston (Bot)
7a02982455
[ci] release (#12595)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-03 13:28:23 +01:00
Kid
92c269b0f0
fix: devtools warnings about dev toolbar form fields (#12590)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-12-03 13:08:30 +01:00
Erika
4f2fd0a0d6
fix: cleanup peer deps ranges (#12594) 2024-12-03 13:07:55 +01:00
Houston (Bot)
fcdd37f684
[ci] release (#12567)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-03 10:56:34 +00:00
Emanuele Stoppa
bc18c3cfe2
chore: exit pre-mode (#12553) 2024-12-03 10:52:51 +00:00
Matt Kane
b731b3de73
fix: make image endpoint highest priority (#12591)
* fix: make image endpoint highest priority

* Use config for endpoint

* Add test
2024-12-03 10:51:34 +00:00
Chris Swithinbank
1dc8f5eb7c
Node 22 housekeeping (#12559) 2024-12-03 00:16:53 +01:00
Wes Souza
07b9ca802e
fix(actions): explicitly import index.ts to fix types when moduleResolution is NodeNext (#12578) 2024-12-02 14:48:01 +00:00
Arpan Patel
b139390deb
fix(upgrade): enhance version comparison by normalizing targetVersion (#12577) 2024-12-02 22:38:05 +08:00
Matt Kane
fa07002352
fix(markdoc): correctly render boolean HTML attributes (#12584) 2024-12-02 14:37:00 +00:00
Adriaan van der Bergh
15f000c3e7
fix: remove value and writable properties from headers descriptor (#12552) 2024-12-02 22:35:11 +08:00
Matt Kane
97f413f118
fix: generate types even without src/content (#12565)
* fix: generate types even without src/content

* chore: add test
2024-11-29 16:02:12 +00:00
Houston (Bot)
218267c0b3
[ci] release (beta) (#12534)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-27 14:34:47 +00:00
Bjorn Lu
827093e617
Drop node 21 support (#12539) 2024-11-27 21:54:00 +08:00
Bjorn Lu
9f440196dc
Update Vite to 6.0.0 (#12524) 2024-11-27 18:00:35 +08:00
Houston (Bot)
a2f90ced77
[ci] release (beta) (#12503)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-26 11:38:33 +00:00
Emanuele Stoppa
c34803205e Merge branch 'main' into next 2024-11-26 11:37:16 +00:00
Emanuele Stoppa
1b61fdf038
refactor(mdx): add entrypoint as full path file (#12533)
Co-authored-by: Princesseuh <3019731+Princesseuh@users.noreply.github.com>
2024-11-26 11:31:32 +00:00
Houston (Bot)
36d8d921db
[ci] release (#12501)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-26 09:03:38 +00:00
Michael Stramel
cb9322c763
fix: handle other elements before the svg element (#12516)
* fix multiple root nodes

* add changeset

* remove conditional

* handle no svg case
2024-11-25 20:27:01 +00:00
Matt Kane
33b0e305fe
fix: allow content config in underscored dir (#12522) 2024-11-25 13:59:31 +00:00
Ben Holmes
14feaf30e1
Rename Action query param to _action (#12510)
* rename _astroAction to _action

* changeset
2024-11-25 08:43:15 +00:00
Michael Stramel
d023682d6c
Fix SVG Component sprite ids (#12511)
* fix: sprite ids per page

* update tests to cover the failed scenario

* add changeset
2024-11-23 09:52:31 +00:00
Matt Kane
a0811758e3 Merge branch 'main' into next 2024-11-22 11:06:44 +00:00
Emanuele Stoppa
b140a3f6d8
fix(routing): don't access Request headers (#12498)
Co-authored-by: ascorbic <213306+ascorbic@users.noreply.github.com>
2024-11-22 10:26:48 +00:00
Houston (Bot)
10beb174e5
[ci] release (beta) (#12491)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-21 11:12:29 -05:00
Matthew Phillips
23dc937435
Merge main into next (#12493)
* [ci] release (#12490)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Update solid version

* update lockfile

* fix vue changelog

---------

Co-authored-by: Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-21 10:51:47 -05:00
Houston (Bot)
3bed8050b9
[ci] release (#12490)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-21 09:47:58 -05:00
Matthew Phillips
dc3d842e4c
Call server island early so it can set headers (#12486)
Add changeset

Proper fix

changeup
2024-11-21 08:00:03 -05:00
Houston (Bot)
a9ce785146
[ci] release (beta) (#12430)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-21 12:45:51 +00:00
Emanuele Stoppa
285c6e3598 chore: merge fixes 2024-11-21 12:02:21 +00:00
Florian Lefebvre
8309c61f0d
feat(next): astro:routes:resolved (#12329)
Co-authored-by: Luiz Ferraz <luiz@lferraz.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-11-21 12:30:49 +01:00
Houston (Bot)
b9c05f45b2
[ci] release (#12452)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-21 11:12:37 +00:00
Eldar Kasmamytov
8a46e8074d
Resolve peer dependency problem in the integration packages (SolidJS, Vue, Svelte, React) (#12481)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
Co-authored-by: bluwy <34116392+bluwy@users.noreply.github.com>
2024-11-21 11:12:00 +00:00
Matt Kane
3f02d5f12b
feat: support new location for content config (#12475)
* feat: support new location for content config

* Test fixes

* Handle missing dir

* Handle missing content dir

* chore: changes from review

* Revert legacy fixtures

* Clarify changeset
2024-11-21 10:45:02 +00:00
Arpan Patel
a23985b021
fix: return correct locale in root 404 and 500 page with i18n (#12365)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-11-21 09:31:17 +00:00
Emanuele Stoppa
28dd3ce522
fix: server island hydration (#12444) 2024-11-20 15:08:26 +00:00
Matt Kane
18a04c008a
chore: better images changeset pt 2 (#12484) 2024-11-20 13:51:45 +00:00
Matt Kane
3f8b0725da
chore: better images changeset (#12483) 2024-11-20 13:12:39 +00:00
Matthew Phillips
c3b7e7cfa1
Remove default throw behavior in astro:env (#12480)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-11-20 11:09:43 +00:00
Michael Stramel
c48916cc4e
feat(astro): add Built-in SVG component support (#12067)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-11-19 16:51:37 +00:00
Emanuele Stoppa
46f6b386b3
fix(build): generated entry (#12477) 2024-11-19 16:12:40 +00:00
Florian Lefebvre
80a9a5299a
fix: content layer glob deletion (#12476) 2024-11-19 16:56:28 +01:00
oliverlynch
25baa4ed0c
Ensure final asset directory exists before writing cached files (#12418)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-11-15 18:25:42 +01:00
Matt Kane
af867f3910
feat: experimental responsive images (#12377)
* chore: changeset

* feat: add experimental responsive images config option (#12378)

* feat: add experimental responsive images config option

* Apply suggestions from code review

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

* Update config types

* Move config into `images`

* Move jsdocs

---------

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

* feat: add responsive image component (#12381)

* feat: add experimental responsive images config option

* Apply suggestions from code review

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

* Update config types

* Move config into `images`

* Move jsdocs

* wip: responsive image component

* Improve srcset logic

* Improve fixture

* Lock

* Update styling

* Fix style prop handling

* Update test (there's an extra style for images now)

* Safely access the src props

* Remove unused export

* Handle priority images

* Consolidate styles

* Update tests

* Comment

* Refactor srcset

* Avoid dupes of original image

* Calculate missing dimensions

* Bugfixes

* Add tests

* Fix test

* Correct order

* Lint

* Fix fspath

* Update test

* Fix test

* Conditional component per flag

* Fix class concatenation

* Remove logger

* Rename helper

* Add comments

* Format

* Fix markdoc tests

* Add test for style tag

---------

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

* feat: add crop support to image services (#12414)

* wip: add crop support to image services

* Add tests

* Strip crop attributes

* Don't upscale

* Format

* Get build working properly

* Changes from review

* Fix jsdoc

* feat: add responsive support to picture component (#12423)

* feat: add responsive support to picture component

* Add picture tests

* Fix test

* Implement own define vars

* Share logic

* Prevent extra astro-* class

* Use dataset scoping

* Revert unit test

* Revert "Fix test"

This reverts commit f9ec6e2938.

* Changes from review

* docs: add docs for responsive images (#12429)

* docs: add responsive images flag docs

* docs: adds jsdoc for image components

* chore: updates from review

* Fix jsdoc

* Changes from review

* Add breakpoints option

* typo

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-11-15 13:29:52 +00:00