-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datastore integration #123
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'use strict' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add an examples folder with this one. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no, this is used in the docs generation There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see. I'm not very keen of putting even more stuff at the root level of each repo. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we already have it in many repos, so what do you want to do about it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nothing now, let's revisit docs strategy and execution for next quarter |
||
|
||
const Repo = require('ipfs-repo') | ||
const repo = new Repo('/Users/awesome/.jsipfs') | ||
|
||
repo.init({my: 'config'}, (err) => { | ||
if (err) { | ||
throw err | ||
} | ||
|
||
repo.open((err) => { | ||
if (err) { | ||
throw err | ||
} | ||
|
||
console.log('repo is ready') | ||
}) | ||
}) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,55 +3,66 @@ | |
"version": "0.11.3", | ||
"description": "IPFS Repo implementation", | ||
"main": "src/index.js", | ||
"browser": { | ||
"./src/lock.js": "./src/lock-memory.js", | ||
"./src/default-options.js": "./src/default-options-browser.js" | ||
}, | ||
"scripts": { | ||
"test": "aegir-test", | ||
"test:node": "aegir-test node", | ||
"test:browser": "aegir-test browser", | ||
"build": "aegir-build", | ||
"lint": "aegir-lint", | ||
"release": "aegir-release", | ||
"release-minor": "aegir-release --type minor", | ||
"release-major": "aegir-release --type major", | ||
"release": "aegir-release --docs", | ||
"release-minor": "aegir-release --type minor --docs", | ||
"release-major": "aegir-release --type major --docs", | ||
"coverage": "aegir-coverage", | ||
"coverage-publish": "aegir-coverage publish" | ||
"coverage-publish": "aegir-coverage publish", | ||
"docs": "aegir-docs" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ipfs/js-ipfs-repo.git" | ||
}, | ||
"keywords": [ | ||
"IPFS" | ||
"IPFS", | ||
"libp2p", | ||
"datastore" | ||
], | ||
"pre-commit": [ | ||
"lint", | ||
"test" | ||
], | ||
"homepage": "https://github.com/ipfs/js-ipfs-repo", | ||
"engines": { | ||
"node": ">=4.0.0" | ||
"node": ">=4.0.0", | ||
"npm": ">=3.0.0" | ||
}, | ||
"devDependencies": { | ||
"aegir": "^10.0.0", | ||
"buffer-loader": "^0.0.1", | ||
"aegir": "^11.0.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nice! |
||
"chai": "^3.5.0", | ||
"fs-pull-blob-store": "~0.4.1", | ||
"idb-pull-blob-store": "~0.5.1", | ||
"interface-pull-blob-store": "~0.6.0", | ||
"dirty-chai": "^1.2.2", | ||
"lodash": "^4.17.4", | ||
"multihashes": "~0.4.0", | ||
"memdown": "^1.2.4", | ||
"multihashes": "~0.4.4", | ||
"ncp": "^2.0.0", | ||
"pre-commit": "^1.2.2", | ||
"rimraf": "^2.5.4" | ||
"rimraf": "^2.6.1" | ||
}, | ||
"dependencies": { | ||
"async": "^2.1.4", | ||
"async": "^2.1.5", | ||
"base32.js": "^0.1.0", | ||
"ipfs-block": "~0.5.5", | ||
"lock": "^0.1.3", | ||
"multihashes": "~0.3.3", | ||
"pull-defer": "^0.2.2", | ||
"pull-stream": "^3.5.0", | ||
"pull-write": "^1.1.1", | ||
"cids": "^0.4.2", | ||
"datastore-core": "^0.1.0", | ||
"datastore-fs": "^0.1.1", | ||
"datastore-level": "^0.1.0", | ||
"debug": "^2.6.3", | ||
"interface-datastore": "^0.1.1", | ||
"ipfs-block": "~0.6.0", | ||
"level-js": "^2.2.4", | ||
"leveldown": "^1.6.0", | ||
"lock-me": "^1.0.2", | ||
"multiaddr": "^2.2.2", | ||
"safe-buffer": "^5.0.1" | ||
}, | ||
"license": "MIT", | ||
|
@@ -69,4 +80,4 @@ | |
"nginnever <ginneversource@gmail.com>", | ||
"npmcdn-to-unpkg-bot <npmcdn-to-unpkg-bot@users.noreply.github.com>" | ||
] | ||
} | ||
} |
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.
Oh, not important anymore? I think this plus my comment on @SidHarder PR -- #111 (comment) -- are valuable to keep around, we have explained this a countless number of times, we want to avoid spending all of that time again as much as possible.
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.
It's not correct anymore, that's why I removed it for now
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.
Only the last item is not valid anymore
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.
the first item is also not true, datastore is not legacy, it's being actively used and things added to it
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.
which makes the second incorrect as well
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.
making the last item the only one valid