Skip to content

Commit 966d0db

Browse files
release: 3.7.3 (#599)
* chore(internal/client): fix form-urlencoded requests * release: 3.7.3 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent b6d9749 commit 966d0db

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "3.7.2"
2+
".": "3.7.3"
33
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 3.7.3 (2026-02-18)
4+
5+
Full Changelog: [v3.7.2...v3.7.3](https://github.com/val-town/sdk/compare/v3.7.2...v3.7.3)
6+
7+
### Chores
8+
9+
* **internal/client:** fix form-urlencoded requests ([a8a5f6b](https://github.com/val-town/sdk/commit/a8a5f6b0fe71bfa22e5b0fbd945c93ad51672195))
10+
311
## 3.7.2 (2026-02-12)
412

513
Full Changelog: [v3.7.1...v3.7.2](https://github.com/val-town/sdk/compare/v3.7.1...v3.7.2)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@valtown/sdk",
3-
"version": "3.7.2",
3+
"version": "3.7.3",
44
"description": "The official TypeScript library for the Val Town API",
55
"author": "Val Town <support@val.town>",
66
"types": "dist/index.d.ts",

src/client.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,14 @@ export class ValTown {
730730
(Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))
731731
) {
732732
return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable<Uint8Array>) };
733+
} else if (
734+
typeof body === 'object' &&
735+
headers.values.get('content-type') === 'application/x-www-form-urlencoded'
736+
) {
737+
return {
738+
bodyHeaders: { 'content-type': 'application/x-www-form-urlencoded' },
739+
body: this.stringifyQuery(body as Record<string, unknown>),
740+
};
733741
} else {
734742
return this.#encoder({ body, headers });
735743
}

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '3.7.2'; // x-release-please-version
1+
export const VERSION = '3.7.3'; // x-release-please-version

0 commit comments

Comments
 (0)