Ben McCann
1b62914825
format
1 year ago
gtmnayan
508e30c681
fix: @html mismatch in hydration
1 year ago
Dani Sandoval
abf257306b
docs: "What's new in Svelte" August newsletter ( #9034 )
1 year ago
github-actions[bot]
a08ae0f555
Version Packages ( #9037 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 year ago
hackape
99a3cc93b6
fix: allow child element with slot attribute within svelte:element ( #9038 )
...
fix #9018
1 year ago
Ben McCann
ce047651e5
docs: update component directives page ( #9040 )
1 year ago
Ben McCann
d6abd0a604
docs: clarify performance concerns around props and restProps ( #9047 )
...
* docs: clarify performance concerns around props and restProps
* Update documentation/docs/02-template-syntax/02-basic-markup.md
1 year ago
Teo
01cbb661d0
chore: remove duplicate condition in `if` statement ( #9023 )
1 year ago
Conduitry
959825c7c4
chore: fix tests on Node 18.17.0 ( #9049 )
1 year ago
Paolo Ricciuti
a71f3595a3
fix: Add data-* to svg attributes ( #9036 )
...
* Add data-* to svg attributes
* Create twelve-suits-drive.md
1 year ago
Kai Erik Niermann
5cd4f7750e
docs: add parenthesis back to regex literal example ( #9027 )
...
* fix: added parenthesis to literal notation example
* add prettier-ignore
---------
Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com>
1 year ago
Posandu Mapa
7af165de09
docs: make transition global in deferred transition example ( #9020 )
2 years ago
Lennard Langenbruch
60cd0ec950
fix: update link for doucmentation & sites in README ( #9014 )
2 years ago
github-actions[bot]
6827709373
Version Packages ( #9008 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 years ago
hackape
a2b6401c43
fix: `svelte:component` spread props change not picked up ( #9006 )
...
fix #9003 , amend #8946 (comment)
2 years ago
Jo Burgard
3dccf711f8
Fix error in example in 03-typescript.md ( #9001 )
2 years ago
github-actions[bot]
5d66f96d01
Version Packages ( #8928 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 years ago
Nguyen Tran
f8283fbc77
fix: remove let variable from select binding dependencies ( #8969 )
...
Fixes #2943
The issue linked above invalidates a variable that is not defined in <script> but instead is defined as a let: variable, which does not make sense to invalidate, therefore, this PR exists.
2 years ago
Simon H
cb1358cc41
fix: don't add accessor twice ( #8996 )
...
In dev mode, Svelte creates a setter to throw an error noting that you can't set that readonly prop, which resulted in the accessor getting applied twice to the custom element wrapper, causing an error
fixes #8971
2 years ago
Simon H
657f11376c
feat: add ability to extend custom element class ( #8991 )
...
This should help everyone who has special needs and use cases around custom elements. Since Svelte components are wrapped and only run on connectedCallback, it makes sense to expose the custom element class for modification before that.
- fixes #8954 / closes #8955 - use extend to attach the function manually and save possible values to a prop
- closes #8473 / closes #4168 - use extend to set the proper static attribute and then call attachInternals in the constructor
- closes #8472 - use extend to attach anything custom you need
- closes #3091 - pass `this` to a prop of your choice and use it inside your component
- add some doc for #8987
2 years ago
Ben McCann
4bbb5454e2
perf: optimize imports that are not mutated or reassigned ( #8948 )
...
this means such imports are seen as static and subsequently Svelte needs to generate way less code
2 years ago
SpokenTurnip99
479e8744c5
docs: change fade to fly to match the tutorial ( #8982 )
...
In Transitions / Key Blocks the documentation showed a fade transition and this was not in sync with the tutorial which used a fly transition.
2 years ago
Aymeric-Henry
13286cfe42
fix(styling): fix styling on documentation for lesson 8-h ( #8990 )
2 years ago
Puru Vijay
f10ec8350d
fix(site): Optimise contributors donors images ( #8956 )
2 years ago
gubo97000
d2d219f8ca
docs: changed path color for better visibility with dark theme ( #8957 )
2 years ago
Prajapati omkar
3c0bdcdb72
fix: css in examples directory. ( #8977 )
...
* Update App.svelte
CSS Fixes in span element.
* Add space
---------
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2 years ago
Romain l'Ourson
c1d3d58088
docs: remove compiler duplicate paragraph ( #8980 )
...
Co-authored-by: Romain Crestey <romain.crestey@radiofrance.com>
2 years ago
Puru Vijay
fc7c7770b9
Push ( #8967 )
2 years ago
Fanny
f41ff96c3a
docs: fix typo ( #8966 )
2 years ago
gtmnayan
afcf853b65
docs: update migration guide bundler conditions section ( #8965 )
...
#8953 / #8961
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2 years ago
Puru Vijay
9da320b151
chore(site): LightningCSS ( #8929 )
...
* use lighteningcss
* Update sites/svelte.dev/package.json
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
* Update vite
* use browserlist
---------
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2 years ago
gtmnayan
33fd631b5f
chore: upgrade dependencies ( #8939 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2 years ago
gtmnayan
20dac2ae12
fix: handle patterns in destructured literals ( #8871 )
...
fixes #8863
---------
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2 years ago
Romain l'Ourson
258ccf204b
docs: add category heading in docs pages ( #8918 )
...
Co-authored-by: Romain Crestey <romain.crestey@radiofrance.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2 years ago
Ben McCann
85d49404d3
site: specify width/height and fix prettier ( #8917 )
2 years ago
Puru Vijay
a11bc21549
chore: bump repl 0.5.0-next.12
2 years ago
Jakub Koleżyński
68ad1883c9
site: todos in `animate` tutorial render weird due to typo ( #8952 )
...
* svelte.dev/tutorial/animate - todos render weird on chrome without display: block;
* fix typo
2 years ago
Nguyen Tran
66593c62f4
fix: svelte:component evaluates props once ( #8946 )
...
Fixes #6634
2 years ago
Jakub Koleżyński
1d05020f10
docs: add display block to todos tutorial ( #8951 )
2 years ago
Dana Woodman
398904894e
docs: Make "unquoted" example actually unquoted ( #8937 )
2 years ago
Ben McCann
ff7a4c07d7
chore: fix broken script for generating parser tests ( #8945 )
...
---------
Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2 years ago
Ben McCann
8601195a85
docs: add a couple internal JSDocs and cleanup from TS migration ( #8940 )
2 years ago
gtmnayan
895709c6a2
docs: update svg transition example for v4 ( #8947 )
2 years ago
Enrico Sacchetti
02099d9d75
docs: update Typescript elements link ( #8938 )
2 years ago
gtmnayan
ff76531bd6
fix: correct contributors image file name ( #8942 )
2 years ago
Ben McCann
f218699d71
site: block tutorial from search engines ( #8932 )
2 years ago
Puru Vijay
828276f06b
chore: Skip playwright instaling browsers ( #8935 )
...
* Push
* try npmrc route
* Rootnpmrc
* Add command to install chromium for running tests
2 years ago
github-actions[bot]
3ff0084dc3
Version Packages ( #8925 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 years ago
Tan Li Hau
daba0fc9d2
docs: fix contrast for component-binding example ( #8920 )
2 years ago
Tan Li Hau
a23fcc0f67
docs: choose a color that looks great on both dark and light theme ( #8921 )
2 years ago