-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"What's new in Svelte" October newsletter #5429
Conversation
|
||
|
||
## Coming up | ||
- Anything coming down the pipe??? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs Discussion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the community side there's both Svelte Society Day France as well as Svelte Summit. But I think you were asking more for development stuff?
authorURL: https://desandoval.net | ||
--- | ||
|
||
## New features |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something about $$slots
should be in here! It's a pretty dope feature! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something about the new createEventDispatcher
typing for Typescript users and how to use it and its advantages would be cool. I can add a suggestion paragraph tomorrow if you want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There were a few fixes for await blocks too, they could be gathered together with a short description perhaps?
|
||
**Reminder**: There's a [Svelte integrations repo](https://github.com/sveltejs/integrations) that demonstrates ways to incorporate Svelte into your stack (and vice versa). If you've got questions on how to use a particular piece of tech with Svelte, you may find your answer there... and if you've gotten something to work with Svelte, consider contributing! | ||
|
||
For more amazing Svelte projects, check out the [Svelte Community showcase](https://svelte-community.netlify.app/showcase/), [Reddit](https://www.reddit.com/r/sveltejs/) and [Discord](https://discord.com/invite/yy75DKs)… and be sure to post your own! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something about helping out with Svelte Society would be nice in here so we can move everything from svelte-community over! 👍
|
||
#### In-depth learning: | ||
- [Svelte 3 Up and Running](https://www.amazon.com/dp/B08D6T6BKS/ref=cm_sw_r_tw_dp_x_OQMtFb3GPQCB2) is a new book about building production-ready static web apps with Svelte 3 | ||
- [Sapper Tutorial (Crash Course)](https://www.youtube.com/playlist?list=PL4cUxeGkcC9gdr4Qhx83gBBcID-KMe-PQ) walks through the ins-and-outs of Sapper, the Svelte-powered applicaiton framework |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: applicaiton
Sapper - Sapper's CSS handling has been rewritten over the course of recent releases in order to fix existing CSS handling bugs, refactor the CSS handling to occur entirely within a Rollup plugin, and remove the need to register CSS in the routing system. We hope this will allow graduating the CSS handling out of Sapper and into an external Rollup plugin. It may also make it more feasible to move Sapper's routing into a separate project longer-term. |
- [This Tilt component](https://svelte.dev/repl/7b23ad9d2693424482cd411b0378b55b?version=3.24.1) implements a common UX pattern where the hovered element tilts to follow the mouse | ||
|
||
#### Lots of examples of how use JS tech came out this month: | ||
- [Snowpack + Svelte + SSR](https://github.com/Rich-Harris/snowpack-svelte-ssr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if this one is quite in a shareable state yet 😉 I'm guessing Rich might prefer not to promote it yet given that it's just playing around with ideas and not anything usable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, it leaked on reddit but i reckon we should keep our powder dry for the minute!
Would be great to get this sorted and posted before it gets stale 🙏 |
@kevmodrome I'd like to post this on Oct 1, if possible. Most of the links to the "New Features" won't work until 3.26.0 (or equivalent) is out: https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md#unreleased |
@benmccann would you prefer these changes be mentioned in the "Coming up" or "New features" section? I haven't had an eye on Sapper recently, so I'm not sure what the progress is on the features you mentioned :) |
|
||
These last two updates come from an update to Svelte’s upstream dependency, [acorn](https://github.com/acornjs/acorn). Acorn generates Svelte’s Abstract Syntax Tree (AST) and is explained in detail [here](https://github.com/sveltejs/svelte/issues/1011#issuecomment-351262252)! | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(cannot make this a suggestion because of the code block unfortunately):
- When using TypeScript, you can now type the
createEventDispatcher
method:
<script lang="ts">
import { createEventDispatcher } from 'svelte';
const dispatch = createEventDispatcher<{
/**
* you can also add docs
*/
checked: boolean; // Will translate to `CustomEvent<boolean>`
hello: string;
}>();
// ...
</script>
This will make sure that you can invoke dispatch
only with the specified event names and its types. The Svelte for VS Code
extension was also updated to deal with this new feature. It will provide autocompletion and hover information for these events and provide strong typing. Note though that this will NOT make the events strict in the sense that you would get type errors when trying to listen to other events when using the component.
author: Daniel Sandoval | ||
authorURL: https://desandoval.net | ||
--- | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could add some short introductionary sentences here, like "it was quiet for some time but we promise to be more active with news from now on".
That makes sense! I mistakenly thought it was meant to go out earlier. My bad! 🙏 |
How about including just part of that and put it in the "new features":
|
Sapper 0.28.9 just came out. The highlights from it include much better support for CSP nonces, asset |
The new |
for the showcase section there are two really nifty ones I think could be shared Another thing what's imo lacking so far is nobody has done a proper idle-detection component yet afaict?! |
It's almost October 1st. It would be great if this could be fast-tracked somehow, whenever @d3sandoval has updated with the latest comments 🥳 |
Hey y'all! I updated the blog post. I did not incorporate the suggestions that covered changes released in previous months... otherwise this blog post would be SUPER long! I'll be drafting a slightly-modified version of this post for my "unofficial" newsletter that links back to this post. Do you think we'd be able to get this merged before Oct. 1 at 6am Pacific? If so, I can link directly to this post in my mailing list :) |
I'd say for your own newsletter that's fine that you did not include it. But I think it would be cool to have the other notable features of the previous months in here, because there was no blog post from the official site inbetween. |
site/content/blog/2020-10-01-whats-new-in-svelte-october-2020.md
Outdated
Show resolved
Hide resolved
Co-authored-by: swyx <[email protected]>
Co-authored-by: Simon H <[email protected]>
site/content/blog/2020-10-01-whats-new-in-svelte-october-2020.md
Outdated
Show resolved
Hide resolved
@dummdidumm Feel free to add any notable features that you think we shouldn't merge without :) For reference, here's the features I've called out over the past couple of months: July 1
August 1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made some tiny changes here and there and added the createEventDispatcher
typing description. From my side this is good to go. Thanks for the great write-up 👍
LGTM! Thanks for the approval @benmccann and @dummdidumm . Feel free to merge when ready! |
OK Added some grammar and typo fixes. The post is scheduled on my end and points to the blog index page when referring to this post. Let me know if y'all need anything else from me before merging :D Thanks again for the review and collaboration. Happy with what we put together! Looking forward to next month. |
New blog post!
Feel free to comment with any feedback!