Repository navigation
v0.2.0
·
85 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Removed
- Breaking: The generated
componentsno longer hasrefsandrequestRefs. Schemas in other files or under$defsare still typed, and are reached through the component schemas and operations that refer to them. Named exports (import type { Pet }),schemasandcomponents["schemas"]are unchanged.
Added
- Node.js 22 is supported. The npm package now requires Node.js 22 or later instead of 24.
Fixed
patternPropertiesis no longer ignored. WithadditionalProperties: false, a value with a key that matches a pattern was rejected. TypeScript cannot restrict keys to a pattern, so such an object now has an index signature over every key, typed as the patterns andadditionalPropertiesallow.- The variant that a discriminator's
defaultMappingnames no longer requires the discriminating property. The specification lets a value leave it out, and uses thedefaultMappingschema then. auth()acceptsundefinedcredentials, such as an unset environment variable, underexactOptionalPropertyTypes. It already treated them as unavailable at runtime.- A call can leave out an optional request body without naming a media type, also when the operation declares several and none is implied.
- A
Cookieheader in a call'sheadersoption now joins thecookieparameters and replaces only the cookies of the same name. Before, it replaced them all.
Security
- The generated client rejects a path that starts with
//with aTypeError. With no server URL and nobaseUrl, browsers resolved such a path as a URL on another host, andauth()sent credentials there.