Skip to content

fix: Ensure generated formdata properly decamelizes its properties where applicable#3844

Merged
jdalrymple merged 3 commits into
mainfrom
fix/normalize-formdata-usage
May 5, 2026
Merged

fix: Ensure generated formdata properly decamelizes its properties where applicable#3844
jdalrymple merged 3 commits into
mainfrom
fix/normalize-formdata-usage

Conversation

@jdalrymple

Copy link
Copy Markdown
Owner

Summary

When we create form data using the createFormData command, we have forgotten that it does not have its internals decamelized like standard body arguments. This results in form data submissions having the wrong field name and eventually breaking things down the line.

This PR ensures that all the content passed to createFormdata follows a specific format:

  1. keys are decamelized by default (configurable)
  2. nested objects are query formatted like: key[nested_key]: value

@codecov

codecov Bot commented May 4, 2026

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 146.25kB (9.53%) ⬆️⚠️, exceeding the configured threshold of 5%.

Bundle name Size Change
requester-utils 27.57kB 1.18kB (4.48%) ⬆️
core 1.56MB 144.86kB (10.27%) ⬆️⚠️
rest 91.29kB 68 bytes (0.07%) ⬆️
cli 7.12kB 138 bytes (1.98%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: requester-utils

Assets Changed:

Asset Name Size Change Total Size Change (%)
index.cjs 246 bytes 8.13kB 3.12%
index.mjs 246 bytes 6.67kB 3.83%
index.d.cts 345 bytes 6.39kB 5.71% ⚠️
index.d.mts 345 bytes 6.39kB 5.71% ⚠️
view changes for bundle: core

Assets Changed:

Asset Name Size Change Total Size Change (%)
index.d.cts 4.12kB 481.83kB 0.86%
index.d.mts 4.12kB 481.83kB 0.86%
index.cjs 68.22kB 263.82kB 34.88% ⚠️
index.mjs 68.25kB 254.57kB 36.63% ⚠️
map.json 153 bytes 73.53kB 0.21%
view changes for bundle: rest

Assets Changed:

Asset Name Size Change Total Size Change (%)
index.cjs 34 bytes 19.55kB 0.17%
index.mjs 34 bytes 13.15kB 0.26%
view changes for bundle: cli

Assets Changed:

Asset Name Size Change Total Size Change (%)
index.mjs 138 bytes 7.12kB 1.98%

@jdalrymple jdalrymple merged commit b2cb6e2 into main May 5, 2026
23 checks passed
@jdalrymple jdalrymple deleted the fix/normalize-formdata-usage branch May 5, 2026 00:19
@jdalrymple jdalrymple added the type:bug Changes fix a minor bug label May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Changes fix a minor bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant