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

chore: update options timeout property #62

Merged
merged 2 commits into from
Dec 11, 2018

Conversation

vasco-santos
Copy link
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
Member Author

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

src/private.js Outdated Show resolved Hide resolved
src/private.js Outdated Show resolved Hide resolved
src/private.js Outdated Show resolved Hide resolved
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
if (!options.maxTimeout) {
options.maxTimeout = c.minute
if (!options.maxTimeout && !options.timeout) {
options.timeout = 'c.minute' // default
Copy link
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
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