summaryrefslogtreecommitdiff
path: root/packages/integrations/react/server.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-11-25Rename Action query param to _action (#12510)Gravatar Ben Holmes 1-5/+1
* rename _astroAction to _action * changeset
2024-08-09Prevent throwing in react and solid component checks (#11624)Gravatar Bjorn Lu 1-17/+1
2024-08-08update formatter config (#11640)Gravatar Darius 1-1/+1
* update formatter config * format --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-07-30Actions: Make `.safe()` the default return value (#11571)Gravatar Ben Holmes 1-12/+1
* feat: new orThrow types * fix: parens on return type * feat: switch implementation to orThrow() * feat(e2e): update PostComment * fix: remove callSafely from middleware * fix: toString() for actions * fix(e2e): more orThrow updates * feat: remove progressive enhancement from orThrow * fix: remove _astroActionSafe handler from react * feat(e2e): update test to use safe calling * chore: console log * chore: unused import * fix: add rewriting: true to test fixture * fix: correctly throw for server-only actions * chore: changeset * fix: update type tests * fix(test): remove .safe() chain * docs: use "patch" with BREAKING CHANGE notice * docs: clarify react integration in changeset
2024-07-30Actions: New fallback behavior with `action={actions.name}` (#11570)Gravatar Ben Holmes 1-1/+6
* feat: support _astroAction query param * feat(test): _astroAction query param * fix: handle _actions requests from legacy fallback * feat(e2e): new actions pattern on blog test * feat: update React 19 adapter to use query params * fix: remove legacy getApiContext() * feat: ActionQueryStringInvalidError * fix: update error description * feat: ActionQueryStringInvalidError * chore: comment on _actions skip * feat: .queryString property * chore: comment on throw new Error * chore: better guess for "why" on query string * chore: remove console log * chore: changeset * chore: changeset
2024-06-14feat: refine container APIs for renderers (#11251)Gravatar Emanuele Stoppa 1-0/+1
2024-06-13[ci] formatGravatar Emanuele Stoppa 1-1/+0
2024-06-13feat(@astrojs/react): export renderer for easy loading (#11234)Gravatar Emanuele Stoppa 1-0/+1
* wip * feat(@astrojs/react): export `renderer` for easy loading * restore change * chore: address feedback * revert changes * revert changes to react integration * update changeset
2024-05-22[ci] formatGravatar Ben Holmes 1-1/+1
2024-05-22Actions: React 19 progressive enhancement support (#11071)Gravatar Ben Holmes 1-0/+55
* 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-04-30fix a deprecated method in react integration using SSR: ↵Gravatar Gabriele Angrisani 1-33/+3
renderToStaticNodeStream (#10893) * deprecated method renderToStaticNodeStream * Create twelve-bulldogs-raise.md --------- Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-04-17[ci] formatGravatar Emanuele Stoppa 1-1/+1
2024-03-13Revert "[ci] format" (#10417)Gravatar Emanuele Stoppa 1-1/+1
* Revert "[ci] format" This reverts commit 1863727215e87e20c6f5aebe5f9ee0f2783bc788. * pin dependency * update lock
2024-03-13[ci] formatGravatar Houston (Bot) 1-1/+1
2024-02-27chore: import sort source code, exception for the `astro` package (#10242)Gravatar Emanuele Stoppa 1-1/+1
* 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>
2023-12-20[ci] formatGravatar Nate Moore 1-1/+1
2023-12-20Skip `check` for known Qwik components (#9482)Gravatar Nate Moore 1-0/+1
2023-12-18[ci] formatGravatar Ken Powers 1-1/+2
2023-12-18Fix Preact Forwarded Ref components not working in astro files when React ↵Gravatar Ken Powers 1-0/+3
integration is enabled (#9403) * Fix Preact Forwarded Ref components not working in astro files when React integration is enabled * Handle undefined $$typeof * Add changeset * Use Symbol.for * :zap: * Update .changeset/breezy-hairs-yell.md --------- Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-11-16Add compatibility with cloudflare node (#8925)Gravatar brandonsdebt 1-1/+1
2023-10-24Fix client hydration in experimentalReactChildren (#8898)Gravatar Matthew Phillips 1-0/+1
* 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-08-16[ci] formatGravatar matthewp 1-1/+1
2023-08-16Add experimentalReactChildren option to React integration (#8082)Gravatar Matthew Phillips 1-1/+5
* wip: support true react vnodes in renderer * Add new experimentalReactChildren option to React integration * Update the test * Add docs * Update packages/integrations/react/server.js Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update with a better test * Update .changeset/yellow-snakes-jam.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/integrations/react/README.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/integrations/react/README.md 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> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-07-03feat: use typescript-eslint@v6's reworked configs (#7425)Gravatar Josh Goldberg ✨ 1-3/+2
2023-05-17[ci] formatGravatar matthewp 1-2/+2
2023-05-17Prevent removal of nested slots within islands (#7093)Gravatar Matthew Phillips 1-2/+15
* Prevent removal of nested slots within islands * Fix build errors
2023-05-04[ci] formatGravatar ematipico 1-3/+3
2023-05-04Generate unique ids within each React island (#6976)Gravatar Robin Neal 1-10/+21
2023-01-25Support passing `children` as props to a React component (#5886)Gravatar HiDeoo 1-2/+3
2022-10-27remove unnecessary `ReactDOM.renderToString` operation (#5218)Gravatar Happydev 1-1/+0
* remove useless `ReactDOM.renderToString` operation * chore: add changeset
2022-09-20[ci] formatGravatar matthewp 1-1/+1
2022-09-20Prevent errors in React components from crashing the dev server (#4816)Gravatar Matthew Phillips 1-1/+4
* Prevent errors in React components from crashing the dev server * Add a changeset * Fix test when running in the build
2022-09-14[ci] formatGravatar matthewp 1-1/+1
2022-09-14Only pass through children prop if there are children (#4756)Gravatar Matthew Phillips 1-1/+3
2022-09-08[ci] formatGravatar matthewp 1-11/+9
2022-09-08Make React integration work with Deno (#4679)Gravatar Matthew Phillips 1-4/+11
* Remove removed packages folder * fix * Add a changeset
2022-09-07Fix component frameworks on Vercel Edge (#4667)Gravatar Benjamin Holmes 1-7/+20
* fix: use while instead of "for await" in react integration * fix: cast HTML to string to fix other integrations * docs: add comment on encode(String(html)) * chore: changeset Co-authored-by: bholmesdev <hey@bholmes.dev>
2022-08-30Vite ignore unknown import (#4527)Gravatar Bjorn Lu 1-1/+1
2022-06-23[ci] formatGravatar natemoo-re 1-3/+3
2022-06-23Enable named slots in renderers (#3652)Gravatar Nate Moore 1-3/+12
* feat: pass all slots to renderers * refactor: pass `slots` as top-level props * test: add named slot test for frameworks * fix: nested hydration, slots that are not initially rendered * test: add nested-recursive e2e test * fix: render unmatched custom element children * chore: update lockfile * fix: unrendered slots for client:only * fix(lit): ensure lit integration uses new slots API * chore: add changeset * chore: add changesets * fix: lit slots * feat: convert dash-case or snake_case slots to camelCase for JSX * feat: remove tmpl special logic * test: add slot components-in-markdown test * refactor: prefer Object.entries.map() to for/of loop Co-authored-by: Nate Moore <nate@astro.build>
2022-04-21[ci] formatGravatar matthewp 1-23/+26
2022-04-21Fixes using React.lazy and Suspense (#3160)Gravatar Matthew Phillips 1-4/+72
* Revert "Revert "Fixes using React.lazy and Suspense"" This reverts commit e621c2f7d3844e950168f4198e4dd1c6f43031d0. * Adds a changeset * Fix ts errors * Remove netlify metadata folder
2022-04-20Revert "Fixes using React.lazy and Suspense"Gravatar Matthew Phillips 1-72/+4
This reverts commit 700d4f9649b72e98a56586a480e6d3c413cf45f1.
2022-04-20Fixes using React.lazy and SuspenseGravatar unknown 1-4/+72
2022-04-02update prettier width (#2968)Gravatar Fred K. Schott 1-1/+5
2022-03-31Add support for React 18 in @astrojs/react (#2947)Gravatar Fred K. Schott 1-1/+1
* First pass at supporting React 18 in @astrojs/react * Try marking React 18’s `react-dom/client` as external * Try a different approach to importing different React versions * Allow resolving JSON modules * Revert "Allow resolving JSON modules" This reverts commit 5279b7249c52b20fd74fe48f9f1047c9b3a117dc. * Try the separate client entrypoint approach from #2946 * Clean up diff * Trying to see something * Just keep swimming… 🐠 * update to support react 18 * add changeset * add docs Co-authored-by: delucis <swithinbank@gmail.com>
2022-03-18Astro Integration System (#2820)Gravatar Fred K. Schott 1-0/+67
* update examples * add initial integrations * update tests * update astro * update ci * get final tests working * update injectelement todo * update ben code review * respond to final code review feedback