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

8276 commits

Author SHA1 Message Date
Erika
33902e773a
nit: update Node version in issue template (#11143) 2024-05-24 16:17:16 +02:00
Emanuele Stoppa
5af99dc8f1 [ci] format 2024-05-24 13:42:47 +00:00
Emanuele Stoppa
98e0372cfd
feat: pass props to container (#11138) 2024-05-24 14:41:56 +01:00
Erika
aaf0635cc0
fix(upgrade): use preferred-pm instead of which-pm-runs (#11139) 2024-05-24 14:58:51 +02:00
Houston (Bot)
4c7949d1ae
[ci] release (#11132)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-23 12:05:22 -04:00
Matthew Phillips
4bb926908d
Prevent errors from adapters when i18n domains is not used (#11129) 2024-05-23 11:38:07 -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
9566fa0860
Actions: Allow actions to be called on the server (#11088)
* wip: consume async local storage from `defineAction()`

* fix: move async local storage to middleware. It works!

* refactor: remove content-type check on JSON. Not needed

* chore: remove test

* feat: support server action calls

* refactor: parse path keys within getAction

* feat(test): server-side action call

* chore: changeset

* fix: reapply context on detected rewrite

* feat(test): action from server with rewrite

* chore: stray import change

* feat(docs): add endpoints to changeset

* chore: minor -> patch

* fix: move rewrite check to start of middleware

* fix: bad getApiContext() import

---------

Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2024-05-22 12:46:49 -04:00
Sarah Rainsberger
e71348e138
[docs] fix config reference code formatting (#11119) 2024-05-22 10:27:15 -03:00
Sarah Rainsberger
7bfe8aaaa1 [ci] format 2024-05-22 13:05:19 +00:00
Sarah Rainsberger
c7386ef2b3
[docs] update heading level in config reference (#11118) 2024-05-22 10:04:23 -03:00
Sarah Rainsberger
ae42bf38e3 [ci] format 2024-05-22 12:54:52 +00:00
Sarah Rainsberger
5cb68d8126
[docs] updates security.checkOrigin config reference (#11117) 2024-05-22 13:53:58 +01: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
Ben Holmes
a687a17645 [ci] format 2024-05-22 12:08:02 +00:00
Ben Holmes
29a8650375
Actions: restore api context param (#11112)
* feat: expose APIContext from the second handler param

* refactor: use second param from test

* chore: changeset

* edit: minor -> patch

* edit: apiContext -> context

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

* refactor: apiContext -> context

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

* refactor: apiContext -> context

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

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-05-22 08:06:58 -04:00
Emanuele Stoppa
b15949f8fa [ci] format 2024-05-22 11:12:30 +00:00
Emanuele Stoppa
12a1bccc81
feat: container APIs (#11051)
* feat: container APIs

* chore: handle runtime mode

* chore: render slots

* more prototyping

* Adding a changeset

* fix some weirdness around types

* feat: allow to inject the manifest

* feat: accept a manifest

* more APIs

* add `route` to the options

* chore

* fix component instance

* chore: document stuff

* remove commented code

* chore: add test for renderers and fixed its types

* fix: update name of the example

* fix regression inside tests

* use `experimental_`

* remove errors

* need to understand the types here

* remove some options that I don't deem necessary for this phase

* remove superfluous comments

* chore: remove useless `@ts-ignore` directive

* chore: address feedback

* fix regression and remove astro config

* chore: fix regression

* Apply suggestions from code review

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

* ooops

* restore changes

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-05-22 12:11:26 +01:00
Guofeng Lin
a6916e4402
feat: prefer using x-forwarded-for as clientAddress (#11101)
* feat: change node clientAddress use x-forwarded-for

when

```
adapter: node({
    mode: 'standalone',
  })
```

* feat: prefer using x-forwarded-for as clientAddress

* Update .changeset/healthy-planets-dream.md

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

* Update .changeset/healthy-planets-dream.md

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

* Apply suggestions from code review

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-05-22 12:10:56 +01:00
Emanuele Stoppa
2d4c8faa56
feat: make CSRF protection stable (#11021)
* feat: make CSRF protection stable

* revert change

* Apply suggestions from code review

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

* Update packages/astro/src/@types/astro.ts

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

* Update packages/astro/src/@types/astro.ts

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

* beef up changeset

* Update .changeset/chatty-experts-smell.md

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

* Update .changeset/chatty-experts-smell.md

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

* move section

* Apply suggestions from code review

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-05-22 12:10:30 +01:00
Emanuele Stoppa
c30a415986 [ci] format 2024-05-22 11:07:17 +00:00
Emanuele Stoppa
be68ab47e2
feat: make i18n domains stable (#11022)
* feat: make i18n domains stable

* update tst

* Update .changeset/five-crabs-rhyme.md

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

* fix regression

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-05-22 12:06:26 +01:00
Emanuele Stoppa
a3675e5d5e [ci] format 2024-05-22 11:03:40 +00:00
Emanuele Stoppa
6988f1d278
chore: fix missed failing test (#11115) 2024-05-22 12:02:51 +01:00
Emanuele Stoppa
e1884ea6a8 [ci] format 2024-05-22 08:17:53 +00:00
Emanuele Stoppa
05ef10cdc3
chore(db): move tests to node runner (#11109) 2024-05-22 09:16:49 +01: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
Matthew Phillips
f00ecd4596 [ci] format 2024-05-21 21:13:35 +00:00
Matthew Phillips
e14ce5726d
Fix inconsistent results from raw SQL (#11091)
* Fix inconsistent results from raw SQL

* Remove .only

* Fix

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

Co-authored-by: Ben Holmes <hey@bholmes.dev>

---------

Co-authored-by: Ben Holmes <hey@bholmes.dev>
2024-05-21 17:12:39 -04:00
Darius
b78e83f448
prompt for workspace in db link (#11032)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2024-05-21 21:13:56 +02:00
Ben Holmes
8daf2d4cd6 [ci] format 2024-05-21 16:37:47 +00:00
Ben Holmes
a5d79ddeb2
Actions: stop warning about headers usage on prerendered routes (#11111)
* fix: handle GET requests and prerendered routes

* chore: changeset
2024-05-21 12:36:58 -04:00
Xetera
3cc3e2ccba
fix(renderer): omitting internal symbol from mdx props (#10813) 2024-05-21 17:48:19 +02:00
Szymon Chmal
fcd19fb8e2 [ci] format 2024-05-21 11:27:58 +00:00
Szymon Chmal
af42e05520
fix(astro): positioning of inspection tooltip in RTL mode (#11081)
* fix: prevent overlay from going out of the view

* test: add test case for positioning

* chore: add changeset entry

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-05-21 13:27:06 +02:00
Willie Möller
b5f95b2fb1
docs: updated comment from Accept-Header to Accept-Language (#10875)
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-05-21 13:21:18 +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
Martin Trapp
026f50ad2f [ci] format 2024-05-21 10:51:24 +00:00
Martin Trapp
a514bbe992
Makes view transition e2e tests compatible with Firefox (#11093) 2024-05-21 12:50:32 +02:00
Ducky Coding
bfe9c73536
fix type definition of IntrinsicAttributes's slot attribute (#11092) 2024-05-21 12:26:25 +02:00
Ben Holmes
df7e56c9db [ci] format 2024-05-20 19:58:44 +00:00
Ben Holmes
f6b171ed50
fix: set status on error with progressive fallback (#11054)
* fix: set status on error with progressive fallback

* chore: changeset

* fix: obscure statusText in prod

* refactor: use error.name for statusText

---------

Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2024-05-20 15:57:56 -04: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
Matthew Phillips
b41cec6234 [ci] format 2024-05-17 12:06:35 +00:00