Rich Harris
ffbd5c971e
docs: fix runtime-warnings page ( #14077 )
...
* fix runtime-warnings page
* fix
2 months ago
Rich Harris
e58c03b100
add link to sync-docs README ( #14056 )
2 months ago
Rich Harris
9cd476881d
fix props docs ( #14079 )
2 months ago
Dominic Gannaway
58b1540ddc
fix: ensure transitions are applied to nested elements ( #14080 )
2 months ago
Rich Harris
0ed914b2e5
docs: improve lazy import example ( #14076 )
...
* docs: improve lazy import example
* Update documentation/docs/03-template-syntax/05-await.md
2 months ago
github-actions[bot]
b0d255aefe
Version Packages ( #14075 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Dominic Gannaway
2bdc3d401f
fix: ensure compiler statements are correctly included ( #14074 )
...
Fixes #14068 and fixes #14071
2 months ago
github-actions[bot]
3b38bc2a77
Version Packages ( #14052 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Rich Harris
37049b4171
Revert "feat: migrate `Component` to `ComponentExports<typeof Component>` in …" ( #14070 )
...
This reverts commit 4715dfaad2
.
2 months ago
Rich Harris
2784fb19f3
Revert "feat: add `ComponentExports` utility type ( #13441 )" ( #14069 )
...
This reverts commit d93ad3ba1e
.
2 months ago
Simon H
4f80ab6da6
fix: allow `warningFilter` option for `compileModule` ( #14066 )
...
fixes #14012
2 months ago
Abu
ca58039e3e
docs: fix type ( #14064 )
...
this slot name should be `footer` instead it was `header`
2 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>
2 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>
2 months ago
Dominic Gannaway
3999fed4ca
fix: ensure each block inert items are disposed of if the each block is also inert ( #13930 )
...
Fixes #13926
2 months ago
Paolo Ricciuti
e47ee22628
fix: wrap `:id`, `:where``:not` and `:has` with `:global` during migration ( #13850 )
...
Closes #13765
2 months ago
Bernie Sumption
217ef2062d
docs: clarify when prop values are deeply reactive ( #13994 )
...
* Update $props documentation to clarify when prop values are deeply reactive
* Update 05-$props.md
* Apply suggestions from code review
* drive-by-fixes
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2 months ago
Devr
6a1b5dd004
docs : add an example of using dynamic components ( #13993 )
...
Closes #13990
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2 months ago
Rich Harris
6b6445a934
add parameters to `in:fly` ( #14057 )
...
Without a `y` value, `fly` is indistinguishable from `fade`
2 months ago
gubo97000
0efe031edc
Update 07-$inspect.md ( #14048 )
...
moved note to top
2 months ago
Dave Snider
ee2f4a209b
docs: Update in and out docs to show the imports ( #14050 )
...
* Update in and out docs to show the imports
* Apply suggestions from code review
---------
Co-authored-by: Rich Harris <hello@rich-harris.dev>
2 months ago
Rich Harris
dc3c82cb2d
chore: add sync request workflow ( #14055 )
2 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
2 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>
2 months ago
Rich Harris
4c6255f8dd
chore: remove unnecessary ternary ( #14045 )
2 months ago
github-actions[bot]
e78ea1d555
Version Packages ( #14047 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 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
2 months ago
github-actions[bot]
f519b3d7b7
Version Packages ( #14031 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Rich Harris
4157db94c4
fix: correct typo in compiler error messages ( #14044 )
2 months ago
Ahmad S.
224fcde821
fix: preserve the separator between selectors when an unused selector is in between ( #13954 )
...
fixes #13945
2 months ago
Dominic Gannaway
253d01ec29
fix: ensure element effects are executed in the correct order ( #14038 )
2 months ago
Conduitry
3fe278a8c3
chore: remove xml2js override ( #14041 )
2 months ago
Conduitry
6ad8240464
docs: fix various typos in reference docs ( #14011 )
...
* docs: fix note about $derived
* fix some other typos
* revert one change
* emdash tweak
2 months ago
Ben McCann
217e40998a
chore: add changeset and comment ( #14040 )
...
for #14026
2 months ago
Simon H
8a2c97a7b8
fix: extend derived/state validation error to indirect exports ( #14039 )
...
Closes #14029
2 months ago
Simon H
1434f48f7c
fix: make compiler error extend from `Error` ( #14036 )
...
We originally didn't extend from `Error` anymore because its fields are of no real value to us, and has problems with serialization in a worker context.
Turns out this was a mistake, because various build tools rely on errors being thrown as something that extends Error, else they try to wrap it in their own error.
We therefore revert that change while still trying to preserve most of the advantages of not extending `Error`, namely nuking the useless stack trace and making sure the message is enumerable.
2 months ago
Simon H
f52a30347f
fix: ensure comma is also pruned if necessary ( #14032 )
...
immediately after merging #14006 I noticed there's a bug when pruning one selector in a list of several; this fixes it
no changeset because not released yet
2 months ago
Dominic Gannaway
435a9c1cd0
fix: ensure toStore subscription correctly syncs latest value ( #14015 )
...
* fix: ensure toStore subscription correctly syncs latest value
* Update packages/svelte/src/store/index-client.js
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2 months ago
Simon H
0106204982
fix: minify inject CSS in prod mode ( #14006 )
...
When CSS is externalized we rightfully rely on the following tooling chain to properly minify CSS. When we inject the CSS however, that tooling won't be able to do that, so we gotta do it ourselves.
This PR brings back most of that logic that existed in Svelte 4. Fixes #13716
2 months ago
Simon H
e487f61262
docs: mark deprecated options as such ( #13989 )
...
closes #13984
2 months ago
Simon H
2e9dab6a21
fix: more robust re-subscribe detection for `fromStore` ( #13995 )
...
Only count down after timeout, else we would reach 0 before our own render effect reruns, but reach 1 again when the tick callback of the prior teardown runs. That would mean we re-subcribe unnecessarily and create a memory leak because the old subscription is never cleaned up.
2 months ago
Simon H
cbc2ca36ce
fix: allow to pass in TS preference to migration ( #13929 )
...
First half of https://github.com/sveltejs/kit/issues/12880 - the idea is for the migration script to check for a tsconfig.json and then set it to `true` if one is found
2 months ago
Ben McCann
08bc37a374
fix: don't access requestAnimationFrame eagerly ( #14026 )
2 months ago
Simon H
b3437e6020
docs: note old site ( #13996 )
2 months ago
github-actions[bot]
4441952028
Version Packages ( #13949 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
Ben McCann
07219f1cbd
chore: update links that previously pointed to preview site ( #14001 )
2 months ago
Ben McCann
c93a645b68
docs: fix broken links ( #13944 )
2 months ago
Paolo Ricciuti
b6fccdb4f7
fix: properly migrate imports types prefixed with $ ( #14007 )
2 months ago
Dominic Gannaway
3876b302f3
fix: ensure effect_tracking correctly handles tracking reactions ( #14005 )
...
* fix: ensure effect_tracking correctly handles tracking reactions
* fix: ensure effect_tracking correctly handles tracking reactions
2 months ago
Rich Harris
777d059b10
docs: update heading level in `02-getting-started.md` ( #13997 )
2 months ago