Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

[WIP] remove boot from constructor #1359

Closed
wants to merge 1 commit into from

Conversation

fsdiogo
Copy link
Contributor

@fsdiogo fsdiogo commented May 18, 2018

This PR is the start of an effort to standardise the way we propagate and deal with errors.

The objective here is to remove event emitters, as we're only using them to propagate errors during instantiation. Moving boot that's inside the IPFS constructor to a factory method that returns a promise is a step towards that.

The discussion started in #1325, but check #1325 (comment) and #1325 (comment) as to why.

This will be a breaking change and apps using ipfs will probably have to be refactored, so that's why we should offer backwards compatibility for some time, to allow developers to update their code.

@ghost ghost assigned fsdiogo May 18, 2018
@ghost ghost added the status/in-progress In progress label May 18, 2018
@daviddias daviddias changed the title wip: remove boot from constructor [WIP] remove boot from constructor May 28, 2018
@alanshaw
Copy link
Member

#2094 is a step towards the idea put forwards in this PR and supercedes much of the work here already.

@alanshaw alanshaw closed this Jul 17, 2019
@alanshaw alanshaw deleted the feat/remove-boot-from-constructor branch July 17, 2019 12:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants