Commit Graph

167 Commits

Author SHA1 Message Date
haad
a94d2a7918 Renaming pass 2023-04-06 08:32:31 +03:00
Hayden Young
428ce83878 Refactor/ac (#61)
* refactor: Move Manifest to own module.

* refactor: Modularize orbitdb access controller.

* chore: Check for correct access controller path and modify if necessary.

* fix: Linting.

* refactor: AC interface no longer needed.

* refactor: Move IPFS-specific AC list back into IPFS AC.

* refactor: Explicitly name access controller param.

* refactor: Pass in manifest settings as object.

* refactor: Config access controllers.

* refactor: ACs should expose specific params before being called with generic params.

* feat: Pass write access to root IPFS AC.

* refactor: AC should handle type prefix.

* test: Test for type.

* refactor: Pass generic access to Database (and inheriting dbs).

* refactor: Use AccessControllers module to manage custom ACs.

* chore: Remove excess console logging.

* test: Fix ipfs module import.
2023-04-03 19:56:47 +08:00
Haad
a027525e5c Merge pull request #57 from saul-jb/feat/path-refactor
feat: Remove dependence on path.
2023-03-29 18:20:11 +03:00
saul
35a6bf121c Remove is-defined util. 2023-03-28 15:01:21 +13:00
saul
06a68bbe1c Replace usages of path with path join util. 2023-03-28 12:55:15 +13:00
Haad
4fe1b0c1a1 Add Entry index to Log (#48)
* Turn off IPFS console.log output for tests

* Fix replication and sync tests

* Close keystore after tests in IPFSAccessController tests

* Fix error event test in Sync tests

* Fix race condition

* Add entry index to Log

* Clean up storage files

* Fix tests

* Fix linter
2023-03-27 18:09:44 +08:00
haad
39f5face5a Add optional flag to disable automatic sync per database 2023-03-25 12:34:02 +02:00
Hayden Young
b9422463d0 chore: Check required params. (#46)
* chore: Check required params.

* fix: Linting.

* feat: Specify a list of peers with write access.

* test: Identify OrbitDB tests.

* test: IPFS access controller.

* test: Omit "OrbitDB" from test labels.

* test: Correctly set write options.

* fix: Linting.
2023-03-25 06:00:08 +08:00
haad
d1e59a95b7 Make it possible to add custom database types 2023-03-10 11:32:07 +02:00
haad
6140c0dc07 Fix passing in database manifest meta data 2023-03-09 10:13:39 +02:00
haad
3008529511 Fix linter 2023-03-09 09:12:14 +02:00
haad
27b4885d8e Manifest storage 2023-03-09 08:37:29 +02:00
haad
4a7d3f0720 Move files, clean up 2023-03-01 18:16:06 +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
Hayden Young
51ab079153 fix: pass path to migration. 2022-12-30 03:07:01 +00:00
Hayden Young
d06d800943 refactor: Webpack imports. 2022-12-20 01:12:56 +00:00
Ronan LE MEILLAT
827f7e57fe BUG ipfs.id() is not a string 2022-08-23 20:54:54 -04:00
Ronan LE MEILLAT
f7a95d8587 BUG ipfs.id() is not a string 2022-08-23 20:54:54 -04:00
CSDUMMI
00287eb1ae cleaned up code in disconnect 2022-08-18 16:29:19 -04:00
tabcat
283572d7e3 improve manifest fetch timeout error msg 2022-05-09 22:42:04 -05:00
haad
9c2ce42c4f Use id instead of options.id 2021-11-16 09:01:40 +02:00
haad
08eaf84d74 Fix replication 2021-10-21 14:48:54 +03:00
Joris
c99c9b872b Added OrbitDB.Store property
To make it possible to access the class from the main module,
without the use of another module.

Like the other stores have already been made available.
2021-05-21 14:48:54 -04:00
geolffrey
545a1b7afe refactor: split line into two lines to improve readability 2021-05-07 20:00:49 -04:00
geolffrey
bbae301524 refactor: broker class instance with consistent parameters 2021-05-07 20:00:49 -04:00
Joel Thorstensson
e402fdc457 Merge branch 'master' into update-peer-exchanged 2020-08-24 18:04:53 +02:00
Mark Henderson
39a00060d6 parent 32cc9a9b00
author Mark Henderson <mark@mrh.io> 1598051057 -0400
committer Mark Henderson <mark@mrh.io> 1598229380 -0400

parent 32cc9a9b00
author Mark Henderson <mark@mrh.io> 1598051057 -0400
committer Mark Henderson <mark@mrh.io> 1598229291 -0400

package updates and ipfs repo migration

validate-maintainers and orbit-db-test-utils

moving from 3 tabs to 2

wait workaround

wait 1000

standard --fix

redoing the replication test changes for some reason

validate-maintainers and orbit-db-test-utils

moving from 3 tabs to 2

wait workaround

wait 1000

standard --fix

fix create-open tests

fixing eventlog tests

fixing feed tests

fixing kvstore tests

fixing set identity tests

skipping replication tests for now

repo path based on API variable

js-ipfs.zip

go-ipfs.zip

skipping replicate tests as well

repo path based on API variable

js-ipfs.zip

go-ipfs.zip

package-lock

finalizing rebase
2020-08-23 21:52:10 -04:00
Joel Torstensson
f876360e59 Merge branch 'master' into update-peer-exchanged 2020-06-12 17:37:21 +02:00
Mark Henderson
e2ad2a0b79 also exporting keystore 2020-05-15 10:28:17 -04:00
Mark Henderson
1c67c410aa feat: adding AccessControllers and Identites re-exports 2020-05-15 10:28:17 -04:00
Tyler Yasaka
a03e062c60 Check for store before emitting event 2020-02-10 15:55:49 +01:00
Tyler Yasaka
aee7e6a6b7 Emit peer.exchanged event when heads have been exchanged with peer 2020-02-10 15:55:48 +01:00
shamb0t
73f878d1e5 use options.id 2019-11-14 15:38:00 +00:00
haad
de6cfdb1da Add offline mode option 2019-11-14 15:37:42 +02:00
phillmac
616c4c1c33 Error if address path mismatches manifest name 2019-11-08 18:28:50 +11:00
shamb0t
1bd9989420 Merge pull request #717 from hazae41/patch-2
Expose modules in OrbitDB object
2019-11-07 15:17:40 +00:00
hazæ41
839855fbe3 Normalize ; 2019-11-06 22:31:54 +01:00
hazæ41
ff4adf4017 More exposes 2019-11-06 22:30:38 +01:00
hazæ41
1838d093bc Expose modules in OrbitDB object
so we can grab them from OrbitDB without reimporting them.

Related to https://github.com/orbitdb/orbit-db/issues/715
2019-11-06 21:25:02 +01:00
Ivan Bravo Bravo
7ac1a48f51 Added Windows support. 2019-11-03 15:15:04 -06:00
Mark Robert Henderson
c04be71a4f Merge pull request #681 from tabcat/master
adds optional meta field to manifest
2019-09-27 14:04:43 -04: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
anders
85d709a957 adds optional meta field to manifest 2019-09-10 14:06:45 -05:00
Mark Henderson
a74c3f933a leveldown removed
fs-shim
2019-09-03 15:21:49 -04:00
Mark Henderson
e793edf9cf Preliminary cache migration code
cache loading test

this.attemptMigration

Migration data and cleanup

Linting

IPFS data

Revert "Linting"

This reverts commit e41bc4a9ec2011716300134f985c7ec749743177.

Revert "IPFS data"

This reverts commit 299e0b7b72d74cdbaec80ad0796211790404e4c3.

Better fixtures

package-lock.json

Test for directory options

directory option working

Fixing eventlog tests

Safer migration

Moving to migrations folder

Linting
2019-09-02 09:34:54 -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
8c694f5170 pass format in dbManifest creation
use identity.id as default ac check
2019-05-15 11:31:25 +01:00
shamb0t
7e507f602d Pass dbName as to ac 2019-04-29 19:30:42 +01:00
shamb0t
f606cce0e0 pass dbName to ac 2019-04-23 17:15:50 +01:00
Joel Torstensson
436c664fe5 feat: Accept identity as an option when opening a DB 2019-04-23 17:02:54 +01:00