Don Alfons
1ca83c2050
[docs] Improve grammar ( #7923 )
...
* [docs] Improve grammar
* revert spelling changes
Co-authored-by: tanhauhau <lhtan93@gmail.com>
2022-10-13 21:01:58 +08:00
Hofer Ivan
739bfaec12
[chore] add missing types to compiler/compile/render_dom
functions and variables ( #7777 )
...
* add missing types to `compiler/compile/render_dom` functions and variables
* add `DetachingOrNull`
* fis `is_head`
2022-10-13 20:56:09 +08:00
Hofer Ivan
0eba57113b
[chore]: store regexp as variable instead of defining it inline ( #7716 )
...
* store regexp as variable instead of defining it inline
* fix naming of `regex_quoted_value`
* some more variables
* optimize `.replace() calls
* restore formatting changes
* optimize `parser.*` calls
* small refactor
* optimize `.test() calls
* rename some variables
* fix tests
* rename pattern variables
* extract common regexes into `patters.ts`
* rename variables to use snake_case
* fix trim
2022-10-13 20:54:30 +08:00
metonym
26a428972b
[fix] "not interactive" -> "noninteractive" ( #7930 )
2022-10-13 20:49:00 +08:00
Conduitry
6ac7038e47
-> v3.51.0
2022-10-10 13:15:45 -04:00
Ben McCann
1c659193a0
[docs] update SvelteKit status ( #7919 )
2022-10-07 16:34:31 -07:00
Geoff Rich
ff2759e143
[docs] fix typo in getting started ( #7918 )
2022-10-07 16:25:19 -07:00
Samuel Stroschein
220325cd9f
[docs] add inline documentation to svelte runtime functions ( #7846 )
...
* add documentation
* add links do docs
2022-10-07 17:11:46 +08:00
Tan Li Hau
2b73938857
Update CHANGELOG.md
2022-10-07 08:25:04 +08:00
Tan Li Hau
8de7931c64
[feat] better error message for invalid logic block placement ( #7862 )
...
* better error message for invalid logic block placement
* include checking for {@html} tags in invalid location
2022-10-07 08:23:12 +08:00
Yuichiro Yamashita
d04b1cca24
Update CHANGELOG.md
2022-10-06 23:30:42 +09:00
Tan Li Hau
158ec43d99
[fix] do not warn about missing props for bindings ( #6583 )
2022-10-06 23:29:48 +09:00
Marcos Mercuri
ce569f97eb
[docs] Add clarification on how reactivity works ( #7819 )
...
* Add clarification on how reactivity works
Based on the fact that there are multiple issues were opened related to a perceived bug on the reactive variables, I thought it would be good to add a clarification on the docs. Part of the text is taken from [this comment](https://github.com/sveltejs/svelte/issues/7818#issuecomment-1230374639 ) that I found super useful.
* Reword based on PR comments
2022-10-06 17:23:29 +08:00
Yuichiro Yamashita
bfb7536c1a
Update CHANGELOG.md
2022-10-06 10:28:41 +09:00
Tan Li Hau
81d4dbad99
[fix] call on_destroy
if unmounted called immediately before on_mount
( #7860 )
...
* call on_destroy if unmounted called immediately before on_mount
* feat: review changes
2022-10-06 10:21:36 +09:00
Yuichiro Yamashita
57541e6abc
Update CHANGELOG.md
2022-10-06 01:21:31 +09:00
Tan Li Hau
5c5bc27d97
[feat] Support style props for SVG components ( #7859 )
2022-10-06 01:18:37 +09:00
Tan Li Hau
ea2f83adeb
Update CHANGELOG.md
2022-10-05 23:29:43 +08:00
Yuichiro Yamashita
01a91163a9
[fix] Improve error message if this
attribute of <svelte:component>
is not valid ( #7551 )
...
* add test
* improve error message if this attribute of <svelte:component> is not SvelteComponent
* add more tests
* improve validation
* simplify test
Co-authored-by: Tan Li Hau <tanhauhau@users.noreply.github.com>
2022-10-05 23:28:00 +08:00
Shawn
be70a898f3
[docs] fix link redirect to discord ( #7911 )
...
* fix link redirect to discord
* fix link redirect to discord
2022-10-05 22:44:08 +08:00
Ben McCann
7d20194d8a
[docs] create getting started guide outside blog ( #7812 )
2022-10-04 21:38:58 -07:00
Alex
a752ef4709
GitHub Workflows security hardening ( #7883 )
2022-10-03 14:34:10 -07:00
Daniel Sandoval
0b46c72cad
[docs] "What's new in Svelte" October newsletter ( #7898 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com>
Co-authored-by: Lyu, Wei-Da <36730922+jasonlyu123@users.noreply.github.com>
Co-authored-by: Willow (GHOST) <ghostdevbusiness@gmail.com>
2022-09-30 10:57:42 -07:00
Simon H
c12704c301
[fix] typings for #7863
2022-09-28 16:51:45 +02:00
Xiao Chuan
ee5479d00e
[fix] fix ctx and dirty type ( #7832 )
...
* fix: ctx type
* fix: update function dirty type
2022-09-22 23:25:04 +08:00
Tan Li Hau
132dbecc58
Update CHANGELOG.md
2022-09-21 21:49:12 +08:00
Tan Li Hau
b20fb114a6
allow nullish values for component event handlers ( #7863 )
2022-09-21 21:48:01 +08:00
Yuichiro Yamashita
25a05bf952
update changelog
2022-09-15 22:26:15 +09:00
Yuichiro Yamashita
433460ec2d
[feat] skip custom element check if <svelte:element> uses under svg ( #7869 )
...
* add test
* skip custom element check if svelte element uses under svg
2022-09-15 22:22:40 +09:00
Tan Li Hau
56bcec5ddd
Update CHANGELOG.md
2022-09-13 23:57:13 +08:00
Yuichiro Yamashita
5adac302c0
[fix] call attribute bindings for custom element if <svelte:element> render custom element ( #7766 )
...
* call attr bindings if tag is custom element
* add test
2022-09-13 23:56:19 +08:00
Tan Li Hau
c113d9d978
Update CHANGELOG.md
2022-09-13 23:55:22 +08:00
metonym
980aff8a4a
[fix] omit a11y warning for native checkbox/radio inputs ( #7838 )
...
* [fix] omit a11y warning for native checkbox/radio inputs
Fixes #7837
* align implementation with eslint-plugin-jsx-a11y
Co-authored-by: tanhauhau <lhtan93@gmail.com>
2022-09-13 23:44:20 +08:00
Tan Li Hau
d7cfe22f37
Update CHANGELOG.md
2022-09-13 21:40:09 +08:00
MCMXC
82013aa161
feat(a11y): add click-events-have-key-events rule ( #5073 )
...
* feat(a11y): add click-events-have-key-events rule
Signed-off-by: mhatvan <markus_hatvan@aon.at>
* Fine-tune click-events-have-key-events rule
Signed-off-by: mhatvan <markus_hatvan@aon.at>
* Implement PR feedback
Signed-off-by: Markus Hatvan <markus_hatvan@aon.at>
* Implement PR feedback
Signed-off-by: Markus Hatvan <markus_hatvan@aon.at>
* slight refactor to use existing utils
* update docs
* fix rebase conflicts
Signed-off-by: mhatvan <markus_hatvan@aon.at>
Signed-off-by: Markus Hatvan <markus_hatvan@aon.at>
Co-authored-by: tanhauhau <lhtan93@gmail.com>
Co-authored-by: dsfx3d <dsfx3d@gmail.com>
2022-09-13 21:22:10 +08:00
Tan Li Hau
64690974dd
Update CHANGELOG.md
2022-09-13 19:22:02 +08:00
Yuichiro Yamashita
e2538c594b
[feat] support --style-props
for <svelte:component>
( #7468 )
...
* add test
* support --style-props for <svelte:component>
* refactor
* add more test
* support switching instance
* add test with svelte:self
* merge duplicated if statement
* slight refactor
* remove unnecessary anchor
* reorder insertion
Co-authored-by: tanhauhau <lhtan93@gmail.com>
2022-09-13 19:20:45 +08:00
Tan Li Hau
75a7c3e68f
Update CHANGELOG.md
2022-09-13 19:19:35 +08:00
tanhauhau
899d0cc67c
update docs for a11y-no-noninteractive-tabindex and rename from a11y-no-nointeractive-tabindex -> a11y-no-noninteractive-tabindex
2022-09-13 19:16:58 +08:00
Shinobu Hayashi
2cd661156e
[feat] Add a11y rule to check no tabindex in nointeractive element ( #6693 )
...
* [feature] add util module to check element is interactive element
* [feature] add util module to check role is interactive role
* [feature] add a11y checker for no-nointeractive-tabindex
* [chore] add test for no-nointeractive-tabindex
* [chore] fix tabindex-no-positive test div -> button
* [refactor] bundle up two filter into one
* Refactor: export a11y-no-nointeractive-tabindex warning from compiler_warning
* slight refactor to use existing utils
Co-authored-by: tanhauhau <lhtan93@gmail.com>
2022-09-13 19:10:45 +08:00
Tan Li Hau
7331c06a74
Update CHANGELOG.md
2022-09-12 03:30:02 +08:00
Vaibhav Rai
78b81277e7
[fix]: Warn user when binding rest operator ( #7526 )
...
* Fix 6860: Warn user when binding rest operator
* move the binding validation to Binding node
* update test
Co-authored-by: vaibhav rai <vaibhavrai@vaibhavs-MacBook-Pro.local>
* add more test case, supporting deep destructuring and array destructuring
Co-authored-by: vaibhav rai <vaibhavrai@vaibhavs-MacBook-Pro.local>
Co-authored-by: tanhauhau <lhtan93@gmail.com>
2022-09-12 03:28:30 +08:00
Tan Li Hau
87f0c461a8
Update CHANGELOG.md
2022-09-12 03:23:12 +08:00
Mathias Picker
6ec8ecf799
[fix] render of svg elements when using svelte:element ( #7695 )
...
* fixed render statement for svg when using svelte:element
* removed unecessary stuff in test
2022-09-12 03:22:17 +08:00
Tan Li Hau
1afcfd2b5f
Update CHANGELOG.md
2022-09-12 03:15:45 +08:00
Tan Li Hau
e2ef2b8731
apply class for dynamic elements ( #7652 )
2022-09-12 03:14:47 +08:00
Tan Li Hau
78a249be36
Update CHANGELOG.md
2022-09-12 03:04:47 +08:00
Yuichiro Yamashita
a5ca0ad65b
[fix] added support for inert (remove duplicated code) ( #7785 )
...
* fix: added support for inert
* remove duplicated boolean_attributes
Co-authored-by: Gautier Ben Aïm <48261497+GauBen@users.noreply.github.com>
2022-09-12 03:03:02 +08:00
Tan Li Hau
2f6afefab0
Update CHANGELOG.md
2022-09-12 02:49:22 +08:00
Yuichiro Yamashita
1e2a55c88e
throw warning instead of error ( #7834 )
2022-09-12 02:48:13 +08:00