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

Make ipfs.files.add return DAGNodes #261

Closed
wants to merge 4 commits into from

Conversation

hackergrrl
Copy link
Contributor

@hackergrrl hackergrrl commented May 23, 2016

  • transform file tuples into DAGNodes
  • use + pass interface-ipfs-core tests for files.add

NOTE: this breaks backwards compatibility for add and will require a major semver bump.

@jbenet jbenet added the status/in-progress In progress label May 23, 2016
@hackergrrl hackergrrl changed the title Make ipfs.files.add returns DAGNodes. Make ipfs.files.add return DAGNodes May 23, 2016
i.once('end', () => {
// Transform file info tuples to DAGNodes
i.pipe(through.obj(function transform (info, enc, next) {
console.log('info', info)
Copy link
Member

Choose a reason for hiding this comment

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

Why console log in the core? What spec does this follow? Same for L31

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops -- debugging leftovers.

@hackergrrl
Copy link
Contributor Author

hackergrrl commented May 27, 2016

This PR blocked on major release on https://github.com/ipfs/js-ipfs-unixfs-engine and merge of ipfs-inactive/interface-js-ipfs-core#20. Please don't merge until all is green. :)

@daviddias
Copy link
Member

Though one of these is a fix (using 'before' properly), the rest are
timing issues that are more noticeable on slower computers.
@hackergrrl
Copy link
Contributor Author

Just waiting on ipfs-inactive/interface-js-ipfs-core#20 to get merged + published and we're good to go!

@daviddias
Copy link
Member

Did you check browser tests? Just ran them and got:

ERROR in ../interface-ipfs-core/test/files.js
Module build failed: Error: unsupported type for static module: VariableDeclarator
at expression:

fs = require('fs')

@nginnever
Copy link
Member

I got the same result when testing the interface-core tests through js-ipfs-api yesterday.

@dignifiedquire
Copy link
Member

that's a bug in brfs browserify/brfs#40

@daviddias daviddias closed this Jun 5, 2016
@jbenet jbenet removed the status/in-progress In progress label Jun 5, 2016
@hackergrrl
Copy link
Contributor Author

@diasdavid sorry could you please share more information before closing a PR?

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.

5 participants