Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

feat: Provide access to bundled libraries when in browser #252

Merged

Conversation

vasco-santos
Copy link
Contributor

This PR aims to update the spec, as a result of the Issue 406.

According to the following PRs:

SPEC/TYPES.md Outdated
- [`ipfs.types.multibase`](https://github.com/multiformats/multibase)
- [`ipfs.types.multihash`](https://github.com/multiformats/js-multihash)
- [`ipfs.types.CID`](https://github.com/ipld/js-cid)
- [`ipfs.types.crypto`](https://github.com/libp2p/js-libp2p-crypto)
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a type.

Copy link
Contributor Author

@vasco-santos vasco-santos Apr 4, 2018

Choose a reason for hiding this comment

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

Agreed. Should I create util scope for encompassing this, as well as isIPFS, since they are mentioned in the issue?

Copy link
Contributor

Choose a reason for hiding this comment

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

Good idea!

SPEC/TYPES.md Outdated
- [`ipfs.types.crypto`](https://github.com/libp2p/js-libp2p-crypto)
- [`ipfs.types.dagPB`](https://github.com/ipld/js-ipld-dag-pb)
- [`ipfs.types.dagCBOR`](https://github.com/ipld/js-ipld-dag-cbor)
- [`ipfs.types.isIPFS`](https://github.com/ipfs-shipyard/is-ipfs)
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a type.

SPEC/TYPES.md Outdated
- [`ipfs.types.CID`](https://github.com/ipld/js-cid)
- [`ipfs.types.crypto`](https://github.com/libp2p/js-libp2p-crypto)
- [`ipfs.types.dagPB`](https://github.com/ipld/js-ipld-dag-pb)
- [`ipfs.types.dagCBOR`](https://github.com/ipld/js-ipld-dag-cbor)
Copy link
Contributor

Choose a reason for hiding this comment

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

perhaps scope these under IPLD and add all the ones that are supported today?

Copy link
Contributor Author

@vasco-santos vasco-santos Apr 4, 2018

Choose a reason for hiding this comment

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

I agree with your idea. However, I would have to add ipld/js-cid too. As a consequence, a breaking change would be created in js-ipfs core/index.js#L62. What do you think?

Regarding adding the other ones, if we decide for creating the specific scope, I think we may add them as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's a valid point, thanks for thinking of that. Let's keep it as it is then.

@vasco-santos vasco-santos force-pushed the feat_provide-access-to-bundled-libraries-when-in-browser branch from 164a133 to 0cf94b8 Compare April 5, 2018 09:42
@vasco-santos
Copy link
Contributor Author

Done @diasdavid 😄

I also updated the other PRs accordingly.

Copy link
Contributor

@daviddias daviddias left a comment

Choose a reason for hiding this comment

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

❤️ it!

@daviddias daviddias merged commit db83b50 into master Apr 5, 2018
@daviddias daviddias deleted the feat_provide-access-to-bundled-libraries-when-in-browser branch April 5, 2018 14:58
@ghost ghost removed the in progress label Apr 5, 2018
const dirtyChai = require('dirty-chai')
const expect = chai.expect
chai.use(dirtyChai)
util
Copy link
Contributor

Choose a reason for hiding this comment

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

undefined?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That util was supposed to be inside describe. How should I proceed @diasdavid ? A new PR fixing this typo?

Copy link
Contributor

Choose a reason for hiding this comment

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

@vasco-santos yes please.

const expect = chai.expect
chai.use(dirtyChai)

describe('.types', function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these runnable? There's no module.exports = (common) => { wrapper and no entry in js/src/index.js for them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well noticed, I have to update this with the other typo.

Copy link
Contributor

Choose a reason for hiding this comment

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

@vasco-santos did you open a new PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is created now 🙂

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