---
changelog:
  category: Release
  version: 1.7.0
date: '2025-07-14T12:38:48Z'
seo:
  description: >-
    If you often use safe for error handling, createSafeClient can simplify your
    code by automatically wrapping all procedure calls with safe. It works with
    both…
title: v1.7.0
type: changelog
---
### Safe Client [docs](https://orpc.dinwwwh.com/docs/client/error-handling#safe-client)

If you often use `safe` for error handling, `createSafeClient` can simplify your code by automatically wrapping all procedure calls with safe. It works with both [server-side](https://orpc.dinwwwh.com/docs/client/server-side) and [client-side](https://orpc.dinwwwh.com/docs/client/client-side) clients.

```ts
import { createSafeClient } from '@orpc/client'

const safeClient = createSafeClient(client)

const [error, data] = await safeClient.doSomething({ id: '123' })
```

### Smart Coercion Plugin [docs](https://orpc.dinwwwh.com/docs/openapi/plugins/smart-coercion)

Automatically converts input values to match schema types without manually defining coercion logic. This plugin can support almost any standard schema.

```ts
import { OpenAPIHandler } from '@orpc/openapi/fetch'
import {
  experimental_SmartCoercionPlugin as SmartCoercionPlugin
} from '@orpc/json-schema'

const handler = new OpenAPIHandler(router, {
  plugins: [
    new SmartCoercionPlugin({
      schemaConverters: [
          new ZodToJsonSchemaConverter(), // <-- if you use Zod
          new ValibotToJsonSchemaConverter(), // <-- if you use Valibot
          new ArkTypeToJsonSchemaConverter(), // <-- if you use ArkType
      ],
    })
  ]
})
```

### Promote stable

`aws lambda`, `websocket`, `message port`, `zod 4 converter` now stable

---

### &nbsp;&nbsp;&nbsp;🚀 Features

- **client**:
  - Safe client &nbsp;-&nbsp; by @Copilot in https://github.com/middleapi/orpc/issues/751 [<samp>(25279)</samp>](https://github.com/middleapi/orpc/commit/25279750)
- **json-schema**:
  - Smart coercion plugin for any standard schema &nbsp;-&nbsp; by @dinwwwh in https://github.com/middleapi/orpc/issues/748 [<samp>(e5e26)</samp>](https://github.com/middleapi/orpc/commit/e5e26136)
- **standard-server-aws-lambda**:
  - Promote to stable &nbsp;-&nbsp; by @dinwwwh in https://github.com/middleapi/orpc/issues/762 [<samp>(c84c8)</samp>](https://github.com/middleapi/orpc/commit/c84c8353)
- **standard-server-peer**:
  - Promote to stable &nbsp;-&nbsp; by @dinwwwh in https://github.com/middleapi/orpc/issues/766 [<samp>(4f419)</samp>](https://github.com/middleapi/orpc/commit/4f419f30)
- **zod**:
  - Better support zod@4.x.x &nbsp;-&nbsp; by @dinwwwh in https://github.com/middleapi/orpc/issues/760 [<samp>(53096)</samp>](https://github.com/middleapi/orpc/commit/53096e76)
  - Promote zod4 converter to stable &nbsp;-&nbsp; by @dinwwwh in https://github.com/middleapi/orpc/issues/763 [<samp>(9cd4e)</samp>](https://github.com/middleapi/orpc/commit/9cd4eb7e)
  - Promote zod4 registries to stable &nbsp;-&nbsp; by @dinwwwh [<samp>(1207d)</samp>](https://github.com/middleapi/orpc/commit/1207dc1e)

### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- **server**: Add missing export for utils in standard adapter &nbsp;-&nbsp; by @dinwwwh [<samp>(29120)</samp>](https://github.com/middleapi/orpc/commit/291203a9)
- **trpc**: Add missing exports &nbsp;-&nbsp; by @dinwwwh [<samp>(c465e)</samp>](https://github.com/middleapi/orpc/commit/c465e559)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/middleapi/orpc/compare/v1.6.6...v1.7.0)
