Commit Graph

525 Commits (e4faa7805dbdc65d720b02036369393b027419c2)

Author SHA1 Message Date
Simon H d408d20cdd
fix: replicate Svelte 4 props update detection in legacy mode (#11577)
1 year ago
Simon H a0bdac8cd7
fix: correctly handle falsy values of style directives in SSR mode (#11583)
1 year ago
Paolo Ricciuti 81517a506c
fix: allow for non optional chain call expression in render (#11578)
1 year ago
Dominic Gannaway 5497b3d0bc
fix: ensure all effect cleanup functions are untracked (#11567)
1 year ago
Dominic Gannaway fcc72ae2f3
feat: provide better error messages in DEV (#11526)
1 year ago
Simon H 641e411cf1
fix: ensure spread events are always added (#11535)
1 year ago
Simon H 31f8fea22d
fix: don't warn on writes to `$state` (#11540)
1 year ago
Simon H 65223363e9
fix: handle falsy prop aliases correctly (#11539)
1 year ago
Dominic Gannaway 4ea8a5e36b
chore: add derived effect ownership tests (#11538)
1 year ago
Fabio Rotondo f219c795f4
fix: check for falsy values in spread (#11388)
1 year ago
Rich Harris 8742823e39
fix: make `$effect.active()` true when updating deriveds (#11500)
1 year ago
Dominic Gannaway 30caaef2e5
fix: improve behaviour of unowned derived signals (#11521)
1 year ago
Paolo Ricciuti 70419daf5f
fix: use snippet as parent element of snippets childrens in validator (#11463)
1 year ago
Rich Harris b1b2dddc3b
feat: add support for svelte inspector (alternative approach) (#11514)
1 year ago
Dominik G 28f3755e40
fix: use acceptExports to support partial hmr (#11453)
1 year ago
Paolo Ricciuti 0cf6d56ffe
fix: increment and decrement edge case (#11506)
1 year ago
Vladislav Logvin 85d680582b
Fix: bind:scroll resets scroll state (#11469)
1 year ago
Simon H 6bd6f0971b
fix: ensure derived is detected as dirty correctly (#11496)
1 year ago
Simon H d86b05279f
fix: prevent false positive ownership warning (#11490)
1 year ago
Paolo Ricciuti fa3e98e8c6
fix: allow to access private fields after `this` reassignment (#11487)
1 year ago
Paolo Ricciuti 34079a0ec5
fix: restore value after attribute removal during hydration (#11465)
1 year ago
Simon H 9c1a5063b9
fix: adjust order of `derived` function definition overloads (#11426)
1 year ago
Simon H 6e5ab2e678
fix: prevent ownership validation from infering with component context (#11438)
1 year ago
Dominic Gannaway 1f9ad03287
fix: ensure $inspect untracks inspected object (#11432)
1 year ago
Dominic Gannaway b4968584df
fix: improve html escaping of element attributes (#11411)
1 year ago
Simon H a038d49f78
fix: rework bindable types strategy (#11420)
1 year ago
Hunter Johnston 17b2f6215d
fix: `event.currentTarget` always being equal to `event.target` (#11419)
1 year ago
Rich Harris edefc846c3
fix: set correct component context when rendering snippets (#11401)
1 year ago
Paolo Ricciuti f64d16931d
fix: detect style shorthands as stateful variables in legacy mode (#11421)
1 year ago
Dominic Gannaway 0f4f3d7df0
fix: improve unowned derived signal behaviour (#11408)
1 year ago
Luke Warlow 8be6fdde54
feat: MathML support (#11387)
1 year ago
Simon H 2754e4eb39
fix: handle reassignment of `$$props` and `$$restProps` (#11348)
1 year ago
Simon H 5e0845fe3e
fix: disallow sequence expressions in `@const` tags (#11357)
1 year ago
Jeremiasz Major 0397fcb614
fix: require whitespace after `@const` tag (#11379)
1 year ago
Simon H eb7e32c168
fix: collect all necessary setters of html elements (#11371)
1 year ago
Simon H cd2506535f
feat: leave view transition pseudo selectors untouched (#11375)
1 year ago
Simon H de315d84eb
fix: ensure reactions are kept dirty when marking them again (#11364)
1 year ago
Simon H 4479b8c6f3
fix: allow `bind:this` on `<select>` with dynamic `multiple` attribute (#11378)
2 years ago
Simon H 500b2065e0
fix: apply modifiers to bubbled events (#11369)
2 years ago
Simon H 8b1a26904a
chore: add css regression test (#11373)
2 years ago
Paolo Ricciuti 2d2508a2cd
feat: allow for literal property definition with state on classes (#11326)
2 years ago
Paolo Ricciuti c7bdef595b
fix: store from props hoist wrong param (#11367)
2 years ago
Caique Torres 68071f7c06
fix: disallow mixing event-handling syntaxes (#11295)
2 years ago
Simon H 7d19e5b1a4
fix: disallow mounting a snippet (#11347)
2 years ago
Paolo Ricciuti d3949a6e71
fix: hr, script and template as valid select children (#11344)
2 years ago
Simon H cd798077b4
feat: provide migration function (#11334)
2 years ago
Rich Harris f1986da755
feat: only inject push/init/pop when necessary (#11319)
2 years ago
Rich Harris 8e43e9aae0
fix: correctly interpret empty aria- attribute (#11325)
2 years ago
Rich Harris 9a887f8dab
chore: directly export function in non-HMR mode (#11333)
2 years ago
Rich Harris 8e17428316
chore: tidy up messages (#11327)
2 years ago
Rich Harris 6ad5cd4461
feat: implement message overloads (#11318)
2 years ago
Rich Harris 476f2172b6
fix: mark `accessors` and `immutable` as deprecated (#11277)
2 years ago
Rich Harris 94b4268ce3
chore: markdown runtime errors/warnings (#11304)
2 years ago
Rich Harris eea5c8ff95
chore: handle option warnings the same as others (#11303)
2 years ago
Simon H f6dfac985c
feat: `Bindable` types (#11225)
2 years ago
Rich Harris 7b55bd4d89
chore: markdown warnings (#11302)
2 years ago
Rich Harris 5405ec6c91
chore: refactor logic for ignoring warnings (#11300)
2 years ago
Rich Harris 73490bbb8e
chore: markdown errors (#11294)
2 years ago
Simon H 2d378bb762
breaking: disallow binding to component exports in runes mode (#11238)
2 years ago
Craig Jennings fe6e4e2b05
fix: avoid hoisting error by using 'let' instead of 'var' (#11291)
2 years ago
Rich Harris fd5f5bb85d
monkey-patch console.log and console.warn for all tests (#11265)
2 years ago
Rich Harris 5ef1fdf7cc
fix: run render functions for dynamic void elements (#11258)
2 years ago
Rich Harris 521d124267
fix: allow events to continue propagating following an error (#11263)
2 years ago
Rich Harris 9721d5641b
feat: implement `:global {...}` CSS blocks (#11276)
2 years ago
Vaibhav Rai 11c7cd5495
Feat: Add read-only binding focused (#11271)
2 years ago
Jeremiasz Major b91a67ba68
feat: include `script` and `svelte:options` attributes in ast (#11241)
2 years ago
Simon H 7edba25581
fix: run event attributes after binding event listeners (#11230)
2 years ago
Rich Harris 6bff8c0e93
fix: ensure that CSS is generated for the final frame of a transition (#11251)
2 years ago
Rich Harris 0ad0f04b0b
fix: more robust moving of each item nodes (#11254)
2 years ago
Jeremiasz Major a764f4e88e
don't allow children in svelte:options (#11250)
2 years ago
Paolo Ricciuti eac4218402
fix: possible name clash in hoisted functions (#11237)
2 years ago
Simon H cca67bba51
fix: support `$state.snapshot` as part of variable declarations (#11235)
2 years ago
Rich Harris de2d8a0bee
Revert "feat: allow $inspect reactivity map, set, date (#11164)" (#11223)
2 years ago
Rich Harris 42ce8d74e1
breaking: warn on self-closing non-void HTML tags (#11114)
2 years ago
Simon H 27eb91bbce
fix: dynamic namespace fixes and enhancements (#11219)
2 years ago
Tan Li Hau 43d13e92a0
feat: allow $inspect reactivity map, set, date (#11164)
2 years ago
Simon H 4b59ef3c41
fix: widen ownership when sub state is assigned to new state (#11217)
2 years ago
Tan Li Hau 27d48c601f
fix: catch clause scope (#11209)
2 years ago
Simon H d51075c154
breaking: warn/error on old syntax in runes mode (#11203)
2 years ago
Tan Li Hau 3d49731b1b
fix: refine css `:global()` selector checks in a compound selector (#11142)
2 years ago
Tan Li Hau 1510c13113
feat: add warning when using $bindable runes without calling it (#11181)
2 years ago
Dominic Gannaway 777527b5a3
fix: remove memory leak from retaining old DOM elements (#11197)
2 years ago
Rich Harris 1c33ff0107
fix: make snippet effects transparent for transitions (#11195)
2 years ago
Rich Harris 8fef412dbb
feat: use state proxy ancestry for ownership validation (#11184)
2 years ago
Dominic Gannaway 77ed790fb3
fix: ensure bind:this unmount behavior for members is conditional (#11193)
2 years ago
Dominic Gannaway 18097478fc
breaking: remove unstate(), replace with $state.snapshot rune (#11180)
2 years ago
Simon H cd7c3fea16
fix: more accurate default value handling (#11183)
2 years ago
Dominic Gannaway 2fa095b61e
fix: improve spreading of attributes (#11177)
2 years ago
Daniel d061f2f137
fix: ssr comments in head elements that require raw content (#10936)
2 years ago
Tan Li Hau 8caaa375cf
feat: add reactive URL object to svelte/reactivity (#11157)
2 years ago
Tan Li Hau a092899843
feat: update error message for snippet binding and assignments (#11168)
2 years ago
Tan Li Hau d1976c07ff
fix: fix string name of reactive map and set iterator (#11169)
2 years ago
Tan Li Hau 9b67ee18eb
fix: throw error when auto-subscribed store variable shadow by local variable (#11170)
2 years ago
Rich Harris dc6a8398d1
Revert "fix: ensure deep mutation ownership widening" (#11155)
2 years ago
Dominic Gannaway 19144b000f
fix: add validation around disallowed sequence expressions to element attributes (#11149)
2 years ago
Tan Li Hau 15eb5b5864
fix: missing classes after dynamic expressions in class attributes (#11134)
2 years ago
Rich Harris d5776c3ec3
feat: simplify HMR implementation (#11132)
2 years ago
Dominic Gannaway afe1d11a5b
feat: hot module reloading support for Svelte 5 (#11106)
2 years ago
Dominic Gannaway 3bb231197e
fix: loosen proxy signal creation heuristics (#11109)
2 years ago
Simon H 27891cb2dd
fix: ensure top level snippets are defined when binding to component prop (#11104)
2 years ago