Commit graph

10 commits

Author SHA1 Message Date
github-actions[bot]
566d39b7fc
ci: Version Packages (#513)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-20 22:05:59 +02:00
kolaworld
f82de5f6d2
fix(svelte-devtools): publish compatible adapter exports (#502)
* fix(svelte-devtools): publish compatible adapter exports

Closes #501

* fix(svelte-devtools): publish Svelte 5 component types

* fix(svelte-devtools): package with Svelte tooling

* refactor(svelte-devtools): reuse package compiler config

* dummy commit

* undo dummy commit

* test: fix timezone-sensitive date assertion and svelte adapter import

Use a local Date so YYYY-MM-DD is stable west of UTC, and import the adapter from its extracted .ts module.
2026-08-20 21:29:28 +02:00
github-actions[bot]
375c58fc15
ci: Version Packages (#512)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-20 12:38:11 +02:00
kolaworld
f1584c7db4
fix(devtools-utils): align Svelte factory contracts (#504)
* fix(devtools-utils): align Svelte factory contracts

Closes #503

* fix(svelte-devtools): replace mounted plugin components

* fix(svelte-devtools): clean up replaced plugin panels

* fix(devtools-utils): own Svelte panel lifecycle

* fix(svelte-devtools): preserve plugin state on updates
2026-08-20 11:22:18 +02:00
github-actions[bot]
71b2ad0bb6
ci: Version Packages (#506)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-19 18:56:50 +02:00
github-actions[bot]
353a635381
ci: Version Packages (#495)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-11 14:50:47 +02:00
github-actions[bot]
f9553f5a88
ci: Version Packages (#486)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-22 14:23:45 +02:00
github-actions[bot]
e0266670c8
ci: Version Packages (#475)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-24 13:21:43 +02:00
github-actions[bot]
da1d7e2826
ci: Version Packages (#473)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-23 11:16:12 +02:00
Alem Tuzlak
d7c5a93710
feat: add Svelte 5 adapter and devtools-utils Svelte factories (#366)
* docs: add Svelte devtools adapter design doc

* docs: add Svelte devtools implementation plan

* feat(svelte-devtools): add Svelte 5 adapter package

* feat(devtools-utils): add Svelte factory functions and build config

* fix: resolve knip issues and update svelte vite plugin to v6

* docs: add Svelte documentation

* chore: add changeset for Svelte adapter

* ci: apply automated fixes

* fix(svelte-devtools): mount once and tear down stale plugin components on update

- Mount the core exactly once: untrack props in the mount $effect so a prop
  change no longer destroys and rebuilds the entire devtools core (the update
  $effect already handles config/plugin changes reactively).
- update() now calls destroyAllComponents() before setConfig(), matching the
  Angular adapter — the core re-invokes render/name for the new plugin set, so
  without this the previous Svelte instances were orphaned and leaked.
- renderComponent() keys mounted components by container.id directly (the core
  always assigns one) instead of an empty-string fallback that could never be
  matched on destroy.
- vite.config: cast svelte() plugin as any, matching the vue/solid configs, to
  satisfy the vite 8 plugin types.

* chore(devtools-utils): add svelte devDependency for the svelte subpath build

The `./svelte` build type-checks svelte-importing source, so svelte must be
resolvable at build time (mirroring vite-plugin-solid for the solid build)
rather than relying on workspace hoisting of the optional peer.

* test(devtools-utils): cover svelte plugin and panel factories

Mirrors the existing solid class factory tests: createSveltePlugin shape +
NoOp behavior, and createSveltePanel mounting/tearing down a class-based core.

* ci: apply automated fixes

* refactor(devtools-utils): make createSveltePlugin generic over component props

Threads a TComponentProps generic through the svelte plugin factory (mirroring
createVuePlugin) so plugin props are type-checked against the component instead
of falling back to `any`. Addresses PR review feedback.

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-23 11:12:54 +02:00