53 Commits

Author SHA1 Message Date
Hayden Young
eb5104ead6 refactor: Move start/stop OrbitDB convenience functions to own repo. 2024-01-18 14:21:55 +00:00
Hayden Young
973cc7aa20 test: Create a Level db if directory is specified. 2024-01-16 21:46:04 +00:00
Hayden Young
3cca7779a8 chore: update Helia. 2024-01-16 11:14:41 +00:00
Hayden Young
4a1f5cba33 test: Replication when ipfs peers reconnect or a relaunched. 2024-01-13 02:36:45 +00:00
Hayden Young
ba043391d9 chore: Upgrade Helia. 2024-01-09 16:50:25 +00:00
Hayden Young
e384e9275a
Merge pull request #1137 from orbitdb/fix/helia-5
Fix tests and clean up
2023-12-16 00:21:00 +08:00
haad
0fd5287c8c Remove obsolete timeout, fix couple of typos in tests 2023-12-15 10:28:47 +02:00
haad
6e6e4e6b4a Use only bitswap in tests 2023-12-15 08:50:46 +02:00
Hayden Young
d718a66818 feat: Default Libp2p config for node.js and browser peers. 2023-12-14 01:40:20 +00:00
Hayden Young
59faae5694 test: Change muxer. 2023-11-09 23:26:33 +00:00
Hayden Young
04e9e8d7e4 chore: Lint fix. 2023-11-09 18:06:42 +00:00
Hayden Young
4b89ce3e00 test: Connect peers directly once address is established by relay in browser tests. 2023-11-09 17:47:38 +00:00
Hayden Young
3c5c44c389 test: Bump up disconnectThreshold limit when setting up sync streams. 2023-11-08 17:04:30 +00:00
Hayden Young
8305da9581 test: Remove reservationClearInterval. It is causing NO_RESERVATION errors. 2023-11-06 15:52:09 +00:00
Hayden Young
29d1a618e5 test: Fix relay timeouts. 2023-10-09 17:32:54 +01:00
Hayden Young
6d82ad2b31 test: Dial peers. 2023-09-28 20:57:00 +01:00
haad
f86564db13 Fix helia tests 2023-09-28 16:14:57 +03:00
Hayden Young
d917e11b6e test: Hang up relay. 2023-09-28 08:08:23 +01:00
Hayden Young
f28aa476f7 test: Relay for web browser testing. 2023-09-26 03:22:06 +01:00
Hayden Young
ec8b17352a fix: Deregister all events to complete stop sync. 2023-09-25 19:32:36 +01:00
Hayden Young
31597d7084 refactor: Support Helia. 2023-09-23 16:25:29 +01:00
haad
9f50fb5e53 Use js-ipfs only in tests 2023-03-02 09:08:17 +02:00
haad
a063b3fb4a Refactor OrbitDB
Fix sync
Fix linter
Fix tests
Clean up
Set default references count to 0
Fix sync
Use address instead of databaseId
Sync protocol
Keep references to open databases in OrbitDB
Fix append benchmark
Initial version of heads exchange
Remove Feed
Fix KeyValuePersisted iterator
Refactor OrbitDBAddress a bit more
Add rest of the database types
Refactor OrbitDB addresses
Initial version for the full circle
Initial structure and tests for new OrbitDB
Make sure KeyStore is open when a Database is created
Re-organize OrbitDB
Use new databases and Log
More clean up
Add 'drop' event to Database
Clean up OrbitDB
Remove id from OrbitDB
Use new KeyStore and Identities
Remove storage from OrbitDB
Remove migrations from OrbitDB
Remove caches from OrbitDB
Remove pubsub from OrbitDB
2023-03-01 16:21:07 +02:00
haad
967abafb8d Re-organize oplog tests 2023-02-16 12:32:10 +02:00
haad
c5bfcb8bd9 WIP 3 2023-02-16 10:18:39 +02:00
haad
f576795c3e WIP 2 2023-02-16 10:17:37 +02:00
haad
40494246e1 WIP 2 2023-02-16 10:17:23 +02:00
haad
42a5c2d723 WIP 2023-02-16 10:16:15 +02:00
haad
548f6372be Add open() to custom keystore in tests to fulfill the interface 2022-12-30 12:35:19 +02:00
Hayden Young
d06d800943 refactor: Webpack imports. 2022-12-20 01:12:56 +00:00
anders
a553179fb7 remove unused util files 2020-08-24 07:16:35 -04:00
shamb0t
fb143e6816 use ipfs@0.36.x 2019-12-05 20:24:35 +00:00
achingbrain
52b1aa341c Do not pass ipfs-http-client to ipfsd-ctl as it is not necessary 2019-09-30 14:19:26 +01:00
achingbrain
f836ea50d5 Upgrade to js-IPFS v0.38.x-rc
There's a new release of js-IPFS around the corner, one of the things it
does is turn on pubsub by default so needs a little code tweaking to work.

This PR contains the changes required to get orbit-db working with the
latest release candidate.
2019-09-30 14:19:26 +01:00
Mark Henderson
f9feb27c09 Using identity's keystore as default first
package-lock

pointing to branch

more cache management stuff

WIP

Passing tests

Removing static linking

fixing tests and linting

fixing package.json

removing last debugger

removing last debugger

Adding keystore and cache getters

PR comments

Removing extraneous cache management

Package files

Closing caches

using dbAddress as this.caches key

new tests for store management

Working but with slightly different semantics

Rebuild

package-lock

Dependency updates

removeHandler

restoring db.close in replication status test

package.json files

move handler to orbitdb.caches

Test updates

Cache management cleanup

use store.options.directory

requestCache in onLoad and onDrop

add status test

Adding db to this.stores in onLoad and onDrop

Working RC5 before rebase

Updating package-lock

restoring original replicaiton status test

package files

removing keystore getter

more keystore cleanup

typo
2019-09-24 10:48:27 -04:00
Mark Henderson
47a18b05f5 dev:updating keystore in package.json to git branch
pointing to fix/store-performance branch

fix:typo

fix: indentation

test: Changing test to reflect new orbit-store default

Update package.json

test: updating tests

update localstorage-level-migration dep

experiment:Moving keystore up ALL way

orbitdb storage adapter mark 1

fix: more passing tests

more fixes

chore:package-lock.json

reverting mkdir.c for now

package-lock.json for node 10.13

fix: circleci

fix: webpack fs updates

disabling loadCache

Moving storage adapter to its own thing

tests: fixing up

chore: long needed fixing

More linting

tests: fix up look sharp

test: v0 failure only

Reversting lint fixes

fix v0-load test

set cache heads

fix: passing in storage no longer needed

fix: removing artifact from previous merge

fix: honor default keystore and pesky call-by-reference bug

fix: removing directory arg from _addManifestToCache

chore: package-lock

fix: pending drop test

removing directory option for individual dbs

docs: removing directory options

fix: removing line instead of commenting

fix: moving storage setup to createInstance

feat: Upgrading ipfs to 0.36

chore: package-log

fix: restoring onlyHash

workaround: removing memstore from replication tests

fix: this.keystore.close and this.cache.close

chore: removing eslint annotation

chore: package-lock.json

fix: passing preCreate in as option

chore: package files

Fixing package.json

fixing replicate tests

Fixing some tests

Updating orbit-db-store dependency

CircleCI updates - To be obviated via other PR

Restoring ability to pass a custom directory to orbitdb.create

More test fixes

set identity tests fixed

Fixing replication tests

Temporarily disabling concurrency tests

Closing keystore in identities test

Restoring test:all

package.json

More replicate test fixes

successful make rebuild

Linting fixes
2019-08-30 14:18:28 -04:00
shamb0t
b3977e187a support ipfs@0.36.x 2019-06-07 15:00:15 +01:00
shamb0t
8c694f5170 pass format in dbManifest creation
use identity.id as default ac check
2019-05-15 11:31:25 +01:00
shamb0t
6dd94e0580 use decompressed key 2019-04-04 12:53:28 +01:00
shamb0t
4c2c745c96 Keystore#verifiers
tests: add v0 address test

tests: remove unused config options
2019-03-11 15:38:40 +04:00
shamb0t
ae144b219f Use libp2p-secp256k1 2019-02-22 14:06:05 +00:00
shamb0t
6add4ce2b9 Update tests 2019-02-20 13:18:03 +00:00
Zach Ferland
708860798c test: move redundant config to shared test utils 2018-11-30 16:48:47 -05:00
Zach Ferland
5797641fba test: add custom test cache, add persistence test against custom cache, add store tests against cache 2018-11-30 16:40:19 -05:00
haad
65ca10f79d Decrease test timeout 2018-03-31 12:36:22 +02:00
haad
a2524688d2 Run tests with go-ipfs and js-ipfs-api again
Use go-ipfs 0.4.13 to run tests
Add write benchmark for go-ipfs
Clean up benchmarks
Fix a test not catching errors
2018-03-27 16:08:43 +02:00
haad
3318b6a6d9 Use ipfsd-ctl to create test IPFS instances
Fix default database creation tests
Add more test utils
Remove obsolete public methods from OrbitDB
Workaround for "underlying socket has been closed" error in replication test
Update package-lock
2018-03-27 14:30:45 +02:00
thiagodelgado111
8abd37aecd Add tests for custom keystores 2018-02-08 16:39:16 -02:00
haad
6061b8cb53 Fix replication
Add tests to make sure a database can be saved and loaded multiple times in a row
Add a test to make sure the correct replication progress is emitted
Add mem-store for faster development testing
Improve tests
Improve logging
Fix replication benchmark
Update packages and build
2017-12-19 15:52:50 +01:00
haad
ff8b5a425a Remove obsolete test-utils 2017-12-06 08:30:44 +01:00