Skip to content

v13.0.3

Choose a tag to compare

@maxholman maxholman released this 09 May 10:08
· 149 commits to master since this release

Breaking change

RuntimeOptions.base is removed. Callers using it should migrate:

- { base: 'https://other-host' }
+ { url: (u) => { u.host = 'other-host'; return u } }

The previous base option (URL | string) from previous release v13.0.2 post-processed the URL by setting url.search = query, which clobbered any signature params on presigned URLs. Replaced with a function-only url that gives full takeover.

await orgsClient.send(
  new PutLogoObjectCommand(
    { org_id: orgId, body: file },
    { "content-type": mimeType, "content-length": `${file.size}` },
  ),
  { url: () => upload.url },
);

The function receives the default-built URL (base + path + query) and its return value (URL | string | Promise<URL | string>) is used as-is — no further pathname or query processing — making it suitable for one-off targets like presigned uploads.