Skip to content

Conversation

@Bassetts
Copy link
Contributor

@Bassetts Bassetts commented Nov 21, 2025

Using any prevents intersection being used to type the body, unknown will allow this. I noticed the old typings also used unknown for this reason (DefinitelyTyped/DefinitelyTyped@d1c9989)

Checklist

  • I have ensured my pull request is not behind the main or master branch of the original repository.
  • I have rebased all commits where necessary so that reviewing this pull request can be done without having to merge it first.
  • I have written a commit message that passes commitlint linting.
  • I have ensured that my code changes pass linting tests.
  • I have ensured that my code changes pass unit tests.
  • I have described my pull request and the reasons for code changes along with context if necessary.

@Bassetts
Copy link
Contributor Author

Bassetts commented Dec 8, 2025

@fengmk2 @3imed-jaberi Any chance of getting this reviewed and merged? It's a blocker for my work as we can't type the request body due to it being any

@fengmk2
Copy link
Member

fengmk2 commented Dec 8, 2025

This should be a breaking change

@Bassetts
Copy link
Contributor Author

This should be a breaking change

Is there anything you need me to do for this?

@Bassetts
Copy link
Contributor Author

Is it possible to get any movement on this? It's becoming a real issue for us and is preventing us from using the latest version of koa.

@royal
Copy link

royal commented Jan 23, 2026

@fengmk2 is there anything further needed to get this merged/released? it's not something we can work around easily. thanks!

@fengmk2
Copy link
Member

fengmk2 commented Jan 23, 2026

@3imed-jaberi can you release a new version?

@fengmk2 fengmk2 merged commit e3c0241 into koajs:master Jan 23, 2026
4 checks passed
@3imed-jaberi
Copy link
Member

@koa/bodyparser 6.1.0 published 🎉

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.

4 participants