-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat(breaking change): experimental config options #749
Conversation
@@ -0,0 +1,18 @@ | |||
exports.goOnline = require('./go-online') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's not duplicate exports
everywhere
module.exports = {
goOnline: require('./go-online'),
...
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that way we have to worry about those commas, the way it is right now doesn't
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what commas you mean
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it is inside an object, for every add/delete, we get the 'no dangling comma situation'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have a lot of mixed and unclean diffs, not sure this makes any diff ;)
const node = new IPFS(repo) | ||
const node = new IPFS({ | ||
repo: repo, | ||
EXPERIMENTAL: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to upcase this? I think experimental
is enough. What would be good is to print something to the console when this is enabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like making things very OBVIOUS :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BUT DO YOU REALLY NEED TO SCREAM AT ME?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add your log :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added your log :)
a533bee
to
7ffcaf6
Compare
As recommended by @whyrusleeping, we need to pubsub behind a
EXPERIMENTAL
option in the config options.Adding config options will cause a breaking cause in the API of creating a node, but it was a step we were going to make for #556 anyway.