Skip to content

Commit c6c934a

Browse files
authored
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 parent b8ea454 commit c6c934a

24 files changed

+3374
-87
lines changed

.changeset/pre.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"mode": "pre",
3-
"tag": "next",
4-
"initialVersions": {
5-
"svelte": "5.0.0-next.0",
6-
"svelte-playgrounds-demo": "0.0.1",
7-
"svelte-playgrounds-sandbox": "0.0.1",
8-
"svelte-5-preview": "0.5.0",
9-
"svelte.dev": "1.0.0"
10-
},
11-
"changesets": []
2+
"mode": "pre",
3+
"tag": "next",
4+
"initialVersions": {
5+
"svelte": "5.0.0-next.0",
6+
"svelte-playgrounds-demo": "0.0.1",
7+
"svelte-playgrounds-sandbox": "0.0.1",
8+
"svelte-5-preview": "0.5.0",
9+
"svelte.dev": "1.0.0"
10+
},
11+
"changesets": []
1212
}

.changeset/rotten-buckets-develop.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
breaking: svelte 5 alpha

.github/workflows/ci.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ jobs:
1717
strategy:
1818
matrix:
1919
include:
20-
- node-version: 16
21-
os: ubuntu-latest
22-
- node-version: 16
20+
- node-version: 18
2321
os: windows-latest
24-
- node-version: 16
22+
- node-version: 18
2523
os: macOS-latest
2624
- node-version: 18
2725
os: ubuntu-latest
@@ -47,6 +45,6 @@ jobs:
4745
- uses: pnpm/[email protected]
4846
- uses: actions/setup-node@v3
4947
with:
50-
node-version: 16
48+
node-version: 18
5149
cache: pnpm
5250
- run: 'pnpm i && pnpm check && pnpm lint'

.prettierignore

+10-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,18 @@ packages/svelte/compiler.cjs
1919
playgrounds/demo/src
2020
playgrounds/sandbox/input/**.svelte
2121
playgrounds/sandbox/output
22-
**/*.md
22+
23+
sites/svelte.dev/static/svelte-app.json
24+
sites/svelte.dev/scripts/svelte-app/
25+
sites/svelte.dev/src/routes/_components/Supporters/contributors.jpg
26+
sites/svelte.dev/src/routes/_components/Supporters/contributors.js
27+
sites/svelte.dev/src/routes/_components/Supporters/donors.jpg
28+
sites/svelte.dev/src/routes/_components/Supporters/donors.js
29+
sites/svelte.dev/src/lib/generated
30+
2331
**/node_modules
2432
**/.svelte-kit
25-
flow-typed
33+
**/.vercel
2634
.github/CODEOWNERS
2735
.prettierignore
2836
.eslintignore

documentation/blog/2023-06-22-svelte-4.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Announcing Svelte 4"
2+
title: 'Announcing Svelte 4'
33
description: 'Updated performance, developer experience, and site'
44
author: The Svelte team
55
authorURL: https://svelte.dev/

documentation/blog/2023-07-01-whats-new-in-svelte-july-2023.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
---
22
title: "What's new in Svelte: July 2023"
3-
description: "Svelte 4.0, new website and a tour around the community"
3+
description: 'Svelte 4.0, new website and a tour around the community'
44
author: Dani Sandoval
55
authorURL: https://dreamindani.com
66
---
77

88
Svelte 4 is out and folks have been building! There's a bunch of new showcases, libraries and tutorials to share. So let's get right into it...
99

1010
## What's new in Svelte
11+
1112
The big news this month was the release of Svelte 4.0! You can read all about it in the [Announcing Svelte 4 post](https://svelte.dev/blog/svelte-4). From performance fixes and developer experience improvements to [a brand new site, docs and tutorial](https://svelte.dev/blog/svelte-dev-overhaul)... this new release sets the stage for Svelte 5 with minimal breaking changes.
1213

1314
If you're already on Node.js 16, it's possible you won't see any breaking changes in your project. But be sure to read the [migration guide](https://svelte.dev/docs/v4-migration-guide) for all the details.
1415

1516
For a full list of all the changes to the Svelte compiler, including unreleased changes, check out the [CHANGELOG](https://github.com/sveltejs/svelte/blob/master/packages/svelte/CHANGELOG.md).
1617

1718
## What's new in SvelteKit
19+
1820
This month there were lots of awesome [bug fixes](https://github.com/sveltejs/kit/blob/master/packages/kit/CHANGELOG.md), so be sure to upgrade to the latest version! There are also a few new features to mention:
21+
1922
- The new `event.isSubRequest` boolean indicates whether this is a same-origin fetch request to one of the app's own APIs during a server request (**1.21.0**, [Docs](https://kit.svelte.dev/docs/types#public-types-requestevent), [#10170](https://github.com/sveltejs/kit/pull/10170))
2023
- A new config option, `config.kit.env.privatePrefix` will set a private prefix on environment variables. This defaults to `''` (**1.21.0**, [Docs](https://kit.svelte.dev/docs/configuration), [#9996](https://github.com/sveltejs/kit/pull/9996))
2124
- `VERSION` is now exported and accessible via `@sveltejs/kit`. This can be used for feature detection or anything else that requires knowledge of the current version of SvelteKit (**1.21.0**, [Docs](https://kit.svelte.dev/docs/modules#sveltejs-kit-version), [#9969](https://github.com/sveltejs/kit/pull/9969))
@@ -27,6 +30,7 @@ For adapter-specific changes, check out the CHANGELOGs in each of [the `adapter`
2730
## Community Showcase
2831

2932
**Apps & Sites built with Svelte**
33+
3034
- [Heerdle](https://github.com/DreaminDani/heerdle) is a remake of Spotify's now-defunct Heardle - the daily music guessing game
3135
- [Meoweler](https://meoweler.com/) is a travel site filled with cats and helpful facts about popular destinations
3236
- [A tech lead from IKEA](https://www.reddit.com/r/sveltejs/comments/13w4zg3/comment/jmaxial/?utm_source=share&utm_medium=web2x&context=3) gave a few more details on the way they build pages (and page template) using Svelte
@@ -39,10 +43,12 @@ For adapter-specific changes, check out the CHANGELOGs in each of [the `adapter`
3943
- [YABin](https://github.com/Yureien/YABin) is Yet Another Pastebin with some very specific features
4044

4145
**Learning Resources**
46+
4247
- [Announcing Svelte 4 post](https://svelte.dev/blog/svelte-4)
4348
- [svelte.dev: A complete overhaul](https://svelte.dev/blog/svelte-dev-overhaul)
4449

4550
_Featuring Svelte Contributors and Ambassadors_
51+
4652
- [Dev Vlog: June 2023](https://www.youtube.com/watch?v=AOXq89h8saI) - Svelte 4.0 with Rich Harris
4753
- [PodRocket: Svelte 4](https://podrocket.logrocket.com/svelte-4) with Geoff
4854
- [This Dot Media: Svelte 4 Launch Party](https://www.youtube.com/watch?v=-9gy_leMmcQ) with Simon, Ben, Geoff, and Puru
@@ -60,12 +66,13 @@ _Featuring Svelte Contributors and Ambassadors_
6066
- [Svelte Society - London June 2023](https://www.youtube.com/watch?v=EkH0aMgeIKw)
6167
- [Using The Svelte Context API With Stores](https://www.youtube.com/watch?v=dp-7NvLDrK4), [Impossible FLIP Layout Animations With Svelte And GSAP](https://www.youtube.com/watch?v=ecP8RwpkiQw) and [Create Beautiful Presentations With Svelte](https://www.youtube.com/watch?v=67lqa5kTQkA) by Joy of Code
6268

63-
6469
_To Watch_
70+
6571
- [Server-side filtered, paginated and sorted Table in SvelteKit](https://www.youtube.com/watch?v=VgCU0cVWgJE) by hartenfellerdev
6672
- [Best Icon Library for Svelte and SvelteKit in 2023](https://www.youtube.com/watch?v=qJP6hC4YIhk) by SvelteRust
6773

6874
_To Read_
75+
6976
- [From Zero to Production with SvelteKit](https://www.okupter.com/events/from-zero-to-production-with-sveltekit) by Justin Ahinon
7077
- [Thoughts on Svelte(Kit), one year and 3 billion requests later](https://claudioholanda.ch/en/blog/svelte-kit-after-3-billion-requests/) by Claudio Holanda
7178
- [How I published a gratitude journaling app for iOS and Android using SvelteKit and Capacitor](https://khromov.se/how-i-published-a-gratitude-journaling-app-for-ios-and-android-using-sveltekit-and-capacitor/) by Stanislav Khromov
@@ -77,8 +84,8 @@ _To Read_
7784
- [Svelte Real‑time Multiplayer Game: User Presence](https://rodneylab.com/svelte-realtime-multiplayer-game/) and [SvelteKit PostCSS Tutorial: use Future CSS Today](https://rodneylab.com/sveltekit-postcss-tutorial/) by Rodney Lab
7885
- [SvelteKit’s World of Routing: Unleash power of your app using Dynamic Routes and Parameters](https://www.inow.dev/sveltekits-world-of-routing-unleash-power-of-your-app-using-dynamic-routes-and-parameters/) by Igor Nowosad
7986

80-
8187
**Libraries, Tools & Components**
88+
8289
- [The Vercel AI SDK](https://vercel.com/blog/introducing-the-vercel-ai-sdk) is an interoperable, streaming-enabled, edge-ready software development kit for AI apps built with React and Svelte
8390
- [Superforms 1.0](https://superforms.rocks/) has been released. Check out the [migration guide](https://superforms.rocks/migration) and [new feature list](https://superforms.rocks/whats-new-v1) for more details
8491
- [Panda CSS](https://panda-css.com/docs/getting-started/svelte) is CSS-in-JS with build time generated styles, RSC compatibility and multi-variant support

documentation/blog/2023-08-01-whats-new-in-svelte-august-2023.md

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "What's new in Svelte: August 2023"
3-
description: "Extending Custom Element Classes and new +server exports"
3+
description: 'Extending Custom Element Classes and new +server exports'
44
author: Dani Sandoval
55
authorURL: https://dreamindani.com
66
---
@@ -10,13 +10,15 @@ Some sweet new features have dropped in both Svelte and SvelteKit, this month. I
1010
More on all that down below...
1111

1212
## What's new in Svelte & Language Tools
13+
1314
There's been a bunch of minor bugfixes since the Svelte 4 release. You can find them in the [CHANGELOG](https://github.com/sveltejs/svelte/blob/master/packages/svelte/CHANGELOG.md).
1415

1516
The **4.1.0 release** added the ability to further customize the custom element class that wraps the underlying Svelte component. Check out the [Custom Elements API docs](https://svelte.dev/docs/custom-elements-api) or the [PR](https://github.com/sveltejs/svelte/pull/8991) for more info!
1617

1718
In addition to supporting SvelteKit's new `HEAD` server method, Svelte's language tools now support Prettier v3 (**extensions-107.9.0**) and workspace trust settings are now used to support all settings in workspace (**extensions-107.8.0**).
1819

1920
## What's new in SvelteKit
21+
2022
- The `HEAD` server method is now available in API routes (**1.22.0**, [Docs](https://kit.svelte.dev/docs/routing#server), [#9753](https://github.com/sveltejs/kit/pull/9753))
2123
- Responses with `Vary` headers are now cached, too (except for `Vary: *`) (**1.22.0**, [Docs](https://kit.svelte.dev/docs/routing#server-content-negotiation), [#9993](https://github.com/sveltejs/kit/pull/9993))
2224
- There's now a more helpful error for preview if SvelteKit's build output doesn't exist (**1.22.2**, [#10337](https://github.com/sveltejs/kit/pull/10337))
@@ -28,6 +30,7 @@ For all the patches and performance updates from this month, check out the [Svel
2830
## Community Showcase
2931

3032
**Apps & Sites built with Svelte**
33+
3134
- [GitLight](https://github.com/ColinLienard/gitlight) brings GitHub & GitLab notifications to your desktop
3235
- [Days](https://github.com/paprikka/days) is paprikka's life in days, inspired by Buster Benson's Life in Weeks
3336
- [Mofi](https://mofi.loud.red/) is a content-aware fill and trim for music
@@ -37,23 +40,23 @@ For all the patches and performance updates from this month, check out the [Svel
3740
- [Maktaba](https://www.maktaba.digital/) is a bookmark manager that "you will actually use"
3841
- [Whispering](https://github.com/braden-w/whispering-extension) is a Chrome extension that lets you access OpenAI's Whisper API for fast transcription in the browser (including ChatGPT)
3942
- [DocuTalk](https://docutalk.co/) is an AI Customer Support chatbot for your website
40-
- [Krello](https://github.com/iamrishupatel/trello-clone) is a Trello clone built with Svelte, Appwrite and Flowbite
43+
- [Krello](https://github.com/iamrishupatel/trello-clone) is a Trello clone built with Svelte, Appwrite and Flowbite
4144
- [Been](https://beeneverywhere.net/) is a map builder with travel stats like visited countries, extreme visited points, etc.
4245
- [image-to-social-media-thumbnail](https://brody.fyi/tools/image-to-social-media-thumbnail) lets you convert any image to a social media thumbnail
4346
- [Svelte Capacitor Store](https://github.com/sdekna/svelte-capacitor-store) is a persistent store that uses capacitor (preferences) storage on native devices, and localStorage otherwise, making it ideal for multi-platform projects
4447

45-
4648
**Learning Resources**
4749
_Featuring Svelte Contributors and Ambassadors_
50+
4851
- [Exploring Svelte 4 w/ Kevin AK: Performance, Compatibility, & Web Component Support | Modern Web Pod](https://www.youtube.com/watch?v=YOL0HGGVib4) by This Dot Media
4952
- [Svelte Sirens Stream Design Systems: Lessons Learned](https://www.youtube.com/live/YHZaiIGSqsE?feature=share) featuring Eric Liu, creator of Carbon Components Svelte and the `sveld` docgen library
5053
- This Week in Svelte:
5154
- [2023 June 30](https://www.youtube.com/watch?v=sDz4_BLoYQ4) - Svelte 4.0.1, SK 1.21, lists, screen readers, loading
5255
- [2023 July 7](https://www.youtube.com/watch?v=0tq1ph4DDFA) - Svelte 4.0.5, Kit 1.22.1, Svelte 5, local storage and markdown
5356
- [2023 July 21](https://www.youtube.com/watch?v=AG4_3kon3zU) - Svelte 4.1.1, SvelteKit 1.22.3, Progressive enhancement
5457

55-
5658
_To Watch/Hear_
59+
5760
- [What is The Transitional Web? with Chris Ferdinandi](https://www.smashingmagazine.com/2023/07/smashing-podcast-episode-63/?ref=dailydevbytes.com) by Smashing Podcast
5861
- [SvelteKit in 100 seconds](https://www.youtube.com/watch?v=H1eEFfAkIik) by Fireship
5962
- [Primo V2 Introduction](https://www.youtube.com/watch?v=ThInVXgxJ1Q) by Primo (a [visual CMS](https://primocms.org/) based on Svelte)
@@ -62,8 +65,8 @@ _To Watch/Hear_
6265
- [Markdown in SvelteKit with custom Components: mdsvex](https://www.youtube.com/watch?v=VJFkyGd0FEA) by hartenfellerdev
6366
- [How To Add Confetti for Svelte and Sveltekit 🎉](https://www.youtube.com/watch?v=gXtWSb94704) and [Make Your SvelteKit Code 10x Faster With Rust and WebAssembly](https://www.youtube.com/watch?v=Vn2bIv_J_UE) by SvelteRust
6467

65-
6668
_To Read_
69+
6770
- [SvelteJS: My ecosystem is bigger than yours](https://hackmd.io/@roguegpu/r1RKQMdt3) by roguegpu
6871
- [Avoid shared state on the server in SvelteKit](https://blog.aakashgoplani.in/avoid-shared-state-on-the-server-in-sveltekit) by Aakash Goplani
6972
- [SvelteKit Fontaine: Reduce Custom Font CLS](https://rodneylab.com/sveltekit-fontaine/) by Rodney Lab
@@ -74,8 +77,8 @@ _To Read_
7477
- [Deploying Sveltekit on IIS](https://dev.to/nnutnonn/deploying-sveltekit-on-iis--5gf6) by Nutchapon Makelai
7578
- [Streamlined Authentication and Secrets Management](https://eman.hashnode.dev/streamlined-authentication-and-secrets-management) by Eman
7679

77-
7880
**Libraries, Tools & Components**
81+
7982
- [Melt UI](https://github.com/melt-ui/melt-ui) is a set of headless, accessible component builders for Svelte
8083
- [MDsveX](https://github.com/pngwn/MDsveX/releases/tag/mdsvex%400.11.0) has been updated to work with Svelte 4
8184
- [Svelte Sonner](https://github.com/wobsoriano/svelte-sonner) is an opinionated toast component for Svelte
@@ -85,7 +88,7 @@ _To Read_
8588
- [better-svelte-writable](https://github.com/tnthung/better-svelte-writable) provides a type-safe writable which gives you more control over the container
8689
- [Svetch.ts](https://github.com/Bewinxed/svetch#readme) is a client/types/schema/docs generator for your API endpoints
8790
- [sveltekit-localize-url](https://github.com/rinart73/sveltekit-localize-url) handles URL localization and routing
88-
- [elegua](https://github.com/howesteve/elegua) is a small, reactive PWA router for Svelte
91+
- [elegua](https://github.com/howesteve/elegua) is a small, reactive PWA router for Svelte
8992
- [Molly](https://github.com/renefournier/molly/tree/main) is a bash script and npm module that helps you clean up unused Svelte components in your project
9093
- [sveltekit-bot](https://github.com/begoon/sveltekit-bot) is a Telegram bot made with SvelteKit and Vercel
9194

documentation/blog/2023-08-31-view-transitions.md

+12-11
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,15 @@ We can also customize this page transition using CSS animation. In the style blo
133133
}
134134

135135
:root::view-transition-old(root) {
136-
animation: 90ms cubic-bezier(0.4, 0, 1, 1) both fade-out, 300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left;
136+
animation:
137+
90ms cubic-bezier(0.4, 0, 1, 1) both fade-out,
138+
300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left;
137139
}
138140

139141
:root::view-transition-new(root) {
140-
animation: 210ms cubic-bezier(0, 0, 0.2, 1) 90ms both fade-in, 300ms cubic-bezier(0.4, 0, 0.2, 1) both
141-
slide-from-right;
142+
animation:
143+
210ms cubic-bezier(0, 0, 0.2, 1) 90ms both fade-in,
144+
300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-from-right;
142145
}
143146
```
144147

@@ -233,17 +236,15 @@ While this may be the safest option, reduced motion does not necessarily mean no
233236
```css
234237
@media (prefers-reduced-motion: no-preference) {
235238
:root::view-transition-old(root) {
236-
animation: 90ms cubic-bezier(0.4, 0, 1, 1) both fade-out, 300ms cubic-bezier(0.4, 0, 0.2, 1) both
237-
slide-to-left;
239+
animation:
240+
90ms cubic-bezier(0.4, 0, 1, 1) both fade-out,
241+
300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left;
238242
}
239243

240244
:root::view-transition-new(root) {
241-
animation: 210ms cubic-bezier(0, 0, 0.2, 1) 90ms both fade-in, 300ms cubic-bezier(
242-
0.4,
243-
0,
244-
0.2,
245-
1
246-
) both slide-from-right;
245+
animation:
246+
210ms cubic-bezier(0, 0, 0.2, 1) 90ms both fade-in,
247+
300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-from-right;
247248
}
248249
}
249250
```

0 commit comments

Comments
 (0)