惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
人人都是产品经理
人人都是产品经理
M
MIT News - Artificial intelligence
C
Cybersecurity and Infrastructure Security Agency CISA
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
爱范儿
爱范儿
Spread Privacy
Spread Privacy
P
Palo Alto Networks Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
T
The Blog of Author Tim Ferriss
The Cloudflare Blog
WordPress大学
WordPress大学
小众软件
小众软件
H
Help Net Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Blog — PlanetScale
Blog — PlanetScale
V2EX - 技术
V2EX - 技术
H
Hacker News: Front Page
Last Week in AI
Last Week in AI
D
DataBreaches.Net
V
V2EX
S
Securelist
C
CXSECURITY Database RSS Feed - CXSecurity.com
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Tenable Blog
Cloudbric
Cloudbric
月光博客
月光博客
Y
Y Combinator Blog
博客园 - 三生石上(FineUI控件)
N
News and Events Feed by Topic
K
Kaspersky official blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
S
Secure Thoughts
S
Security Affairs
W
WeLiveSecurity
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
The Last Watchdog
The Last Watchdog
AI
AI
有赞技术团队
有赞技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
罗磊的独立博客
Google DeepMind News
Google DeepMind News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
N
Netflix TechBlog - Medium
PCI Perspectives
PCI Perspectives
SecWiki News
SecWiki News
IT之家
IT之家
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog

Vercel News

Vercel Open Source Program: Winter 2026 cohort How Notion Workers run untrusted code at scale with Vercel Sandbox How we run Vercel's CDN in front of Discourse From idea to secure checkout in minutes with Stripe Building Slack agents can be easy Scaling redirects to infinity on Vercel Advancing Python typing Gamma builds design-first agents with Vercel How Avalara turns pipe dreams into patent-pending with v0 Keeping community human while scaling with agents How OpenEvidence built a healthcare AI that physicians actually trust Security boundaries in agentic architectures Skills Night: 69,000+ ways agents are getting smarter Video Generation with AI Gateway We Ralph Wiggumed WebStreams to make them 10x faster How Stably ships AI testing agents in hours, not weeks How we built AEO tracking for coding agents Anyone can build agents, but it takes a platform to run them Introducing Geist Pixel The Vercel AI Accelerator is back with $6m in credits Making agent-friendly pages with content negotiation The Vercel OSS Bug Bounty program is now available Introducing the new v0 Run untrusted code with Vercel Sandbox, now generally available How Stripe built a game-changing app in a single flight with v0 How Sensay went from zero to product in six weeks AGENTS.md outperforms skills in our agent evals Agent skills explained: An FAQ Testing if "bash is all you need" AWS databases are now live on the Vercel Marketplace and v0 Use Perplexity Web Search with Vercel AI Gateway Introducing: React Best Practices Nick Bogaty joins Vercel as Chief Revenue Officer How Mux shipped durable video workflows with their @mux/ai SDK How to build agents with filesystems and bash How we made v0 an effective coding agent Stopping the slow death of internal tools Building AI-Generated Pixel Trading Cards with Vercel AI Gateway We removed 80% of our agent’s tools AI SDK 6 Our $1 million hacker challenge for React2Shell Cline now runs on Vercel AI Gateway How to prompt v0 Build smarter workflows with Notion and v0 Vercel launches partner certification Inside Workflow DevKit: How framework integrations work React2Shell Security Bulletin | Vercel Knowledge Base Billions of requests: Black Friday-Cyber Monday 2025 Investing in the Python ecosystem AWS Databases coming to the Vercel Marketplace How we built the v0 iOS app Workflow Builder: Build your own workflow automation platform Vercel Open Source Program: Fall 2025 cohort Self-driving infrastructure Vercel collaborates with Google for Gemini 3 Pro Preview launch Vercel: The anti-vendor-lock-in cloud How Nous Research used BotID to block automated abuse at scale How AI Gateway runs on Fluid compute What we learned building agents at Vercel Build and deploy data applications on Snowflake with v0 BotID Deep Analysis catches a sophisticated bot network in real-time Vercel achieves TISAX AL2 compliance to serve automotive partners Bun runtime on Vercel Functions David Totten Joins Vercel to Lead Global Field Engineering Vercel Ship AI 2025 recap You can just ship agents AI agents and services on the Vercel Marketplace Built-in durability: Introducing Workflow Development Kit Zero-config backends on Vercel AI Cloud Introducing Vercel Agent: Your new Vercel teammate Update regarding Vercel service disruption on October 20, 2025 Agents at work, a partnership with Salesforce and Slack Running Next.js in ChatGPT: How to Build ChatGPT Apps Talha Tariq joins Vercel as CTO of Security Just another (Black) Friday Server rendering benchmarks: Fluid Compute and Cloudflare Workers Towards the AI Cloud: Our Series F Collaborating with Anthropic on Claude Sonnet 4.5 to power intelligent coding agents Preventing the stampede: Request collapsing in the Vercel CDN BotID uncovers hidden SEO poisoning How we made global routing faster with Bloom filters What you need to know about vibe coding Scale to one: How Fluid solves cold starts Addressing security & quality issues with MCP tools - Vercel AI agents at scale: Rox’s Vercel-powered revenue operating system Agentic Infrastructure Zero Data Retention on AI Gateway Optimizing Vercel Sandbox snapshots How Waldium made a blog platform work for humans and AI alike How FLORA shipped a creative agent on Vercel's AI stack Agent responsibly Making Turborepo 96% faster with agents, sandboxes, and humans Unified reporting for all AI Gateway usage new.website joins forces with v0 SERHANT.'s playbook for rapid AI iteration Two startups at global scale without DevOps Chat SDK brings agents to your users 360 billion tokens, 3 million customers, 6 engineers Meet the 2026 Vercel AI Accelerator Cohort Build knowledge agents without embeddings
What's new in Svelte 5 - Vercel – Vercel
2024-10-23 · via Vercel News

5 min read

Svelte 5 brings runes for universal reactivity, snippets for reusable markup, and compiler improvements.

With its compiler-first approach, fine-grained reactivity, and ability to integrate with any JavaScript project, Svelte stands apart from other frameworks.

At Vercel, we're big fans of Svelte—deeply invested in its success and constantly working to make our platform the best place to build and deploy Svelte apps.

With the arrival of Svelte 5, let's explore what makes this release exciting.

Link to headingRunes

Svelte 5 introduces runes to manage reactivity. These symbols give you explicit control over application state.

Link to headingThe $state, $derived, and $effect runes

At the heart of Svelte 5's updated reactivity system are the $state, $derived, and $effect runes. These provide concise ways to manage state and its dependencies within your components.

  • $state: Declares a reactive variable, replacing top-level let declarations from Svelte 4. Whenever a $state variable's value changes, Svelte automatically updates the value anywhere it's used in your component. This eliminates manual updates and simplifies state management.

  • $derived: Creates reactive values based on other $state or $derived values. When a dependency changes, Svelte marks the $derived value for recalculation upon its next read. This ensures consistency and simplifies complex calculations. It replaces the $: syntax from Svelte 4, offering more granular reactivity with fewer gotchas.

  • $effect: Runs code in response to state changes (e.g., rendering to a <canvas> or interacting with an external library). While powerful, use $effect sparingly, as excessive side effects can make your code harder to follow. Svelte encourages declarative approaches whenever possible.

Link to headingSignals and fine-grained reactivity

Frameworks like Solid have popularized signals, which offer a responsive approach to reactivity. A signal is a container that notifies subscribers when its value changes. This lets frameworks track dependencies precisely and update only necessary parts of the application, improving performance.

Runes like $state and $derived let you work with reactive values directly, while Svelte's compiler handles the underlying signal management.

For example, writing a counter component in Svelte 5 is as straightforward as:

Counter.svelte

<script>

let count = $state(0);

let doubled = $derived(count * 2);

</script>

<button onclick={() => count++}>

Clicks: {count}

</button>

<p>Click doubled: {doubled}</p>

Link to headingUniversal reactivity with .svelte.js files

Previously, managing global state in Svelte often involved stores, which had a different API and behavior than component-level reactivity. This created a disconnect and sometimes led to inconsistencies.

With .svelte.js and .svelte.ts files, you define shared state and logic in a single place and access it from any component using runes. This eliminates prop drilling, simplifies complex store setups, reduces boilerplate, and improves code maintainability.

Svelte now treats reactivity as a first-class language construct, blurring the lines between components and application logic for a more cohesive and intuitive development experience. This is a shift from Svelte 3 and 4, where reactivity was primarily confined to components.

Link to headingOther runes

Svelte 5 introduces other runes that simplify common tasks and reduce boilerplate code. Learn more about runes.

Link to headingCompiler improvements

Svelte has always been compiler-first. Unlike traditional frameworks that perform calculations and virtual DOM diffing at runtime, Svelte shifts this work to compile time. It compiles your components into highly optimized vanilla JavaScript, eliminating the need for a runtime library.

This results in smaller bundles, faster initial load times, and improved runtime performance. It also means you can use compiled Svelte components in any JavaScript project, including those that don't use Svelte.

Svelte 5 builds on this foundation with compiler improvements that enhance performance, reduce bundle sizes, and streamline development.

Link to headingComponents as functions

In Svelte 5, components are now plain JavaScript functions. This simplifies optimization, as build tools and JavaScript engines optimize functions effectively. For example, function components can be inlined into their caller, reducing overhead.

Svelte is the first major framework where components directly call each other, eliminating intermediary functions or complex component creation mechanisms. This contributes to Svelte's performance and excellent Core Web Vital scores.

Link to headingNative TypeScript support

Svelte 5 introduces native TypeScript support. Previous versions used a preprocessor, which added moving parts (like source maps) and slowed down builds.

Native TypeScript support means faster builds and the ability to use TypeScript annotations directly in your Svelte markup—for instance, inside inline event handlers.

This, combined with the new approach to event handling and simplified state management with runes, makes for easier development and library authoring.

Link to headingSnippets

Svelte 5 introduces snippets, which let you define reusable blocks of markup and logic within a component, which can then be rendered multiple times or passed to other components. They also replace Svelte 4’s slots.

Let’s look at an example:

App.svelte

<script>

let items = [

{ id: 1, name: 'Apple', price: 0.5 },

{ id: 2, name: 'Banana', price: 0.25 },

{ id: 3, name: 'Orange', price: 0.75 }

]

</script>

<ul>

{#each items as item}

{@render row(item)}

{/each}

</ul>

{#snippet row(item)}

<li>

<span>{item.name}:</span>

<span>${item.price.toFixed(2)}</span>

</li>

{/snippet}

In this example, we define a row snippet that encapsulates the markup for each item in the list. The snippet is then rendered for each item using the {@render} tag within the {#each} block.

Snippets can also be passed as props to other components:

App.svelte

<script>

import ItemList from './ItemList.svelte';

let items = [

{ id: 1, name: 'Apple', price: 0.5 },

{ id: 2, name: 'Banana', price: 0.25 },

{ id: 3, name: 'Orange', price: 0.75 }

];

</script>

<ItemList {items}>

// Implicitly pass this snippet as a prop.

{#snippet row(item)}

<li>

<span>{item.name}:</span>

<span>${item.price.toFixed(2)}</span>

</li>

{/snippet}

</ItemList>

ItemList.svelte

<script>

let { row, items } = $props()

</script>

{#each items as item}

{@render row(item)}

{/each}

In this case, we pass a row snippet from App.svelte to ItemList.svelte. This separation of concerns makes it easy to reuse the ItemList component with different item rendering styles without modifying its internal structure.

Learn more about snippets.

Link to headingVite benefits

SvelteKit uses Vite, so you benefit from its growing ecosystem. Any tool that works in Vite also works in SvelteKit.

You can access a wide range of tools and plugins that enhance the development experience with minimal configuration. For example:

  • Vitest for unit and integration testing

  • Storybook for component development

  • @sveltejs/enhanced-img for static image optimization

Svelte also benefits from Vite's optimized development server and hot module replacement (HMR), which speeds up development workflows.

Link to headingSvelte's growing community

Svelte's growth and popularity are evident in industry surveys like the 2024 Stack Overflow Developer Survey (itself built with Svelte), which ranks Svelte at 73% developer satisfaction, and the State of JavaScript 2023 survey, which ranks Svelte highly for positivity and retention.

Many companies, large and small, use Svelte:

And Vercel customers like Dbrand and Hugging Face.

Svelte has allowed to us to ship quickly and with confidence, helping us keep pace with a dynamic AI ecosystem, despite a minority of the team being frontend developers. Our latest version of Gradio is also built on top of SvelteKit, bringing all of the power and performance of a best-in-class framework to around 1 million developers every month. The future is equally exciting; now that we are using SvelteKit, we can release a whole host of new features that would otherwise be costly to implement and support.

Peter Allen (pngwn), Hugging Face

Join the Svelte community on Discord.

Link to headingSvelte on Vercel

Vercel is invested in making our platform the best place to deploy Svelte apps. We collaborate closely with Svelte maintainers, and several members of the Svelte core team work at Vercel to ensure a sustainable future for the framework and a premier deployment experience.

The Build Output API enables SvelteKit (and other frameworks) to implement Vercel features like Incremental Static Regeneration (ISR), streaming serverless function responses, dynamic image optimization, and Skew Protection. Vercel is committed to open standards that can benefit the entire web development ecosystem.

Recent SvelteKit improvements on Vercel include:

Link to headingGetting started with Svelte

Svelte 5 makes frontend development easier while staying flexible and powerful. To get started, try the interactive Svelte tutorial, deploy a SvelteKit templates, or view the official Svelte 5 migration guide.