summaryrefslogtreecommitdiff
path: root/packages/integrations/preact/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2025-03-20fix(preact,svelte): empty target container before rendering `client:only` ↵Gravatar Matt Kane 1-5/+11
island (#13470) * fix(preact,svelte): empty target container before rendering `client:only` island * Remove log
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>
2024-12-18Sessions API (#12441)Gravatar Matt Kane 1-1/+0
* wip: experimental sessions * feat: adds session options (#12450) * feat: add session config * chore: add session config docs * Fix * Expand doc * Handle schema * Remove example * Format * Lock * Fix schema * Update packages/astro/src/types/public/config.ts Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/astro/src/types/public/config.ts Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Add link to Sessions RFC in config.ts * Move session into experimental --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Lock * feat: prototype session support (#12471) * feat: add session object * Add tests and fix logic * Fixes * Allow string as cookie option * wip: implement sessions (#12478) * feat: implement sessions * Add middleware * Action middleware test * Support URLs * Remove comment * Changes from review * Update test * Ensure test file is run * ci: changeset base * ci: exit from changeset pre mode * Lockfile * Update base * fix: use virtual import for storage drivers (#12520) * fix: use virtual import for storage drivers * Don't try to resolve anythign in build * Fix test * Polyfill node:url * Handle custom drivers directly * No need for path * Update packages/astro/src/core/session.ts Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> --------- Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * Fix jsdoc * fix: set default storage path * Update changeset config for now * Revert config workaround * Lock * Remove unneeded ts-expect-error directive * fix: [sessions] import storage driver in manifest (#12654) * wip * wip * Export manifest in middleware * Changeset conf * Pass session to edge middleware * Support initial session data * Persist edge session on redirect * Remove middleware-related changes * Refactor * Remove vite plugin * Format * Simplify import * Handle missing config * Handle async resolution * Lockfile * feat(sessions): implement ttl and flash (#12693) * feat(sessions): implement ttl and flash * chore: add unit tests * Make set arg an object * Add more tests * Add test fixtures * Add comment * Remove session.flash for now (#12745) * Changeset * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com> --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
2024-11-27fix(deps): update all non-major dependencies (#12410)Gravatar renovate[bot] 1-0/+1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-09-06[ci] formatGravatar Lukas Bachlechner 1-1/+2
2024-09-06fix: explicitly check for null props in `serializeSignals` (#11930)Gravatar Lukas Bachlechner 1-1/+2
* fix: explicitly check for null props in `serializeSignals` * chore: add changeset
2024-08-28[ci] formatGravatar Phil 2-2/+2
2024-08-28fix: handle preact signals in array correctly (#11834)Gravatar Phil 3-17/+75
* fix: handle preact signals in array correctly * feat: serialize signals in object
2024-08-09Prevent throwing in react and solid component checks (#11624)Gravatar Bjorn Lu 1-11/+9
2024-08-08update formatter config (#11640)Gravatar Darius 4-7/+7
* update formatter config * format --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-08-08chore: bump typescript-eslint to v8 (#11649)Gravatar Josh Goldberg ✨ 1-3/+3
2024-07-17refactor(preact): Drop `preact-ssr-prepass` in favor of ↵Gravatar Ryan Christian 1-4/+2
`renderToStringAsync` (#11464)
2024-06-14feat: refine container APIs for renderers (#11251)Gravatar Emanuele Stoppa 1-2/+5
2024-06-05feat(container): provide a virtual module to load renderers (#11144)Gravatar Emanuele Stoppa 1-1/+8
* 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-03feat(preact): add support for devtools (#10938)Gravatar Florian Lefebvre 1-3/+10
* feat(preact): add support for devtools * Update little-dryers-stare.md
2024-04-01refactor: Drop Preact compat hack, remove incorrect alias (#10585)Gravatar Ryan Christian 1-8/+2
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-02-27chore: import sort source code, exception for the `astro` package (#10242)Gravatar Emanuele Stoppa 2-4/+4
* 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>
2024-02-07Use eslint-plugin-regexp (#9993)Gravatar Bjorn Lu 1-1/+1
2024-01-04[ci] formatGravatar Alex Jet 1-4/+9
2024-01-04feat: add preact-ssr-prepass (#9524)Gravatar Alex Jet 1-19/+18
* feat: add preact-ssr-prepass * added more info to changelog * fix example in changelog * fix changelog description * fix tab in code of changelog * Update .changeset/blue-bobcats-remain.md --------- Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2023-12-27[ci] formatGravatar Houston (Bot) 1-1/+1
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-09-13config: migrate us to moduleResolution: 'node16' (#8519)Gravatar Erika 5-7/+7
2023-08-29[ci] formatGravatar natemoo-re 1-5/+5
2023-08-29Unmount framework components when islands are destroyed (#8264)Gravatar Nate Moore 1-20/+11
* fix(view-transitions): update persistence logic for improved unmount behavior * feat(astro): add `astro:unmount` event * feat(vue): automatically unmount islands * feat(react): automatically unmount islands * feat(react): automatically unmount islands * feat(solid): automatically dispose of islands * feat(svelte): automatically destroy of islands * feat(svelte): automatically destroy of islands * feat(solid): automatically dispose of islands * feat(preact): automatically unmount islands * chore: update changeset * fix: rebase issue * chore: add clarifying comment * chore: remove duplicate changeset * chore: add changeset
2023-08-24[ci] formatGravatar matthewp 1-1/+1
2023-08-23Update non-major dependencies (#8199)Gravatar Bjorn Lu 1-3/+3
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-11/+9
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-11JSX refactor (#7924)Gravatar Matthew Phillips 2-76/+50
* 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-08-09Support Bun by adjusting how `@babel/plugin-transform-react-jsx` is ↵Gravatar dave caruso 1-8/+6
imported. (#8007) * Support bun/other tooling that respects `__esModule` * Add changeset file
2023-07-03feat: use typescript-eslint@v6's reworked configs (#7425)Gravatar Josh Goldberg ✨ 2-4/+2
2023-05-26Fix `astro-static-slot` hydration mismatch error (#7196)Gravatar Bjorn Lu 1-2/+2
2023-05-17[ci] formatGravatar matthewp 2-7/+14
2023-05-17Prevent removal of nested slots within islands (#7093)Gravatar Matthew Phillips 2-7/+28
* Prevent removal of nested slots within islands * Fix build errors
2023-04-13[ci] update lockfile (#6837)Gravatar Houston (Bot) 1-1/+3
* [ci] update lockfile * Fix type errors * Fix zod version * updated lockfile * fix tests --------- Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-03-10fix: Enforce the usage of type imports when possible (#6502)Gravatar Erika 1-1/+1
2023-03-07chore: use directive `@ts-expect-error` instead of `@ts-ignore` (#6429)Gravatar Emanuele Stoppa 1-1/+0
2023-02-13[ci] formatGravatar matthewp 1-5/+9
2023-02-13Prevent hydration mismatches in Preact (#6215)Gravatar Matthew Phillips 1-2/+12
2022-10-10Revert "Revert preact signals support (#4843)" (#5015)Gravatar Matthew Phillips 7-0/+291
This reverts commit 25a5b9a89aee81c87affca64e1682ebc0c553eaf.
2022-09-28Remove shamefully-hoist (#4842)Gravatar Bjorn Lu 1-15/+4
2022-09-22Revert preact signals support (#4843)Gravatar Matthew Phillips 7-291/+0
* Revert "Update preact example to match @astrojs/preact ranges (#4840)" This reverts commit d650a1161a0288f8f2d35ae67771279d067920e9. * Revert "[ci] format" This reverts commit e3c78c5b164c338389c437743ba02a7be64e27fb. * Revert "Support shared signals in Preact islands (#4763)" This reverts commit 5e46be54683592773e6dfc2d33825493886114b0.
2022-09-21[ci] formatGravatar matthewp 6-40/+53
2022-09-21Support shared signals in Preact islands (#4763)Gravatar Matthew Phillips 7-0/+278
* Support signals in Preact islands * Add a changeset * Only add signals if we need them * Refactor signal logic into its own module * Keep track of the signals used
2022-09-07Automatically set up Preact DevTools in dev mode (#4515)Gravatar Marvin Hagemeister 1-7/+8
2022-08-10Fix preact compat support for libraries (#4213)Gravatar Bjorn Lu 1-1/+8
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-06-29[ci] formatGravatar delucis 1-22/+25
2022-06-29Add `preact/compat` support to `@astrojs/preact` (#3712)Gravatar Chris Swithinbank 1-5/+53
* Add preact/compat renderer (likely broken) Based on the current Preact renderer and the old preact/compat implementation: https://github.com/withastro/astro/blob/f892aeb52f5a93d81a68d9833eb26bedd06aa2f0/packages/renderers/renderer-preact/compat/index.js * Make sure name is consistent * Switch to single integration with compat option * fix: add module-resolver to alias react => preact/compat * fix: preact/compat mode * chore: remove client-compat entrypoint * chore: add e2e test for preact/compat * Try to fix frozen lock file error * Add changeset * Update README to new structure & document `compat` * Fix changeset wording * Fix README typo * Tweak wording Co-authored-by: Kevin Zuniga Cuellar <46791833+kevinzunigacuellar@users.noreply.github.com> Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Kevin Zuniga Cuellar <46791833+kevinzunigacuellar@users.noreply.github.com>