Hayden Young
2a563bac79
refactor: Return hash. ( #44 )
2023-03-18 02:53:52 +08:00
Hayden Young
1990cb9b87
Test/sync ( #43 )
...
* test: Re-enable skipped tests.
* test: Re-enable all tests.
* test: Wait for final entry when evaluating onSynced.
* test: Check if latest append is head to determine if sync has completed.
* test: Do not rely on order of sync-ed entries.
* docs: Sync-ing notes.
* docs: Simplify dial and pubsub explanation. Formatting.
* refactor: Check for required params.
* docs: Explain initial sync and pubsub updates.
* test: Save updated heads during sync.
* test: Remove extraneous expected entries.
* test: For eventual consistency.
* chore: Remove console.logs. Log errors using error event.
* chore: Remove extraneous asyncs.
2023-03-17 04:33:39 +08:00
Hayden Young
aabfd4e2bc
feat: Configurable heads and entry storage. ( #42 )
...
* feat: Configurable heads and entry storage.
* fix: Linting.
* test: Re-enable all tests.
* test: Custom entry storage.
* test: Check for heads paths.
* fix: Check for path using fs.
2023-03-14 05:42:05 +08:00
Hayden Young
a40bc8bdcf
Test/database ( #38 )
...
* test: Database.
* test: Remove caching test. Caching is superseded by the various storage options.
* test: db2 replicates data in existing db1.
* test: Move event tests to generic database tests.
* test: Single instance cleanup.
* fix: Linting.
* Fix Sync race condition (#39 )
* test: Fix key path import.
---------
Co-authored-by: Haad <haadcode@users.noreply.github.com>
2023-03-11 21:01:05 +08:00
Haad
bc816c7e2e
Browser tests ( #41 )
...
* Get browsers tests running
* Clean up replication test
* Setup fixtures for browser tests
* Fix import paths for webpack
* Fix webpack
* Add mocha-headless-chrome to run browser tests
* Add webrtc swarm endpoints for browser test IPFS node configs
* Remove adding pubkey to storage in KeyStore
* Runs browser tests in CI
* Fix import paths again
* Fix failing browser tests
* Fixes
2023-03-11 18:56:23 +08:00
Haad
7afe5dc70d
Merge pull request #40 from orbitdb/dev/custom-database-types
...
Make it possible to add custom database types
2023-03-10 11:34:21 +02:00
haad
d1e59a95b7
Make it possible to add custom database types
2023-03-10 11:32:07 +02:00
Haad
8e7dade867
Merge pull request #37 from orbitdb/test/address
...
Add a test for OrbitDBAddress
2023-03-09 12:04:35 +02:00
haad
503f3aba6f
Add a test for OrbitDBAddress
2023-03-09 12:03:05 +02:00
Haad
22562822b9
Merge pull request #36 from orbitdb/test/sync
...
Add tests for the Sync protocol
2023-03-09 11:58:49 +02:00
haad
57de45bac6
Add tests for the Sync protocol
2023-03-09 11:55:20 +02:00
Haad
61276008ea
Merge pull request #35 from orbitdb/fix/manifest-meta-data
...
Fix passing in database manifest meta data
2023-03-09 10:15:10 +02:00
haad
6140c0dc07
Fix passing in database manifest meta data
2023-03-09 10:13:39 +02:00
Haad
a68995afc4
Merge pull request #34 from orbitdb/fix/keyvalue-deletion-test
...
Fix tests for deleting a key-value pair
2023-03-09 10:00:29 +02:00
haad
611fb35330
Fix tests for deleting a key-value pair
2023-03-09 09:57:32 +02:00
Haad
afe0ae8257
Merge pull request #33 from orbitdb/test/drop
...
Add tests for dropping databases
2023-03-09 09:32:55 +02:00
haad
e338f4039a
Add tests for dropping databases
2023-03-09 09:32:11 +02:00
Haad
e6e72fee9e
Merge pull request #32 from orbitdb/fix/various
...
Fix various
2023-03-09 09:13:38 +02:00
haad
3008529511
Fix linter
2023-03-09 09:12:14 +02:00
haad
bb6fa4ca1a
Add 'amount' parameter to keyvalue iterator
2023-03-09 09:10:25 +02:00
haad
e951d2265d
Add 'amount' parameter to documents iterator
2023-03-09 08:52:35 +02:00
haad
5a72a16e58
Test directory existence in persisted key-value store
2023-03-09 08:39:21 +02:00
haad
ec3f5cbfa0
Fix database address usage
2023-03-09 08:38:47 +02:00
haad
0bc17bd9f5
Cached default storage for Database
2023-03-09 08:37:53 +02:00
haad
27b4885d8e
Manifest storage
2023-03-09 08:37:29 +02:00
haad
946aefd4f6
Fix ComposedStorage
2023-03-09 08:35:57 +02:00
haad
bf1165fd08
Don't double save IPFS access controller, clean up
2023-03-09 08:33:25 +02:00
Haad
697233c7bd
Merge pull request #31 from orbitdb/test/remove-event-listener-warnings
...
Increase global maximum event listener limit for tests
2023-03-09 07:43:30 +02:00
haad
eff34dc204
Increase global maximum event listener limit for tests
2023-03-09 07:42:36 +02:00
Haad
e5c98aef96
Merge pull request #30 from orbitdb/fix/check-for-new-heads
...
Fix/check for new heads
2023-03-08 10:02:18 +02:00
Hayden Young
87a6f1dcf3
fix: Linting.
2023-03-07 20:41:13 +00:00
Hayden Young
383524918f
test: Tests for newHeads issue.
2023-03-07 20:38:36 +00:00
Hayden Young
4a5c59449b
fix: Check for new heads.
2023-03-07 20:35:46 +00:00
Hayden Young
8fc5b77c51
test: Remove db replication. Covered by db/replication.
2023-03-07 15:58:16 +00:00
Hayden Young
be34376884
test: Remove redundant feed tests.
2023-03-07 15:57:36 +00:00
Haad
4f640641e3
Merge pull request #29 from orbitdb/test/various
...
Test/various
2023-03-07 15:53:46 +02:00
Hayden Young
796e84af10
test: Rename tests to better reflect what is being tested.
2023-03-07 11:42:07 +00:00
Hayden Young
113d954b42
refactor: Load LRU first.
2023-03-07 11:38:34 +00:00
Hayden Young
93366f0b8c
test: Remove redundant counter tests.
2023-03-07 01:41:41 +00:00
Hayden Young
528ce98186
test: Remove custom keystore. Merged with keystore tests.
2023-03-07 00:03:13 +00:00
Hayden Young
9b2dd487b8
fix: Linting.
2023-03-06 22:23:51 +00:00
Hayden Young
885fc5f02c
test: Load keys into storage and retrieve from keystore.
2023-03-06 22:21:17 +00:00
Hayden Young
1fb02ea4cb
refactor: Throw any storage errors when adding a key.
2023-03-06 17:56:38 +00:00
Hayden Young
7396a4ac64
fix: Linting.
2023-03-06 16:36:25 +00:00
Hayden Young
53369de51c
test: default and custom options.
2023-03-06 16:34:51 +00:00
Hayden Young
632bd3dfbe
test: Test replication of keyvalue db.
2023-03-06 16:34:11 +00:00
Hayden Young
0347f3a7c2
test: Test cases for lamport clock and oplog sorting. ( #28 )
...
* test: Test cases for lamport clock and oplog sorting.
* fix: Linting.
2023-03-06 04:45:15 +08:00
Haad
c684673ae1
Merge pull request #27 from orbitdb/cleanups
...
Remove obsolete files and fixtures
2023-03-03 09:31:08 +02:00
haad
7c4187fdad
Remove obsolete files and fixtures
2023-03-03 09:30:32 +02:00
Haad
1ed4717c61
Merge pull request #26 from orbitdb/dev/coverage
...
Add code coverage reporting
2023-03-03 09:21:54 +02:00