Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #93 from orbitdb/release-3.3.0
Browse files Browse the repository at this point in the history
release 3.3.0: updating ipfs-log and tests
  • Loading branch information
aphelionz authored May 11, 2020
2 parents 649ee15 + 441b264 commit 6f0214b
Show file tree
Hide file tree
Showing 7 changed files with 8,177 additions and 27,591 deletions.
2 changes: 1 addition & 1 deletion conf/webpack.tests.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
new webpack.IgnorePlugin(/mongo|redis/)
],
externals: {
fs: '{}',
fs: '{ existsSync: () => true }',
fatfs: '{}',
runtimejs: '{}',
rimraf: '{ sync: () => {} }',
Expand Down
21 changes: 6 additions & 15 deletions dist/orbit-db-store.min.js

Large diffs are not rendered by default.

35,719 changes: 8,156 additions & 27,563 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "orbit-db-store",
"version": "3.2.0",
"version": "3.3.0",
"description": "Base class for orbit-db data stores",
"main": "src/Store.js",
"scripts": {
Expand All @@ -22,7 +22,7 @@
"author": "Haad",
"license": "MIT",
"dependencies": {
"ipfs-log": "~4.5.0",
"ipfs-log": "~4.6.0",
"it-to-stream": "^0.1.1",
"logplease": "^1.2.14",
"orbit-db-io": "~0.2.0",
Expand Down Expand Up @@ -51,7 +51,7 @@
"orbit-db-identity-provider": "~0.3.0",
"orbit-db-keystore": "~0.3.0",
"orbit-db-storage-adapter": "^0.4.2",
"orbit-db-test-utils": "^0.8.5",
"orbit-db-test-utils": "^0.9.2",
"rimraf": "^3.0.0",
"standard": "^14.0.2",
"webpack": "^4.39.2",
Expand Down
7 changes: 4 additions & 3 deletions test/add.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const storage = require('orbit-db-storage-adapter')(properLevelModule)

Object.keys(testAPIs).forEach((IPFS) => {
describe(`addOperation ${IPFS}`, function () {
let ipfs, testIdentity, identityStore, store, cacheStore
let ipfsd, ipfs, testIdentity, identityStore, store, cacheStore

this.timeout(config.timeout)

Expand All @@ -38,7 +38,8 @@ Object.keys(testAPIs).forEach((IPFS) => {
const cache = new Cache(cacheStore)

testIdentity = await IdentityProvider.createIdentity({ id: 'userA', keystore })
ipfs = await startIpfs(IPFS, ipfsConfig)
ipfsd = await startIpfs(IPFS, ipfsConfig)
ipfs = ipfsd.api

const address = 'test-address'
const options = Object.assign({}, DefaultOptions, { cache })
Expand All @@ -47,7 +48,7 @@ Object.keys(testAPIs).forEach((IPFS) => {

after(async () => {
await store.close()
await stopIpfs(ipfs)
await stopIpfs(ipfsd)
await identityStore.close()
await cacheStore.close()
})
Expand Down
6 changes: 3 additions & 3 deletions test/browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
<div id="mocha"></div>

<script>
mocha.setup("bdd");
mocha.setup({ ui: "bdd", globals: ['sprintf', 'vsprintf'] });
</script>
<script src="./bundle.js"></script>
<script>
mocha.checkLeaks()
mocha.run();
mocha.checkLeaks()
mocha.run();
</script>

</body>
Expand Down
7 changes: 4 additions & 3 deletions test/snapshot.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const storage = require('orbit-db-storage-adapter')(properLevelModule)

Object.keys(testAPIs).forEach((IPFS) => {
describe(`Snapshots ${IPFS}`, function () {
let ipfs, testIdentity, identityStore, store, cacheStore
let ipfsd, ipfs, testIdentity, identityStore, store, cacheStore

this.timeout(config.timeout)

Expand All @@ -38,7 +38,8 @@ Object.keys(testAPIs).forEach((IPFS) => {
const cache = new Cache(cacheStore)

testIdentity = await IdentityProvider.createIdentity({ id: 'userA', keystore })
ipfs = await startIpfs(IPFS, ipfsConfig)
ipfsd = await startIpfs(IPFS, ipfsConfig)
ipfs = ipfsd.api

const address = 'test-address'
const options = Object.assign({}, DefaultOptions, { cache })
Expand All @@ -47,7 +48,7 @@ Object.keys(testAPIs).forEach((IPFS) => {

after(async () => {
await store.close()
await stopIpfs(ipfs)
await stopIpfs(ipfsd)
await identityStore.close()
await cacheStore.close()
})
Expand Down

0 comments on commit 6f0214b

Please sign in to comment.