@ts-rest/core
Advanced tools
Comparing version 0.1.4 to 0.1.5
{ | ||
"name": "@ts-rest/core", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "RPC-like experience over a regular REST API, with type safe server implementations 🪄", | ||
@@ -5,0 +5,0 @@ "type": "commonjs", |
@@ -27,27 +27,23 @@ # ts-rest | ||
| **Features** | REST | tRPC | tREST | | ||
| ----------------- | ---- | ---- | --------- | | ||
| E2E Type Safe | No | ✅ | ✅ | | ||
| Protocol | REST | RPC | REST | | ||
| Public API | ✅ | ❌ | ✅ | | ||
| Zod/Yup/Joi | ❌ | ✅ | 🏗 For 1.0 | | ||
| WebSocket Support | ❌ | ✅ | ❌ | | ||
| **Features** | REST | tRPC | tREST | | ||
| ----------------- | ---- | ----- | ------ | | ||
| E2E Type Safe | ❌ | ✅ | ✅ | | ||
| Protocol | REST | RPC | REST | | ||
| Public API | ✅ | ❌ | ✅ | | ||
| Zod/Yup/Joi | ❌ | ✅ | 🏗 v1.0 | | ||
| WebSocket Support | ❌ | ✅ | ❌ | | ||
| Cmd+Click Access | ❌ | 🏗 v10 | ✅ | | ||
| Separate Contract | ❌ | ❌ | ✅ | | ||
| **Client Libraries** | REST | tRPC | tREST | | ||
| -------------------- | ---- | --------------- | --------- | | ||
| fetch/custom | ✅ | ✅ | ✅ | | ||
| react-query | ✅ | ✅ | 🏗 For 1.0 | | ||
| swr | ✅ | ✅ (via plugin) | 🏗 For 1.0 | | ||
ts-rest also supports [Nest](https://nestjs.com/), it appears adding Nest to tRPC is against the Nest controller principles, so it is not recommended. | ||
| **Server** | REST | tRPC | tREST | | ||
| ---------- | ---- | ---- | --------- | | ||
| Express | ✅ | ✅ | ✅ | | ||
| Nest | ✅ | ❌ | ✅ | | ||
| Next | ✅ | ✅ | 🏗 For 1.0 | | ||
| **Libraries Support** | REST | tRPC | tREST | | ||
| --------------------- | ---- | ----------- | ------ | | ||
| Client fetch/custom | ✅ | ✅ | ✅ | | ||
| Client react-query | ✅ | ✅ | 🏗 v1.0 | | ||
| Client swr | ✅ | ✅ (plugin) | 🏗 v1.0 | | ||
| Server Express | ✅ | ✅ | ✅ | | ||
| Server Nest | ✅ | ❌ | ✅ | | ||
| Server Next | ✅ | ✅ | 🏗 v1.0 | | ||
| **Dev Experience** | REST | tRPC | tREST | | ||
| ------------------ | ---- | ----------- | ----- | | ||
| Cmd+Click Access | ❌ | ✅ (in v10) | ✅ | | ||
| Separate Contract | ❌ | ❌ | ✅ | | ||
## Implementation - API | ||
@@ -54,0 +50,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22589
156