Simon H
7a1326be06
fix: handle `this` parameter in TypeScript-annotated functions ( #11795 )
...
fixes #11731
3 months ago
Rich Harris
5fb017df92
fix: allow classes to be reassigned ( #11794 )
3 months ago
FoHoOV
4fef0eb08f
fix: capture the correct event names when spreading attributes ( #11783 )
...
fixes #11777
We need to scope the `key` variable because it may be captured in a closure
3 months ago
Paolo Ricciuti
ee9d5ef850
fix: allow global next to `&` for nesting ( #11784 )
...
Fixes #11782
3 months ago
FoHoOV
b963e53fc9
fix: parse ongotpointercapture and onlostpointercapture events correctly ( #11790 )
...
Fixes #11789
3 months ago
Rich Harris
0c4c2b023c
chore: use replaceState from SvelteKit to avoid warning ( #11793 )
3 months ago
Rich Harris
d1f5d5d33d
fix: only inject push/pop/$$props in SSR components when necessary ( #11771 )
3 months ago
Paolo Ricciuti
9084f1796b
fix: allow runelike writable as prop ( #11768 )
...
Fixes #11742
3 months ago
Paolo Ricciuti
d856c50092
fix: `array.lastIndexOf` without second argument ( #11766 )
...
Fixes #11756
lastIndexOf seems to be using arguments internally so passing undefined is different from not passing it
3 months ago
Rich Harris
d946066c08
chore: yet another hydration tweak ( #11763 )
3 months ago
Rich Harris
caab8dad05
chore: remove unused code ( #11762 )
...
* chore: remove unused code
* remove text_prototype
* more
3 months ago
Rich Harris
fec57e298e
chore: tweak add_locations ( #11761 )
3 months ago
Rich Harris
4a708dd005
chore: always return hydrate_start from template functions ( #11760 )
3 months ago
Rich Harris
c239cdf3af
remove some unnecessary code ( #11759 )
3 months ago
Rich Harris
a2260940e7
chore: replace `hydrate_nodes[0]` with `hydrate_start` where possible ( #11758 )
...
* manipulate effect.dom rather than hydrate_nodes
* use hydrate_start instead of hydrate_nodes where possible
* tidy up
3 months ago
Rich Harris
196d7e41b1
chore: simplify add_locations ( #11757 )
...
* chore: simplify add_locations
* tiny tweak
3 months ago
github-actions[bot]
3dfa343ea2
Version Packages (next) ( #11753 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Paolo Ricciuti
7dacf2c4d4
fix: use svg methods for updating svg attributes too ( #11755 )
...
Closes #11746
we were using the svg methods for every child of svg but not for svg itself
3 months ago
Rich Harris
d15fd9556f
chore: better invalid attribute message ( #11754 )
...
* simplify code
* replace error code and message
* update message, update tests
3 months ago
Rich Harris
24151c4e9c
docs: document event delegation and effect deferral ( #11747 )
...
* docs: document event delegation and effect deferral
* document flushSync
3 months ago
Rich Harris
8459098c05
chore: simplify effect.dom stuff ( #11752 )
3 months ago
Paolo Ricciuti
5765752d78
fix: throw on invalid attribute expressions ( #11736 )
...
In runes mode only to prevent a breaking change solely from upgrading to Svelte 5
Closes #11734
3 months ago
Rich Harris
ba429fd2f1
fix: don't use console.trace inside dev warnings ( #11744 )
...
Chrome does include a trace for warnings, Firefox does not, but the vast majority of devs uses Chromium-based browsers for dev, so this reduces noise
3 months ago
Paolo Ricciuti
e73b133b66
fix: don't warn on link without href if aria-disabled ( #11737 )
...
Also don't warn on a tag without a href attribute and link role
fixes #11733
3 months ago
Rich Harris
50cc8a4848
chore: more non-essential changes from #11690 ( #11750 )
3 months ago
Rich Harris
329c10eb6c
chore: update noscript test ( #11749 )
3 months ago
Rich Harris
b87fd61729
chore: DRY out namespace template code ( #11748 )
...
* chore: DRY out namespace template code
* Update packages/svelte/src/internal/client/dom/template.js
3 months ago
Rich Harris
0784ec0661
chore: apply formatting to console messages ( #11735 )
...
* chore: apply formatting to console messages
* sanitize
* fix
3 months ago
github-actions[bot]
152961a649
Version Packages (next) ( #11745 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Dominic Gannaway
fe51cde1fa
breaking: event handlers + bindings now yield effect updates ( #11706 )
...
* breaking: delegated event handlers now yield effect updates
* tweak
* refactor
* refactor
* yield binding change events
* handle input event bindings
* more bindings
* more bindings
* more tests
* more tests
* address feedback
* address feedback
3 months ago
github-actions[bot]
3498df842b
Version Packages (next) ( #11743 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Dominic Gannaway
a074734ba7
fix: ensure we clear down each block opening anchors from document ( #11740 )
...
* fix: ensure we clear down each block opening anchors from document
* fix: ensure we clear down each block opening anchors from document
3 months ago
Dominic Gannaway
401c8b23be
chore: simplify internal DOM operations ( #11741 )
...
* chore: simplify internal DOM operations
* chore: simplify internal DOM operations
* chore: simplify internal DOM operations
3 months ago
Dominic Gannaway
44115840bd
chore: cleanup more tests ( #11738 )
...
remove awaits in favor of flushSync
3 months ago
Rich Harris
d4718e0755
playground: better console ( #11719 )
...
* remove unused code
* better console
* simplify
* simplify
* fix
* fix
* fix
* fix console.table
* more table tweaks
* improve table styles
* tweaks
* bump svelte-json-tree
* tweak group styles
* level -> command
* remove stack from assertions
* nicer style for duplicates
* styles
* tidy/simplify
* tweaks
* tweaks
* tweaks
* fixes
* better stack traces (albeit not sourcemapped yet)
3 months ago
Simon H
4f9096a5a8
chore: delegate input event ( #11732 )
...
We didn't delegate the input event back when we were also delegating `on:x` events, because it messes up the event/bindings/actions order. Since we're only doing that for `onx` event attributes now that reason is obsolete and we can start delegating it.
3 months ago
github-actions[bot]
c3489eb5de
Version Packages (next) ( #11714 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Dominic Gannaway
4a3f7ac257
fix: improved checked/value handling ( #11726 )
...
* fix: improved checked/value handling
* tweak
3 months ago
Paolo Ricciuti
77f91459b6
fix: update value like attributes in a separate template_effect ( #11720 )
...
* fix: update value like attributes in a separate template_effect
* chore: remove unnecessary commented code
* chore: add test for spread values
3 months ago
Simon H
c21f019a4b
chore: speedup hydration around input and select values ( #11717 )
...
* chore: speedup hydration around input and select values
* use idle tasks to do the work
---------
Co-authored-by: Dominic Gannaway <dg@domgan.com>
3 months ago
Simon H
d590cd8bea
fix: ignore value attribute on select during SSR ( #11724 )
...
The value attribute on select elements does nothing - it does not influence the initial value (in SSR that's the job of the `selected` attribute on an option element), updating it does not influence the current value either. Instead of rendering it out and then removing it on hydration (which is costly because the mutation causes work) we just don't render it in SSR.
No test/changeset because no change in behavior.
3 months ago
Paolo Ricciuti
6d2f1a48b4
fix: allow comments after last selector in css ( #11723 )
...
Fixes #11721
3 months ago
Rich Harris
0128df33da
fix: don't add scoping modifier to nesting selectors ( #11713 )
3 months ago
Rich Harris
a17e84b61f
chore: tooltip tweaks ( #11716 )
...
* chore: tooltip tweaks
* fix tooltip background
* light/dark mode fix
3 months ago
Rich Harris
881040fb78
playground: reset on navigate ( #11715 )
3 months ago
Dominic Gannaway
09addad9ae
fix: improve handling of unowned derived signal ( #11712 )
3 months ago
github-actions[bot]
fba6b5676b
Version Packages (next) ( #11663 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3 months ago
Paolo Ricciuti
f48001ac63
fix: check for invalid bindings on window and document ( #11676 )
...
Fixes #11673
3 months ago
Paolo Ricciuti
b788b72862
fix: migrate derivations without semicolons ( #11704 )
...
Closes #11689
3 months ago
Rich Harris
02520aea48
better tooltips in playground ( #11705 )
...
* better tooltips in playground
* update some tests that a drive-by fix broke
3 months ago