Repository navigation
Releases
v0.23.0
-
Breaking: the SDKs switch to the new forms of the commands API below. Browsers still accept the old
status,cancel,findandeventsAfterforms for now, so older SDKs keep working, and they mark those responses withx-steel-deprecated.statusandcancelare no longer commands. Usesessions.commandExecutions.retrieveandsessions.commandExecutions.cancel.dialogis no longer a command, and commands do not answer dialogs. A response still shows an open dialog indialog. Close it in the live view, or close its tab.findtakestarget, a CSS selector or a locator, in place ofby,value,nameandexact.{ by: "role", value: "button", name: "Save" }becomes{ target: { role: "button", name: "Save" } }.eventsAfter,eventsandepochare gone.epochChangedstays.
-
Added: a response has
idat the top, the same asexecution.id. -
Changed: each item of
resultsnames itscommandand has the fields of that command, typed asCommandResult. -
Changed: arguments that do not fit together, such as a
waitwith two conditions orget attrwithoutattribute, are refused with400before any command runs. -
Changed: an unexpected engine failure answers
500 internal_errorinstead of200witherror. Thex-should-retryheader says whether sending the request again is safe. -
Added: every SDK sends an
Idempotency-Keyheader on requests other thanGETand keeps it across automatic retries. A key you pass with a request replaces it. Rust takes one only onsessions.commands, asidempotency_key. -
Fixed: Rust follows the
x-should-retryheader, as the other SDKs do. -
Added
client.sessions.command_executions.cancel. -
Added
client.sessions.command_executions.retrieve. -
Updated the docs of the response of
client.sessions.commands. -
Breaking: Removed
client.sessions.commandsbodyeventsAfter. -
Breaking:
client.sessions.commandsbodycommandschanged its variants. -
Breaking:
client.sessions.commandsresponse changed from a union to an object. -
Breaking: Removed model
CommandEvents. -
Breaking:
Commandchanged its variants. -
Breaking: Removed
CommandDialog.accepted. -
Breaking: Removed
CommandDialog.by. -
Breaking: Removed
CommandDialog.text. -
Added model
CommandResult. -
Updated the generator and the runtimes.
v0.22.0
-
Fixed: Go and Rust can send
nullinsessions.updateMetadata, which removes a metadata key. TypeScript and Python already could. -
Changed: Go sends a
nilmap value asnull. It used to leave the key out. This also applies tometadatainSessions.NewandSessions.ReplaceMetadata. -
Breaking types: in Rust,
SessionUpdateMetadataParams.metadatais aHashMap<String, Option<SessionUpdateMetadataParamsMetadata>>, whereNoneremoves the key, andSessionUpdateMetadataParamsMetadata::String2is gone. The string lists and maps in the profile fingerprint, such asfontsandaudio_codecs, holdOption<String>, because the API can sendnullin them. -
Added: Rust request objects with required fields have a
newconstructor that takes only those fields. Fields with a single allowed value, such ascommand, fill themselves, and objects with no other required field implementDefault. -
Fixed: the links in the TypeScript and Python READMEs work on npm and PyPI.
-
Updated the generator and the runtimes.
v0.21.0
The SDKs now live in this repository, and all six languages share one version. This release follows 0.18.0 on npm and 0.19.0 on PyPI.
- Added
apiKeys.create,projects.listandprojects.retrieve, and on sessionsagentTraces,commands,cost,hls,logs,replaceMetadata,signalCatalogandupdateMetadata. Python uses the snake_case names, such asagent_traces. - Breaking types:
extensions.download()returns the zip as binary. TypeScript returns aResponseinstead of astring, and Python aBinaryAPIResponseinstead of astr. The old string could not hold the bytes of the zip intact. - Fixed: TypeScript percent-encodes path parameters, so an ID with
/,?or#no longer changes the request. - Fixed: Python sends
user_data_dirinprofiles.createandprofiles.updateas a file. - New, in beta: a Kotlin SDK in
kotlin/, with nullable types and suspend functions. The Java and Kotlin SDKs are in beta and not on Maven Central yet. - Go moves from
github.com/steel-dev/steel-gotogithub.com/steel-dev/sdk/go. The Rust crate keeps its name,steel-rs. The API of both changes with this release. - Requests carry
X-Steel-Lang,X-Steel-Package-Versionand related headers.