Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yet another rebase! generic body parser #574

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ctcpip
Copy link
Member

@ctcpip ctcpip commented Jan 15, 2025

supersedes #524

This was referenced Jan 15, 2025
@ctcpip ctcpip force-pushed the generic-again branch 2 times, most recently from 8715c66 to 3bb268b Compare January 15, 2025 01:02
@wesleytodd
Copy link
Member

As I commented there, can you please call out what was wrong in the original and previous rebase PR? I will review this, but since it changes many lines and I have now read two others supposedly doing the exact same thing I won't read this one again until we have a clear callout for what we all should be looking at specifically.

squashed the following commits:

Added support for external parsers to bodyParser.json()

removed test dependency on json-bigint

reworked doc to describe json parser() func better

added parser() option and doc for .text()

added parser() option and doc for .raw()

added parser() option and doc for .urlencoded()

cleanup to satisfy linter

added generic parser

converted json parser to use generic parser

converted raw parser to use generic parser

converted text parser to use generic parser

converted urlencoded parser to use generic parser

cleanup / fix linter warnings

removed items from README

added bodyParser.generic() getter

cleanup / fix linter warnings

fixed tests after rebase

satisfying linter

Ref'd genParser via the bodyparser getter to signal how third party parsers should import genParser'

removed dep on object-assign, which didnt support node < 0.10

minor text cleanup

🔧 add debug script

🐛 fix object merging

🔥 clean up

💚 remove node < 4 from CI

Co-authored-by: S Dellysse <[email protected]>
Co-authored-by: ctcpip <[email protected]>
Co-authored-by: Phillip9587 <[email protected]>
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.

2 participants