Commit Graph

134 Commits (9c3b79637b4c99e09b878fb1c3e1b47dd456248c)

Author SHA1 Message Date
Simon H 86ae349bcc
fix: better error messages for invalid HTML trees (#14445)
12 months ago
Rich Harris 4c4f18b24c
chore: fix docs (#14538)
12 months ago
Rich Harris fe0bd299a5
fix: proxify values when assigning using `||=`, `&&=` and `??=` operators (#14273)
12 months ago
Rich Harris a5de086f95
feat: turn `reactive_declaration_non_reactive_property` into a runtime warning (#14192)
12 months ago
Dominic Gannaway 4d2f2fb8e6
feat: allow snippets to be exported from module scripts (#14315)
12 months ago
Dominic Gannaway ed7ebcde1e
feat: add error boundaries (#14211)
12 months ago
Dominic Gannaway 7fd3774015
fix: disallow invalid attributes for `<svelte:window>` and `<svelte:document>` (#14228)
1 year ago
Rich Harris 4157db94c4
fix: correct typo in compiler error messages (#14044)
1 year ago
Richard Smith e99e865291
docs: update links to point to new site (#13986)
1 year ago
Paolo Ricciuti 8ff2af52d3
fix: show filename information in `legacy_recursive_reactive_block` (#13764)
1 year ago
Dominic Gannaway ae10f4d37c
breaking: state mutations inside the template are no longer allowed (#13660)
1 year ago
Dominic Gannaway 139114bdcb
fix: ensure legacy run utility does not cause cycles (#13643)
1 year ago
Dominic Gannaway 2070c8a166
breaking: disallow state mutations in logic block expression (#13625)
1 year ago
Rich Harris 5ee3ae4369
update diffs (#13575)
1 year ago
Simon H 4578d4f25a
docs: generate pages for compiler/runtime warnings/errors (#13557)
1 year ago
Rich Harris d6ab12ae76
feat: deprecate `<svelte:self>` in runes mode (#13333)
1 year ago
James Glenn c229e0f80b
feat: a11y warning for `<button>` / `<a>` without aria-label and content (#13130)
1 year ago
Simon H ed7611b163
feat: provide guidance in browser console when logging `$state` objects (#13142)
1 year ago
wackbyte e3ad1acc90
fix: follow spec for `customElement` option (#13247)
1 year ago
Simon H 1a9d8a509c
fix: allow `&` to appear at the top when inside a `:global(...)` (#13215)
1 year ago
Dominic Gannaway 3b88b88886
fix: prevent nullish snippet for rendering empty content (#13083)
1 year ago
Rich Harris 194570dc70
fix: error at compile time on unsupported TypeScript language features (#12982)
1 year ago
Dominic Gannaway cf6b64c6c0
fix: error on incorrect attributes for svelte:body (#13084)
1 year ago
Rich Harris 77096a1f30
fix: error on invalid element name (#13057)
1 year ago
Rich Harris bc1624ffc8
chore: configure knip (#13016)
1 year ago
Dominic Gannaway 975918c602
fix: ensure assignments to state field inside constructor trigger effect (#12985)
1 year ago
Simon H 732dbf7fa9
breaking: deprecate `context="module"` in favor of `module` (#12948)
1 year ago
Paolo Ricciuti 02c86b1973
feat: error on invalid component name (#12821)
1 year ago
Rich Harris 0812b10100
breaking: overhaul proxies, remove `$state.is` (#12916)
1 year ago
Rich Harris 57a4b5d19c
feat: better compiler warnings for non-reactive dependencies of reactive statements (#12824)
1 year ago
brunnerh 32808ac054
docs: More guidance on migrating away from `<svelte:component>`. (#12839)
1 year ago
Rich Harris c51dfcfc00
feat: warn on invalid event handlers (#12818)
1 year ago
Rich Harris dfb6755514
feat: add compiler error when encountering a $-prefixed store value outside a `.svelte` file (#12799)
1 year ago
Rich Harris 7cbd188f80
breaking: replace `$state.frozen` with `$state.raw` (#12808)
1 year ago
Paolo Ricciuti cbcd7617c4
feat: deprecate `svelte:component` (#12694)
1 year ago
Theodor Steiner 7ae21ea97d
feat: make <svelte:option> customElement configuration's tag property optional (#12751) (#12754)
1 year ago
Dominic Gannaway d06174e461
chore: add error for derived self referencing (#12746)
1 year ago
Paolo Ricciuti e4e66e237f
feat: allow for `svelte:options` css injected (#12660)
1 year ago
Simon H 363535c849
feat: warn on obvious legacy component instantiation (#12648)
1 year ago
Simon H 3bff87ac66
chore: tweak html tree validation (#12618)
1 year ago
Simon H 13d86e9019
feat: allow `:global` in more places (alternative) (#12560)
1 year ago
Rich Harris db7652116e
chore: tweak `$state.is` warning docs a bit more (#12605)
1 year ago
Simon H 3515776009
docs: tweak `$state.is` warning (#12599)
1 year ago
Rich Harris 72f5539f51
fix: remove runtime validation of components/snippets, rely on types instead (#12507)
1 year ago
Dominic Gannaway 518d9854f5
chore: add warning for invalid render function of createRawSnippet (#12535)
1 year ago
Rich Harris ff080cbbdc
fix: improve validation error that occurs when using `{@render ...}` to render default slotted content (#12521)
1 year ago
Rich Harris 2ce2b7d98b
feat: warn if binding to a non-reactive property (#12500)
1 year ago
Simon H 32b55eaa93
breaking: warn on quotes single-expression attributes in runes mode (#12479)
1 year ago
Simon H 04da87b599
fix: prevent invalid `:global` usage (#12474)
1 year ago
Simon H 3c3a542c05
fix: error on snippet rest parameters (#12472)
1 year ago
Simon H 9c507a0a57
fix: ensure `$state.snapshot` never errors (#12445)
1 year ago
Rich Harris 8d3c0266ce
breaking: use `structuredClone` inside `$state.snapshot` (#12413)
1 year ago
Simon H f846cb4833
fix: disallow using `let:` directives with component render tags (#12400)
1 year ago
Paolo Ricciuti 4e8d1c8c52
feat: runtime dev warn for mismatched `@html` (#12396)
1 year ago
Rich Harris bdc45fdf7f
breaking: rename `legacy.componentApi` to `compatibility.componentApi` (#12370)
1 year ago
Simon H 14cbb65d85
chore: stricter control flow syntax validation in runes mode (#12342)
1 year ago
Simon H c42bb04276
fix: disallow accessing internal Svelte props (#12207)
1 year ago
Dominic Gannaway 23484d6875
breaking: prevent usage of arguments keyword in certain places (#12191)
1 year ago
Rich Harris 6588d85364
chore: rewrite state_unsafe_mutation message (#12059)
1 year ago
Dominic Gannaway ccb3c90cd5
breaking: rename $effect.active to $effect.tracking (#12022)
1 year ago
Simon H ba017db89d
docs: make legacy.componentApi more visible (#11924)
1 year ago
Dominic Gannaway 9f823b95e3
fix: improve consttag ordering in non-runes mode (#11908)
1 year ago
Rich Harris d15fd9556f
chore: better invalid attribute message (#11754)
2 years ago
Paolo Ricciuti 5765752d78
fix: throw on invalid attribute expressions (#11736)
2 years ago
Rich Harris d288735fa8
breaking: disallow string literal values in `<svelte:element this="...">` (#11454)
2 years ago
Rich Harris 2ebb277be7
feat: more information when hydration fails (#11649)
2 years ago
Rich Harris 3bf68b4765
fix: make messages more consistent (#11643)
2 years ago
Simon H 4bedd0e4fb
feat: error on imports to `svelte/internal/*` (#11632)
2 years ago
Paolo Ricciuti 87a420f64d
feat: error when snippet shadows a prop (#11631)
2 years ago
Dominic Gannaway 7ef686f8ee
feat: provide $state warnings for accidental equality (#11610)
2 years ago
Rich Harris 5cb432b7bd
feat: warn on unknown warning codes in runes mode (#11549)
2 years ago
Rich Harris 8742823e39
fix: make `$effect.active()` true when updating deriveds (#11500)
2 years ago
Rich Harris dca8861c5a
feat: better error for `bind:this` legacy API usage (#11498)
2 years ago
Simon H 5e0845fe3e
fix: disallow sequence expressions in `@const` tags (#11357)
2 years ago
Caique Torres 68071f7c06
fix: disallow mixing event-handling syntaxes (#11295)
2 years ago
Rich Harris 8e43e9aae0
fix: correctly interpret empty aria- attribute (#11325)
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 22b2c15280
put messages in blockquotes (#11311)
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
Rich Harris 7b55bd4d89
chore: markdown warnings (#11302)
2 years ago
Rich Harris 73490bbb8e
chore: markdown errors (#11294)
2 years ago