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

feat(javascript): allow overriding all transporter options #615

Merged
merged 3 commits into from
Jun 1, 2022

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented May 31, 2022

🧭 What and Why

In v4 these are all allowed, and this allows users to work around possible issues we have smoothly, see eg. algolia/react-instantsearch#3487

At the same time I also simplified the passing of options in node/browser, they were double checking a variable that later overrides the original with the spread anyway.

🎟 JIRA Ticket: /

Changes included:

  • allow transporter options to be overridden

🧪 Test

does this require new tests? Not sure where the non-generated tests go

@netlify
Copy link

netlify bot commented May 31, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit 11fbe8d
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/62961eee49203b0008881202

@algolia-bot
Copy link
Collaborator

algolia-bot commented May 31, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.
You can still access the code generated on main via this commit.

In v4 these are all allowed, and this allows users to work around possible issues we have smoothly, see eg. algolia/react-instantsearch#3487

At the same time I also simplified the passing of options in node/browser, they were double checking a variable that later overrides the original with the spread anyway.
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

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

🚀

@millotp millotp merged commit 9f99f02 into main Jun 1, 2022
@millotp millotp deleted the feat/options-override branch June 1, 2022 12:00
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.

None yet

3 participants