unstale

npm / @a2a-js/sdk

@a2a-js/sdk

What changed in @a2a-js/sdk 0.3 to 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

14 breaking9 security76 new APIs and options1 performance14 behavior and defaults48 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

@a2a-js/sdk 1130 changes

Breaking changes 11

  • Clients must send the protocol Major.Minor version with each request, using a header or request parameter; unsupported versions result in VersionNotSupportedError.

    1.0.0upgrade guide

  • The error hierarchy is unified and now has transport-specific subclasses, changing how applications may handle transport errors.

    1.0.0release notes

  • Agents must reject operations that require undeclared capabilities, including push notifications, streaming, extended agent cards, and required extensions.

    1.0.0upgrade guide

  • HTTP query parameter names must use camelCase to match Protocol Buffer field JSON serialization.

    1.0.0upgrade guide

  • The operation requires authentication using a scheme declared in the public Agent Card; agents may tailor returned content to the authenticated client's identity or authorization level.

    1.0.0upgrade guide

  • A2A-specific gRPC errors must include ErrorInfo in status.details, with the A2A error type as reason and the protocol domain.

    1.0.0upgrade guide

  • HTTP responses for A2A-specific errors must include ErrorInfo in error.details, identifying the A2A error type and protocol domain.

    1.0.0upgrade guide

  • JSON serializations must use camelCase field names rather than Protocol Buffer snake_case names; enum values use their ProtoJSON string names.

    1.0.0upgrade guide

  • RequestContext now uses SendMessageRequest instead of individual properties and exposes its metadata to AgentExecutor.

    1.0.0release notes

  • Streaming responses must contain exactly one task, message, statusUpdate, or artifactUpdate field.

    1.0.0upgrade guide

  • JSON bindings must represent timestamps as ISO 8601 UTC strings ending in Z; clients and servers must parse and generate them correctly.

    1.0.0upgrade guide

Security 9

  • The client caches the extended Agent Card only after signature verification.

    1.2.0release notes

  • Uses the same canonicalized payload for signing and verification.

    1.0.1release notes

  • Implementations must scope task and resource access to the authenticated caller and check authorization before operations that could reveal out-of-scope resource existence.

    1.0.0upgrade guide

  • Custom protocol bindings must address security in their specifications and document authentication integration and credential transmission.

    1.0.0upgrade guide

  • Implementations are expected to use encrypted transport, validate inputs, protect and rotate credentials, monitor security events, limit abuse, and protect user data.

    1.0.0upgrade guide

  • Production deployments must use encrypted communication for HTTP-based bindings; TLS is required for gRPC.

    1.0.0upgrade guide

  • Webhook callers and receivers have security responsibilities, including authentication, delivery retries, URL validation, HTTPS, idempotent processing, and rate limiting.

    1.0.0upgrade guide

  • Agent Cards can include JWS signatures; signing and verification exclude this field and use a canonicalized Agent Card payload.

    1.0.0upgrade guide

  • Client-side SSE event size is bounded to prevent memory exhaustion.

    1.0.0release notes

New APIs and options 64

  • Adds database-backed stores for tasks and push notifications.

    1.3.0release notes

  • Introduces the server SettleByTaskId method.

    1.2.0release notes

  • Event bus keep-alive states are configurable, allowing developers to control which states keep the bus alive.

    1.1.0release notes

  • Service parameter listing the extension URIs the client wants to use for a request.

    1.0.0upgrade guide

  • For JSON-RPC requests, service parameter names are transmitted as HTTP headers; keys are case-insensitive and multiple values should be comma-separated.

    1.0.0upgrade guide

  • Service parameter identifying the protocol version used by the client; unsupported versions result in VersionNotSupportedError.

    1.0.0upgrade guide

  • Describes optional agent support for streaming, push notifications, extensions, and extended agent cards.

    1.0.0upgrade guide

  • Defines a self-describing agent manifest containing identity, capabilities, supported interfaces, skills, and security requirements.

    1.0.0upgrade guide

  • Agents declare extended Agent Card support with this capability; unsupported or unconfigured operations must return their respective errors.

    1.0.0upgrade guide

  • Represents an RFC 7515 JSON Web Signature of an AgentCard.

    1.0.0upgrade guide

  • Declares a supported protocol extension, including its URI, description, requirement status, and optional parameters.

    1.0.0upgrade guide

  • Declares an agent URL, protocol binding, and protocol version, allowing the same functionality to be exposed through multiple bindings.

    1.0.0upgrade guide

  • Defines the provider organization and URL for an agent.

    1.0.0upgrade guide

  • Describes an agent skill, including its identifier, capabilities, supported media types, and optional security requirements.

    1.0.0upgrade guide

  • Defines API key authentication by specifying its location and parameter name.

    1.0.0upgrade guide

  • Artifacts represent task outputs and include an identifier, one or more content parts, and optional descriptive information, metadata, and extensions.

    1.0.0upgrade guide

  • Operations return immediately with a Task or Message; when they return a Task, processing continues in the background and clients retrieve updates through polling, streaming, or push notifications.

    1.0.0upgrade guide

  • Defines authentication scheme and optional credentials for push notifications.

    1.0.0upgrade guide

  • Defines authorization code flow endpoints and scopes, with an optional PKCE requirement.

    1.0.0upgrade guide

  • Creates a task push notification configuration that sends task updates to a webhook and persists until task completion or explicit deletion.

    1.0.0upgrade guide

  • Permanently deletes a task push notification configuration; deletion is idempotent and stops further webhook notifications.

    1.0.0upgrade guide

  • Defines the OAuth device code flow for input-constrained devices and CLI tools where users authenticate on another device.

    1.0.0upgrade guide

  • An Agent Card can advertise support for an authenticated extended card that clients retrieve with credentials.

    1.0.0upgrade guide

  • Clients can fetch the authenticated extended Agent Card from this endpoint using an Authorization bearer token.

    1.0.0upgrade guide

  • Agents declare supported extensions in AgentCard capabilities, while clients opt in through binding-specific mechanisms such as headers, metadata, or request parameters.

    1.0.0upgrade guide

  • Retrieves a potentially more detailed Agent Card after authentication when the public card declares extendedAgentCard support.

    1.0.0upgrade guide

  • Retrieves a task's push notification configuration, including its webhook URL and notification settings.

    1.0.0upgrade guide

  • Defines a strongly typed gRPC binding using Protocol Buffers over HTTP/2 with TLS and the A2AService service.

    1.0.0upgrade guide

  • Lets GetTask limit the number of recent history messages returned; zero requests no messages, and an unset value imposes no client limit.

    1.0.0upgrade guide

  • Defines HTTP authentication schemes and an optional bearer-token format hint.

    1.0.0upgrade guide

  • Defaults to false; when false, artifacts must be omitted from returned tasks, reducing payload size.

    1.0.0upgrade guide

  • Defines an HTTP-based JSON-RPC 2.0 binding with PascalCase methods, JSON request and response bodies, and Server-Sent Events for streaming.

    1.0.0upgrade guide

  • Maps A2A errors to the JSON-RPC error object, with numeric codes, human-readable messages, and typed detail objects in data.

    1.0.0upgrade guide

  • Lists active push notification configurations for a task and may support pagination.

    1.0.0upgrade guide

  • Lists tasks with optional filtering and cursor-based pagination, allowing clients to discover and manage tasks across contexts and statuses.

    1.0.0upgrade guide

  • Adds an option to include artifacts in returned tasks; it defaults to false to reduce payload size.

    1.0.0upgrade guide

  • Adds a timestamp filter for tasks whose status was updated at or after the supplied ISO 8601 timestamp.

    1.0.0upgrade guide

  • Part includes an optional MIME-type field available for every part type.

    1.0.0upgrade guide

  • Messages are for communication and task interaction, while task outputs should be returned as Artifacts; clients must not rely on Messages for reliable delivery of critical information.

    1.0.0upgrade guide

  • A message part can include a JSON schema in metadata to describe the requested structured data format.

    1.0.0upgrade guide

  • Defines mutual TLS authentication for an agent security scheme.

    1.0.0upgrade guide

  • Defines OAuth 2.0 authentication using configured flows and an optional authorization server metadata URL.

    1.0.0upgrade guide

  • Defines OAuth 2.0 flow configuration, including authorization code, client credentials, implicit, password, and device code flows.

    1.0.0upgrade guide

  • Defines OpenID Connect authentication through a provider metadata discovery URL.

    1.0.0upgrade guide

  • Accepts a cursor from a previous ListTasks call to retrieve the subsequent page of results.

    1.0.0upgrade guide

  • Push notifications use a StreamResponse payload with exactly one task, message, status update, or artifact update; agents attempt delivery at least once.

    1.0.0upgrade guide

  • A message part can carry uploaded file content in the raw field, alongside filename and mediaType.

    1.0.0upgrade guide

  • Clients should use this Message field to explicitly reference related tasks in follow-up requests.

    1.0.0upgrade guide

  • When unset or false, SendMessage waits for a terminal or interrupted task state; true returns after task creation. The setting has no effect for direct Message responses or streaming operations.

    1.0.0upgrade guide

  • Defines a discriminated union for API key, HTTP, OAuth 2.0, OpenID Connect, and mutual TLS security schemes.

    1.0.0upgrade guide

  • Sends a message and streams real-time updates using Server-Sent Events.

    1.0.0upgrade guide

  • REST streams use SSE JSON data events and proceed from an initial task or message through updates until the task reaches a terminal or interrupted state.

    1.0.0upgrade guide

  • Adds a state bag and ServerCallContextBuilder to ServerCallContext.

    1.0.0release notes

  • SSE wire-format helpers are exported from the public entry point for use by SDK consumers.

    1.0.0release notes

  • Provides a typed wrapper for streaming task, message, status-update, or artifact-update responses; exactly one response field must be present.

    1.0.0upgrade guide

  • Subscribes to an existing non-terminal task and streams its current Task followed by status and artifact updates; the stream ends when the task reaches a terminal state.

    1.0.0upgrade guide

  • Agent Cards declare supported protocol combinations in preference order; clients select the first supported transport and use its URL.

    1.0.0upgrade guide

  • Agents can transition a task to this state to delegate fulfillment of an authorization request to the client.

    1.0.0upgrade guide

  • Defines streaming events for generated or updated artifacts, including support for appended content and final chunks.

    1.0.0upgrade guide

  • Adds a gRPC resource wrapper associating push notification configuration data with a task and its resource name.

    1.0.0upgrade guide

  • Defines task lifecycle states including input-required and auth-required interrupted states, plus rejected and the terminal completed, failed, and canceled states.

    1.0.0upgrade guide

  • Defines streaming events that notify clients when a task's status changes.

    1.0.0upgrade guide

  • An artifact part can refer to a downloadable file by URL, with filename and mediaType.

    1.0.0upgrade guide

  • Opt-in v0.3 backward compatibility supports staged migrations.

    1.0.0release notes

Performance 1

  • Servers should send Cache-Control and ETag headers for Agent Cards; clients should honor HTTP caching and use conditional requests when cached cards expire.

    1.0.0upgrade guide

Behavior and default changes 13

  • The SDK is generally available, and the v1.0 line is stable.

    1.0.0release notes

  • The SDK implements the full v1.0 specification across JSON-RPC, HTTP+JSON/REST, and gRPC.

    1.0.0release notes

  • For gRPC, service parameters are transmitted as metadata keys; keys are normalized to lowercase and multiple values should be comma-separated.

    1.0.0upgrade guide

  • The HTTP+JSON binding transmits service parameters as HTTP headers; repeated values should be comma-separated in one header field.

    1.0.0upgrade guide

  • Groups related tasks and messages into a conversational context; agents may generate it when absent, but must return it and must reject client-provided values they cannot accept.

    1.0.0upgrade guide

  • Extensions should include version information in their URI; breaking changes require a new URI, and unsupported versions are ignored unless required, in which case the agent returns an error without falling back.

    1.0.0upgrade guide

  • Required fields should be validated, optional fields distinguish omitted values from explicitly set defaults for defaulting and Agent Card signature canonicalization, and unrecognized fields should be ignored.

    1.0.0upgrade guide

  • Agents may serve concurrent streams for a task; each active stream must receive the same events in order, and closing one stream must not affect others or the task lifecycle.

    1.0.0upgrade guide

  • Must always be present in ListTasks responses and must be an empty string when there are no more results.

    1.0.0upgrade guide

  • Clients may choose any protocol declared by an agent and should implement fallback logic for alternative protocols.

    1.0.0upgrade guide

  • Custom protocol bindings should use a URI identifier, with a new URI for breaking changes so clients can distinguish incompatible versions.

    1.0.0upgrade guide

  • Agents should declare all supported protocols in their AgentCard, and custom protocol bindings should be identified by a URI; breaking binding changes require a new URI.

    1.0.0upgrade guide

  • Task IDs are server-generated for new tasks; a supplied ID must reference an existing task, otherwise the agent returns TaskNotFoundError. Client-provided IDs for creating tasks are unsupported.

    1.0.0upgrade guide

Fixes and other changes 32

  • JSON-RPC dispatch now uses A2A-Version.

    1.2.1release notes

  • JSON-RPC errors are returned with HTTP 200.

    1.2.1release notes

  • JSON-RPC response versions are now validated.

    1.2.1release notes

  • The server adds optional media type validation against the agent's defaultInputModes.

    1.2.1release notes

  • Status or artifact event metadata now propagates to the task.

    1.2.1release notes

  • When creating push notification configs through REST, taskId is now correctly set from path parameters.

    1.2.1release notes

  • Avoids mutating the caller's message configuration.

    1.2.0release notes

  • Guards terminal state transitions and makes cancelTask atomic.

    1.2.0release notes

  • Scopes the manager by tenant and owner to match TaskStore.

    1.2.0release notes

  • Accepts JSON-RPC calls with omitted params.

    1.2.0release notes

  • Rejects empty task IDs with RequestMalformedError.

    1.2.0release notes

  • Preserves HeadersInit in authenticating fetch.

    1.2.0release notes

  • Preserves historyLength=0 rather than treating it as absent.

    1.2.0release notes

  • Preserves call context for tenant requests.

    1.2.0release notes

  • Rejects invalid REST listTasks pageSize values.

    1.2.0release notes

  • Rejects invalid status filters with RequestMalformedError.

    1.2.0release notes

  • Missing push notification configs now return 404/-32001.

    1.2.0release notes

  • Rejects whitespace-only taskId values.

    1.2.0release notes

  • Stamps the resolved taskId onto sendMessage push configs.

    1.2.0release notes

  • Rejects missing required extensions before mutating task history.

    1.2.0release notes

  • Array and string fields now receive null and undefined checks during v0.3 translation.

    1.1.0release notes

  • Input and output parameters are now serialized for listTasks.

    1.1.0release notes

  • Tasks are no longer filtered when task state is unspecified.

    1.1.0release notes

  • Push notification configurations are cloned before storage, preventing stored configurations from sharing the caller's object.

    1.1.0release notes

  • Global error branding fixes instanceof checks across bundle entry points.

    1.1.0release notes

  • The server now sends the full Task on every v0.3 push trigger.

    1.1.0release notes

  • Calls the context builder in the compatibility layer.

    1.0.1release notes

  • Normalizes legacy cards when creating from an agent card.

    1.0.1release notes

  • Awaiting _handleProcessingError lets errors surface from blocking drains.

    1.0.0release notes

  • Null values are preserved when using protobuf Struct.

    1.0.0release notes

  • The resubscribe route now supports GET.

    0.3.14, 1.0.0release notesrelease notes

  • The client cancels the SSE stream on teardown to avoid leaking connections.

    1.0.0release notes

@a2a-js/sdk 0.332 changes

Breaking changes 3

  • A JSON-RPC response id mismatch now causes an error to be thrown.

    0.3.11release notes

  • REST transport now uses ProtoJSON, changing the format used for REST communication.

    0.3.8release notes

  • Removing the EventEmitter dependency enables use in the Edge Runtime.

    0.3.7release notes

New APIs and options 12

  • A gRPC client is implemented, adding gRPC client functionality for developers.

    0.3.9release notes

  • A gRPC server is implemented, adding gRPC server functionality for developers.

    0.3.9release notes

  • Adds a REST client for communicating with A2A servers.

    0.3.7release notes

  • AgentCardResolver was introduced.

    0.3.6release notes

  • Client interceptors were implemented.

    0.3.6release notes

  • Server-side support for extended cards was added.

    0.3.6release notes

  • Client-side support for extendedAgentCard was added.

    0.3.6release notes

  • Client-side support for extension headers was added.

    0.3.6release notes

  • Server-side http+json support was implemented.

    0.3.6release notes

  • Server-side authentication support was added.

    0.3.6release notes

  • Server-side support for extensions was added.

    0.3.6release notes

  • A transport-agnostic client was introduced.

    0.3.6release notes

Behavior and default changes 1

  • Transport protocol name comparison is now case-insensitive.

    0.3.8release notes

Fixes and other changes 16

  • POST requests to pushNotificationConfigs now properly parse the ProtoJSON body.

    0.3.13release notes

  • Fixes push configuration being lost after normalization for REST transport.

    0.3.12release notes

  • AgentCardResolver now supports proto-based AgentCard instances.

    0.3.11release notes

  • SSE errors preserve the typed error as their cause, allowing developers to access it.

    0.3.10release notes

  • SSE stream parsing no longer uses the ReadableStream async iterator.

    0.3.10release notes

  • Generated types now use proto default values, aligning their defaults with the protocol.

    0.3.9release notes

  • Added typesVersions to support legacy module resolution.

    0.3.8release notes

  • Passes ServerCallContext to getAuthenticatedExtendedAgentCard for REST.

    0.3.7release notes

  • Exports transport-agnostic errors from the client.

    0.3.7release notes

  • Errors occurring in non-blocking sendMessage are now handled.

    0.3.6release notes

  • cancel/task now returns the expected 'cancelled' task status.

    0.3.5release notes

  • Enables issuing a follow-up task on a non-blocking request.

    0.3.5release notes

  • Validates JSON-RPC params.

    0.3.5release notes

  • Validates JSON-RPC request IDs according to the spec.

    0.3.5release notes

  • Ensures push notifications are delivered in order.

    0.3.5release notes

  • Ensures user messages are added to existing tasks.

    0.3.5release notes