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

Rename multipartIterator to parts #147

Merged
merged 2 commits into from
Aug 28, 2020
Merged

Rename multipartIterator to parts #147

merged 2 commits into from
Aug 28, 2020

Conversation

mcollina
Copy link
Member

Checklist

@mcollina mcollina requested a review from StarpTech August 27, 2020 08:15
@@ -164,7 +164,12 @@ function fastifyMultipart (fastify, options = {}, done) {

fastify.addContentTypeParser('multipart', setMultipart)
fastify.decorateRequest(kMultipartHandler, handleMultipart)

fastify.decorateRequest('parts', getMultipartIterator)
// keeping multipartIterator to avoid bumping a major
Copy link
Member

Choose a reason for hiding this comment

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

wonder if this could be done by using some kind of getter that would be emitting warnings when used. although that might require support on fastify level

Copy link
Member

Choose a reason for hiding this comment

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

maybe just a wrapping function would suffice here, actually

Copy link
Member Author

Choose a reason for hiding this comment

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

This has been released for so little that I don't think we should bother with a full blown deprecation.

@StarpTech
Copy link
Member

I'm not convinced about a rename at this stage but I'm also not against it.

Copy link
Member

@StarpTech StarpTech left a comment

Choose a reason for hiding this comment

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

LGTM

@mcollina mcollina merged commit 9a229c1 into master Aug 28, 2020
@mcollina mcollina deleted the use-parts branch August 28, 2020 15:46
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.

3 participants