Commit Graph

1058 Commits (d946066c081bc1b32d8eaff8ca9fedb28b6fbc79)

Author SHA1 Message Date
Caique Torres f632b2a944
feat: checking for runes when generating js code for object mutations (#11243)
9 months ago
Simon H 669d2d7a1e
fix: preserve getters/setters in HMR mode (#11231)
9 months ago
Rich Harris 516cd22686
fix: more accurate error message when creating orphan effects (#11227)
9 months ago
Paolo Ricciuti eac4218402
fix: possible name clash in hoisted functions (#11237)
9 months ago
Simon H cca67bba51
fix: support `$state.snapshot` as part of variable declarations (#11235)
9 months ago
Rich Harris 307f15d5f7
chore: refactor `$inspect` (#11226)
9 months ago
github-actions[bot] 5fce00f06e
Version Packages (next) (#11205)
9 months ago
Rich Harris de2d8a0bee
Revert "feat: allow $inspect reactivity map, set, date (#11164)" (#11223)
9 months ago
Rich Harris 42ce8d74e1
breaking: warn on self-closing non-void HTML tags (#11114)
9 months ago
Rich Harris 56654986a6
fix: measure elements before taking siblings out of the flow (#11216)
9 months ago
Simon H 27eb91bbce
fix: dynamic namespace fixes and enhancements (#11219)
9 months ago
Tan Li Hau 43d13e92a0
feat: allow $inspect reactivity map, set, date (#11164)
9 months ago
Rich Harris 70b47de124
chore: follow-up to #11197 (#11213)
9 months ago
Simon H 4b59ef3c41
fix: widen ownership when sub state is assigned to new state (#11217)
9 months ago
Rich Harris c44234dc2f
fix: take outroing elements out of the flow when animating siblings (#11208)
10 months ago
Tan Li Hau 27d48c601f
fix: catch clause scope (#11209)
10 months ago
Simon H d51075c154
breaking: warn/error on old syntax in runes mode (#11203)
10 months ago
github-actions[bot] 4ef64541dd
Version Packages (next) (#11201)
10 months ago
Tan Li Hau 3d49731b1b
fix: refine css `:global()` selector checks in a compound selector (#11142)
10 months ago
Azarattum e7301af1e5
fix: no data duplication in reactive Set/Map (#11200)
10 months ago
Tan Li Hau 1510c13113
feat: add warning when using $bindable runes without calling it (#11181)
10 months ago
Dominic Gannaway 777527b5a3
fix: remove memory leak from retaining old DOM elements (#11197)
10 months ago
Dominic Gannaway 63456f1df9
fix: remove memory leak from bind:this (#11194)
10 months ago
github-actions[bot] 9aebae83a5
Version Packages (next) (#11192)
10 months ago
Simon H 1cc6a32069
fix: ConstTag AST tweak (#11196)
10 months ago
Rich Harris 1c33ff0107
fix: make snippet effects transparent for transitions (#11195)
10 months ago
Rich Harris 8fef412dbb
feat: use state proxy ancestry for ownership validation (#11184)
10 months ago
Dominic Gannaway 77ed790fb3
fix: ensure bind:this unmount behavior for members is conditional (#11193)
10 months ago
Simon H e7869faf4d
fix: return ast from `compile` (#11191)
10 months ago
Simon H 7363f873df
chore: remove unused code (#11190)
10 months ago
github-actions[bot] 30fa876a79
Version Packages (next) (#11186)
10 months ago
Dominic Gannaway 18097478fc
breaking: remove unstate(), replace with $state.snapshot rune (#11180)
10 months ago
Simon H cd7c3fea16
fix: more accurate default value handling (#11183)
10 months ago
github-actions[bot] ae7d73453c
Version Packages (next) (#11176)
10 months ago
Dominic Gannaway 2fa095b61e
fix: improve spreading of attributes (#11177)
10 months ago
Daniel d061f2f137
fix: ssr comments in head elements that require raw content (#10936)
10 months ago
github-actions[bot] 322737ac01
Version Packages (next) (#11162)
10 months ago
Tan Li Hau 8caaa375cf
feat: add reactive URL object to svelte/reactivity (#11157)
10 months ago
Rich Harris 2cefd785a4
fix: make ownership validation work with HMR (#11171)
10 months ago
Tan Li Hau a092899843
feat: update error message for snippet binding and assignments (#11168)
10 months ago
Tan Li Hau d1976c07ff
fix: fix string name of reactive map and set iterator (#11169)
10 months ago
Tan Li Hau dd9a8a2578
feat: remove todo (#11167)
10 months ago
Tan Li Hau 9b67ee18eb
fix: throw error when auto-subscribed store variable shadow by local variable (#11170)
10 months ago
Rich Harris dc6a8398d1
Revert "fix: ensure deep mutation ownership widening" (#11155)
10 months ago
github-actions[bot] be842425f5
Version Packages (next) (#11154)
10 months ago
Rich Harris c1a549e801
check generated types (#11068)
10 months ago
github-actions[bot] 70ddaf4048
Version Packages (next) (#11133)
10 months ago
Dominic Gannaway 19144b000f
fix: add validation around disallowed sequence expressions to element attributes (#11149)
10 months ago
Tan Li Hau 15eb5b5864
fix: missing classes after dynamic expressions in class attributes (#11134)
10 months ago
Rich Harris d5776c3ec3
feat: simplify HMR implementation (#11132)
10 months ago
github-actions[bot] a740b7bb43
Version Packages (next) (#11130)
10 months ago
Dominic Gannaway 0896543e67
fix: further improvements to hmr component key generation (#11129)
10 months ago
github-actions[bot] 3f9f28604e
Version Packages (next) (#11126)
10 months ago
Dominic Gannaway 53e6a99458
fix: use correct meta property for hmr key (#11125)
10 months ago
github-actions[bot] 37b689b320
Version Packages (next) (#11121)
10 months ago
Dominic Gannaway b01af747e8
fix: use keys for hmr modules (#11123)
10 months ago
Dominic Gannaway 1183984f68
fix: addresses reactive Set bug in certain engines (#11120)
10 months ago
Jeremiasz Major 0cf2e98322
chore: upgrade eslint to v9 (#11108)
10 months ago
github-actions[bot] 710c8f4924
Version Packages (next) (#11111)
10 months ago
Dominic Gannaway afe1d11a5b
feat: hot module reloading support for Svelte 5 (#11106)
10 months ago
Dominic Gannaway e1b2d29eda
chore: add hmr compiler flag (#11112)
10 months ago
Dominic Gannaway 3bb231197e
fix: loosen proxy signal creation heuristics (#11109)
10 months ago
Simon H 27891cb2dd
fix: ensure top level snippets are defined when binding to component prop (#11104)
10 months ago
Rich Harris 4d0b743918
feat: use linked lists for each blocks (#11107)
10 months ago
Dominic Gannaway ce348f0d69
chore: add test to show usage of context in component template (#11061)
10 months ago
github-actions[bot] e8f7437cf6
Version Packages (next) (#11093)
10 months ago
Simon H 5a1c756a4e
fix: execute sole static script tag (#11095)
10 months ago
Dominic Gannaway 3c2f4d2d55
fix: improve hydration of svelte head blocks (#11099)
10 months ago
Dominic Gannaway 48549f7d00
fix: improve internal proxied state signal heuristic (#11102)
10 months ago
Simon H d2b6159d2e
chore: css unused selector warnings (#11098)
10 months ago
Simon H ed9bab9200
fix: better sibling selector handling (#11096)
10 months ago
Dominic Gannaway 3462c54fd2
fix: improve compiled output of multiple call expression in single text node (#11097)
10 months ago
Simon H 22494be9ec
feat: introduce `$host` rune, deprecate `createEventDispatcher` (#11059)
10 months ago
Simon H 8578857332
fix: ensure deep mutation ownership widening (#11094)
10 months ago
Simon H b1a8038f8b
fix: make static `element` property available (#11079)
10 months ago
github-actions[bot] dfc55c18f0
Version Packages (next) (#11072)
10 months ago
Simon H a9e15bdf2d
breaking: robustify interop of exports and props (#11064)
10 months ago
Dominic Gannaway 452749494e
Fix unowned bug 2 (#11077)
10 months ago
Rich Harris 8cbe8c1197
fix: bundle CSS types (#11067)
10 months ago
github-actions[bot] ae3d472cbc
Version Packages (next) (#11057)
10 months ago
Dominic Gannaway b87d57dc6e
fix: add `anchor` support to mount() API (#11050)
10 months ago
Dominic Gannaway 02441c6a19
chore: apply each block controlled teardown optimization, again (#11051)
10 months ago
Rich Harris f7c8fd569b
Revert "chore: apply each block controlled teardown optimization (#11045)" (#11049)
10 months ago
Rich Harris bb1d229e26
fix docs (#11048)
10 months ago
Dominic Gannaway 1afec80261
chore: apply each block controlled teardown optimization (#11045)
10 months ago
Dominic Gannaway 17281c3df1
Revert "chore: remove deopts and refactor code for controlled optimizations (…" (#11043)
10 months ago
Dominic Gannaway 3ece9cd051
chore: remove deopts and refactor code for controlled optimizations (#11040)
10 months ago
github-actions[bot] d85d5a060b
Version Packages (next) (#11035)
10 months ago
Dominic Gannaway c50883e496
fix: ensure transition errors are not swallowed (#11039)
10 months ago
Dominic Gannaway b210fe3c9d
chore: remove parent DOM before children DOM (#11038)
10 months ago
Rich Harris 92909834f0
breaking: prevent unparenthesized sequence expressions in attributes (#11032)
10 months ago
github-actions[bot] 2a1d3c6e73
Version Packages (next) (#11034)
10 months ago
Rich Harris 3254d2e22f
fix: add missing package.json in package (#11033)
10 months ago
github-actions[bot] 6bb825b1b1
Version Packages (next) (#11018)
10 months ago
Dominic Gannaway 1d52c1323b
fix: improve unowned derived signal heuristics (#11029)
10 months ago
Dominic Gannaway 2a784fce16
fix: correctly handle closure passed to $derived.by when destructuring (#11028)
10 months ago
Rich Harris 3c155e3f3e
fix: ensure effect cleanup functions are called with null `this` (#11024)
10 months ago
Rich Harris ad11c5087f
fix: ensure correct context for action update/destroy functions (#11023)
10 months ago
Rich Harris 34748ba015
chore: verify that `$effect.root(...)` does not re-run (#11020)
10 months ago
Rich Harris 0a162924fb
feat: more efficient hydration markers (#11019)
10 months ago
Rich Harris 4f3fae7c6d
chore: compiler subpackage (#10988)
10 months ago
Frédéric Crozatier 1c75b9ac4d
fix: add `name` to HTMLDetailsAttributes (#11013)
10 months ago
Dominic Gannaway 8c4769db37
chore: improve internal performance of effect runtime (#10999)
10 months ago
github-actions[bot] 57813124d8
Version Packages (next) (#10995)
10 months ago
Rich Harris 7bd853b1a8
fix: hydrate HTML with surrounding whitespace (#10996)
10 months ago
Dominic Gannaway 3f6eff55a4
chore: use internal doubly linked listed for effect tree (#10994)
10 months ago
Rich Harris 4a6316818c
feat: faster HTML tags (#10986)
10 months ago
Rich Harris cd90a5d946
chore: rename css.ts to css.d.ts (#10991)
10 months ago
github-actions[bot] 442f2d7c39
Version Packages (next) (#10983)
10 months ago
Dominic Gannaway b119600966
fix: ensure child effects are removed from parent branches (#10985)
10 months ago
Rich Harris 5b2d5212d2
feat: expose `'svelte/internal'` (#10987)
10 months ago
Dominic Gannaway a1d74bd56d
chore: remove signal field from effects (#10984)
10 months ago
Dominic Gannaway 696b6922e8
fix: revert shorthand ssr comments (#10980)
10 months ago
github-actions[bot] ef0191a6ae
Version Packages (next) (#10977)
10 months ago
Rich Harris 227945d242
feat: re-export built-ins from `svelte/reactivity` on the server (#10973)
10 months ago
Dominic Gannaway 8971910940
fix: further improvements to effect scheduling and flushing (#10971)
10 months ago
Rich Harris 293f905a53
chore: use #client alias (#10974)
10 months ago
Rich Harris f303d82043
chore: tidy up server exports (#10972)
10 months ago
Rich Harris d49e2aeb15
chore: explicit reexports (#10970)
10 months ago
Rich Harris 8a758d86ee
move some code (#10969)
10 months ago
Rich Harris cebbccbcba
chore: move svelte/internal to svelte/internal/client (#10968)
10 months ago
Rich Harris eaa243d2da
chore: reshuffle some code (#10967)
10 months ago
github-actions[bot] de6a802435
Version Packages (next) (#10966)
10 months ago
Dominic Gannaway ea6fd72e79
fix: apply animate on prefix/suffix each block mutations (#10965)
10 months ago
github-actions[bot] 1c645c3c07
Version Packages (next) (#10963)
10 months ago
Dominic Gannaway f118f8ea27
fix: improve action support for nested $effect (#10962)
10 months ago
Dominic Gannaway d50b7661e5
fix: improve effect sequencing and execution order (#10949)
10 months ago
Rich Harris 2079e675ea
replace skip_if_ssr and skip_if_hydrate with modes (#10956)
10 months ago
Rich Harris 326e2b4840
chore: simplify templates (#10954)
10 months ago
Dominic Gannaway cb18f8fbbe
chore: root effects should not have parents (#10950)
10 months ago
Rich Harris 9a4cd7e8d8
chore: refactor effects a bit (#10948)
10 months ago
github-actions[bot] b6598a3cc5
Version Packages (next) (#10934)
10 months ago
Rich Harris c683484f5f
chore: tidy up some hydration code (#10944)
10 months ago
Rich Harris f8fcbf0b0b
chore: tidy up some outdated code (#10947)
10 months ago
Rich Harris 66e0378155
chore: remove `$.space` (#10945)
10 months ago
Rich Harris 4fcedb2fb1
chore: simplify hydration (#10943)
10 months ago
Dominic Gannaway afe589e219
fix: improve order of pre-effect execution (#10942)
10 months ago
Rich Harris 3ce74e47a9
chore: update sequencing inside blocks (#10939)
10 months ago
Rich Harris 9bbc3328ee
chore: tidy up effect init (#10931)
10 months ago
Rich Harris 7adc14e24c
chore: unify pre effects (#10933)
10 months ago
Rich Harris f2cca537a3
feat: use implicit return for each block keys (#10938)
10 months ago
Rich Harris 808cc6fca6
feat: shorter each blocks (#10937)
10 months ago
Rich Harris 8cfea9f36c
breaking: always run pre effects synchronously (#10928)
10 months ago
github-actions[bot] b44311acc1
Version Packages (next) (#10920)
10 months ago
Rich Harris ed2981d7b8
chore: simplify updates (#10922)
10 months ago
Rich Harris 456e50d14b
chore: use `effect(...)` instead of `user_effect(...)` (#10927)
10 months ago
Rich Harris 7a17e21f8a
chore: remove managed_effect (#10926)
10 months ago
miunau bbd44e9e47
fix: Add `elementtiming` HTMLAttribute, remove `crossorigin` from HTMLInputAttributes (#10921)
10 months ago
Rich Harris b7a0d80bfc
simplify render_effect signature (#10925)
10 months ago
Rich Harris 59ff650ccb
remove if blocks around attribute updates (#10917)
10 months ago
Rich Harris 7e584e40d7
chore: optimise attributes (#10916)
10 months ago
Rich Harris 4f24eae9c3
simplify updates (#10912)
10 months ago
github-actions[bot] 1e0054e915
Version Packages (next) (#10889)
10 months ago
miunau 0c05733d31
fix: Add `dirname` to HTMLInputAttributes (#10908)
10 months ago
Rich Harris 8685d497e5
feat: use bracket matching instead of `ssr:n` comments (#10904)
10 months ago
Rich Harris f1d9afe32f
changeset (#10906)
10 months ago
Rich Harris 302b0ec973
chore: remove unused selector() function (#10903)
10 months ago
Rich Harris 7e5e462194
feat: use short comments (#10899)
10 months ago
Rich Harris 32b1824198
chore: more hydration stuff (#10896)
10 months ago
Rich Harris 9b7331c04c
chore: only specify use_clone_node when necessary (#10895)
10 months ago
Rich Harris 89f4e8d53a
chore: more hydration stuff (#10894)
10 months ago
Rich Harris 8214075285
fix: update type of `options.target` (#10892)
10 months ago
Rich Harris 1fc5f8b9c0
chore: code-golf a bit (#10893)
10 months ago
Rich Harris dfd1819559
chore: tidy up hydration code (#10891)
10 months ago
Rich Harris 7f10642add
chore: improve hydration tests (#10887)
10 months ago
Dominic Gannaway fe7c45ba13
Add more tests (#10882)
10 months ago
Dominic Gannaway d6f10c5421
add more legacy tests (#10881)
10 months ago
Rich Harris b6c7956b26
chore: remove blocks (#10880)
10 months ago
github-actions[bot] c47c5713e2
Version Packages (next) (#10869)
10 months ago
Dominic Gannaway 83f30bf0e8
fix: allow runes for variable declarations in the template (#10879)
10 months ago
Simon H 852eca4ee6
chore: error on accessing global that is a rune (#10877)
10 months ago
Simon H b468978e4d
fix: handle multiple snippet parameters with one or more being optional (#10833)
10 months ago
Simon H 3eef1cb8cf
feat: take form resets into account for two way bindings (#10617)
10 months ago
Simon H 416bc85d9c
breaking: add $bindable() rune to denote bindable props (#10851)
10 months ago
Dominic Gannaway 2cabc884ca
add some missing legacy tests (#10875)
10 months ago
Rich Harris 6822decec2
tidy up (#10874)
10 months ago
Rich Harris 04879c53e9
chore: simplify blocks (#10873)
10 months ago
Rich Harris b91392e5bd
chore: tidy up (#10870)
10 months ago
Simon H a339c28bb7
breaking: apply fallback value every time in runes mode (#10797)
10 months ago
Rich Harris e8ce41815a
chore: simplify transitions (#10798)
10 months ago
Simon H f6eca83b7c
fix: no static-state-reference warning in legacy mode (#10865)
10 months ago
Simon H 86b3ea8c23
chore: failing test for out-of-order `$:` execution (#10864)
10 months ago
Rich Harris 392f7d223a
chore: fix treeshaking check (#10862)
10 months ago
github-actions[bot] c60f2e38a3
Version Packages (next) (#10832)
10 months ago
Dominic Gannaway 8c2f6039c6
fix: improve element class attribute behaviour (#10856)
10 months ago
Simon H 86c57f96de
fix: better await block scope analysis (#10849)
10 months ago
Dominic Gannaway efe85fcce0
fix: more robust select element logic (#10848)
10 months ago
Dominic Gannaway f5f9465edc
feat: add support for webkitdirectory DOM boolean attribute (#10847)
10 months ago
Dominic Gannaway c564c77199
fix: ensure select value is updated upon select element removal (#10846)
10 months ago
Simon H 682f4a6513
fix: adjust scope parent for named slots (#10843)
10 months ago
Dominic Gannaway 117082b039
fix: improve handling of unowned derived signals (#10842)
10 months ago
Simon H 1fc41730a1
fix: don't override instance methods during legacy class creation (#10834)
11 months ago
Simon H f8c85d525d
fix: ensure capture events don't call delegated events (#10831)
11 months ago
github-actions[bot] 1bfafe935b
Version Packages (next) (#10814)
11 months ago
Rich Harris d921fb97bd
fix: add types for svelte/reactivity (#10817)
11 months ago
Dominic Gannaway 474fc7ebe0
fix: ensure arguments are supported on all reactive Date methods (#10813)
11 months ago
github-actions[bot] afc2eea382
Version Packages (next) (#10806)
11 months ago
Dominic Gannaway fe3b3b463c
feat: adds reactive Map class to svelte/reactivity (#10803)
11 months ago
Simon H c35f0c16af
fix: deduplicate module declaration, adjust type (#10801)
11 months ago
Rich Harris ffb27f667a
Blockless redux (#10794)
11 months ago
github-actions[bot] 924f0611f7
Version Packages (next) (#10792)
11 months ago
Rich Harris 1e653ef4d8
fix: make `set.has(...)` granular for existing properties (#10793)
11 months ago
Simon H fbbd89a917
fix: invalidate store when mutated inside each block (#10785)
11 months ago
Rich Harris bd687c6504
chore: remove ignore_mutation_validation (#10789)
11 months ago
github-actions[bot] 2701c0ad64
Version Packages (next) (#10782)
11 months ago
Simon H 339782f3e0
fix: handle component binding mutation (#10786)
11 months ago
Dominic Gannaway 2cb78ac253
fix: adjust render effect ordering (#10783)
11 months ago
github-actions[bot] 0c1026f166
Version Packages (next) (#10770)
11 months ago
Dominic Gannaway 3f7fcf9aec
feat: add reactive Set class to svelte/reactivity (#10781)
11 months ago
Rich Harris eb40417c36
chore: move more element stuff (#10780)
11 months ago
Rich Harris de021aebb5
move element code (#10778)
11 months ago
Rich Harris 84fa18a850
chore: remove unused function (#10776)
11 months ago
Rich Harris ea97fe22da
chore: move legacy code (#10775)
11 months ago
Rich Harris e36a8d06ea
move props code (#10774)
11 months ago
Rich Harris d82d57e833
move template code into its own module (#10773)
11 months ago
Rich Harris 77f39ea988
breaking: make `$props()` rune non-generic (#10694)
11 months ago
Rich Harris 7212a56296
chore: move bindings code (#10772)
11 months ago
Dominic Gannaway 468ecda6ea
fix: improve internal render effect sequencing (#10769)
11 months ago
Rich Harris 8a4dfb483b
chore: move some code around (#10767)
11 months ago
Rich Harris 278155968e
chore: refactor reactivity code (#10760)
11 months ago
Rich Harris 3196077b5d
chore: remove unused function (#10762)
11 months ago
github-actions[bot] 3bdef5486f
Version Packages (next) (#10758)
11 months ago
Dominic Gannaway ef206fe1b5
fix: improve derived output for ssr (#10757)
11 months ago
Rich Harris 81a4d87c1f Merge branch 'main' of github.com:sveltejs/svelte
11 months ago
Rich Harris 7e82dbc549 fix typo
11 months ago
github-actions[bot] 8dc7cd2151
Version Packages (next) (#10742)
11 months ago
Rich Harris 7cc5ce4e65
tidy up (#10744)
11 months ago
Mostafa Kheibary e16591abe8
docs: Change all the word "initialization" to "initialisation" (#10708)
11 months ago
Simon H 74474fe085
fix: prevent reactive statement reruns (#10736)
11 months ago
github-actions[bot] f3bfb938ee
Version Packages (next) (#10716)
11 months ago
Dominic Gannaway 7c00f1dacb
fix: improve bind:this support around proxyied state (#10732)
11 months ago
Simon H 304db0d5b2
fix: bump specificity on all members of a selector list (#10730)
11 months ago
Simon H b1267b03b6
fix: error when exporting reassigned state from module context (#10728)
11 months ago
Simon H ae4af6841a
fix: eagerly unsubscribe when store is changed (#10727)
11 months ago
Simon H 3fd02f1c49
breaking: preserve slots inside templates with a shadowrootmode attribute (#10721)
11 months ago
Papaya cc22492e7a
fix: use toDateString occur error when use pnpm run test in China (#10719)
11 months ago
Simon H fff3320517
chore: custom elements validation (#10720)
11 months ago
Simon H 881e84f988
chore: get more validator tests passing (#10714)
11 months ago
Dominic Gannaway 622195cc21
fix: ensure performance.now() and requestAnimationFrame() are polyfilled in ssr (#10715)
11 months ago
Rich Harris a5a566dfa7
chore: tidy up (#10705)
11 months ago
github-actions[bot] b3d0a0695a
Version Packages (next) (#10701)
11 months ago
Dominic Gannaway f8eb0d16d6
fix: improve each keyed block handling of item used as key (#10703)
11 months ago
Dominic Gannaway d9d1022895
fix: improve indexed each equality (#10702)
11 months ago
Simon H 4285e6d814
fix: prevent snippet children conflict (#10700)
11 months ago
Dominic Gannaway eedb59355f
fix: adjust keyed each block equality handling (#10699)
11 months ago
Rich Harris 86f326531c
chore: refactor signal types (#10698)
11 months ago
Rich Harris 0cc74e46fd
remove some needless indirection (#10697)
11 months ago
Rich Harris aa29a853dd
chore: move reactivity code around (#10696)
11 months ago
Rich Harris 2d15c9de3f
create #client types alias (#10695)
11 months ago
github-actions[bot] d577740c82
Version Packages (next) (#10693)
11 months ago