Paolo Ricciuti
b6a67e85b4
fix: prevent spread attribute from overriding class directive ( #13763 )
2 months ago
Dominic Gannaway
de609ec34c
fix: ensure $effect.tracking returns false inside transition functions ( #13775 )
2 months ago
Paolo Ricciuti
8ff2af52d3
fix: show filename information in `legacy_recursive_reactive_block` ( #13764 )
2 months ago
Paolo Ricciuti
41d61c7a37
fix: properly migrate ts with inferred type comments ( #13761 )
...
Closes #13747
2 months ago
Paolo Ricciuti
9832c639e5
fix: migrate default slots to children snippet ( #13760 )
...
Closes #13758
2 months ago
Paolo Ricciuti
d1cac703c0
fix: don't print errors on migration errors ( #13754 )
...
makes it look like the migration script failed when in reality you need to update some of your files by hand
2 months ago
github-actions[bot]
ae8f50fd6a
Version Packages ( #13742 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Simon H
a6e416da8c
fix: mark `:has` selectors with multiple preceding selectors as used ( #13750 )
...
Fixes #13717
There are two parts to this:
1. the parent selectors weren't passed along for the check inside `:has`, which in case of a leading combinator would mean it would always count as unused
2. In case if a selector like `x > y:has(z)`, the prior logic would correctly determine that for element `z` there's a match for the `:has` selector, by first checking its contents and then walking up the tree. But after it did that, it would try to walk up the tree once more, which is a) wasteful b) buggy because the tree walking mechanism would no longer be adjusted for the `:has` special case, resulting in false negatives. To fix that, the `:has` will return a new value from the function, signaling that it already fully checked the upper selectors, and so the function calling it will skip doing that.
2 months ago
adiGuba
ad578a5da5
fix: @debug does not work with proxied-state ( #13690 )
...
* fix: @debug must use $state.snapshot() on value
* changeset
* add test
---------
Co-authored-by: Dominic Gannaway <dg@domgan.com>
2 months ago
Simon H
28c8d2b95d
fix: do not comment out unused selectors that are inside an unused selector ( #13746 )
...
fixes #13680
2 months ago
Simon H
2efae794b8
fix: add more robust check for `Element` prototype ( #13744 )
...
fixes #13691
fixes #13414
fixes #13726
2 months ago
Simon H
a08f063b37
fix: more accurately detect `$derived` migration use cases ( #13740 )
...
- detect store mutations and not use `$derived` in that case, fixes #13723
- better detect `let x` that can be folded into `$derived`, fixes #13727
---------
Co-authored-by: ComputerGuy <63362464+Ocean-OS@users.noreply.github.com>
2 months ago
Simon H
8a06d051e8
fix: do not add jsdoc if no types found ( #13738 )
...
fixes #13417
fixes #13724
2 months ago
Dominic Gannaway
be02b7e54c
event_context ( #13737 )
2 months ago
github-actions[bot]
fb052be96e
Version Packages ( #13736 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Simon H
8251bae8db
fix: better children snippet / default slot interop ( #13734 )
...
- correctly assign children snippet to default slot, fixes #13067
- allow `svelte:fragment` without `let:` directives to be rendered by `@render children()`, fixes #13066
2 months ago
Florent BENOIT
d0bfd22bef
fix: webview can contain any string for preload ( #13733 )
...
fixes #13661
2 months ago
github-actions[bot]
41b5cd6f5d
Version Packages ( #13720 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Dominic Gannaway
ed6d7eeb48
wrap-transition-events ( #13719 )
2 months ago
github-actions[bot]
0581e334a0
Version Packages ( #13704 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Paolo Ricciuti
e43176906f
fix: don't blank css on migration error ( #13703 )
2 months ago
github-actions[bot]
c73c683ecd
Version Packages ( #13702 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Paolo Ricciuti
6ad017ffc5
fix: use typedef for JSDoc props and maintain comments ( #13698 )
...
* fix: use typedef for JSDoc props and maintain comments
* chore: add comments
* chore: add extra spaces and delete commented line
2 months ago
pngwn
7691521dc1
major bump - svelte 5 ( #13701 )
2 months ago
github-actions[bot]
0fdfd9c50c
Version Packages (next) ( #13696 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Dominic Gannaway
2ca9a81679
fix: ensure user effects are correctly executed on initialisation ( #13697 )
2 months ago
Dominic Gannaway
ae10f4d37c
breaking: state mutations inside the template are no longer allowed ( #13660 )
...
* breaking: state mutations inside the template are no longer allowed
* fix test
* fix test
* lint
* update error message
* fix test
2 months ago
github-actions[bot]
966a6bda05
Version Packages (next) ( #13695 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Dominic Gannaway
bb491f1229
fix: avoid chromium issue with dispatching blur on element removal ( #13694 )
...
* fix: avoid chromium issue with dispatching blur on element removal
* fix: avoid chromium issue with dispatching blur on element removal
* fix: avoid chromium issue with dispatching blur on element removal
* active effect too
* try/finally
2 months ago
github-actions[bot]
793a8de06e
Version Packages (next) ( #13650 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Paolo Ricciuti
18c5a5ba2d
fix: bail out if slot name changes and $$slots assigned to variable ( #13678 )
2 months ago
Paolo Ricciuti
ab9eeb46fe
fix: migrated snippet shadowing prop and let directive removal ( #13679 )
2 months ago
Dominic Gannaway
894b1c37ad
chore: CompileDiagnostic no longer extends Error ( #13651 )
2 months ago
Dominic Gannaway
61391c8704
fix: ensure migrate correctly handles named slots ( #13676 )
...
* fix: ensure migrate correctly handles named slots
* tweak
* fix
2 months ago
Dominic Gannaway
c9d85c2d52
fix: migrate reactive statements with inner blocks ( #13675 )
2 months ago
Dominic Gannaway
f398929fdd
fix: correct migration of uninitialised state ( #13673 )
...
* fix: correct migration of uninitialised state
* better fix
2 months ago
Paolo Ricciuti
0598f2bbe1
fix: reset `reset_element` in `render` to prevent runtime error ( #13669 )
2 months ago
Paolo Ricciuti
9f930f4e9b
feat: tell users of `@migration-task` ( #13668 )
2 months ago
Paolo Ricciuti
969e6aa750
feat: add `migration-task` for impossible to migrate slots ( #13658 )
...
* feat: add `migration-task` for impossible to migrate slots
* Update packages/svelte/src/compiler/migrate/index.js
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
* Update packages/svelte/tests/migrate/samples/slot-non-identifier/output.svelte
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
* Update packages/svelte/tests/migrate/samples/slot-non-identifier/output.svelte
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
* Update packages/svelte/tests/migrate/samples/slot-non-identifier/output.svelte
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
* Update packages/svelte/tests/migrate/samples/slot-non-identifier/output.svelte
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
---------
Co-authored-by: Dominic Gannaway <trueadm@users.noreply.github.com>
2 months ago
Paolo Ricciuti
0dcd4f6c6e
feat: add `migration-task` comment after errors ( #13659 )
2 months ago
Paolo Ricciuti
b352f08e9d
fix: migrating rest props type includes props types ( #13632 )
...
* fix: rest props type includes props types
* chore: remove extra line
* Update .changeset/spotty-kings-hug.md
2 months ago
github-actions[bot]
d7cf76bbb6
Version Packages (next) ( #13640 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Dominic Gannaway
193cc37f7a
fix: correctly applies autofocus to static elements ( #13648 )
...
* fix: correctly applies autofocus to static elements
* lint
* fix other case
2 months ago
Dominic Gannaway
e21e624fff
chore: avoid reporting inspections when an exception occurs ( #13601 )
...
* chore: avoid reporting inspections when an exception occurs
* add test
* revise
2 months ago
adiGuba
bb245445fc
fix : $.component() break transition ( #13646 )
...
* $.component() must use EFFECT_TRANSPARENT
* changeset
* Update .changeset/eight-pans-worry.md
---------
Co-authored-by: Dominic Gannaway <trueadm@users.noreply.github.com>
2 months ago
Dominic Gannaway
139114bdcb
fix: ensure legacy run utility does not cause cycles ( #13643 )
...
* fix: ensure legacy run utility does not cause cycles
* add warning
* add warning
* lint
* feedback
* lint
* lint
2 months ago
Frédéric Crozatier
ffa2af7549
fix: `method` is case insensitive ( #13639 )
...
* fix method
* changeset
2 months ago
Paolo Ricciuti
372884cf99
fix: use `internal_set` in `await` block ( #13642 )
2 months ago
Paolo Ricciuti
440017d442
fix: better migration for leading and trailing comments ( #13630 )
2 months ago
github-actions[bot]
f579a3ba7d
Version Packages (next) ( #13627 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago