Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kricsleo
Copy link
Member

@kricsleo kricsleo commented Mar 29, 2025

resolves #439
resolves #466

Bun added toJSON method to URLSearchParams and FormData, this confused the isJSONSerializable.

It’s neither Node.js behavior (Bun aims for 100% compatibility) nor standard behavior (according to MDN)

@codecov
Copy link

codecov bot commented Mar 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.00%. Comparing base (27996d3) to head (5fc9a0c).
⚠️ Report is 73 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #483       +/-   ##
===========================================
+ Coverage   56.86%   70.00%   +13.13%     
===========================================
  Files          16       17        +1     
  Lines         728      530      -198     
  Branches      113      140       +27     
===========================================
- Hits          414      371       -43     
+ Misses        303      148      -155     
  Partials       11       11               

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kricsleo kricsleo changed the title fix: mark FormData as non-serializable in Bun fix: mark FormData & URLSearchParams as non-serializable for Bun compatibility Apr 6, 2025
@utpalgupta-blinkit
Copy link

When will this be merged?

@pi0 pi0 changed the title fix: mark FormData & URLSearchParams as non-serializable for Bun compatibility fix: mark FormData & URLSearchParams as non-serializable for bun compatibility Aug 29, 2025
Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ❤️

@pi0 pi0 merged commit 4e4d3ee into unjs:main Aug 29, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

POST request with x-www-form-urlencoded is failing as Bad Request Bun compatibility

3 participants