0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
Commit graph

1614 commits

Author SHA1 Message Date
Jacob Lamb
836ab6214e
chore(vercel): Add beta option for status (#9413)
* Add beta option for status

* Create stupid-cheetahs-sell.md

* Add warning for beta

* Update packages/integrations/vercel/src/serverless/adapter.ts

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

* Switch to `minor` and document new API/option

* Update README.md

* Update README.md

* Update packages/integrations/vercel/README.md

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

* Update .changeset/stupid-cheetahs-sell.md

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

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2023-12-13 12:12:48 +00:00
Geoffrey-Pliez
2287ec6667 [ci] format 2023-12-12 19:36:59 +00:00
Geoffrey-Pliez
b0a71946f4
[@astrojs/lit] lit 3.0 compatibility (#8822)
* updates packages

* [Fix] pnpm-lock

* [Fix] updates

* revert dev dependencies

* Update lockfile

* Update lit version in the e2e tests

* Adding changeset

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-12-12 14:35:40 -05:00
Arsh
8aeb0b5797
fix(vercel): handle dots in source path for redirects (#9289)
* add fix

* add test

* add changeset
2023-12-12 03:50:22 +05:30
Houston (Bot)
f47b85ce6f
[ci] release (#9365)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-11 11:57:19 +00:00
Sarah Rainsberger
bebf5cf22d
[docs] Vercel README - update code samples (#9383) 2023-12-08 16:04:54 -06:00
Arsh
9d29ef11f6 [ci] format 2023-12-08 16:26:49 +00:00
Arsh
1e342e34eb
fix(vercel): clear artifacts from redirects (#9287) 2023-12-08 16:25:39 +00:00
Arsh
1b4e918981
chore: update peer dependencies (#9366) 2023-12-07 23:34:14 +08:00
Bjorn Lu
1aa7fe85c1
Allow Svelte 5 render slots as snippets (#9285) 2023-12-07 22:47:04 +08:00
Geoffrey Casper
dfbc707908
Allow async functions in the Vercel edge middleware integration (#9334)
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: lilnasy <69170106+lilnasy@users.noreply.github.com>
2023-12-07 21:43:47 +08:00
Houston (Bot)
3e4109b08f
[ci] release (#9340)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-06 15:09:30 -05:00
Matthew Phillips
1685cc42b5
Define the Vercel adapter's peerDependency (#9348)
* Define the Vercel adapter's peerDependency

* Update .changeset/nasty-carrots-study.md

Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>

---------

Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
2023-12-06 14:58:35 -05:00
Houston (Bot)
895ebcb5bf
[ci] release (#9332)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-05 18:47:22 -06:00
Nate Moore
dd24379f49 [ci] format 2023-12-06 00:39:39 +00:00
Nate Moore
b832cd1901
Vue: Remove hasDefaultExport check from appEntrypoint logic (#9333) 2023-12-05 18:38:29 -06:00
Houston (Bot)
339be4dbff
[ci] release (#9319)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-05 14:55:54 -06:00
Amumu
e83b2feeca [ci] format 2023-12-05 20:08:47 +00:00
Amumu
4d4e34d451
Improve Vue appEntrypoint handling (#8794)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Florian LEFEBVRE <contact@florian-lefebvre.dev>
Co-authored-by: Nate Moore <nate@astro.build>
2023-12-05 14:07:28 -06:00
Houston (Bot)
79e191ae42
[ci] release (#9314)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-05 14:44:51 +00:00
Houston (Bot)
5f13e7e0dc
[ci] release (#9307)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-12-05 09:39:16 -04:00
Matthew Phillips
2e1d6792ab
Downgrade the tailwind integration for Astro 3/4 compat (#9309) 2023-12-05 08:06:52 -05:00
Bjorn Lu
b4f3a8722e
Release markdoc integration as v0.x (#9308) 2023-12-05 07:58:13 -05:00
Erika
4aa8091582
fix: enforce separate type imports (#9288) 2023-12-04 17:56:32 +01:00
Houston (Bot)
023860bded
[ci] release (beta) (#9251)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-01 14:12:49 -05:00
Bjorn Lu
3cbd8ea753
Remove remaining deprecated APIs (#9263)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-12-02 00:59:22 +08:00
Emanuele Stoppa
4f344b8bc7
chore: add test case (#9261)
* chore: add test case

* fix: replace old endpoint way

* Update packages/integrations/sitemap/test/fixtures/static/src/pages/endpoint.json.ts

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

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-12-01 10:54:54 -05:00
Bjorn Lu
d83991ae8b
Remove @astrojs/prefetch integration (#9241) 2023-12-01 10:50:15 -05:00
Bjorn Lu
d8d46ed27e
Fix missing type import from auto format (#9250) 2023-12-01 00:32:22 +08:00
Bjorn Lu
cfa0c454b5 [ci] format 2023-11-30 15:06:09 +00:00
bluwy
05628aaa3c Merge branch 'main' into next 2023-11-30 22:42:29 +08:00
Zach Cardoza
ff8eadb95d
(feat) return updated config in integration hooks (#9013) 2023-11-30 22:28:15 +08:00
Houston (Bot)
c495f1ac17
[ci] release (beta) (#9228)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-29 13:50:18 -05:00
Arsh
49aa215a01
Switch app.render signature (#9199)
* feat(app): app.render optional object

* tests

* update vercel and node

* update changeset

* deprecation notice and loggin

* clarify changeset

* add node, vercel changeset

* deduplicate code
2023-11-29 21:08:42 +05:30
Houston (Bot)
d0d5ff78c9
[ci] release (#9202)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-28 10:07:52 -06:00
Erika
000e8f4654
feat: implement overlay main screen redesign (#9118)
* feat: implement redesign

* fix: make it build

* feat: visual tweaks

* feat(overlay): update styling, integration endpoint

* feat: add fallback icons

* Clean up tests (#9183)

* Add `@astrojs/upgrade` package for automatic package upgrades (#8525)

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

* [ci] format

* fix: links with same path but different search params not prefetched (#9189)

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

* fix: discord icon

* chore: changeset

---------

Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Spencer Whitehead <35475068+SpencerWhitehead7@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-11-28 09:39:38 -05:00
Matthew Phillips
6e0292a1fa [ci] format 2023-11-28 13:48:11 +00:00
Matthew Phillips
8f1d509574
Support immutable cache headers for _astro assets (#9125)
* Support immutable cache headers for _astro assets

* Update .changeset/twelve-fishes-fail.md

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* Update packages/integrations/node/src/http-server.ts

* Update expected max-age

* Add teh docs

* Update .changeset/twelve-fishes-fail.md

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

* Update packages/integrations/node/README.md

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

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-11-28 08:46:26 -05:00
Houston (Bot)
415fec54f8
[ci] release (beta) (#9114)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-27 12:59:31 -05:00
Bjorn Lu
cdabf6ef02
Remove support for simple objects in endpoints (#9181)
* Deprecate simple object from endpoints

* Update changeset

* Add missing Response return

Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com>

* Update .changeset/clever-beds-notice.md

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

---------

Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-11-27 12:51:57 -05:00
Bjorn Lu
153a5abb90
Remove deprecated features from Astro 3.0 (#9168) 2023-11-28 00:44:20 +08:00
Bjorn Lu
328d999999
Clean up tests (#9183) 2023-11-28 00:33:10 +08:00
Bjorn Lu
a145ac07e7
Remove vercel deprecated analytics option (#9184) 2023-11-24 22:00:03 +08:00
bluwy
19fd19f393 Merge branch 'main' into next 2023-11-22 22:37:18 +08:00
Houston (Bot)
ac908b7839
[ci] release (#9155)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-21 16:44:16 -05:00
Arsh
4aca47beca [ci] format 2023-11-21 17:21:41 +00:00
Arsh
af43fb5172
fix(react): make children undefined with experimentalReactChildren (#9141)
* add test script

* make children `undefined` with self-closing tags

* add changeset

* refactor: simplify
2023-11-21 22:49:43 +05:30
Bjorn Lu
abf601233f
Update all dependencies (#9138)
Co-authored-by: delucis <delucis@users.noreply.github.com>
2023-11-21 12:09:19 +08:00
Fred K. Schott
6201bbe96c
Logging rewrite 2 (#9105)
* update logging

add back warning for header access

improve labels and formatting

improve error logging

remove outdated error

fix build

new error messages and hints

new error messages and hints

* walk back error message changes

* fix rebase issues

* add changeset

* Remove accidental log

* revert bad env change

* Update index.ts

* Update packages/astro/src/core/build/index.ts

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-11-18 00:38:54 -08:00
Bjorn Lu
1c48ed2865
Support Vite 5 (#9122) 2023-11-17 22:02:05 +08:00
Houston (Bot)
8366cd7775
[ci] release (#9107)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-16 21:50:47 +08:00
brandonsdebt
ac5633b8f6
Add compatibility with cloudflare node (#8925) 2023-11-16 21:47:46 +08:00
pilcrowOnPaper
1862fb44eb [ci] format 2023-11-15 23:41:21 +00:00
pilcrowOnPaper
c9487138d6
Cancel response stream when connection closes (#9071)
* cancel stream on close

* add changeset

* add test

* Update .changeset/modern-ways-develop.md

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

---------

Co-authored-by: lilnasy <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-11-16 05:09:41 +05:30
Bjorn Lu
6e4dd54cfa [ci] format 2023-11-15 15:42:17 +00:00
Bjorn Lu
a600c14837
Support Svelte 5 (experimental) (#9098)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-11-15 23:40:23 +08:00
Houston (Bot)
e63aac94ca
[ci] release (#9078)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-14 23:20:35 +08:00
bluwy
0aee43fc16 [ci] format 2023-11-14 15:01:58 +00:00
Bjorn Lu
4537ecf0d0
Refactor shikiji syntax highlighting code (#9083) 2023-11-14 23:00:17 +08:00
Emanuele Stoppa
15b84ccb98
fix: regression when calculating params and pattern (#9051)
* fix: regression when calculating params and pattern

* changeset
2023-11-10 13:49:27 +00:00
Houston (Bot)
83c8870684
[ci] release (#9021)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-09 12:49:35 -05:00
Bjorn Lu
38e21d1275
Support prefetch in core (#8951)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-11-08 22:07:18 +08:00
Augustine Kim
23c9a30ad8
Fix Lit integration hydration ordering (#9018)
* Provide renderer instance to `customElementHostStack`

* Add changeset
2023-11-08 08:25:39 -05:00
Houston (Bot)
653ad939ce
[ci] release (#8989)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-08 08:51:24 +01:00
Justinas Delinda
14e586cc77
fix(vue): vue regular script block exports not being recognized inside editor (#8998)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-11-08 08:44:02 +01:00
lilnasy
6e30bdc941 [ci] format 2023-11-07 14:03:45 +00:00
Arsh
754e4fd31c
feat(vercel): streaming (#8879) 2023-11-07 14:01:04 +00:00
Houston (Bot)
4a0fec969f
[ci] release (#8934)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-01 08:23:32 -05:00
Eva Decker
35cd810f0f
chore(deps): Upgrade Zod to @latest (#8762)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-10-30 10:02:59 -05:00
matthewp
15acd86028 [ci] format 2023-10-27 12:14:07 +00:00
Matthew Phillips
c77f55d9c0
Prevent passing slot names as props (#8930)
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Nate Moore <7118177+natemoo-re@users.noreply.github.com>
2023-10-27 08:11:46 -04:00
Florian Lefebvre
e21fef7da2
fix(partytown): allow overriding the lib option (close #8760) (#8892)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-27 17:54:41 +08:00
Luca Di Gianventura
01c801108f
Fix: Markdoc Integration build when root folder contains spaces (#8759)
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2023-10-27 17:45:02 +08:00
Bjorn Lu
ec7f531682
Fix examples smoke test fail (#8923) 2023-10-26 19:13:43 +08:00
Bjorn Lu
c8976440ff
Prevent bumping peer deps (#8893) 2023-10-26 18:07:02 +08:00
Houston (Bot)
28e56309a0
[ci] update lockfile (#8721)
* [ci] update lockfile

* fix ts-expect-error issue

---------

Co-authored-by: matthewp <matthewp@users.noreply.github.com>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2023-10-25 15:00:43 -07:00
Houston (Bot)
a86b41c852
[ci] release (#8895)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-24 12:26:45 -04:00
Remco Haszing
5a3d46da1e
Recommend the VS Code MDX extension (#8897)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-10-24 11:04:59 -05:00
matthewp
48bf7c3de6 [ci] format 2023-10-24 12:07:52 +00:00
Matthew Phillips
4dee38711c
Fix client hydration in experimentalReactChildren (#8898)
* Fix client hydration in experimentalReactChildren

* Add tests

* Add a changeset

* Use recursion instead of walking

* getChildren -> swap order

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-10-24 08:05:19 -04:00
Bjorn Lu
5dd1ed50b2
Prevent Vercel serverless generate static redirect pages (#8896) 2023-10-24 18:26:34 +08:00
ematipico
678ba54056 [ci] format 2023-10-24 07:43:49 +00:00
AndyClifford
73b8d60f8c
feat(markdoc): allowIndentation integration option (#8802) 2023-10-24 08:40:54 +01:00
ematipico
e4ba50162e [ci] format 2023-10-23 10:04:32 +00:00
Arsh
b209e53358
feat(vercel): maxDuration config (#8867)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-23 11:02:23 +01:00
Houston (Bot)
42a83ffcfe
[ci] release (#8861)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-23 17:22:50 +08:00
Kevin Cole
e69f7292d7
Update README.md: Fix incorrect import in example code (#8888) 2023-10-23 17:14:02 +08:00
Bjorn Lu
65c7bd149c
Fix Vue HMR for script tags (#8860) 2023-10-18 21:23:19 +08:00
Houston (Bot)
c6e0d8e1cd
[ci] release (#8848)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-18 13:31:13 +01:00
Eva Decker
edc467d3b0
fix(docs): Update @astrojs/sitemap readme to clarify build output location (#8844)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-10-18 09:58:41 +01:00
bluwy
fc838c5564 [ci] format 2023-10-17 14:46:59 +00:00
Adam McKerlie
10b103820e
Added OUTPUT dir to sitemap build command (#8824) 2023-10-17 22:44:15 +08:00
Houston (Bot)
3468c06f56
[ci] release (#8820)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-17 03:28:33 +05:30
Alexander Niebuhr
84d7c14646
chore(cloudflare): remove adapter (#8758) 2023-10-16 17:42:12 +02:00
Arsh
754c40f6ed
fix(lit): pin last lit 2.x compatible versions (#8826) 2023-10-16 09:53:31 +01:00
Houston (Bot)
6bb69305c9
[ci] release (#8796)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-12 09:43:24 -05:00
natemoo-re
45ae41a457 [ci] format 2023-10-12 14:39:45 +00:00
Arsh
391729686b
fix(middleware): instantiate locals if the adapter does not (#8800) 2023-10-12 09:36:34 -05:00
Bjorn Lu
c4270e4768
Use shikiji (#8502)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-12 00:07:06 +08:00
Alexander Niebuhr
3f231cefed
port https://github.com/withastro/docs/pull/4980 (#8799) 2023-10-11 07:06:20 +02:00