269 Commits

Author SHA1 Message Date
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
7d8d6104bc remove spread syntax 2019-09-10 14:50:07 -05: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 Robert Henderson
43c2db796a
Update 0.21-0.22.js 2019-09-02 09:42:05 -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
shamb0t
f481ecfdd7 Update key migrate test
remove await

Package-lock
2019-03-28 17:38:58 +00:00
shamb0t
78d23cce0c close keystore on disconnect 2019-03-13 14:17:10 +04:00
shamb0t
6226842691 Update dependencies
Add access-controllers, identity

Update build command

Add static createInstance
2019-02-20 13:16:33 +00:00
shamb0t
4e07e9299d Merge branch 'master' of github.com:orbitdb/orbit-db into feat/new-acs 2019-02-20 11:37:23 +00:00
Tyler Yasaka
15aae2959b
Merge branch 'master' into determine-address 2018-12-06 11:20:46 -08:00
Tyler Yasaka
168c9b4776
Throw error returned from DAGNode.create in access controller 2018-11-28 15:34:24 -08:00
Tyler Yasaka
cab38cbb9c
Throw error returned from DAGNode.create 2018-11-28 15:29:22 -08:00
Zach Ferland
46b298be10 feat: allow local cache to be pass as option 2018-11-20 21:14:55 -05:00
Tyler Yasaka
c32033161d
Use DAGnode.create to get hash without saving to IPFS 2018-11-13 15:52:50 -08:00
Tyler Yasaka
2435560c95
Move some validation to determineAddress 2018-11-13 09:52:16 -08:00
Tyler Yasaka
941c078da5
Add a determineAddress method
Because the generated address is deterministic, it can be predicted if you know the name, type, and write-access keys. This method makes it straightforward to do so.
2018-11-13 08:17:22 -08:00
haad
50dcd71411 Refactor checking local db data at open/create 2018-11-07 07:52:51 +01:00
Richard Littauer
e191d27832 fix: Spelling errors
Generated by https://github.com/codespell-project/codespell.
2018-09-20 15:30:44 -04:00
shamb0t
2f743772b7 Use latest ipfs-log 2018-09-17 09:45:30 +04:00
Yu Pan
003c658927 Wait for the message to be actually sent before continuing 2018-08-09 16:15:54 -07:00
Kia Rahimian
710d83bc2f feat: updated dev deps + make pubsub.unsubscribe async 2018-07-12 18:06:48 -04:00
kia
1b54f4daa8 feat: expose OrbitDBAddress isValid & parse 2018-06-25 21:09:49 -04:00
haad
0558c32343 Move exchanging heads logic to its own function
Use latest store modules
Add a set of tests for checking database replication status
Fix tests as per new replication status api
Speed up and improve tests
2018-03-31 12:25:53 +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
haad
d191876ea9 Use ipfs-pubsub-1on1 to exchange heads between connected peers 2018-03-24 15:56:02 +01:00
thiagodelgado111
207d00806e Pass custom keystore via options 2018-02-08 00:29:17 -02:00
Diana Thayer
b0d755f9bf feat(core): add 'addDatabaseType' method for adding custom types 2018-01-16 08:04:12 -08:00
haad
1b5d6db239 Create a mapping for database types 2018-01-07 09:17:40 +01:00
haad
81284c1b16 Fix browser compatibility 2017-12-31 13:46:25 +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
9b1f704abe Fix a bug where creator of the database was not added to the list of writers 2017-12-10 13:30:39 +01:00
haad
6df41f4fad Use LevelDB as the local persistence cache 2017-12-09 17:42:06 +01:00
haad
d39b69a82f Refactor creating and saving DB manifest
Add test for loading an empty snapshot
2017-12-05 23:23:24 +01:00
haad
c30c0b6cf9 Use ipfs@0.27.0 and ipfs-pubsub-room@1.0.1 2017-12-05 13:18:29 +01:00
haad
bdc8260610 Fix replication starting from wrong heads
Use ipfs-pubsub-room branch with a fix for the wrong heads
Add a test tocheck that the automatic replication receives the right heads
Add more logging
2017-12-02 13:40:22 +01:00
haad
0bd85aed4a Remove setTimeout() when publishing to pubsub 2017-11-30 17:32:43 +01:00