Commit Graph

536 Commits (9f823b95e31eee93e1ed03d5e9f34cd16fade5b7)

Author SHA1 Message Date
Simon H 8b1a26904a
chore: add css regression test (#11373)
1 year ago
Paolo Ricciuti 2d2508a2cd
feat: allow for literal property definition with state on classes (#11326)
1 year ago
Paolo Ricciuti c7bdef595b
fix: store from props hoist wrong param (#11367)
1 year ago
Caique Torres 68071f7c06
fix: disallow mixing event-handling syntaxes (#11295)
1 year ago
Simon H 7d19e5b1a4
fix: disallow mounting a snippet (#11347)
1 year ago
Paolo Ricciuti d3949a6e71
fix: hr, script and template as valid select children (#11344)
1 year ago
Simon H cd798077b4
feat: provide migration function (#11334)
1 year ago
Rich Harris f1986da755
feat: only inject push/init/pop when necessary (#11319)
1 year ago
Rich Harris 8e43e9aae0
fix: correctly interpret empty aria- attribute (#11325)
1 year ago
Rich Harris 9a887f8dab
chore: directly export function in non-HMR mode (#11333)
1 year ago
Rich Harris 8e17428316
chore: tidy up messages (#11327)
1 year ago
Rich Harris 6ad5cd4461
feat: implement message overloads (#11318)
1 year ago
Rich Harris 476f2172b6
fix: mark `accessors` and `immutable` as deprecated (#11277)
1 year ago
Rich Harris 94b4268ce3
chore: markdown runtime errors/warnings (#11304)
1 year ago
Rich Harris eea5c8ff95
chore: handle option warnings the same as others (#11303)
1 year ago
Simon H f6dfac985c
feat: `Bindable` types (#11225)
1 year ago
Rich Harris 7b55bd4d89
chore: markdown warnings (#11302)
1 year ago
Rich Harris 5405ec6c91
chore: refactor logic for ignoring warnings (#11300)
1 year ago
Rich Harris 73490bbb8e
chore: markdown errors (#11294)
1 year ago
Simon H 2d378bb762
breaking: disallow binding to component exports in runes mode (#11238)
1 year ago
Craig Jennings fe6e4e2b05
fix: avoid hoisting error by using 'let' instead of 'var' (#11291)
1 year ago
Rich Harris fd5f5bb85d
monkey-patch console.log and console.warn for all tests (#11265)
1 year ago
Rich Harris 5ef1fdf7cc
fix: run render functions for dynamic void elements (#11258)
1 year ago
Rich Harris 521d124267
fix: allow events to continue propagating following an error (#11263)
1 year ago
Rich Harris 9721d5641b
feat: implement `:global {...}` CSS blocks (#11276)
1 year ago
Vaibhav Rai 11c7cd5495
Feat: Add read-only binding focused (#11271)
1 year ago
Jeremiasz Major b91a67ba68
feat: include `script` and `svelte:options` attributes in ast (#11241)
1 year ago
Simon H 7edba25581
fix: run event attributes after binding event listeners (#11230)
1 year ago
Rich Harris 6bff8c0e93
fix: ensure that CSS is generated for the final frame of a transition (#11251)
1 year ago
Rich Harris 0ad0f04b0b
fix: more robust moving of each item nodes (#11254)
1 year ago
Jeremiasz Major a764f4e88e
don't allow children in svelte:options (#11250)
1 year ago
Paolo Ricciuti eac4218402
fix: possible name clash in hoisted functions (#11237)
1 year ago
Simon H cca67bba51
fix: support `$state.snapshot` as part of variable declarations (#11235)
1 year ago
Rich Harris de2d8a0bee
Revert "feat: allow $inspect reactivity map, set, date (#11164)" (#11223)
1 year ago
Rich Harris 42ce8d74e1
breaking: warn on self-closing non-void HTML tags (#11114)
1 year ago
Simon H 27eb91bbce
fix: dynamic namespace fixes and enhancements (#11219)
1 year ago
Tan Li Hau 43d13e92a0
feat: allow $inspect reactivity map, set, date (#11164)
1 year ago
Simon H 4b59ef3c41
fix: widen ownership when sub state is assigned to new state (#11217)
1 year ago
Tan Li Hau 27d48c601f
fix: catch clause scope (#11209)
1 year ago
Simon H d51075c154
breaking: warn/error on old syntax in runes mode (#11203)
1 year ago
Tan Li Hau 3d49731b1b
fix: refine css `:global()` selector checks in a compound selector (#11142)
1 year ago
Tan Li Hau 1510c13113
feat: add warning when using $bindable runes without calling it (#11181)
1 year ago
Dominic Gannaway 777527b5a3
fix: remove memory leak from retaining old DOM elements (#11197)
1 year ago
Rich Harris 1c33ff0107
fix: make snippet effects transparent for transitions (#11195)
1 year ago
Rich Harris 8fef412dbb
feat: use state proxy ancestry for ownership validation (#11184)
1 year ago
Dominic Gannaway 77ed790fb3
fix: ensure bind:this unmount behavior for members is conditional (#11193)
1 year ago
Dominic Gannaway 18097478fc
breaking: remove unstate(), replace with $state.snapshot rune (#11180)
1 year ago
Simon H cd7c3fea16
fix: more accurate default value handling (#11183)
1 year ago
Dominic Gannaway 2fa095b61e
fix: improve spreading of attributes (#11177)
1 year ago
Daniel d061f2f137
fix: ssr comments in head elements that require raw content (#10936)
1 year ago
Tan Li Hau 8caaa375cf
feat: add reactive URL object to svelte/reactivity (#11157)
1 year ago
Tan Li Hau a092899843
feat: update error message for snippet binding and assignments (#11168)
1 year ago
Tan Li Hau d1976c07ff
fix: fix string name of reactive map and set iterator (#11169)
1 year ago
Tan Li Hau 9b67ee18eb
fix: throw error when auto-subscribed store variable shadow by local variable (#11170)
1 year ago
Rich Harris dc6a8398d1
Revert "fix: ensure deep mutation ownership widening" (#11155)
1 year ago
Dominic Gannaway 19144b000f
fix: add validation around disallowed sequence expressions to element attributes (#11149)
1 year ago
Tan Li Hau 15eb5b5864
fix: missing classes after dynamic expressions in class attributes (#11134)
1 year ago
Rich Harris d5776c3ec3
feat: simplify HMR implementation (#11132)
1 year ago
Dominic Gannaway afe1d11a5b
feat: hot module reloading support for Svelte 5 (#11106)
1 year ago
Dominic Gannaway 3bb231197e
fix: loosen proxy signal creation heuristics (#11109)
1 year ago
Simon H 27891cb2dd
fix: ensure top level snippets are defined when binding to component prop (#11104)
1 year ago
Rich Harris 4d0b743918
feat: use linked lists for each blocks (#11107)
1 year ago
Dominic Gannaway ce348f0d69
chore: add test to show usage of context in component template (#11061)
1 year ago
Simon H 5a1c756a4e
fix: execute sole static script tag (#11095)
1 year ago
Dominic Gannaway 3c2f4d2d55
fix: improve hydration of svelte head blocks (#11099)
1 year ago
Dominic Gannaway 48549f7d00
fix: improve internal proxied state signal heuristic (#11102)
1 year ago
Simon H d2b6159d2e
chore: css unused selector warnings (#11098)
1 year ago
Simon H ed9bab9200
fix: better sibling selector handling (#11096)
1 year ago
Dominic Gannaway 3462c54fd2
fix: improve compiled output of multiple call expression in single text node (#11097)
1 year ago
Simon H 22494be9ec
feat: introduce `$host` rune, deprecate `createEventDispatcher` (#11059)
1 year ago
Simon H 8578857332
fix: ensure deep mutation ownership widening (#11094)
1 year ago
Simon H b1a8038f8b
fix: make static `element` property available (#11079)
1 year ago
Simon H a9e15bdf2d
breaking: robustify interop of exports and props (#11064)
1 year ago
Dominic Gannaway 452749494e
Fix unowned bug 2 (#11077)
1 year ago
Dominic Gannaway c50883e496
fix: ensure transition errors are not swallowed (#11039)
1 year ago
Rich Harris 92909834f0
breaking: prevent unparenthesized sequence expressions in attributes (#11032)
1 year ago
Dominic Gannaway 1d52c1323b
fix: improve unowned derived signal heuristics (#11029)
1 year ago
Dominic Gannaway 2a784fce16
fix: correctly handle closure passed to $derived.by when destructuring (#11028)
1 year ago
Rich Harris 3c155e3f3e
fix: ensure effect cleanup functions are called with null `this` (#11024)
1 year ago
Rich Harris ad11c5087f
fix: ensure correct context for action update/destroy functions (#11023)
1 year ago
Rich Harris 34748ba015
chore: verify that `$effect.root(...)` does not re-run (#11020)
1 year ago
Rich Harris 0a162924fb
feat: more efficient hydration markers (#11019)
1 year ago
Rich Harris 7bd853b1a8
fix: hydrate HTML with surrounding whitespace (#10996)
1 year ago
Dominic Gannaway 696b6922e8
fix: revert shorthand ssr comments (#10980)
1 year ago
Dominic Gannaway 8971910940
fix: further improvements to effect scheduling and flushing (#10971)
1 year ago
Rich Harris d49e2aeb15
chore: explicit reexports (#10970)
1 year ago
Rich Harris cebbccbcba
chore: move svelte/internal to svelte/internal/client (#10968)
1 year ago
Rich Harris eaa243d2da
chore: reshuffle some code (#10967)
1 year ago
Dominic Gannaway f118f8ea27
fix: improve action support for nested $effect (#10962)
1 year ago
Dominic Gannaway d50b7661e5
fix: improve effect sequencing and execution order (#10949)
1 year ago
Rich Harris 2079e675ea
replace skip_if_ssr and skip_if_hydrate with modes (#10956)
1 year ago
Rich Harris 326e2b4840
chore: simplify templates (#10954)
1 year ago
Rich Harris 9a4cd7e8d8
chore: refactor effects a bit (#10948)
1 year ago
Rich Harris 66e0378155
chore: remove `$.space` (#10945)
1 year ago
Rich Harris 4fcedb2fb1
chore: simplify hydration (#10943)
1 year ago
Rich Harris 3ce74e47a9
chore: update sequencing inside blocks (#10939)
1 year ago
Rich Harris f2cca537a3
feat: use implicit return for each block keys (#10938)
1 year ago
Rich Harris 808cc6fca6
feat: shorter each blocks (#10937)
1 year ago
Rich Harris 8cfea9f36c
breaking: always run pre effects synchronously (#10928)
1 year ago
Rich Harris ed2981d7b8
chore: simplify updates (#10922)
1 year ago
Rich Harris b7a0d80bfc
simplify render_effect signature (#10925)
1 year ago
Rich Harris 59ff650ccb
remove if blocks around attribute updates (#10917)
1 year ago
Rich Harris 4f24eae9c3
simplify updates (#10912)
1 year ago
Rich Harris 8685d497e5
feat: use bracket matching instead of `ssr:n` comments (#10904)
1 year ago
Rich Harris 7e5e462194
feat: use short comments (#10899)
1 year ago
Rich Harris 32b1824198
chore: more hydration stuff (#10896)
1 year ago
Rich Harris 9b7331c04c
chore: only specify use_clone_node when necessary (#10895)
1 year ago
Rich Harris 8214075285
fix: update type of `options.target` (#10892)
1 year ago
Rich Harris 7f10642add
chore: improve hydration tests (#10887)
1 year ago
Dominic Gannaway fe7c45ba13
Add more tests (#10882)
1 year ago
Dominic Gannaway d6f10c5421
add more legacy tests (#10881)
1 year ago
Rich Harris b6c7956b26
chore: remove blocks (#10880)
1 year ago
Dominic Gannaway 83f30bf0e8
fix: allow runes for variable declarations in the template (#10879)
1 year ago
Simon H b468978e4d
fix: handle multiple snippet parameters with one or more being optional (#10833)
1 year ago
Simon H 3eef1cb8cf
feat: take form resets into account for two way bindings (#10617)
1 year ago
Simon H 416bc85d9c
breaking: add $bindable() rune to denote bindable props (#10851)
1 year ago
Dominic Gannaway 2cabc884ca
add some missing legacy tests (#10875)
1 year ago
Rich Harris 04879c53e9
chore: simplify blocks (#10873)
1 year ago
Simon H a339c28bb7
breaking: apply fallback value every time in runes mode (#10797)
1 year ago
Rich Harris e8ce41815a
chore: simplify transitions (#10798)
1 year ago
Simon H 86b3ea8c23
chore: failing test for out-of-order `$:` execution (#10864)
1 year ago
Dominic Gannaway 8c2f6039c6
fix: improve element class attribute behaviour (#10856)
1 year ago
Simon H 86c57f96de
fix: better await block scope analysis (#10849)
1 year ago
Dominic Gannaway efe85fcce0
fix: more robust select element logic (#10848)
1 year ago
Dominic Gannaway c564c77199
fix: ensure select value is updated upon select element removal (#10846)
1 year ago
Simon H 682f4a6513
fix: adjust scope parent for named slots (#10843)
1 year ago
Dominic Gannaway 117082b039
fix: improve handling of unowned derived signals (#10842)
1 year ago
Simon H f8c85d525d
fix: ensure capture events don't call delegated events (#10831)
1 year ago
Dominic Gannaway fe3b3b463c
feat: adds reactive Map class to svelte/reactivity (#10803)
2 years ago
Simon H c35f0c16af
fix: deduplicate module declaration, adjust type (#10801)
2 years ago
Simon H fbbd89a917
fix: invalidate store when mutated inside each block (#10785)
2 years ago
Simon H 339782f3e0
fix: handle component binding mutation (#10786)
2 years ago
Dominic Gannaway 2cb78ac253
fix: adjust render effect ordering (#10783)
2 years ago
Dominic Gannaway 3f7fcf9aec
feat: add reactive Set class to svelte/reactivity (#10781)
2 years ago
Dominic Gannaway 468ecda6ea
fix: improve internal render effect sequencing (#10769)
2 years ago
Rich Harris 278155968e
chore: refactor reactivity code (#10760)
2 years ago
Dominic Gannaway ef206fe1b5
fix: improve derived output for ssr (#10757)
2 years ago
Rich Harris 7cc5ce4e65
tidy up (#10744)
2 years ago
Simon H 74474fe085
fix: prevent reactive statement reruns (#10736)
2 years ago
Dominic Gannaway 7c00f1dacb
fix: improve bind:this support around proxyied state (#10732)
2 years ago
Simon H 304db0d5b2
fix: bump specificity on all members of a selector list (#10730)
2 years ago
Simon H b1267b03b6
fix: error when exporting reassigned state from module context (#10728)
2 years ago
Simon H ae4af6841a
fix: eagerly unsubscribe when store is changed (#10727)
2 years ago
Simon H 3fd02f1c49
breaking: preserve slots inside templates with a shadowrootmode attribute (#10721)
2 years ago
Papaya cc22492e7a
fix: use toDateString occur error when use pnpm run test in China (#10719)
2 years ago
Simon H fff3320517
chore: custom elements validation (#10720)
2 years ago
Simon H 881e84f988
chore: get more validator tests passing (#10714)
2 years ago
Rich Harris a5a566dfa7
chore: tidy up (#10705)
2 years ago
Dominic Gannaway f8eb0d16d6
fix: improve each keyed block handling of item used as key (#10703)
2 years ago
Dominic Gannaway d9d1022895
fix: improve indexed each equality (#10702)
2 years ago