Paolo Ricciuti
1060bea6e1
fix: consider `valueOf` in the reactive methods of `SvelteDate` ( #14227 )
3 months ago
Paolo Ricciuti
f0c2d4c698
fix: account for shadowing children slot during migration ( #14224 )
...
Fixes #14171
3 months ago
Simon H
31e6bbb646
fix: add `lang="ts"` attribute during migration if needed ( #14222 )
...
* fix: add `lang="ts"` attribute during migration if needed
fixes #14219
* fix
3 months ago
Paolo Ricciuti
438de04fb2
fix: add migration task when there's a variable named that would conflict with a rune ( #14216 )
...
Closes #14215
3 months ago
Simon H
870745fc53
fix: handle sibling combinators within `:has` ( #14213 )
...
We didn't collect sibling elements of a given element to then check the `:has` selectors. This adds the logic for that. Fixes #14072
3 months ago
Paolo Ricciuti
53af138d58
fix: read index as a source in legacy keyed each block ( #14208 )
...
Fixes #14203
3 months ago
Paolo Ricciuti
ea0d80e195
fix: consider variables with synthetic store sub as state ( #14195 )
...
Fixes #14183
3 months ago
Simon H
1eed645919
fix: ensure explicit nesting selector is always applied ( #14193 )
...
Previously, we were applying an explicit nesting selector to the start of a relative selector chain only when starting the traversal. Prepending the selector is important because it ensures we traverse upwards to the parent rule when the current selectors all matched and there's still more to do. But we forgot to do the prepend for parent rules, which meant that if we were nested two levels deep, we would stop too early. This fix ensures we prepend in that case, too.
Fixes #14178
3 months ago
github-actions[bot]
d7caf0833c
Version Packages ( #14184 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Paolo Ricciuti
44a833fafe
fix: restore active reaction if then block throws ( #14191 )
3 months ago
Dominic Gannaway
f1aeaf19e5
feat: adds legacy mode flag ( #14180 )
...
* feat: adds legacy mode flag
* feedback
* feedback and tweaks
* feedback and tweaks
* tweaks
* tweaks
* tweaks
* tweaks
3 months ago
Simon H
9b2a8f15fb
fix: ignore `as` type expressions on property definitions ( #14181 )
...
fixes #14179
3 months ago
github-actions[bot]
c49949621b
Version Packages ( #14167 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Simon H
aa23415179
fix: remove scoping for most `:not` selectors ( #14177 )
...
fixes #14168
This reverts the whole "selectors inside `:not` are scoped" logic. Scoping is done so that styles don't bleed. But within `:not`,everything is reversed, which means scoping the selectors now means they are more likely to bleed. That is the opposite of what we want to achieve, therefore we should just leave those selectors alone.
The exception are `:not` selectors with descendant selectors, as that means "look up the tree" and we need to scope all ancestor elements in that case.
3 months ago
Caique Torres
5077061695
fix: issue with implicit public modifier causing undefined properties ( #14153 )
...
closes #14152
3 months ago
github-actions[bot]
ecc9b97a5b
Version Packages ( #14097 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Rich Harris
927319c139
fix: update links in JSDoc ( #14165 )
3 months ago
Gonzalo Ruiz
e6dd871819
fix: ensure migrate keeps inline/trailing comments in $props type definition and produces non-broken code ( #14143 )
...
* feat[sv migrate]: keep inline/trailing comments when migrating export let types to type definition
* test: add tests for inline comment migration
* chore: add changeset
* fix: migrate trailing multiline comment parsing no longer results in broken code, FIXES PR #14143#issuecomment-2455702689
* test: add migrate test with same-line trailing multiline comments and same-line leading multiline comments
* chore: add changeset
* fix: lint
---------
Co-authored-by: Gonzalo Ruiz <rgon@rgon.es>
Co-authored-by: paoloricciuti <ricciutipaolo@gmail.com>
3 months ago
Simon H
7dbe812fc9
fix: ensure non-matching elements are scoped for `:not(...)` selector ( #13999 )
...
If the contents of a `:not` selector don't match, then it's actually a match for `:not` because it's inverted. Therefore, we need to scope such elements. We're also making sure that contents of `:not` that never match actually count as a used (because the result is negated), and as such the contents of `:not` that always match are actually marked as unused.
Fixes #13974
3 months ago
wackbyte
57e27ae90e
fix: only output the key for each_key_duplicate ( #14147 )
...
Fixes #14146
3 months ago
Simon H
551284ca22
fix: correctly infer `<a>` tag namespace ( #14134 )
...
`<a>` tags are valid in both the SVG and HTML namespace. If there's no parent, we therefore have to look downwards to see if it's the parent of a SVG or HTML element.
fixes #7807
fixes #13793
3 months ago
Paolo Ricciuti
8de5605b6a
fix: prevent migrated snippet from shadow snippet prop ( #14127 )
3 months ago
Paolo Ricciuti
74a2c6b580
fix: migrate multiple declarations with only some exported correctly ( #14126 )
3 months ago
Simon H
4ec9986cba
fix: check options namespace for top level `svelte:element`s ( #14101 )
...
We were checking it for nested elements, but not root elements
fixes #13875
3 months ago
Dominic Gannaway
9883e7078c
fix: ensure SvelteMap and SvelteSet work with generators in dev ( #14103 )
...
* fix: ensure SvelteMap and SvelteSet work with generators in dev
* add test
* better fix
* better fix
* better fix
* better fix
3 months ago
Simon H
e7d68d8c10
fix: pass along `anchor` in legacy class wrappers ( #14100 )
...
fixes #13832
3 months ago
Dominic Gannaway
a315a14939
fix: ensure video elements autoplay in safari ( #14095 )
3 months ago
Simon H
7d11fa8da2
fix: recognize all custom element prop definitions ( #14084 )
...
We didn't account for the `$props` rune being writtin in a way that makes some props unknown, and they would only be visible through the `customElement.props` definition. This changes the iteration to account for that and also adds a note to the documentation that you need to list out the properties explicitly.
fixes #13785
3 months ago
github-actions[bot]
cf25930512
Version Packages ( #14081 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Dominic Gannaway
58b1540ddc
fix: ensure transitions are applied to nested elements ( #14080 )
3 months ago
github-actions[bot]
b0d255aefe
Version Packages ( #14075 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Dominic Gannaway
2bdc3d401f
fix: ensure compiler statements are correctly included ( #14074 )
...
Fixes #14068 and fixes #14071
3 months ago
github-actions[bot]
3b38bc2a77
Version Packages ( #14052 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Rich Harris
37049b4171
Revert "feat: migrate `Component` to `ComponentExports<typeof Component>` in …" ( #14070 )
...
This reverts commit 4715dfaad2
.
3 months ago
Rich Harris
2784fb19f3
Revert "feat: add `ComponentExports` utility type ( #13441 )" ( #14069 )
...
This reverts commit d93ad3ba1e
.
3 months ago
Simon H
4f80ab6da6
fix: allow `warningFilter` option for `compileModule` ( #14066 )
...
fixes #14012
3 months ago
Paolo Ricciuti
4715dfaad2
feat: migrate `Component` to `ComponentExports<typeof Component>` in TS ( #13656 )
...
Closes #13491
---------
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
3 months ago
FoHoOV
d93ad3ba1e
feat: add `ComponentExports` utility type ( #13441 )
...
Safer/clearer/backwards/forward-compatibale way to reference them
---------
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
3 months ago
Dominic Gannaway
3999fed4ca
fix: ensure each block inert items are disposed of if the each block is also inert ( #13930 )
...
Fixes #13926
3 months ago
Paolo Ricciuti
e47ee22628
fix: wrap `:id`, `:where``:not` and `:has` with `:global` during migration ( #13850 )
...
Closes #13765
3 months ago
Dominic Gannaway
4a5a0b15d9
fix: ensure onMount correctly fires when new expressions are used ( #14049 )
...
* fix: ensure onMount correctly fires when used externally
* fix root context
* fix root context
* revert
* alternative fix
3 months ago
Dominic Gannaway
cdec39afac
fix: ensure custom element attribute/prop changes are in their own context ( #14016 )
...
Fixes #13848 .
When we set custom element attributes/props, we should be doing so without the current effect/reaction active. Otherwise, the custom element lifecycle might attach effects/dependencies to the wrong reaction and all manner of things can incorrectly occur
---------
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
3 months ago
github-actions[bot]
e78ea1d555
Version Packages ( #14047 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Dominic Gannaway
bce1c4898c
fix: ensure child effects are destroyed before their deriveds ( #14043 )
...
* fix: ensure legacy props cache last value when destroyed
* fix runes
* better approach
* better approach
* kill code
* lint
3 months ago
github-actions[bot]
f519b3d7b7
Version Packages ( #14031 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Rich Harris
4157db94c4
fix: correct typo in compiler error messages ( #14044 )
3 months ago
Ahmad S.
224fcde821
fix: preserve the separator between selectors when an unused selector is in between ( #13954 )
...
fixes #13945
3 months ago
Dominic Gannaway
253d01ec29
fix: ensure element effects are executed in the correct order ( #14038 )
3 months ago
Ben McCann
217e40998a
chore: add changeset and comment ( #14040 )
...
for #14026
3 months ago
Simon H
8a2c97a7b8
fix: extend derived/state validation error to indirect exports ( #14039 )
...
Closes #14029
3 months ago