summaryrefslogtreecommitdiff
path: root/packages/integrations/react/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2025-01-24[ci] formatGravatar Arturo Silva 1-3/+10
2025-01-24Adds experimental support for disabling streaming (#13036)Gravatar Arturo Silva 1-5/+22
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> Co-authored-by: Matt Kane <m@mk.gg> Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
2025-01-17Remove react integration ssr.external config (#12996)Gravatar Bjorn Lu 2-4/+0
2025-01-14[ci] formatGravatar Louis Escher 1-3/+7
2025-01-14Add warnings if multiple JSX renderers are used (#12887)Gravatar Louis Escher 1-0/+8
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2025-01-13Remove custom optimizeDeps.include in react integration (#12923)Gravatar Bjorn Lu 1-11/+1
2024-12-16[ci] formatGravatar Cody Olsen 1-1/+1
2024-12-16fix: add support for `react-compiler-runtime` (#12735)Gravatar Cody Olsen 1-0/+1
2024-11-25Rename Action query param to _action (#12510)Gravatar Ben Holmes 1-2/+4
* rename _astroAction to _action * changeset
2024-08-08update formatter config (#11640)Gravatar Darius 2-4/+4
* update formatter config * format --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-07-30Actions: New fallback behavior with `action={actions.name}` (#11570)Gravatar Ben Holmes 1-2/+3
* 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-13[ci] formatGravatar Emanuele Stoppa 1-3/+3
2024-06-13feat(@astrojs/react): export renderer for easy loading (#11234)Gravatar Emanuele Stoppa 2-48/+55
* wip * feat(@astrojs/react): export `renderer` for easy loading * restore change * chore: address feedback * revert changes * revert changes to react integration * update changeset
2024-06-05feat(container): provide a virtual module to load renderers (#11144)Gravatar Emanuele Stoppa 1-1/+14
* 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-05-22Actions: React 19 progressive enhancement support (#11071)Gravatar Ben Holmes 1-0/+101
* 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-07[ci] formatGravatar Matthew Phillips 1-16/+15
2024-05-07Support React 19 (#10942)Gravatar Matthew Phillips 1-19/+48
* Support React 19 * Fix lint * Update .changeset/short-phones-breathe.md * fix: update types peer dep --------- Co-authored-by: bholmesdev <hey@bholmes.dev>
2024-04-23fix: allow redoc to render on react components (#10855)Gravatar Lam 1-1/+0
* fix: removed redoc from noExternal for react * Add changeset --------- Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2024-04-04[ci] formatGravatar fightingcat 1-1/+4
2024-04-04Expose Babel config for @astro/react. (#10675)Gravatar fightingcat 1-3/+5
2024-04-02[ci] formatGravatar Matthew Phillips 1-1/+1
2024-04-02Mark @material-tailwind/react as noExternal (#10654)Gravatar Matthew Phillips 1-0/+1
2023-12-01Fix missing type import from auto format (#9250)Gravatar Bjorn Lu 1-0/+1
2023-11-30[ci] formatGravatar Bjorn Lu 1-1/+0
2023-10-25[ci] update lockfile (#8721)Gravatar Houston (Bot) 1-2/+0
* [ci] update lockfile * fix ts-expect-error issue --------- Co-authored-by: matthewp <matthewp@users.noreply.github.com> Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2023-09-13config: migrate us to moduleResolution: 'node16' (#8519)Gravatar Erika 1-0/+2
2023-09-06[ci] formatGravatar matthewp 1-4/+1
2023-09-06Fix React dev mode using a base (#8428)Gravatar Matthew Phillips 1-3/+2
2023-08-24[ci] formatGravatar matthewp 1-2/+2
2023-08-18[ci] release (beta) (#8073)create-astro@4.0.0-beta.1astro@3.0.0-beta.3@astrojs/vercel@4.0.0-beta.3@astrojs/telemetry@3.0.0-beta.2@astrojs/svelte@4.0.0-beta.1@astrojs/solid-js@3.0.0-beta.2@astrojs/react@3.0.0-beta.3@astrojs/mdx@1.0.0-beta.1@astrojs/cloudflare@7.0.0-beta.2Gravatar Houston (Bot) 1-7/+10
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-17Fix more conflictsGravatar Matthew Phillips 1-12/+8
2023-08-17Merge branch 'main' into nextGravatar Matthew Phillips 1-5/+39
2023-08-16[ci] formatGravatar matthewp 1-11/+11
2023-08-16Add experimentalReactChildren option to React integration (#8082)Gravatar Matthew Phillips 1-3/+33
* 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-08-11[ci] release (beta) (#7952)astro@3.0.0-beta.1@astrojs/vercel@4.0.0-beta.1@astrojs/telemetry@3.0.0-beta.1@astrojs/solid-js@3.0.0-beta.1@astrojs/react@3.0.0-beta.1@astrojs/preact@3.0.0-beta.1@astrojs/netlify@3.0.0-beta.1@astrojs/cloudflare@7.0.0-beta.1Gravatar Houston (Bot) 1-8/+13
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-11JSX refactor (#7924)Gravatar Matthew Phillips 1-28/+16
* JSX refactor * Get preact/compat test to pass * Use include config * Remove old astro flavored markdown test * Move babel dep to preact * Remove errant debugger * Update lockfile * Update the multi-framework example * Update e2e tests * Fix nested-in-vue tests * Add back in astro check * Update packages/astro/src/core/create-vite.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update packages/astro/src/core/create-vite.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update packages/integrations/solid/src/index.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update packages/integrations/solid/src/index.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update .changeset/perfect-horses-tell.md Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Move the comment about the include config * Remove redundant alias config * Use react's own preamble code * Use the base for the preamble * Remove solid redundancy * Update .changeset/perfect-horses-tell.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update based on review comments * Oops --------- Co-authored-by: Fred K. Schott <fkschott@gmail.com> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-01Configure redoc to be noExternal (#6933)Gravatar Matthew Phillips 1-0/+1
2023-03-28Add use-immer as a noExternal module (#6696)Gravatar Matthew Phillips 1-0/+1
2023-03-10fix: Enforce the usage of type imports when possible (#6502)Gravatar Erika 1-1/+1
2022-10-07[ci] formatGravatar matthewp 1-2/+4
2022-10-07Fix suppot for mui (#5016)Gravatar Matthew Phillips 1-0/+4
2022-08-05[ci] formatGravatar matthewp 1-1/+3
2022-08-05Add test for mdx + React usage (#4174)Gravatar Matthew Phillips 1-4/+3
* Add test for mdx + React usage * Add a changeset Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-04-02update prettier width (#2968)Gravatar Fred K. Schott 1-5/+23
2022-03-31[ci] formatGravatar matthewp 1-1/+1
2022-03-31React 18 monorepo upgrade (#2948)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 * update React to React 18 across the board Co-authored-by: delucis <swithinbank@gmail.com> Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-03-31[ci] formatGravatar matthewp 1-1/+1
2022-03-31Add support for React 18 in @astrojs/react (#2947)Gravatar Fred K. Schott 1-6/+11
* 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/+54
* 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