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

1835 commits

Author SHA1 Message Date
Emanuele Stoppa
803dd8061d
feat(container): provide a virtual module to load renderers (#11144)
* feat(container): provide a virtual module to load renderers

* address feedback

* chore: restore some default to allow to have PHP prototype working

* Thread through renderers and manifest

* Pass manifest too

* update changeset

* add diff

* Apply suggestions from code review

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

* fix diff

* rebase and update lock

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-06-05 11:39:42 +01:00
Houston (Bot)
587e75f47e
[ci] release (#11158)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-05 09:45:03 +02:00
renovate[bot]
464b0a108e
fix(deps): update all non-major dependencies (#11151)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-05-30 17:28:57 +08:00
Scott Nath
6a93b5379a [ci] format 2024-05-29 20:01:22 +00:00
Scott Nath
cf9b2ff796
🐛 removed deprecated items from lit integration (#11164)
* 🐛 removed deprecated items from lit integration

* 🚀 update minified

* 🐛 need `Document`
2024-05-29 16:00:31 -04:00
Houston (Bot)
50775925f9
[ci] release (#11116)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-23 11:06:20 +01:00
Chris Swithinbank
9a0e94b2e6
Let web vitals route handle all requests under that path (#11120) 2024-05-23 10:45:03 +02:00
Ben Holmes
7be7b1a757 [ci] format 2024-05-22 12:25:50 +00:00
Ben Holmes
8ca7c731de
Actions: React 19 progressive enhancement support (#11071)
* deps: react 19

* feat: react progressive enhancement with useActionState

* refactor: revert old action state implementation

* feat(test): react 19 action with useFormStatus

* fix: remove unused context arg

* fix: wrote actions to wrong test fixture!

* deps: revert react 19 beta to 18 for actions-blog fixture

* chore: remove unused overrides

* chore: remove unused actions export

* chore: spaces vs tabs ugh

* chore: fix conflicting fixture names

* chore: changeset

* chore: bump changeset to minor

* Actions: support React 19 `useActionState()` with progressive enhancement (#11074)

* feat(ex): Like with useActionState

* feat: useActionState progressive enhancement!

* feat: getActionState utility

* chore: revert actions-blog fixture experimentation

* fix: add back actions.ts export

* feat(test): Like with use action state test

* fix: stub form state client-side to avoid hydration error

* fix: bad .safe chaining

* fix: update actionState for client call

* fix: correctly resume form state client side

* refactor: unify and document reactServerActionResult

* feat(test): useActionState assertions

* feat(docs): explain my mess

* refactor: add experimental_ prefix

* refactor: move all react internals to integration

* chore: remove unused getIslandProps

* chore: remove unused imports

* chore: undo format changes

* refactor: get actionResult from middleware directly

* refactor: remove bad result type

* fix: like button disabled timeout

* chore: changeset

* refactor: remove request cloning

* Update .changeset/gentle-windows-enjoy.md

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

* changeset grammar tense

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-05-22 13:24:55 +01:00
Jan-Niklas W
3dd57f69e3 [ci] format 2024-05-22 12:15:39 +00:00
Jan-Niklas W
b92de22d28
feat(vue): add support vue devtools options (#11055)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Jan-Niklas Wortmann <jan-niklas.wortmann@jetbrains.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-05-22 14:14:36 +02:00
Houston (Bot)
9ddd6387a7
[ci] release (#11086)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-22 09:40:11 +02:00
Xetera
3cc3e2ccba
fix(renderer): omitting internal symbol from mdx props (#10813) 2024-05-21 17:48:19 +02:00
Adrian Lyjak
cefeadf0a4
Make status code check more strict for sitemap plugin (#10779)
Co-authored-by: Ben Holmes <hey@bholmes.dev>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-05-21 13:01:35 +02:00
Chris Swithinbank
0dbd8eeb77
Support deprecating Web Vitals table (#11096) 2024-05-20 16:51:02 +02:00
Chris Swithinbank
8e465d621e [ci] format 2024-05-18 14:34:08 +00:00
Chris Swithinbank
3c7a4fabea
Upgrade web-vitals to v4 (#11094) 2024-05-18 16:33:14 +02:00
renovate[bot]
cb2586fa15
fix(deps): update all non-major dependencies (#11015)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-05-13 16:19:23 +08:00
Houston (Bot)
e2cdd3c96b
[ci] release (#10985)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-09 22:40:23 +08:00
Federico Ballarini
4d163811e1
feat(package.json): removed wrong react types (#10986) 2024-05-09 21:34:41 +08:00
Houston (Bot)
770b9f06c3
[ci] release (#10944)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-09 11:06:49 +01:00
renovate[bot]
f9b6f4fc2f
chore(deps): update all non-major dependencies (#10958)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-05-09 15:20:13 +08:00
Florian Lefebvre
562054e8e1 [ci] format 2024-05-08 14:51:02 +00:00
Florian Lefebvre
7179930ac8
feat(solid): add support for devtools (#10937)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-05-08 16:48:17 +02:00
Emanuele Stoppa
f0acd30a12
feat(vercel): skew protection (#10761)
* feat(vercel): skew protection

* feat(vercel): skew protection
2024-05-08 15:05:03 +01:00
Bjorn Lu
ddd8e49d1a
MDX integration v3 (#10935)
* fix(mdx): convert remark-images-to-component plugin to a rehype plugin (#10697)

* Remove fs read for MDX transform (#10866)

* Tag MDX component for faster checks when rendering (#10864)

* Use unified plugin only for MDX transform (#10869)

* Only traverse children and handle mdxJsxTextElement when optimizing (#10885)

* Rename to `optimize.ignoreComponentNames` in MDX (#10884)

* Allow remark/rehype plugins added after mdx to work (#10877)

* Improve MDX optimize with sibling nodes (#10887)

* Improve types in rehype-optimize-static.ts

* Rename `ignoreComponentNames` to `ignoreElementNames`

I think this better reflects what it's actually doing

* Simplify plain MDX nodes in optimize option (#10934)

* Format code

* Minimize diff changes

* Update .changeset/slimy-cobras-end.md

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

---------

Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-05-08 10:25:27 +01:00
Bjorn Lu
685fc22bc6
Improve content collection styles and scripts build perf (#10959)
* Improve content collection styles and scripts build perf

* Update test

It was actually a bug. There was an empty module script injected.

* Skip test

* Fix test not matching non-ccc behaviour

* Workaround bug to make test pass

* Update .changeset/grumpy-pillows-develop.md

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-05-08 10:24:47 +01:00
Matthew Phillips
cceeafb62a [ci] format 2024-05-07 17:13:57 +00:00
Matthew Phillips
d47baa466a
Support React 19 (#10942)
* Support React 19

* Fix lint

* Update .changeset/short-phones-breathe.md

* fix: update types peer dep

---------

Co-authored-by: bholmesdev <hey@bholmes.dev>
2024-05-07 13:13:03 -04:00
Chris Swithinbank
4b693c0476 [ci] format 2024-05-06 20:03:49 +00:00
Chris Swithinbank
e63e96bf32
Import metric table from astro:db (#10947) 2024-05-06 22:02:54 +02:00
Florian Lefebvre
082abb82d5
feat(vue): add support for devtools (#10929)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-05-06 16:02:06 +02:00
Florian Lefebvre
fd508a0fbb
feat(preact): add support for devtools (#10938)
* feat(preact): add support for devtools

* Update little-dryers-stare.md
2024-05-03 15:21:37 -04:00
Jakob Hellermann
3412535be4
fix: don't include port twice from x-forwarded-host and x-forwarded-port headers (#10917)
* fix: don't include port twice from x-forwarded-host and x-forwarded-port headers

* add changeset

* add test for port both in forwarded host and forwarded port

* don't include port if undefined

* Update .changeset/forty-wolves-turn.md

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

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-05-03 15:01:25 -04:00
Houston (Bot)
2dcbcdb857
[ci] release (#10943)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-03 17:55:43 +02:00
Chris Swithinbank
6c603bcc97 [ci] format 2024-05-03 15:41:58 +00:00
Chris Swithinbank
a37d76a42a
Add web-vitals integration (#10883) 2024-05-03 17:40:53 +02:00
Houston (Bot)
9a231a4dd7
[ci] release (#10890)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-02 19:59:20 +08:00
Viktor Szépe
a146cf1012
Fix typos (#10923) 2024-05-01 13:56:38 +08:00
Gabriele Angrisani
fd7a9ed337
fix a deprecated method in react integration using SSR: renderToStaticNodeStream (#10893)
* deprecated method renderToStaticNodeStream

* Create twelve-bulldogs-raise.md

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-04-30 08:01:21 -04:00
renovate[bot]
05d58eff07
fix(deps): update all non-major dependencies (#10901)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-30 12:00:05 +08:00
Houston (Bot)
a94046588c
[ci] release (#10842)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-23 19:30:37 -04:00
Lam
f6bddd3a15
fix: allow redoc to render on react components (#10855)
* fix: removed redoc from noExternal for react

* Add changeset

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2024-04-23 17:29:38 -04:00
Bjorn Lu
d7dff64824 [ci] format 2024-04-23 15:25:25 +00:00
Bjorn Lu
a3e95dbeb0
Move MDX Vite plugin to new file (#10854) 2024-04-23 23:24:34 +08:00
renovate[bot]
8d5f3e8656
chore(deps): update all non-major dependencies (#10833)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-04-22 22:52:30 +08:00
Bjorn Lu
2f4d627815
Refactor MDX postprocess plugin (#10832) 2024-04-22 21:18:27 +08:00
renovate[bot]
68e3b7c59d
chore(deps): update dependency devalue to v5 (#10836)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-22 13:39:43 +08:00
Bjorn Lu
237e17c8fe
Update major deps (#10823) 2024-04-20 00:11:20 +08:00
Houston (Bot)
7fda037b27
[ci] release (#10798)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-18 11:35:39 -04:00