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

1740 commits

Author SHA1 Message Date
Houston (Bot)
50cc5f01c7
[ci] release (#10597)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-28 14:09:23 -04:00
Houston (Bot)
bb7707e171
[ci] release (#10556)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-26 17:24:02 -04:00
Ming-jun Lu
5f7e9c47e0
fix(sitemap): fix missing base path in sitemap-index.xml (#10557)
* fix(sitemap): fix missing base path in `sitemap-index.xml`

* test(sitemap): update test cases in `base-path.test.js`

* chore: add changeset
2024-03-26 10:11:44 -04:00
Simon Knott
303cacc058 [ci] format 2024-03-26 10:45:08 +00:00
Simon Knott
34fa8e131b
fix: ensure outDir doesn't lead to bundlers bloating Lambda size (#10550)
* fix: ensure outDir doesn't lead to bundlers bloating Lambda size

* add changeset

* Update packages/astro/src/assets/vite-plugin-assets.ts

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

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-03-26 11:44:04 +01:00
Houston (Bot)
fdceed5889
[ci] release (#10503)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-20 20:46:06 +05:30
Arsh
4adcda0e25 [ci] format 2024-03-20 14:34:39 +00:00
Arsh
cfbaa8a767
deprecation(vercel): vercel-edge-middleware.js file (#10476)
* deprecation(vercel): `vercel-edge-middleware.js` file

* add changeset

* `Astro.locals.waitUntil()` -> `Astro.locals.vercel.edge.waitUntil()`

* export edge locals interface
2024-03-20 20:03:17 +05:30
Bjorn Lu
19e42c3681
Pass meta to shiki transformers (#10494) 2024-03-20 19:15:07 +08:00
Houston (Bot)
17b4991cff
[ci] release (#10488)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-20 08:41:00 +00:00
Andrés Correa Casablanca
4268d389fc [ci] format 2024-03-19 15:44:07 +00:00
Andrés Correa Casablanca
28e33a2f9c
fix: do not append trailing slash to subresource urls (#10491)
* fix: do not append traling slash to subresource urls

Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>

* test: fix broken test

Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>

* refactor: packages/integrations/node/src/serve-static.ts

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>

---------

Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-03-19 21:13:08 +05:30
Houston (Bot)
0ddc327ee8
[ci] release (#10471)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-18 22:36:58 +05:30
Arsh
7138aa4678 [ci] format 2024-03-18 14:15:46 +00:00
Arsh
83f9105cd5
fix(node): handle offshoot promise rejections (#10454)
* fix(node): handle offshoot promise rejections

* add test

* add changeset

* Update packages/integrations/node/test/errors.test.js
2024-03-18 19:44:46 +05:30
Houston (Bot)
f92ff40fd3
[ci] release (#10430)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-14 09:01:22 -07:00
Erika
ee07e62942
fix(vue): Add default options to not transform assets (#10419)
* fix(vue): Add default options to not transform assets

* fix: oops merge correctly

* chore: changeset

* nit: address feedback
2024-03-14 09:54:05 +01:00
Emanuele Stoppa
dfd146f591
Revert "[ci] format" (#10417)
* Revert "[ci] format"

This reverts commit 1863727215.

* pin dependency

* update lock
2024-03-13 09:55:24 +00:00
Houston (Bot)
1863727215 [ci] format 2024-03-13 05:53:52 +00:00
Houston (Bot)
b3dbb49058
[ci] update lockfile (#10234)
Co-authored-by: matthewp <matthewp@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-03-13 13:52:42 +08:00
Houston (Bot)
0e074fb390
[ci] release (#10365)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-11 10:25:30 +00:00
Bjorn Lu
9e1ef6f0c9
Fix mdx test fail with rehype-pretty-code (#10370) 2024-03-08 20:39:15 +08:00
Erika
c7edb22b4b [ci] format 2024-03-08 10:58:49 +00:00
Matthew Phillips
9cd84bd19b
Allow islands to be re-rendered with new props on page transition (#10136)
* Allow islands to be re-rendered with new props on page transition

* Adjust the expected styles

* Restore test expectation

* Add changeset and final change

* linting

* Implement transition:persist-props behavior

* Fix lockfile

* Fix expectations

* App is hyrid

* Update .changeset/lovely-nails-cough.md

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

* Update .changeset/lovely-nails-cough.md

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

* Update .changeset/lovely-nails-cough.md

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-03-08 10:54:16 +00:00
Remco Haszing
a31bbd7ff8
fix(markdown): don’t generate mdast html nodes (#10104)
* fix(markdown): don’t generate mdast html nodes

`html` nodes from mdast are converted to `raw` hast nodes. These nodes
are then not processed by proper rehype plugins. Typically if a remark
plugin generates `html` nodes, this indicates it should have actually
been a rehype plugin.

This changes the remark plugins that generate `html` nodes into rehype
nodes. These were `remarkPrism` and `remarkShiki`.

Closes #9909

* Apply suggestions from code review

* refactor(mdx): move user defined rehype plugins after syntax highlighting

* fix(mdx): fix issue in mdx rehype plugin ordering

* docs: explain why html/raw nodes are avoided in changeset

This also includes some hints on what users could do to upgrade of they
rely on these nodes.

* Fix MDX rehype plugin ordering

* refactor(remark): restore remarkPrism and remarkShiki

They aren’t used anymore, but removing would be a breaking change.

* chore: mark deprecated

* Apply suggestions from code review

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

* Update .changeset/thirty-beds-smoke.md

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

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-03-08 10:53:39 +00:00
Houston (Bot)
038201fbae
[ci] release (#10337)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-05 16:58:48 -08:00
Fred K. Schott
f2e60a9675
Revert bad release (#10336)
* Revert "[ci] release (#10332)"

This reverts commit dd3935b31c.

* Revert "[ci] set `--tag` on release (#10323)"

This reverts commit 50215ae731.
2024-03-05 16:47:15 -08:00
Houston (Bot)
dd3935b31c
[ci] release (#10332)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-05 16:26:25 -08:00
Phk
439155c36e [ci] format 2024-03-05 15:22:07 +00:00
Phk
9e76abc58b
fix: fixed an error in the vue component editor (#10293)
* fix: fixed an error in the vue component editor(https://github.com/withastro/language-tools/issues/758)

* chore: format code

* chore: change import path
2024-03-05 15:20:44 +00:00
Florian Lefebvre
29cbb88afd
chore(vercel): update @vercel/nft (#10305)
* chore(vercel): update @vercel/nft

* Update slimy-berries-mate.md
2024-03-05 15:17:35 +00:00
Bjorn Lu
8526ca3967
Update turbo test dependsOn (#10329)
* Update turbo test dependsOn

* Update mdx timeout
2024-03-05 15:16:55 +00:00
Houston (Bot)
2db9031a9f
[ci] release (#10292)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-02 00:42:07 -08:00
Erika
a548a3a99c
fix(markdoc & mdx): Proxy crimes (#10278)
* fix(markdoc & mdx): Proxy cimes

* chore: changeset
2024-03-01 15:48:38 +01:00
Houston (Bot)
87a3d51f2c
[ci] release (#10286)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-01 12:10:51 +00:00
Erika
d5277df5a4
fix(node): Safely create requests (#10285)
* fix(node): Wrap request creation in try catch

* chore: changeset
2024-03-01 10:26:28 +00:00
Houston (Bot)
afd41cc28b
[ci] release (#10265)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-01 10:31:12 +01:00
Satanshu Mishra
df05138ebe [ci] format 2024-03-01 08:33:27 +00:00
Satanshu Mishra
b47dcaa259
fix(node): listen on 0.0.0.0 if server.host is set to true (#10282)
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Kevin Zuniga Cuellar <46791833+kevinzunigacuellar@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-03-01 09:32:22 +01:00
Bjorn Lu
f6fc18cc61
Update Vite to latest (#10259) 2024-02-28 23:20:17 +08:00
Houston (Bot)
e56c428f3b
[ci] release (#10236)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-28 13:17:40 +00:00
Erika
dbb0d0bd28
Fix Svelte editor tooling not working under relaxed TypeScripts projects (#10244)
* fix(svelte): Add TypeScript as a peer dep

* Update .changeset/gold-baboons-drum.md
2024-02-27 16:25:59 +01:00
Emanuele Stoppa
2dd00a0024
chore: import sort source code, exception for the astro package (#10242)
* chore: import sort source code, exception for the `astro` package

* fix import sorting bug

* Update packages/integrations/lit/server.js

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

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-02-27 11:15:27 +00:00
Houston (Bot)
6012163d8f
[ci] release (#10218)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-26 15:33:39 +00:00
Ming-jun Lu
ae2a10e1a7
Fix an issue where Vercel adapter may create functions for prerendered routes (#10231)
* fix: fix an issue where Vercel adapter may create functions for prerendered routes

* test: update test cases in `split.test.js`

* chore: add changeset

* refactor: apply suggested changes from code review

* Apply suggestions from code review

---------

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-02-26 18:58:49 +05:30
前端子鱼
84502b4190
fix: svelte 5 mount/hydrate api change. (#10224) 2024-02-26 16:10:47 +08:00
Houston (Bot)
3de7b2c7ec
[ci] release (#10213)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-23 09:31:55 -05:00
Matthew Phillips
a013182d32
Fixes edge middleware calling nested routes (#10215) 2024-02-23 09:13:10 -05:00
Furkan Erdem
dddbb09fe0 [ci] format 2024-02-23 13:24:45 +00:00
Furkan Erdem
8cd38f0245
Fix(node): Custom headers are not present in responses from standalone Node server in preview mode (#10208)
* fix(node): add user specified headers to preview server responses

* docs: clarify comment

* style: new line

* test: remove test

* chore: add changeset
2024-02-23 08:23:33 -05:00