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
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
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
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
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
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
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
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
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
Ducky Coding
bfe9c73536
fix type definition of IntrinsicAttributes's slot attribute ( #11092 )
2024-05-21 12:26:25 +02: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
3c7a4fabea
Upgrade web-vitals
to v4 ( #11094 )
2024-05-18 16:33:14 +02:00
Matthew Phillips
f5c8fee76c
Prevent cache content from being left in dist folder ( #11073 )
2024-05-17 08:05:47 -04:00
Houston (Bot)
8a80221e4c
[ci] release ( #11085 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-17 12:01:27 +01:00
Bjorn Lu
9637014b14
Fix hoisted scripts propagation ( #11084 )
2024-05-17 18:11:32 +08:00
Houston (Bot)
4d32a8077b
[ci] release ( #11053 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-16 18:00:58 +01:00
Matthew Phillips
749a7ac967
Fix streaming in Node.js fast path ( #11058 )
...
* Fix streaming in Node.js fast path
* Create a new next if the iterator is not done
* Use a flag instead
* Update test
* Add new assertion
* Add explanation of the renderingComplete variable
* Remove flaky assertion
2024-05-16 12:36:28 -04:00
Erika
1fec4a6eb9
fix: use astro cli command instead of astro db's ( #11070 )
...
* fix: use astro cli command instead of astro db's
* chore: changeset
2024-05-16 18:10:59 +02:00
Erika
9332bb1c1f
feat: add an internal for now studio package ( #11037 )
...
* feat: add an internal for now studio package
* fix: remove test commands
* fix: use getenvs from studio package
* fix: packagejson
* chore: changeset
* fix: remove unused error
* fix: of course Bjorn was right all along
2024-05-16 18:10:08 +02:00
Emanuele Stoppa
240a70a29f
fix: improve logging for on-demand pages ( #11069 )
2024-05-16 16:13:32 +01:00
Emanuele Stoppa
1f988ed10f
fix(rewrite): match index with params ( #11065 )
...
* fix(rewrite): match index with params
* remove import
2024-05-16 14:52:39 +01:00
Emanuele Stoppa
16f12e426e
fix(i18n): allow to create 404.html and 500.html ( #11062 )
...
* fix(i18n): allow to create 404.html and 500.html
* Update packages/astro/src/i18n/index.ts
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* Update .changeset/lazy-rockets-raise.md
* chore: use better matching
* fix linting
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-05-16 14:43:30 +01:00
n4n5
3a0c02ae03
add error message for svg without dimensions ( #10924 )
...
* add svg
* throw clean error
* add error handling
* revert
* throw clean error
* add changeset
* make it a patch
* Update remoteProbe.ts
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-05-16 12:52:35 +02:00
Elias
a8f0372ea7
Update generator.ts to allow %23 (#) in dynamic urls ( #10965 )
...
* Update generator.ts to allow %23 (#) in dynamic urls
* added changeset
* fix: Update generator.ts to santize url params as well
* fix: sanitizeParams function
* removed old fix
* fix: added test for decoded # and ?
* fix: formatting of file
* sperated sanitizing of generated paths and ssr dynamic paths
* refactor: using map instead
* Update .changeset/mean-geckos-sell.md
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* doc: added JSDoc for sanitizeParams function
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-05-16 09:26:27 +01:00
Florian Lefebvre
a05ca38c2c
fix: conflict between rewrite and actions middleware ( #11052 )
...
* fix: conflict between rewrite and actions middleware
* Update middleware.ts
* fix: short circuit middleware if locals already defined
* chore(test): remove atkinson font refs
* feat(test): progressive fallbacks
* chore: remove unneeded conditional
---------
Co-authored-by: bholmesdev <hey@bholmes.dev>
2024-05-15 12:49:45 -04:00
Houston (Bot)
5a48d53385
[ci] release ( #11025 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-15 10:42:55 -04:00
Ming-jun Lu
841df1f1b1
fix(rss): fix an issue where trailing slash is not removed even if trailingSlash
is set to false
( #11050 )
...
* refactor(createCanonicalURL): return string instead of URL object
* fix(rss): fix an issue where trailing slash is not removed even if `trailingSlash` is set to `false`
* test(rss): update test case related to trailing slash
* chore: add changeset
2024-05-15 15:33:50 +01:00
Bjorn Lu
5f353e39b2
Improve prefetch behaviour for browsers ( #10999 )
2024-05-15 21:11:05 +08:00
Ben Holmes
6cc3fb97ec
Actions: support empty args and empty response ( #11041 )
...
* feat: support empty args and empty response
* chore: changeset
* Update .changeset/many-guests-yell.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-05-15 07:42:04 -04:00
Ben Holmes
d0d1710439
Actions: fix minor type issues in documented example ( #11043 )
...
* fix(docs): add type case for `e.target`, say "Preact" explicitly
* fix(docs): Preact -> React
* chore: changeset
* Update .changeset/dirty-planes-punch.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-05-15 06:45:20 -04:00
HiDeoo
086694ac31
Fix getViteConfig()
type definition ( #11046 )
2024-05-15 09:04:47 +01:00
Ben Holmes
771d1f7654
actions: Throw error on missing server output ( #11028 )
...
* feat: throw error on missing server output
* chore: changeset
* refactor: use isServerLikeOutput
* feat: add errors-data on actions build output
* chore: add jsdoc
2024-05-14 13:29:27 -04:00
molsson
ad9227c7d1
fix(types): Add name attribute to AnchorHTMLAttributes ( #10981 )
...
* fix(types): Add name attribute to AnchorHTMLAttributes
* Create tiny-toys-exist.md
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-05-14 10:52:38 +02:00
Alexander S
2e2d6b7442
fix(astro): refine assets prefix typing ( #11020 )
2024-05-14 16:40:52 +08:00
Argana Phangquestian
5f2dd4518e
fix: add missing attribute popovertargetaction ( #11034 )
...
* fix: add missing attribute popovertargetaction
* add: changeset
2024-05-14 10:38:17 +02:00
Ben Holmes
bd34452a34
Actions: include zod error in message for easier debugging ( #11029 )
...
* refactor: embed zod object in error msg
* chore: changeset
2024-05-13 15:28:48 -04:00
Bjorn Lu
8dfb1a23cc
Fix CSS handling for experimental.directRenderScript ( #11026 )
2024-05-13 14:48:55 -04:00
Ben Holmes
18e7f33ccd
Actions: fix custom error message on client ( #11030 )
...
* feat(test): error throwing on server
* feat: correctly parse custom errors for the client
* feat(test): custom errors on client
* chore: changeset
2024-05-13 14:40:37 -04:00
Ben Holmes
eb1d9a447b
Fix isDbError()
for remote errors ( #11027 )
...
* fix: use LibsqlError for remote db errors
* chore: remove unused drizzle.ts
* fix(test): return expected `error` object
* fix: error detail formatting
* feat(test): error messages with remote adapter
* feat(test): add code to test body
* chore: changeset
2024-05-13 12:20:43 -04:00
Shiina
4ea38e7333
Prevents unhandledrejection error when checking for latest Astro version ( #11013 )
...
* fix: prevent error appear when check latest version fail(#11012 )
* Resolve review problem
2024-05-13 10:07:17 -04:00
Houston (Bot)
18b78ec881
[ci] release ( #11019 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-13 07:29:41 -04:00
Ben Holmes
7418bb054c
Fix: allow locals
access from actions ( #11006 )
...
* fix: move actions middleware to post
* fix(test): user middleware
* chore: changeset
2024-05-13 07:23:52 -04:00
Houston (Bot)
0b8b6f98a2
[ci] release ( #10993 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-09 14:20:24 -04:00