Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

chore: update options timeout property#62

Merged
vasco-santos merged 2 commits intomasterfrom
chore/update-options-timeout-property
Dec 11, 2018
Merged

chore: update options timeout property#62
vasco-santos merged 2 commits intomasterfrom
chore/update-options-timeout-property

Conversation

@vasco-santos
Copy link
Copy Markdown
Member

maxTimeout option property renamed to timeout. Moreover, previous support for timeout using a number instead of an object with options deprecated.

BREAKING CHANGE: get, getMany, findProviders and findPeer do not accept a timeout number anymore. It must be a property of an object options.

BREAKING CHANGE: get, getMany, findProviders and findPeer do not accept a timeout number anymore. It must be a property of an object options.
@ghost ghost assigned vasco-santos Dec 11, 2018
@ghost ghost added the status/in-progress In progress label Dec 11, 2018
@vasco-santos
Copy link
Copy Markdown
Member Author

coverage decreases as we are still supporting maxTimeout until the next release.

Comment thread src/private.js Outdated
Comment thread src/private.js Outdated
Comment thread src/private.js Outdated
Co-Authored-By: vasco-santos <vasco.santos@ua.pt>
@vasco-santos vasco-santos merged commit 3046b54 into master Dec 11, 2018
@ghost ghost removed the status/in-progress In progress label Dec 11, 2018
@vasco-santos vasco-santos deleted the chore/update-options-timeout-property branch December 11, 2018 11:42
Comment thread src/index.js
if (!options.maxTimeout) {
options.maxTimeout = c.minute
if (!options.maxTimeout && !options.timeout) {
options.timeout = 'c.minute' // default
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this meant to be a string?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

NOOOOO! 😱

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants