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

8705 commits

Author SHA1 Message Date
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
Bjorn Lu
440a4be0a6
Use tinyexec (#11845) 2024-08-28 22:52:49 +08:00
Bjorn Lu
6272e6cec0
Use magicast for astro add (#11772) 2024-08-28 22:52:32 +08:00
Bjorn Lu
93932432e7
Make directRenderScript the default (#11791)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-08-28 22:50:50 +08:00
Emanuele Stoppa
fe80a2cc0c
test: fix broken e2e test (#11860) 2024-08-28 14:57:20 +01:00
Emanuele Stoppa
cfbf428643 [ci] format 2024-08-28 11:21:37 +00:00
Emanuele Stoppa
cb356a5db6
feat(i18n): expand fallback system (#11677)
* feat(i18n): expand fallback system

* rebase

* apply feedback

* better changeset

* update tests too

* apply feedback

* Update .changeset/blue-pens-divide.md

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

* update docs

* nitpick

* Apply suggestions from code review

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

* Update .changeset/blue-pens-divide.md

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

* Apply suggestions from code review

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

* Update .changeset/blue-pens-divide.md

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

* fix regression

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-08-28 12:16:43 +01:00
Emanuele Stoppa
1c54e63327
feat: add sync variant (#11729)
* feat: add `sync` variant

* fix build

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

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

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-08-28 12:16:06 +01:00
Luiz Ferraz
d6611e8bb0
Add support for LibSQL remote (#11385)
* Add support for remote LibSQL

* Add support for local memory DB

* Add some tests

* Add push support

* Fix switch cascading

* Update .changeset/healthy-boxes-poke.md

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

* Update packages/db/src/runtime/db-client.ts

[skip ci]

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* Use independent env vars for LibSQL and Studio backends

* Expand comment regarding missing table

* Apply suggestions from code review

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-08-28 12:15:33 +01:00
Martin Trapp
3c0ca8d8cc [ci] format 2024-08-28 11:10:37 +00:00
Martin Trapp
62b0d20b97
Extends virtual module astro:transitions/client to export swapFunctions (#11708)
* extend virtual module astro:transitions/client to exports swapFunctions

* use virtual module in e2e tests

* Update .changeset/new-monkeys-sit.md

* Update .changeset/new-monkeys-sit.md

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

* Update new-monkeys-sit.md

* Update swap-functions.ts

restoreFocus() bindings are now returned by saveFocus() and do not make sense anymore as a member of the swapFunctions object

* take over suggestion

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

* Update .changeset/new-monkeys-sit.md

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

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-08-28 12:09:49 +01:00
Phil
cce0894534
feat: support setting timeout for client:idle (#11743)
* feat: support setting timeout for `client:idle`

* tst: add client:idle timeout e2e test

* Update .changeset/clever-emus-roll.md

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

* Update .changeset/clever-emus-roll.md

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

* nit: we wait for times, not values!

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-08-28 12:09:19 +01:00
Houston (Bot)
5af8b4f1cb
[ci] release (#11835)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-28 12:51:43 +02:00
Phil
a2214cedd0 [ci] format 2024-08-28 10:42:23 +00:00
Phil
5f2536b51d
fix: handle preact signals in array correctly (#11834)
* fix: handle preact signals in array correctly

* feat: serialize signals in object
2024-08-28 11:41:35 +01:00
renovate[bot]
26c63a2b07
fix(deps): update all non-major dependencies (#11837)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-28 10:45:45 +01:00
Kevin
4e5cc5aadd
Add base to paginate (#11253)
* add base to `paginate()`

* update tests

* remove condicional cache

* add missing base param

* add missing leading slash in tests

* remove default

* fix: add missing trailing slash in pagination root test

* Add feedback from code review

* add changeset

* rebase and run format code

* Update .changeset/twenty-cobras-push.md

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

* add code diff

* fix rebase

* Apply suggestions from code review

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

* chore: merge next

* update changeset

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-08-28 10:31:32 +01:00
Bjorn Lu
36e6dee475
Remove unused dependencies in next (#11789) 2024-08-28 10:52:41 +08:00
Bjorn Lu
88ef1d0e77
Fix MDX layout style ordering (#11818) 2024-08-28 10:52:13 +08:00