Monday, October 18, 2021
Releases SvelteJS released v3.31.0

SvelteJS released v3.31.0

Every month SvelteJS announces new features, bug fixes & changes that have been released.

As of this moment, v3.31.0 is out! December’s coverage includes updates from rollup-plugin-svelteSapper and SvelteKit and a other showcases from the community.

New features & bug fixes

  1. $$props$$restProps, and $$slots are all now supported in custom web components (3.29.5Example) and slot components now support spread props: <slot {...foo} /> (3.30.0)
  2. A new hasContext lifecycle function makes it easy to check whether a key has been set in the context of a parent component (3.30.0 & 3.30.1Docs)
  3. There is now a new SvelteComponentTyped class which makes it easier to add strongly typed components that extend base Svelte components. Component library and framework authors rejoice! An example: export class YourComponent extends SvelteComponentTyped<{aProp: boolean}, {click: MouseEvent}, {default: {aSlot: string}}> {} (3.31.0RFC)
  4. Transitions within {:else} blocks should now complete successfully (3.29.5Example)
  5. Svelte now includes an export map, which explicitly states which files can be imported from its npm package (3.29.5 with some fixes in 3.29.63.29.7 and 3.30.0)
  6. rollup-plugin-svelte had a new 7.0.0 release. The biggest change is that the css option was removed. Users who were using that option should add another plugin like rollup-plugin-css-only as demonstrated 

Learn more

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest news

2 great tips to get hired faster

If it's time to change job and would like to do it faster, we have two useful tips for...

EpicReact.Dev – Well polished advanced ReactJS Training

There are countless tutorials that cover the basics of ReactJS. A lot of them are very well made, with...

Becoming a Front-end developer in 2021

In the past few years, we've been hearing more and more about learning fatigue for front-end development. And it...

Algorithms are more common in Interviews

The tech interviews for developers have shifted a lot in the past 15-20 years. In the early 2000, a...

More on React Server Components

Will React Server Side components change how we build React Applications?What does this mean for libraries such as NextJS? Recently,...

Top 5 ReactJS Podcasts with fresh content

There are different platforms and different sources of information to get up-to-date content on the ever growing topic of...

Must read

2 great tips to get hired faster

If it's time to change job and would like...

EpicReact.Dev – Well polished advanced ReactJS Training

There are countless tutorials that cover the basics of...

You might also likeRELATED
Recommended to you