Commit Graph

536 Commits (9f823b95e31eee93e1ed03d5e9f34cd16fade5b7)

Author SHA1 Message Date
Dominic Gannaway 053159bf0b
fix: avoid state_referenced_locally warning within type annotations (#11638)
1 year ago
Simon H 4365562228
fix: deduplicate children prop from default slot (#10800)
1 year ago
Simon H 4bedd0e4fb
feat: error on imports to `svelte/internal/*` (#11632)
1 year ago
Dominic Gannaway e5e7ec2404
fix: better handle img loading attribute (#11635)
1 year ago
Paolo Ricciuti 87a420f64d
feat: error when snippet shadows a prop (#11631)
1 year ago
Simon H 573b9f1d74
fix: adjust unknown code warning offset (#11621)
1 year ago
Dominic Gannaway f488a6e84a
feat: add $state.is rune (#11613)
1 year ago
Dominic Gannaway 1087e6fb54
chore: improve SSR invalid element error message (#11585)
1 year ago
Simon H faced066bd
feat: migrate warnings (#11607)
1 year ago
Simon H 2bc39b1de2
chore: better ignore code handling (#11606)
1 year ago
Rich Harris 5cb432b7bd
feat: warn on unknown warning codes in runes mode (#11549)
1 year ago
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)
1 year ago
Simon H 500b2065e0
fix: apply modifiers to bubbled events (#11369)
1 year ago
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