Ben McCann
aecd47e8df
chore: upgrade prettier to 3.1 ( #10134 )
12 months ago
Fritz Lin
e9b0908ed8
docs: add missing on:click to immutable example ( #10079 )
12 months ago
Arpit Jalan
3f56baf760
blog: fix typo in 'svelte.dev: A complete overhaul' blog entry ( #9438 )
1 year ago
Simon H
c6c934afb2
chore: cleanup ( #9381 )
...
* lets see if this works
* fix versions
* sigh
* debugging ci is sooo fun
* oh wow
* fix stuff, changelog, add back readme
* appease prettier
* format stuff
1 year ago
Simon Holthausen
fe8a9ce31d
breaking: init Svelte 5
...
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
Co-authored-by: Dominic Gannaway <dg@domgan.com>
1 year ago
Pedro Coelho
ac7505d81b
docs: update text color in animate example ( #9374 )
1 year ago
Vardhaman Bhandari
2a6f9e3bb7
docs: fix typo in blog ( #9373 )
1 year ago
Dani Sandoval
3a842e3da4
docs: "What's new in Svelte" November newsletter ( #9360 )
...
* november draft
* Apply suggestions from code review
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Stanislav Khromov <stanislav.khromov+github@gmail.com>
* add version number to kit suggestion
* add svelte summit blurb
* update title, move summit to intro, add deno note
* Update documentation/blog/2023-11-01-whats-new-in-svelte-november-2023.md
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
---------
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Stanislav Khromov <stanislav.khromov+github@gmail.com>
1 year ago
Ben McCann
54233adb63
docs: clarify "obsolete" in runes blog post ( #9364 )
1 year ago
Ben McCann
895612514c
fix: improve a11y-click-events-have-key-events message ( #9358 )
1 year ago
Min Kim
4b911045b0
docs: fix else if blocks on tutorial ( #9336 )
1 year ago
Ravi van Rooijen
1ed9182025
docs: mention `{#await}` on non-Promise values short-circuiting to the fullfilled branch ( #9324 )
...
Fixes #9323
1 year ago
Willow (GHOST)
e42b961bd2
Add Hacktoberfest blog post ( #9280 )
1 year ago
Dani Sandoval
050592d2e1
docs: "What's new in Svelte" October newsletter ( #9271 )
1 year ago
Simon H
68b40effb2
site: runes banner ( #9228 )
...
* site: runes banner
* well I should get the title right, shouldnt I?
* padding
* fix typo
* tweak
1 year ago
Rich Harris
c50ad34b06
introducing runes ( #9227 )
...
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 year ago
Ben McCann
8e85b3fa9e
docs: remove typescript faq ( #9108 )
1 year ago
Puru Vijay
1a28d58b5d
feat: Copy code button ( #8995 )
...
* Push
* Bump site-kit
* Add headers to primary snippets
* Update deps
* Bump deos
* redploy
* Back to normal
* Push
* Bump deps
* site: fix rendering of promise in deprecation warning (#9191 )
* copy: true
* Bump site-kit
* Use cache
1 year ago
Conduitry
16504d1f52
docs: add FAQ about why you can't keep unused styles ( #9193 )
1 year ago
Jack Farley
9073241daa
docs: mention escaping of curly braces ( #8560 )
1 year ago
Dani Sandoval
effeb7abba
docs: "What's new in Svelte" September newsletter ( #9158 )
...
* first draft. sept
* address pr feedback
* forgot a Joy of Code video!
1 year ago
Geoff Rich
0041f11732
site: add view transitions blog post ( #9162 )
...
* site: add view transitions blog post
* Link live demo
* Apply suggestions from code review
Co-authored-by: Geoff Rich <4992896+geoffrich@users.noreply.github.com>
---------
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
1 year ago
Brittney Postma
2691e19b6b
docs: use latest tag when creating vite template ( #9151 )
1 year ago
gtmnayan
213db5d20a
docs: fix easings example glitch ( #9114 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
1 year ago
Simon H
d2ed2ca329
docs: note ambient module info ( #9106 )
1 year ago
Romain l'Ourson
da3cc6c0a0
fix: typo ( #9102 )
1 year ago
Andy Pan
037b6ce312
docs: Fix a regression for a quoted-attribute example ( #9103 )
...
* Fix a doc regression for a quoted-attribute example
* Prettier ignore
---------
Co-authored-by: Puru Vijay <47742487+PuruVJ@users.noreply.github.com>
1 year ago
Eric Liu
3597cedbd8
docs: fix typo in August newsletter ( #9100 )
1 year ago
github-actions[bot]
50c270a54d
Version Packages ( #9096 )
...
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
1 year ago
Lyu, Wei-Da
05f99d20f9
feat: move svelteHTML to load the correct svelte/element ( #9070 )
...
Make IntrinsicElements extends SvelteHTMLElements
so it can be extend with declare module
converting to module so it can extend without needing another type alias
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
1 year ago
Alpay
ea2b5700ca
docs: fix link ( #9071 )
1 year ago
Dani Sandoval
abf257306b
docs: "What's new in Svelte" August newsletter ( #9034 )
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
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 )
1 year ago
Jo Burgard
3dccf711f8
Fix error in example in 03-typescript.md ( #9001 )
1 year 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
1 year 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.
1 year ago
Aymeric-Henry
13286cfe42
fix(styling): fix styling on documentation for lesson 8-h ( #8990 )
1 year ago
gubo97000
d2d219f8ca
docs: changed path color for better visibility with dark theme ( #8957 )
1 year 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>
1 year ago
Romain l'Ourson
c1d3d58088
docs: remove compiler duplicate paragraph ( #8980 )
...
Co-authored-by: Romain Crestey <romain.crestey@radiofrance.com>
1 year ago
Fanny
f41ff96c3a
docs: fix typo ( #8966 )
1 year ago
gtmnayan
afcf853b65
docs: update migration guide bundler conditions section ( #8965 )
...
#8953 / #8961
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
1 year 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
1 year ago
Jakub Koleżyński
1d05020f10
docs: add display block to todos tutorial ( #8951 )
1 year ago
Dana Woodman
398904894e
docs: Make "unquoted" example actually unquoted ( #8937 )
1 year ago
gtmnayan
895709c6a2
docs: update svg transition example for v4 ( #8947 )
1 year ago
Enrico Sacchetti
02099d9d75
docs: update Typescript elements link ( #8938 )
1 year ago
Tan Li Hau
daba0fc9d2
docs: fix contrast for component-binding example ( #8920 )
1 year ago
Tan Li Hau
a23fcc0f67
docs: choose a color that looks great on both dark and light theme ( #8921 )
1 year ago
Tan Li Hau
d9529a39e3
fix: hackernews example link colors contrast in dark mode ( #8922 )
1 year ago
Simon H
132dd7906a
docs: preprocessor migration details ( #8927 )
...
closes #8916
1 year ago
Puru Vijay
70426be84a
feat(site): Deploy to edge ( #8873 )
...
* Try edge
* Fix errors
* Improvements
* Minor fixes
* Simplify docs layout logic
* Persist session true
* try regions all
* Push new promise-based infra
* pnpm install
* Remote debugging
* Refine
* try to disable prerender for examples
* text
* Weird hack
* url
* log params
* Try param matcher
* try some restructuring
* Leftover
* remove console log
* More async, remove node-fetch
* Fix
* New fixes
* Undo changes
* back to site-kit next 18
1 year ago
Alex Morgan
bb5d3948ed
docs: matches hint with existing structure and solution ( #8915 )
1 year ago
Simon Holthausen
d516bb06e1
docs: add eslint migration
1 year ago
Paul "Joey" Clark
58e95c6aca
docs: Remove old redundant text ( #8893 )
...
The quote marks were already removed in db2d07f236
2 years ago
Mayank Jain
d8a381e049
docs: Updated button width in documentation/reactivity ( #8897 )
...
* Updated button width in documentation/reactivity
Fixed button width in order to avoid the changing width of the button in the result when the text changes from 'time' to 'times'
* Made style changes as per the guidelines
* Replicated changes made in app-a to app-b
* Update App.svelte
* Update App.svelte
---------
Co-authored-by: Puru Vijay <47742487+PuruVJ@users.noreply.github.com>
2 years ago
Simon Holthausen
d4a1b5482f
docs: update old blog post a bit
...
since it's high on google search ranks we should update it to not confuse people
2 years ago
Simon H
b9328a5077
docs: more details on transition migration
2 years ago
Dani Sandoval
4d71ab72c1
docs: "What's new in Svelte" July newsletter ( #8853 )
2 years ago
Brad Dougherty
cfa5447ea5
docs: fix typo in v4 migration guide ( #8890 )
2 years ago
Puru Vijay
d3d1fb563f
blog: post about svelte.dev overhaul ( #8766 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com>
2 years ago
Simon H
b0a3fa1766
fix: ensure createEventDispatcher and ActionReturn work with generic function types ( #8872 )
...
fixes #8860
This contains a small but unfortunately unavoidable breaking change: If you used `never` to type that the second parameter of `createEventDispatcher` shouldn't be set or that the action accepts no parameters (which the docs recommended for a short time), then you need to change that to `null` and `undefined` respectively
2 years ago
Simon Holthausen
1c7ed55385
docs: add a11y-no-static-element-interactions
...
closes #8862
2 years ago
Not-Jayden
e3422e182b
docs: Don't recommend TypeScript type assertions for reactive declarations ( #8824 )
...
strictly speaking that's not the same and could hide some type errors
2 years ago
Valentin Grégoire
c0d92628dd
docs: Make white text on white background visible. ( #8852 )
2 years ago
Alimurtuza
bbcb5f58ae
docs: handle warnings in examples page ( #8836 )
...
ignore some, fix others
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2 years ago
Gwang Jin Kim
d3297e2a25
docs: Remove duplicate note ( #8843 )
2 years ago
Theodore Brown
223db7f19d
docs: fix TypeScript event name typos ( #8844 )
2 years ago
Khurram Jalil
ad2168016b
Fixed #8828 ( #8832 )
2 years ago
iamkneel
7dea31327e
docs: format "MutationObserver" as code ( #8830 )
2 years ago
Simon H
037ac2f55a
docs: update transitions tutorial ( #8822 )
...
fixes #8820
2 years ago
Alimurtuza
79e7ccc415
docs: fix white text on white BG in examples ( #8821 )
...
fixes ##8816
2 years ago
Cesar Napoleon Mejia Leiva
a83e438b5e
docs: fix style directive with important modifier example ( #8802 )
2 years ago
Simon Holthausen
94cfdbcee1
docs: fix snippet
...
closes #8817
2 years ago
Martin Hobert
5ddf4ca779
docs: fix attribute example in basic markup ( #8813 )
...
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2 years ago
gtmnayan
ea18bd7e98
docs: use `@latest` on the migrate command ( #8814 )
2 years ago
Simon H
797b711e3a
docs: tweaks ( #8798 )
...
- link to createEventDispatcher typings
- svelte action type error fix
- migration guide tweak
- add back blog post that has gone missing
2 years ago
Ben McCann
20c9bd1463
update stats for final release
2 years ago
Ben McCann
936ce2bce3
svelte 4 blog post
2 years ago
Simon Holthausen
23fc113d31
docs: note type enhancements breaking change
2 years ago
Ben McCann
b582baa570
docs: list minimum versions for r-p-s and svelte-loader ( #8788 )
2 years ago
Puru Vijay
3c8a07136a
fix(site): renderer new link format ( #8787 )
...
* adapt
* Uncomment
* Push
* Bump site-kit
2 years ago
Puru Vijay
22cc4756e0
feat(site): site-kit renderer ( #8757 )
...
* Push
* Weirdass fix
* Unified renderer
* Move a bit
* Accomodate to new renderer
* update site-kit
* bump site-kit
* Fix script
* Bump site-kit
---------
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2 years ago
Puru Vijay
cf32fa2497
fix(site): update tutorial links ( #8780 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2 years ago
Ben McCann
be5742aefe
docs: update link
2 years ago
Simon H
203490c3e4
breaking: use `CustomEvent` constructor instead of deprecated `createEvent` method ( #8775 )
...
closes #8474
2 years ago
gtmnayan
914529fa76
feat: smaller destructor chunk ( #8763 )
...
technically a breaking change because someone with a mutation observer could rely on the order of operations
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2 years ago
Puru Vijay
88504ee90a
docs(sites): Auto-generated CompileOptions ( #8756 )
...
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
2 years ago
gtmnayan
f8139e5a6e
chore(site): fix build ( #8762 )
...
* fix: 404 instead of 500
* omit legacy entrypoints
* fix prefetch
2 years ago
Puru Vijay
67b4e4ff1c
docs: normalize svelte compiler headings ( #8755 )
...
The `svelte.` prefix was a remnant of CJS times
2 years ago
Simon H
75917ee1a5
docs: migration page ( #8739 )
2 years ago
Simon H
4e569d1895
docs: Svelte 3/4 differences ( #8740 )
...
note some inline, drive-by-fix in custom element docs
closes #8703
2 years ago
Puru Vijay
62bef809b2
Merge remote-tracking branch 'origin/version-4' into sites
2 years ago
Rich Harris
b1cafc4573
update type generation script ( #8712 )
...
* chore: playground (#8648 )
* initialize playground
* pnpm up
* tidy up git ignore
* remove fluff
* format
* rm readme
* fix jsconfig error
* add skip-worktree instructions
* reload hack
* simplify
* use rollup
* ughh
* add flag for SSR
* ...
* simplify further
* configure launch.json
* add debugger info to readme
* remove vm modules flag
* use replaceAll instead of replace
* tidy up
* fix: make it run
* add watch to launch config
* Generate type declarations with `dts-buddy` (#8702 )
* use dts-buddy
* remove debug output
* remove existing type generation script
* fix package.json
* update gitignore
* bump dts-buddy
* remove unused action entry point
* add svelte/compiler and svelte/types/compiler/preprocess modules
* bump dts-buddy
* annoying
* changeset
* bump dts-buddy
* get rid of .d.ts files
* another one
* Update packages/svelte/package.json
Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com>
---------
Co-authored-by: Rich Harris <git@rich-harris.dev>
Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com>
* fix: export ComponentType (#8694 )
* fix: export ComponentType
* ughh
* changeset
* fix: derived types (#8700 )
* fix: derived store types
* changeset
* Version Packages (next) (#8709 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* update type generation script
* remove unused stuff
* fix: changeset publish script isn't called release anymore (#8711 )
* chore: remove prepare script (#8713 )
* chore: fix release workflow (#8716 )
* More readable, Fix $$_attributes
* Fix types (#8727 )
* put comment in right place
* bump dts-buddy
---------
Co-authored-by: Rich Harris <git@rich-harris.dev>
* build types
* add svelte/compiler types
* remove prepare script
* fix
* typo
* squelch errors
* Add svelte and kit to twoslash's types field
* squelch more stuff
* Add errors to account for new types
* Remove deps
* formatting tweak
* fix linting, maybe
* the hell
* gah
* Fix types a bit
* bump dts-buddy
* pnpm generate in dev mode
* Cache again
* reduce index
* bump dts-buddy
* remove comment
---------
Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com>
Co-authored-by: Rich Harris <git@rich-harris.dev>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dominik G <dominik.goepel@gmx.de>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Puru Vijay <devpuruvj@gmail.com>
2 years ago
Puru Vijay
aa5bb4a3db
feat: Better docs nav ( #8605 )
...
* DocsNav
* Push
* Nav title on each page
* Install jridgewell sourcemap codec. Why it breaking suddenly
* Use theme store
* Use $nav_title
* use $page.data.nav_title
* Disable global prerendering
* Fix Suppprters section
* use new method
* Initially hidden nav functionality
* Minor fixes
* Simplify into one single nav
* Accomodate to the bottom nav
* Minor fixes
* nit
* Add selected to other pages as well
* New way of passing to navbar
* Code cleanup
* Directly pass list instead of components
* 14 days
* Fix comment
* Discord icon
* Bump site-kit finally
2 years ago
Puru Vijay
ad849cc795
chore(site-2): What's new in Svelte June 2023 ( #8705 )
2 years ago
Rich Harris
27538fc598
tweak docs content ( #8675 )
...
* update intro
* update tutorial links
* unitalicise code spans
* Update documentation/docs/01-getting-started/01-introduction.md
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
* Update documentation/docs/01-getting-started/01-introduction.md
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
* Update documentation/docs/01-getting-started/01-introduction.md
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
* Update documentation/docs/01-getting-started/01-introduction.md
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
---------
Co-authored-by: Rich Harris <git@rich-harris.dev>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2 years ago