Menu

tanstack-fetch 2.0.0: A Smaller Core, WebSockets, WebTransport, and Type-Safe Streams
📰

tanstack-fetch 2.0.0: A Smaller Core, WebSockets, WebTransport, and Type-Safe Streams

DEV Community: react·Mohammad Garmabi·16 days ago
#wG6NqoXV
#devtoreact#devto#dev#tanstack#fetch
Reading 0:00
15s threshold

From a lightweight HTTP client to a modular transport layer for modern TypeScript applications.

Today, I'm releasing tanstack-fetch 2.0.0 .

This is more than another feature release. Since v1.7.1, tanstack-fetch has evolved beyond traditional HTTP requests. It now supports multiple communication transports, including WebSockets, WebTransport, and NDJSON streams, while keeping its familiar API and TypeScript-first approach.

Version 2.0.0 also brings an important architectural change: a significantly smaller HTTP core, with optional functionality moved into dedicated plugins.

Let's look at what changed and why.

What's new since v1.7.1?

The journey from 1.7.1 to 2.0.0 includes two releases:

v1.8.0: Introduced new live communication transports.

v2.0.0: Refactored the core architecture and improved type safety for live APIs.

Let's break them down.

1.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.