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

8655 commits

Author SHA1 Message Date
Matt Kane
60211defbf
Export the RenderResult type (#11974) 2024-09-12 10:45:11 +01:00
Sarah Rainsberger
7f4e162924
[docs] update legacy collections error messages (again) (#11972) 2024-09-12 06:14:07 -03:00
Florian Lefebvre
74722cb81c
feat(next): reference astro/client from astro/config (#11925) 2024-09-11 14:40:15 +02:00
Erika
518433e433
feat(assets): Allow customising the route of the image endpoint (#11908)
* feat(assets): Allow customizing the route of the image endpoint

* Update packages/astro/src/core/config/schema.ts

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

* feat: use undefined instead of default

* fix: strip param correctly on custom endpoint route

* chore: changeset

* nit: unused import

* fix: other unused import

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-09-11 01:04:16 +02:00
Princesseuh
40760a8ace
Merge branch 'main' into next 2024-09-10 15:01:44 +02:00
Houston (Bot)
a1176a1d93
[ci] release (alpha) (#11954)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-10 08:29:08 -04:00
Matt Kane
4410130df7
fix: add refresh context to schema for loader args (#11960)
* fix: add refresh context to schema for loader args

* fix negative match test
2024-09-10 13:18:18 +01:00
Sarah Rainsberger
f13c357753
[docs] update legacy collections error messages (#11961) 2024-09-10 09:09:43 -03:00
Erika
b6a5f39846
feat: changesets for the hybrid removal (#11941)
* feat: changesets for the hybrid removal

* Update .changeset/afraid-apricots-buy.md

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

* Apply suggestions from code review

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-09-10 11:14:03 +02:00
翠 / green
1c64ae304d [ci] format 2024-09-10 03:12:50 +00:00
翠 / green
8329d17968
fix(css): fix inline query injection for CSS inlining (#11917) 2024-09-10 11:11:57 +08:00
Erika
d7e950f35f
feat(hybrid): Clean logging and misc tweaks for hybrid removal (#11942)
* feat(hybrid): Properly warn on every feature when used in wrong contexts

* fix: smoke tests

* fix: tests
2024-09-09 23:18:32 +02:00
Matt Kane
50a0146e9a
feat: allow arrays of patterns for glob loader (#11952)
* feat: support pattern arrays with glob

* feat: allow arrays of patterns for content layer

* Apply suggestions from code review

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-09-09 17:32:46 +01:00
Houston (Bot)
26dc381f71
[ci] release (alpha) (#11926)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-09 11:09:25 -04:00
Florian Lefebvre
0a269b63e5 fix: changelog 2024-09-09 16:43:51 +02:00
Bjorn Lu
46ea29f91d
Fix build.client and build.server resolve behaviour (#11916)
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-09-09 22:35:34 +08:00
renovate[bot]
b9394fa70c
chore(deps): update all non-major dependencies (#11948)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-09 13:27:54 +08:00
Sarah Rainsberger
fa4671ca28
[error docs] Update error messages that reference src/content/ (#11943) 2024-09-07 16:14:22 -03:00
Erika
50ca656dba
Merge output: hybrid and output: static (#11824)
* feat: merge hybrid and static

* fix: linting

* fix: get a bunch of tests passing

* fix: make forceServerOutput optional

* fix: more tests passing

* fix: http2 test

* fix: CCC

* fix: get unit tests passing

* fix: lint

* fix: vercel

* fix: build

* fix: build

* fix: db tests

* fix: get all normal tests passing

* fix: e2e tests

* refactor: cleanup code

* fix: more tests

* fix: windows

* fix: apply feedback

* perf: do in parallel

* fix: tests

* fix: tests, for real

* fix: make server islands tests server-rendered

* fix: apply feedback

* nit: remove unnecessary file

* fix: test remove test that abuse prerender logic

* fix: ensure image endpoint is there on dev reload
2024-09-07 01:07:09 +02:00
Ben Holmes
7b09c62b56
Actions: add discriminated union support (#11939)
* feat: discriminated union for form validators

* chore: changeset
2024-09-06 16:41:51 -04:00
Houston (Bot)
0d50d7545e
[ci] release (#11936)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-06 12:47:30 -04:00
Matthew Phillips
c0c96452a2 [ci] format 2024-09-06 16:42:29 +00:00
Matthew Phillips
bd1d4aaf82
Allow passing into the crypto key via ASTRO_KEY (#11879)
* Allow passing into the crypto key via ASTRO_KEY

* Add a changeset

* Add test

* Use the node package

* omg

* Create a new create-key command

* linting

* lint again

* Update the changeset
2024-09-06 12:41:39 -04:00
Florian Lefebvre
e55c668b25
chore: changeset minor (#11938) 2024-09-06 15:23:17 +02:00
Florian Lefebvre
7d70ba3178
feat(create-astro): ts-check comment (#11924) 2024-09-06 14:23:02 +02:00
Florian Lefebvre
5b4e3abbb1
feat(next): envField jsdoc (#11927)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-09-06 14:21:27 +02:00
Lukas Bachlechner
4a95159746 [ci] format 2024-09-06 11:27:38 +00:00
Lukas Bachlechner
4a44e82bbd
fix: explicitly check for null props in serializeSignals (#11930)
* fix: explicitly check for null props in `serializeSignals`

* chore: add changeset
2024-09-06 13:26:51 +02:00
Erika
c58193a691
fix(add): Use proper export names when adding adapters (#11935)
* fix(add): Use proper export names when adding adapters

* chore: changeset
2024-09-06 11:38:15 +02:00
Florian Lefebvre
a8a3d2cde8
feat(next): ctx.isPrerendered (#11875) 2024-09-05 16:58:23 +02:00
Houston (Bot)
65bfefb96b
[ci] release (#11909)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-05 03:42:00 +02:00
Gabriel Pereira Woitechen
ca54e3f819
perf(astro/assets): avoid downloading original image when using cache (#11904) 2024-09-04 15:32:03 +02:00
Houston (Bot)
70865b3cdc
[ci] release (alpha) (#11910)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-04 12:44:20 +01:00
Matt Kane
c3dce8363b
Unflag content layer (#11911)
* Unflag content layer

* Lint

* More detailed changeset

* Update .changeset/heavy-seahorses-poke.md

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-09-04 09:40:46 +01:00
Matt Kane
b5d827ba68
Export LoaderContext types (#11914)
* Export data store types

* Format

* Change name again!
2024-09-04 08:16:09 +01:00
Florian Lefebvre
38047119ff
feat(next): better tsconfig (#11859)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-09-03 17:49:09 +02:00
Matthew Phillips
5d7bc70fc3 [ci] format 2024-09-03 13:46:53 +00:00
Matthew Phillips
7ff7134b80
Provide an error message when Actions throws in setup (#11886)
* Provide an error message when Actions throws in setup

* Update .changeset/many-turtles-tie.md

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

---------

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2024-09-03 09:45:57 -04:00
Matt Kane
5a39da87d3 Merge branch 'main' into next 2024-09-03 14:31:29 +01:00
Matt Kane
f69605174b [ci] format 2024-09-03 13:26:33 +00:00
Matt Kane
d63bc50d99
fix: keep data store outside of node_modules during dev (#11902)
* fix: don't keep data store in node_modules during dev

* Lint

* Fix test

* Wait for data store

* Use helper for data store file

* Fix data store file helper

* Lint

* Handle case where Vite already knows about save
2024-09-03 14:25:45 +01:00
Luiz Ferraz
5705200398 [ci] format 2024-09-03 12:54:20 +00:00
Luiz Ferraz
cc820c5d5e
Fix mixed DB token env vars (#11894)
* Fix mixed DB token env vars

* Test env combinations

* Fix linter issues

* Fix linter issues

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-09-03 14:53:29 +02:00
Houston (Bot)
da473ec0aa
[ci] release (alpha) (#11903)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-03 12:52:02 +01:00
Matt Kane
334948ced2
feat: allow integrations to refresh content layer data (#11878)
* Allow integrations to refresh content layer data

This reverts commit 90a862fc94.

* Add test

* Add changeset

* Add wait in test

* Dispose of queue

* Skip if no content layer collections

* Use spaces in markdown

* fix: don't keep data store in node_modules during dev

* Lint

* Fix test

* Apply suggestions from code review

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

* Re-order tests

* Wait for data store

* Lint

* Handle case where Vite already knows about save

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-09-03 12:44:57 +01:00
Matt Kane
4563ffcd89 Fix merge 2024-09-02 17:52:26 +01:00
Matt Kane
a1d78b75aa Merge branch 'main' into next 2024-09-02 17:40:53 +01:00
Bjorn Lu
3ab3b4efbc
Clean up Astro metadata in vfile.data (#11861)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-09-02 21:43:34 +08:00
Bjorn Lu
2bdde80cd3
Set external: true when loading astro config (#11819)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-09-02 21:22:54 +08:00
Bjorn Lu
cd542109ba
Remove unused types (#11895) 2024-09-02 21:14:57 +08:00