npm / @a2ui/web_core
@a2ui/web_core
What changed in @a2ui/web_core 0.9 to 0.15, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-23.
49 breaking3 security6 deprecations65 new APIs and options2 performance21 behavior and defaults30 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@a2ui/web_core 0.1544 changes
Breaking changes 10
No longer adopts subclass static styles into the document when rendering into a ShadowRoot, preventing styles from leaking onto Light DOM content.
A catalog invoker rejects calls to an
agentOnlyfunction from renderer property bindings, checks, or function call actions with A2uiExpressionError; agent RPC calls remain allowed. UserendererOrAgentwhen both callers need access.Reads ValidationResult arguments typed as DynamicBoolean by their valid boolean, so failed validation evaluates as false rather than as a truthy object.
Removes peer-catalog reference resolution and its related APIs; v1.0 catalog references resolve only within their own document and common_types.json, and external references are rejected.
Includes args in the outer function call schema's required list when union, allOf, or local reference argument schemas require arguments.
Component property validation rejects unrecognized keys in function call objects inside dynamic properties and check rules, rather than silently ignoring extra fields.
Await pending Promises in function arguments before validating and running; synchronous calls remain synchronous.
Composition validation applies the Surface allowedParents rule only to the surface root and rejects a root whose allowedParents excludes Surface, even when another component references it.
In v1.0, rejects extension keys outside UAX #31 identifier syntax during message and component validation.
The v1.0 protocol wire value is now
1.0without avprefix across envelopes, capabilities, RPC, and catalog documents; adapter lookup and Catalog.fromJson still acceptv1.0.
New APIs and options 19
Adds error context types and path, surfaceId, and functionCallId context properties.
Builds a catalog with a new ID from named entries of an existing catalog and new entries, without carrying over the source $id, title, description, or instructions.
Adds optional component metadata, parsed and serialized by Catalog.fromJson and Catalog.toJson.
Adds component metadata and extension accessors, metadata change notifications, and setExtension/removeExtension methods.
Exposes component metadata on ComponentNode as a Signal.
Adds preserveNull so pre-1.0 surfaces can store null rather than remove the entry; v1.0 surfaces still remove it.
Allows processMessages, processMessagesAsync, and processOperation to apply a call-specific validationConfig instead of the processor's own.
Supports @-prefixed system function calls, such as ${@index()}, in string interpolation templates.
Exports the deprecated 0.9.x function set, restoring legacy functions to BASIC_FUNCTIONS and createBasicCatalogFunctions; basicCatalog continues to register only specification functions.
Adds structured renderer-error mapping and related error types across the package root, versioned entry points, and processing entry point.
Exposes the catalogs with which the processor was created.
Takes no arguments by default and returns capabilities with versions set to v0.9; it also accepts the pre-1.0 {version} option.
Accepts optional ActionDispatchOptions when constructing a NodeAction.
Adds a skipNestedFunctions option for pre-1.0 validation behavior, where nested function calls in component properties are not checked by MessageProcessor.
Resolves list items and object properties like GenericBinder: nested actions become async functions, bindings become their values, child lists become child references, and bound object properties gain setters.
Adds a component at a specified position in model order and fires onCreated as addComponent does.
Adds an error notification hook as part of structured outbound renderer error envelope support.
Accepts optional metadata when dispatching an action.
Adds surface metadata and extension accessors, a metadata change signal and notification, and setExtension/removeExtension methods.
Performance 1
Under validation configs allowing dangling references and orphans or a missing root, incrementally checks affected components during updateComponents instead of rechecking the whole surface; other configs are unchanged.
Behavior and default changes 4
Lazily subscribes to node and surface metadata so custom Lit views re-render on metadata changes without re-resolving or re-rendering unchanged sibling properties.
Accepts a resolved ComponentNode as well as an A2uiChildRef.
Allows non-object catalog $defs, property references to #/$defs/... and vendor or metadata extension keys on components and functions.
For processors with only pre-1.0 catalogs and no validationConfig, accepts createSurface, updateComponents, updateDataModel, and deleteSurface envelopes that omit version as v0.9.
Fixes and other changes 10
Restores the deprecated pre-1.0 constructor overload without protocolVersion, which constructs a 0.9 catalog; the 1.0 constructor signature is unchanged.
Writes z.union as anyOf in serialized catalogs and validation schemas so reloaded catalogs accept the original union's values; specification-shaped exclusive unions remain oneOf.
Restores construction without a catalog argument for pre-1.0 call sites.
Seeds a function call result with the current value of its returned Signal before creating the forwarding effect, preventing an initial undefined read and spurious EXPRESSION_ERROR with deferred effects.
Accepts generic errors that name exactly one of surfaceId or functionCallId instead of rejecting every generic error.
Preserves ValidationResult.message on path-bound CheckRule conditions while overriding function default messages on evaluated checks.
Passes @call in the callRendererFunction message handed to RpcHandler.
Resolves directly to z.infer<Schema>, preserving function argument schemas with properties named path or call.
Rewrites a v0.9-style call key to @call in the outbound callAgentFunction message.
Restores the pre-1.0 constructor argument order for a plain object in the third slot and restores the deprecated catalog getter type to Catalog<T, F>.
@a2ui/web_core 0.1434 changes
Breaking changes 12
Basic catalog elements now use a2ui-prefixed classes, preventing application rules such as .error, .active, and .container from matching element internals.
Rejects @-prefixed catalog function names and validates function parameter names.
External implementations must now provide toJson() and validationSchema.
The catalog property and constructor argument are required; models are not created without a resolved catalog.
Throws A2uiCatalogError on a surface without a default catalog instead of returning undefined.
Removed; use DataContext.atLeastV10, which is true for v1.0 and later versions.
No longer strips a leading @ before checking UAX 31 syntax.
On v1.0, validates each function call against its resolved catalog and throws A2uiCatalogError when resolution fails, even without validationConfig.
Checks nested function calls under id and component property keys, including catalog selection according to protocol version.
Takes a Catalog again, not undefined, and resolves components against their own catalog without falling back to the surface default.
May be undefined; v1.0 components and function calls without catalogId resolve to it and fail if no default catalog exists.
Function schemas now describe wire function calls rather than bare argument schemas; loaded and basic-catalog schemas are built from definitions.
Deprecations 4
Deprecated in favor of Catalog.validationSchema.
Deprecated in favor of Catalog.fromJson.
Deprecated in favor of generateValidationSchema.
The deprecated getter may return undefined, like defaultCatalog.
New APIs and options 14
Loads a catalog document into a model, with optional protocol version and catalog ID overrides.
Assembles the unbundled catalog document from its model, computing the anyComponent and anyFunction unions.
Provides a bundled, self-contained schema computed from the catalog model.
Derives a catalog with different entries and drops $defs referenced only by removed entries.
Returns a new catalog linked to the specified peers without changing the receiver.
Sets how references to common types are written.
Adds model definitions to $defs when generating catalog entries from annotated schemas.
Controls whether the theme is written under $defs.theme or under styles.
Inlines local and peer references in a schema.
Returns catalog copies linked to each other and to any extra peers.
Annotates a Zod schema with catalog-document details that Zod does not express; annotations do not change validation.
Annotates a Zod schema with catalog-document details, including the $defs name of a model.
Adds a surface protocol version, including a constructor argument for surfaces without a default catalog; stores it as vMAJOR.MINOR.
Resolves a catalogId for MessageProcessor and DataContext so validation and execution report the same catalog errors.
Behavior and default changes 3
Below v1.0, ignores catalogId on function calls and runs them in the surface catalog.
Allows the reserved @index system function on v1.0+ surfaces while validating user-defined function names against UAX 31.
Reserved @-prefixed system functions validate and run without a default catalog, bypass catalog resolution, and reject calls that name a catalogId.
Fixes and other changes 1
Reports unresolved function-call catalogs on the surface error channel as CATALOG_ERROR instead of EXPRESSION_ERROR.
@a2ui/web_core 0.1337 changes
Breaking changes 7
Component trees now name a component under component rather than type, and write id, component, and metadata after component properties; read the component type from tree.component.
The v1.0 basic catalog evaluates ValidationResult operands through their valid member; the truthy option is accepted to configure this behavior.
Rejects number literals outside the double range with Number literal is out of range instead of returning Infinity.
Returns an empty string for nonexistent dates instead of rolling them into the next month.
Functions requiring user activation are enforced: openUrl throws A2uiExpressionError(USER_ACTIVATION_REQUIRED) when evaluated passively or without a user activation gesture.
Adds a pattern complexity checker to mitigate ReDoS, instantly rejecting unsafe nested repetitions and enforcing pattern and input length limits.
v1.0 validation now checks path syntax in @path and function-call nesting depth in @call expressions.
Security 1
Avoids a direct window.open property check to prevent errors in security-restricted environments.
New APIs and options 8
Adds v1.0 basic catalog custom elements at this package export path.
Universal elements accept an optional node; A2uiLitElement derives context from it and passes each child its own node, while context remains supported for incremental migration.
Adds a name for a schema-only Catalog<ComponentApi, FunctionApi>; Catalog.fromSchema now returns it.
Exposes the context the resolver bound the node with; it is undefined on placeholders.
Adds a document-unique string stable for the node's lifetime, suitable as a rendering key or base for DOM ids and accessibility references.
The v1.0 basic catalog evaluates ValidationResult operands through their valid member; the truthy option is accepted to configure this behavior.
Now accepts a ComponentNode.
Adds universal runtime exports for v1.0 at this package export path.
Performance 1
Avoids recreating A2uiController when an incoming ComponentContext binds the same component and data path.
Behavior and default changes 9
Universal host elements apply aria-label, aria-description, aria-live, and aria-hidden; basic catalog input components render validation errors.
The v1.0 basic catalog evaluates ValidationResult operands through their valid member; executeAnd accepts a truthy argument.
The v1.0 basic catalog evaluates ValidationResult operands through their valid member; executeNot accepts a truthy argument.
The v1.0 basic catalog evaluates ValidationResult operands through their valid member; executeOr accepts a truthy argument.
Accepts number literals with a leading decimal point, including as function-call arguments, while .foo and ./x remain paths.
Falls back to the catalog's protocolVersion when no protocolVersion option is given; versions at or above 1.0 without their own definitions use v1.0 definitions.
Action closures now return Promise<void> and await async functionCall actions so callers can detect when action handling settles.
v1.0 dynamic resolution supports reserved @path and @call keys, doubled-prefix unescaping, and validation of unknown single-@ keys while retaining v0.8 and v0.9 support.
Supports non-ASCII Unicode characters in template expressions and data model keys.
Fixes and other changes 11
Disposal now detaches componentsModel.onCreated and binder subscriptions to fix a memory leak in universal elements.
Styles now survive Closure-optimized builds.
Fills $defs with standard definitions for the catalog's protocol version rather than using v0.9 definitions for every catalog.
No longer drops properties mixed in through an external allOf reference, allowing Checkable components in basic catalogs to accept checks.
In v1.0, resolves common_types.json#/$defs/Child so single-child properties such as Card.child are recognized as child references.
Includes FunctionCall and @call expressions in dynamic setter typing following the @ prefix protocol migration.
Setter parameters for properties declared as bindings with no literal branch now fall back to unknown instead of never, making the setter callable.
Returns null when the written date and time fields do not survive parsing.
Re-rendering a parent preserves existing child elements, preventing stateful children from reloading when a sibling is added; the function now returns a Lit directive result.
Props declared as Record<string, unknown> resolve to their data type rather than action thunks.
Reads the updated component tree, so properties named component or id no longer replace the model's own values when child references are found.
@a2ui/web_core 0.1225 changes
Breaking changes 13
The v0.9 basic catalog no longer includes non-spec math and comparison functions; applications needing them must register them in a custom catalog.
Universal Web Component symbols moved from the v0.9 root export to this subpath; update import paths.
Deleting an array index past the end is now a no-op instead of extending the array's length.
v1.0 catalog loading validates component property names, function names, and function argument names against UAX #31.
The constructor now requires protocolVersion as its second parameter.
Assigns dataModel at the root so keys containing / or ~ are treated as literal property names rather than nested paths or escape sequences.
In v1.0, a currency code rejected by Intl is placed according to the locale's currency pattern rather than always prefixed.
In v1.0, formatNumber, formatCurrency, and pluralize default to en-US instead of the host locale.
Function arguments are typed unknown instead of any, requiring explicit validation or schema parsing.
In v1.0, evaluating @index outside a collection template raises A2uiValidationError instead of returning 0.
v0.9 basic catalog components no longer define custom elements when imported; registerUniversalElement is needed when code relies on import-time registration.
The constructor takes availableCatalogs as its third positional argument and theme as its fourth; an invalid third argument throws a TypeError.
Now requires an element field holding the custom element constructor.
Deprecations 1
SurfaceModel.catalog is deprecated in favor of SurfaceModel.defaultCatalog; the old property remains as a compatibility getter.
New APIs and options 7
The root export now provides shared core APIs across protocol versions; v0.8 protocol API consumers should import from @a2ui/web_core/v0_8.
Re-exports DataBindingType, FunctionCallType, and MAX_FUNCTION_CALL_ARGS.
Exports isWebComponentImplementation and registerUniversalElement for universal web component integrations.
Adds A2uiRpcError and RpcErrorCode for structured RPC error responses at @a2ui/web_core/rpc.
Adds the DOM contract for an A2UI custom element: an HTMLElement that accepts a context property.
Adds single-catalog component and function schema validation at @a2ui/web_core/validation.
Adds setMarkdownRenderer and getMarkdownRenderer for setting and getting the default MarkdownRenderer for basic catalog text components.
Behavior and default changes 1
In v1.0, an unusable locale tag falls back to en-US instead of throwing or using the host's ambient locale.
Fixes and other changes 3
The v1.0 basic catalog now exports function bodies through BASIC_FUNCTIONS and createBasicCatalogFunctions, matching the v0.9 shape.
In v1.0, TR35 tokens are expanded in the timestamp's written offset, so output does not vary by machine.
Resolves event.userMessage before dispatch, so DynamicString paths and calls are not forwarded to the agent unresolved.
@a2ui/web_core 0.1119 changes
Breaking changes 4
controlleris now a read-only getter, preventing external reassignment.Invoking a catalog function without an implementation now throws
A2uiExpressionError.Invalid number literals such as
${1.2.3}now throwA2uiExpressionErrorinstead of being returned asNaN; accepted literal shapes are stated explicitly for consistent parsing.The parser now enforces its nesting limit, raising
A2uiExpressionErrorfor deeply nested interpolations or function-call arguments instead of overflowing the stack.
Deprecations 1
This export from
@a2ui/web_core/v0_9is deprecated; import it from@a2ui/web_core/v0_9/basic_cataloginstead.
New APIs and options 9
Adds an entrypoint exporting universal Web Component basic catalog implementations, including
basicCatalogand the listed component implementations.Exports the Web Component base class from
@a2ui/web_core/v0_9.Catalogaccepts a function-kind type parameter, defaulting toFunctionImplementation.Adds the
childList()helper to compose custom descriptions without losing$ref.Adds the
componentId()helper to compose custom descriptions without losing$ref.SurfaceComponentsModelnow has acomponentsMapproperty getter matchingSurfaceGroupModel.surfacesMap.Adds a node layer that resolves surface components and data into a live tree of read-only component nodes, resolving dynamic properties and representing pending, unknown-type, and cyclic states.
The constructor now accepts an optional custom
DataModel.SurfaceModelaccepts a function-kind type parameter, defaulting toFunctionImplementation.
Behavior and default changes 3
Payload parsing now supports
functionCallas well aseventstructures for Python SDK parity.Schema inference now recognizes
$defsdescriptions and child reference metadata.Reuses action closures across identical component resends so action-valued props retain reference identity and downstream equality checks see them as unchanged.
Fixes and other changes 2
The child-reference marker now lives in schema metadata, so
.describe()and other schema-rebuilding methods do not drop it; hand-authoredREF:descriptions remain recognized.Basic catalog child-reference properties emit
$refin inline-catalog capabilities even when a per-usage description is set.
@a2ui/web_core 0.1015 changes
Breaking changes 3
openUrl now rejects URLs with schemas other than HTTP or HTTPS, preventing agents from executing arbitrary JavaScript.
The schema no longer uses passthrough, resulting in stricter validation.
Renames the Icon property path to svgPath to fix a type collision with DataBindingType.
Security 2
Adds prototype pollution protection and safe property lookup.
Validates component properties against the catalog schema to prevent malformed component actions.
New APIs and options 6
Exports
A2uiMessageSchemain the public API.Exports UserAction as ClientEventUserAction from types.ts.
Adds the ability to swap out the signals implementation.
A factory function lets developers override the hard-coded recursion depth in DataValueSchema.
Basic catalog functions support locale settings through catalog-level configuration.
Adds a helper for basic catalog components to generate CSS formulas for light, dark, and hover color variants, enabling reuse across renderers.
Behavior and default changes 1
Supports advertising the v0.9 and v0.9.1 version capabilities simultaneously.
Fixes and other changes 3
Message parsing accepts both v0.9 and v0.9.1 versions.
DataModel supports JSON Pointer escaping (RFC 6901).
Objects and arrays are JSON-stringified per spec instead of using JavaScript's default coercion.
@a2ui/web_core 0.92 changes
New APIs and options 2
Adds a generic signal from a framework such as Preact or Angular; it is unused in this version, with future versions likely to introduce breaking changes.
Exports the default CSS variable values used by the A2UI basic catalogs.