Commit graph

17 commits

Author SHA1 Message Date
matthewp
91568bb055 [ci] format 2022-09-20 13:40:04 +00:00
Matthew Phillips
8d059faaed
Prevent errors in React components from crashing the dev server (#4816)
* Prevent errors in React components from crashing the dev server

* Add a changeset

* Fix test when running in the build
2022-09-20 09:38:17 -04:00
matthewp
04daafbbdf [ci] format 2022-09-14 19:44:27 +00:00
Matthew Phillips
c271ed35ee
Only pass through children prop if there are children (#4756) 2022-09-14 15:42:38 -04:00
matthewp
ef7ba4507a [ci] format 2022-09-08 16:32:36 +00:00
Matthew Phillips
5986517b4f
Make React integration work with Deno (#4679)
* Remove removed packages folder

* fix

* Add a changeset
2022-09-08 12:30:49 -04:00
Benjamin Holmes
9290b24143
Fix component frameworks on Vercel Edge (#4667)
* 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-09-07 19:41:37 -04:00
Bjorn Lu
9adb7cca33
Vite ignore unknown import (#4527) 2022-08-30 15:25:34 +08:00
natemoo-re
059d00bd5d [ci] format 2022-06-23 15:12:46 +00:00
Nate Moore
7373d61cdc
Enable named slots in renderers (#3652)
* 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-06-23 10:10:54 -05:00
matthewp
8768f23f95 [ci] format 2022-04-21 16:11:09 +00:00
Matthew Phillips
ae9ac5cbdc
Fixes using React.lazy and Suspense (#3160)
* Revert "Revert "Fixes using React.lazy and Suspense""

This reverts commit e621c2f7d3.

* Adds a changeset

* Fix ts errors

* Remove netlify metadata folder
2022-04-21 12:10:06 -04:00
Matthew Phillips
e621c2f7d3 Revert "Fixes using React.lazy and Suspense"
This reverts commit 700d4f9649.
2022-04-20 17:17:36 -04:00
unknown
700d4f9649 Fixes using React.lazy and Suspense 2022-04-20 17:17:11 -04:00
Fred K. Schott
1335797903
update prettier width (#2968) 2022-04-02 14:15:41 -06:00
Fred K. Schott
57f48b2701
Add support for React 18 in @astrojs/react (#2947)
* 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 5279b7249c.

* 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-31 12:51:29 -04:00
Fred K. Schott
6386c14d00
Astro Integration System (#2820)
* 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
2022-03-18 15:35:45 -07:00