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

8623 commits

Author SHA1 Message Date
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
Florian Lefebvre
5b4e3abbb1
feat(next): envField jsdoc (#11927)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-09-06 14:21:27 +02:00
Florian Lefebvre
a8a3d2cde8
feat(next): ctx.isPrerendered (#11875) 2024-09-05 16:58:23 +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
Matt Kane
5a39da87d3 Merge branch 'main' into next 2024-09-03 14:31:29 +01: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
Bjorn Lu
560ef15ad2
Refactor createShikiHighlighter (#11825)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-09-02 21:08:25 +08:00
Bjorn Lu
19751df887
Fix examples version update for removed packages (#11901) 2024-09-02 21:00:49 +08:00
renovate[bot]
8a1abcfd9d
fix(deps): update dependency vitefu to v1 (#11899)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-02 19:34:29 +08:00
Houston (Bot)
60d8e30008
[ci] release (#11883)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-02 13:19:39 +02:00
Chris Swithinbank
80b4a181a0
Fix user-facing type for i18n.routing.fallbackType (#11900) 2024-09-02 13:01:38 +02:00
Erika
39d330f6f2
docs: rework docs around errors (#11802)
* docs: rework docs around errors

* Update packages/astro/src/core/errors/README.md

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

* docs: expand deprecation description

---------

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2024-09-02 11:43:19 +02:00
renovate[bot]
645f4e21a7
fix(deps): update all non-major dependencies (#11896) 2024-09-02 10:54:53 +08:00
Matt Kane
e45070459f
fix: separate image extraction from schema parsing in content layer (#11884)
* fix: separate image extraction from schema parsing in content layer

* rm unused imports
2024-09-01 10:05:43 +01:00
bluwy
edd8ae9084 Remove unused babel dependencies
https://github.com/withastro/astro/pull/11789 got lost
2024-09-01 02:03:17 +08:00
Houston (Bot)
534d3edff8
[ci] release (alpha) (#11853)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-30 16:12:25 -04:00
Alexander Niebuhr
11ebf3bd15
chore: move node and vercel to adapters repo (#11866) 2024-08-30 19:43:43 +02:00
Armand Philippot
8e5257adda
docs(i18n): fix typo in fallbackType JSDoc comment (#11870) 2024-08-30 09:45:31 +01:00
Sarah Rainsberger
01b48a466e
[docs] formatting for config ref docs (#11876) 2024-08-29 14:00:40 -03:00
Houston (Bot)
21747e9eae
[ci] release (#11871)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-29 23:28:48 +08:00
Bjorn Lu
9327d56755
Use default import in astro add (#11872) 2024-08-29 23:05:16 +08:00
Emanuele Stoppa
342b9a9fd1
test: fix regression (#11873)
* test: fix regression

* lock file
2024-08-29 16:00:38 +01:00
Matt Kane
e311cc02f3 Merge branch 'main' into next 2024-08-29 15:35:37 +01:00
Matt Kane
d1bd1a11f7
Moves content layer sync to a queue and support selective sync (#11767)
* wip: allow integrations to refresh contel layer

* Use queue for sync jobs

* Remove integration-specific code

* Fix type

* changeset
2024-08-29 15:22:40 +01:00
Princesseuh
96a6aecbc5
fix: type imports in actions 2024-08-29 15:27:02 +02:00
Princesseuh
8ce54b5d6a
fix: remove type for directRenderScript 2024-08-29 15:22:46 +02:00
Princesseuh
027b8398f7
Merge branch 'main' into next 2024-08-29 15:22:24 +02:00
Houston (Bot)
17f71278f4
[ci] release (#11857)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-29 13:50:49 +02:00
Erika
9da5b3dab2
fix: syntax error in changelog (#11869) 2024-08-29 13:48:51 +02:00
Erika
a85a184d9f
fix: separate changelogs for Astro 1 into a separate package (#11868) 2024-08-29 13:27:15 +02:00
Ben Holmes
4215d6ef67 [ci] format 2024-08-29 10:14:41 +00:00
Ben Holmes
5b4070efef
Actions stable release (#11843)
* feat: baseline experimental actions

* feat(test): remove experimental config

* feat: remove getActionProps()

* feat: make actions file non-break

* feat: detect actions usage

* chore: changeset

* feat: improve actions usage check

* refactor: remove define action symbol now that we check server exp

* fix: remove old import

* chore: move actionsIntegration to top import

* fix: warn only when actions are used

* fix: srcDir check

* refactor: split out action plugins to simplify integration

* feat: new integration and plugins

* chore: update error hints

* fix(test): pass default src dir

* feat: add ActionNotFoundError

* fix: handle json parse errors in deserializer

* chore: unused import

* 500 -> 404

* New `astro:schema` module (#11810)

* feat: expose zod from astro:schema

* chore: changeset

* chore: update release strategy in changeset

* fix: move deprecated notice to type def

* fix: update config doc reference

* chore: remove z from astro:actions

* edit: changeset with minor release note remove

* wip: increase button click timeouts

* Revert "wip: increase button click timeouts"

This reverts commit a870bc2dc4bdfd77b8b4fc54b62d8bde01d20c14.

* chore: remove content collections disclaimer

* fix: undo biome change

* agh tabs

* agh newlines

* fix: bad docs merge

* wip: add back timeout extension

* fix(test): astro schema import

* refactor: move static output error to config done

* refactor: usesActions -> isActionsFilePresent

* fix: check whether startup and current value disagree

* chore: unused import

* edit: sell actions a little more

* changeset nit

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-08-29 11:13:49 +01:00
Emanuele Stoppa
3eeaf6bdeb
refactor: Astro.routePattern is RouteData.route (#11867) 2024-08-29 08:46:51 +01:00
Matt Kane
8bab233937
fix: resolve content layer images without filePath set (#11858) 2024-08-28 21:02:08 +01:00
Matt Kane
0e35afe44f
fix: pass config instead of settings to content layer loaders (#11862)
* fix: pass config instead of settings to content layer loaders

* lint

* changes to changeset from review
2024-08-28 17:05:56 +01:00
Princesseuh
c7a2ded2eb
fix: some merge issues 2024-08-28 17:28:54 +02:00
Princesseuh
68601a9549
Merge branch 'main' into next 2024-08-28 17:25:13 +02:00
Bjorn Lu
26893f9a35 [ci] format 2024-08-28 14:53:43 +00:00