unstale

npm / @langchain/typesafe

@langchain/typesafe

What changed in @langchain/typesafe 0.0 to 0.1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-12.

14 breaking1 security2 deprecations14 new APIs and options

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.12 on npm

@langchain/typesafe 0.129 changes

Breaking changes 14

  • ClassificationResponse is removed; question and answer types are re-exported from core.

    0.1.0release notes

  • TypeSafeClassifier responses now use core's ClassifierResponse, with token usage provided through usage_metadata.

    0.1.0release notes

  • Every question now requires instructions.

    0.1.0release notes

  • An invalid question now throws a plain Error from invoke instead of a TypeSafeError from the constructor.

    0.1.0release notes

  • JsonValue is removed.

    0.1.0release notes

  • TypeSafeClassifier now requires @langchain/core >= 1.4.0.

    0.1.0release notes

  • QuestionContent is removed; the replacement name is Content.

    0.1.0release notes

  • State now uses core's type, which no longer lists Date; dates are still sent as ISO strings.

    0.1.0release notes

  • TypeSafeClassifier now extends BaseDecisionModel; questions are supplied in each invoke request instead of the constructor, and invoke receives { state, questions }.

    0.1.0release notes

  • TypeSafeClassifierCallOptions is removed.

    0.1.0release notes

  • Usage is removed.

    0.1.0release notes

  • Token usage uses input_tokens, output_tokens, and total_tokens instead of usage with inputTokens and outputTokens.

    0.1.0release notes

  • ValidatedQuestions is removed.

    0.1.0release notes

  • Installed dependencies now require Zod 4.6.6 or newer to exclude versions affected by GHSA-mrhx-c7xc-m3w5; Zod v3 schemas remain supported through zod/v3.

    0.1.0release notes

Deprecations 2

  • autoModeMiddleware from @langchain/typesafe/middleware is deprecated, warns once when called, and will be removed in 0.2.0; use the version from langchain with classifier: new TypeSafeClassifier().

    0.1.0release notes

  • modelRouterMiddleware from @langchain/typesafe/middleware is deprecated, warns once when called, and will be removed in 0.2.0; use the version from langchain with classifier: new TypeSafeClassifier().

    0.1.0release notes

New APIs and options 13

  • Resumes pagination using the cursor returned by the previous page.

    0.1.0docs

  • Filters results to teams the specified organization identity is a direct member of.

    0.1.0docs

  • Controls the number of teams per page; accepts values from 1 to 100 and defaults to 20.

    0.1.0docs

  • Filters results to workspace teams under the specified organization-wide team.

    0.1.0docs

  • Adds an endpoint to retrieve a team by ID. Organization-scoped teams require organization:teams:read; workspace-scoped teams require workspaces:teams:read in their workspace.

    0.1.0docs

  • Adds an endpoint to list a team's access policies, with cursor-based pagination and organization- or workspace-scoped read permissions.

    0.1.0docs

  • Adds a paginated endpoint to list workspace identities for a workspace-scoped team's members. It accepts page_size and cursor and requires workspaces:teams:read in the team's workspace.

    0.1.0docs

  • Adds an endpoint to grant an organization-wide team a role in a workspace. It requires organization:teams:manage-grants and allows at most one grant per team per workspace.

    0.1.0docs

  • Adds a GET endpoint to retrieve an organization-wide team's grant in a workspace. It requires organization:teams:read or workspace-scoped workspaces:teams:read permission.

    0.1.0docs

  • Filters teams to those belonging to or granted into the specified workspace; results can include role_id and role_name.

    0.1.0docs

  • Box questions are now supported.

    0.1.0release notes

  • Adds an endpoint to attach an existing organization access policy to a team, optionally limiting an organization-wide team's policy to one workspace.

    0.1.0docs

  • Image content blocks in state or question content can now be sent as TypeSafe image assets.

    0.1.0release notes

@langchain/typesafe 0.02 changes

Security 1

  • Adds middleware for blocking risky tool calls using a calibrated TypeSafe Noul probability.

    0.0.2release notes

New APIs and options 1

  • Adds TypeSafe Choice-based model routing middleware.

    0.0.2release notes