---
title: "@typesafe-ai/sdk 0.7.0 Breaking Changes on npm | Since.dev"
description: "What each @typesafe-ai/sdk release removed, renamed or changed: 14 breaking changes in 1 version on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@typesafe-ai/sdk
last_updated: 2026-12-04
---

# @typesafe-ai/sdk breaking changes

@typesafe-ai/sdk 0.7.0 (October 14, 2026) is its newest release with breaking changes, 14 of them. The first: @typesafe-ai/sdk 0.7.0 requires Node.js 22 or later. Every breaking API change we have recorded in @typesafe-ai/sdk on npm: 14 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.7.0`, released October 14, 2026. [Source repository](https://github.com/typesafe-ai/typesafe-sdk-js)

Its 0.7.0 release requires [Node.js 22](https://since.dev/calendar/nodejs/22.md) or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

## @typesafe-ai/sdk 0.7.0 breaking changes

@typesafe-ai/sdk 0.7.0, released October 14, 2026: 14 breaking changes.

- **Removed**  

The package no longer supports Node.js versions older than 22. Upgrade Node.js to 22 or newer before using this release. [github.com](https://github.com/typesafe-ai/typesafe-sdk-js/releases/tag/v0.7.0)
- **Removed**  

Request payload types are no longer exported from the package. Code that imports them must change to not depend on those types. [github.com](https://github.com/typesafe-ai/typesafe-sdk-js/releases/tag/v0.7.0)
- **Removed** `SystemOneRequestPayload`  

SystemOneRequestPayload was removed in @typesafe-ai/sdk 0.7.0 [npmjs.com](https://www.npmjs.com/package/@typesafe-ai/sdk/v/0.7.0)
- **Behavior changed**  

Invalid requests now reject the returned promise rather than throwing synchronously. Code that catches the synchronous throw must handle the rejection instead. [github.com](https://github.com/typesafe-ai/typesafe-sdk-js/releases/tag/v0.7.0)
- **Behavior changed** `request bodies`  

Request bodies of 1 KiB or more are now compressed with zstd on Node.js 22.15 or newer. Pass compression: false to send them uncompressed. [github.com](https://github.com/typesafe-ai/typesafe-sdk-js/releases/tag/v0.7.0)
- **Signature changed** `EntryType`  

Was type EntryType = string | {\[key: string\]: JsonValue;} | JsonValue\[\] | null; now type EntryType = string | Asset | TextWithAssets | {\[key: string\]: ContentValue;} | ContentValue\[\] | null. [npmjs.com](https://www.npmjs.com/package/@typesafe-ai/sdk/v/0.7.0)
- **Signature changed** `noul`  

Was const noul: (instructions?: EntryType, criteria?: NoulQuestion\["criteria"\]) => NoulQuestion; now const noul: {(instructions: NonNullable\<EntryType>, criteria?: NoulQuestion\["criteria"\]): NoulQuestion; (instructions: EntryType |... [npmjs.com](https://www.npmjs.com/package/@typesafe-ai/sdk/v/0.7.0)
- **Signature changed** `Question`  

Was type Question = NoulQuestion | ScoreQuestion | ChoiceQuestion; now type Question = NoulQuestion | ScoreQuestion | ChoiceQuestion | BoxQuestion. [npmjs.com](https://www.npmjs.com/package/@typesafe-ai/sdk/v/0.7.0)
- **Signature changed** `ResultFor`  

Was type ResultFor\<T extends Question> = T extends NoulQuestion ? NoulResponse : T extends ScoreQuestion\<infer S> ? ScoreResponse\<S> : T extends ChoiceQuestion\<infer E> ? ChoiceResponse\<E> : never; now type ResultFor\<T extends Question> =... [npmjs.com](https://www.npmjs.com/package/@typesafe-ai/sdk/v/0.7.0)
- **Signature changed** `score`  

Was const score$1: \<const T extends ScoreCriteria>(instructions: EntryType, criteria: T) => ScoreQuestion\<T>; now const score$1: {\<const T extends ScoreCriteria>(instructions: EntryType, criteria: T): ScoreQuestion\<T>; \<const T extends... [npmjs.com](https://www.npmjs.com/package/@typesafe-ai/sdk/v/0.7.0)
- **Signature changed** `ScoreLegend`  

Was type ScoreLegend\<T extends ScoreCriteria> = {readonly \[score in ScoreOf\<T>\]: T\[score\];}; now type ScoreLegend\<T extends ScoreCriteria> = {readonly \[score in ScoreOf\<T>\]: SentContent\<T\[score\]>;}. [npmjs.com](https://www.npmjs.com/package/@typesafe-ai/sdk/v/0.7.0)
- **Signature changed** `SystemOneRequest.state`  

Was state: EntryType; now state: NonNullable\<EntryType>. [npmjs.com](https://www.npmjs.com/package/@typesafe-ai/sdk/v/0.7.0)
- **Signature changed** `Usage.input_tokens`  

Was readonly input_tokens: number; now readonly input_tokens: number | null. [npmjs.com](https://www.npmjs.com/package/@typesafe-ai/sdk/v/0.7.0)
- **Signature changed** `Usage.output_tokens`  

Was readonly output_tokens: number; now readonly output_tokens: number | null. [npmjs.com](https://www.npmjs.com/package/@typesafe-ai/sdk/v/0.7.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
