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

Remove the deprecated addToBody option and return files as buffers when attachFieldsToBody is set to keyValues #481

Merged
merged 8 commits into from
Sep 28, 2023

Conversation

gurgunday
Copy link
Member

@gurgunday gurgunday commented Sep 25, 2023

There has been multiple requests to make a major release as we fixed an annoying issue, but so far we've held it back to combine these changes with a rewrite of the plugin

I think as @mcollina said, bumping major is cheap and we can release v9 in the future when the rewrite is complete

Closes #447 and closes #456, closes #289, closes #202 closes #435

Checklist

gurgunday and others added 6 commits July 31, 2023 11:06
…es'` (#468)

* return buffer directly

* add test

* move tap path to taprc

* update README.md

* typo

* refactor keyValues handler

* use already set variable

* use for...of

* ditch for...of for Arrays

* use keys rather than entries
* remove deprecated method

* remove unused package

* revert modification

* remove addToBody documentation

* remove request.multipart type

* remove legacy comment
* only add schema when attachfieldstobody is true

* fs/promises

* use `for` for arrays

* conditionally call Object.values
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@Eomm Eomm self-requested a review September 26, 2023 08:29
@Eomm
Copy link
Member

Eomm commented Sep 26, 2023

Does it close this issue too #464?

@gurgunday
Copy link
Member Author

gurgunday commented Sep 26, 2023

That one is more about the actual rewrite we wanted to do. Maybe we can remove “restructure” from its title

The following however can be closed as we are removing the buggy API while having an alternative that works: #435

@gurgunday
Copy link
Member Author

Anyone wants to add a breaking change?

Last call!

test/multipart-attach-body.test.js Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@Fdawgs
Copy link
Member

Fdawgs commented Sep 27, 2023

Probably also needs a more descriptive PR title rather than v8? 😋

gurgunday and others added 2 commits September 27, 2023 20:57
@gurgunday gurgunday changed the title v8 Remove the deprecated addToBody option and return files as buffers when attacFieldsToBody is set to keyValues Sep 27, 2023
@gurgunday gurgunday changed the title Remove the deprecated addToBody option and return files as buffers when attacFieldsToBody is set to keyValues Remove the deprecated addToBody option and return files as buffers when attachFieldsToBody is set to keyValues Sep 27, 2023
Copy link
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

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

If @Fdawgs approves, I also approve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants