0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-10 22:38:53 -05:00
Commit graph

475 commits

Author SHA1 Message Date
renovate[bot]
cbd056c94c
fix(deps): update all non-major dependencies (#13074)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2025-01-31 14:34:32 +00:00
Houston (Bot)
f6b7839411
[ci] release (#13086)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-30 11:21:41 +00:00
翠 / green
61ef2d9179
chore: upgrade Vite and update tests (#13076)
* chore: upgrade Vite and update tests

* chore: bump vite in other package.json as well

* chore: pnpm dedupe

---------

Co-authored-by: Matt Kane <m@mk.gg>
2025-01-29 19:15:55 +00:00
Houston (Bot)
0a0b1978a7
[ci] release (#12991)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-20 17:16:15 +00:00
renovate[bot]
3357ff6497
fix(deps): update all non-major dependencies (#13008)
* fix(deps): update all non-major dependencies

* chore: lint

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Matt Kane <m@mk.gg>
2025-01-20 15:38:35 +00:00
Matt Kane
cf3088060d
fix: upgrade Vite and update tests (#13011)
* fix: upgrade Vite and update tests

* chore: remove cors header snapshot

* chore: upgrade Vitest

* chore: revert edit

* chore: changeset
2025-01-20 14:52:16 +00:00
Houston (Bot)
0968069aaf
[ci] release (#12978)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-15 14:32:17 +08:00
renovate[bot]
7a0855b264
fix(deps): update all non-major dependencies (#12579)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-13 23:59:09 +08:00
Stefano
3d89e62822
fix: align esbuild to vite (#12361)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2025-01-13 23:19:44 +08:00
Viktor Szépe
cca3bc934c
fix: correct more typos (#12971) 2025-01-13 11:54:09 +08:00
Bjorn Lu
bee7df7409
Add inline mdx component test (#12965) 2025-01-10 22:55:57 +08:00
Houston (Bot)
2f9ba982fe
[ci] release (#12945)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-10 17:24:35 +08:00
Bjorn Lu
3a267f33a2
Revert "Make MDX integration check noop (#12913)" (#12959) 2025-01-10 17:18:37 +08:00
Houston (Bot)
5f16a4c524
[ci] release (#12919)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-09 09:46:30 +00:00
Matt Kane
44841fc281
fix: conditionally import image style (#12925)
* fix: conditionally import image style

* Use wrapper component for conditional style import

* changeset

* Add tests

* Fix tests

* Update markdoc tests

* Lint
2025-01-08 13:24:45 +00:00
Matt Kane
0770810aa4 [ci] format 2025-01-07 17:08:23 +00:00
Matt Kane
aeb7e1ac11
fix(mdx): don't import image component when no images are used (#12921)
* fix(mdx): don't import image component when no images are used

* Fix test

* Fix test
2025-01-07 17:07:33 +00:00
Bjorn Lu
9a3b48c5c3
Make MDX integration check noop (#12913) 2025-01-07 17:30:38 +08:00
Houston (Bot)
5f4c543609
[ci] release (#12790)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-20 12:10:36 +00:00
Matt Kane
739dbfba42
fix(deps): upgrade Vite (#12799) 2024-12-20 12:01:14 +00:00
Houston (Bot)
163cfd67f5
[ci] release (#12650)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-09 16:38:09 +01: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
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
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
Emanuele Stoppa
2da81e53c3 Merge branch 'main' into next 2024-11-27 14:31:09 +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
renovate[bot]
6fc29e3c24
fix(deps): update all non-major dependencies (#12410)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-11-27 16:20:16 +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
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
Emanuele Stoppa
285c6e3598 chore: merge fixes 2024-11-21 12:02:21 +00:00
Bjorn Lu
cec4af8fe5
Add publint checks (#12445) 2024-11-15 23:43:34 +08: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
Bjorn Lu
c280655655
Update to Vite 6.0.0-beta.6 (#12323) 2024-11-06 22:51:55 +08:00
Houston (Bot)
731b69712b
[ci] release (beta) (#12250)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-31 17:07:35 +08:00
bluwy
63b4ab95b9 Merge branch 'main' into next 2024-10-31 16:16:00 +08:00
Houston (Bot)
5f7bf49d38
[ci] release (#12290)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-31 15:56:38 +08:00
renovate[bot]
ecc4402b3a
fix(deps): update all non-major dependencies (#12316)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-28 22:00:15 +08:00
Benjamin MENANT
1d4f6a4989
fix(@astro/mdx): add components property to RenderResult type definition (#12245) 2024-10-25 11:17:23 +01:00
Bjorn Lu
90ae100cf4
Unset charset=utf-8 content-type for md/mdx pages (#12231)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-24 17:13:22 +08:00
Emanuele Stoppa
57dedbf28d Merge branch 'main' into next 2024-10-22 13:16:51 +01:00
renovate[bot]
2edcad1490
fix(deps): update all non-major dependencies (#12266)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-22 13:07:28 +01:00
bluwy
a393154906 Merge branch 'main' into next 2024-10-15 16:19:58 +08:00
renovate[bot]
5ab2d980aa
fix(deps): update all non-major dependencies (#12218)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-10-15 14:42:58 +08:00
bluwy
9fc86e543a Merge branch 'main' into next 2024-10-10 21:28:25 +08:00
Houston (Bot)
582f12e1f6
[ci] release (#12148)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-10 12:21:19 +01:00
Princesseuh
b75758f883
Merge branch 'main' into next 2024-10-07 15:52:21 +02:00
renovate[bot]
fef0b8cce1
fix(deps): update all non-major dependencies (#12140)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-07 17:44:43 +08:00
Matt Kane
abf9a89ac1 Implement legacy collections using glob (#11976)
* feat: support pattern arrays with glob

* wip

* feat: emulate legacy content collections

* Fixes

* Lint

* Correctly handle legacy data

* Fix tests

* Switch flag handling

* Fix warnings

* Add layout warning

* Update fixtures

* More tests!

* Handle empty md files

* Lockfile

* Dedupe name

* Handle data ID unslug

* Fix e2e

* Clean build

* Clean builds in tests

* Test fixes

* Fix test

* Fix typegen

* Fix tests

* Fixture updates

* Test updates

* Update changeset

* Test

* Remove wait in test

* Handle race condition

* Lock

* chore: changes from review

* Handle folders without config

* lint

* Fix test

* Update wording for auto-collections

* Delete legacyId

* Sort another fixture

* Rename flag to `legacy.collections`

* Apply suggestions from code review

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

* Changes from review

* Apply suggestions from code review

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

* lockfile

* lock

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-04 16:13:51 +01:00