112 Commits

Author SHA1 Message Date
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
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
haad
42885b20a4 Write permissions for databases
Use latest store modules from npm
Update README
Update docs
Update examples
Update benchmarks
Update dependencies
Add Getting Started guide
Add new a screenshot
Add a new live demo
Add persistency tests for snapshot saving/loading and events
Add network stress tests (but skip them by default as they're very heavy and lengthy)
Add browser benchmarks
Add log() alias for eventlog() database
Add possibility to create database if it doesn't exist yet
Add support for orbitdb addresses
Add a test for starting replication when peers connect
Add debug build
Use IPFS nodeID as default user id
Use ipfs-pubsub-room
Handle closing of databases properly
Handle cache errors
Clean up tests, re-organize code files
Clean up code style
Support for CLI
Remove obsolete scripts
2017-11-28 09:10:51 +01:00
haad
8f990e0ccc Immutable ipfs-log
Use immutable ipfs-log.
Simplify internals.
Remove obsolete dependencies.
Update dependencies.
Use @dignifiedquire's mapSeries for Promises.
Split tests to individual stores.
Improve tests.
Fix build process.
Build size down to 121kb.
Fix benchmarks and examples.
Move Cache to Stores (and to its own module).
2017-03-21 18:13:58 +01:00
haad
72c7f717a8 Add test for sync() returning a hash 2017-01-29 19:21:23 +02:00
haad
7d09b71714 Add 'synced' event 2017-01-29 16:27:01 +02:00
haad
c79a1a125f 0.16.0-beta.6
Add replication test
Use latest ipfs-daemon
Cleanups
2017-01-16 23:23:11 +01:00
haad
1709be97fe Fix cache path problems 2016-11-03 09:35:52 +01:00
haad
9de3119c9c Fix cache loading bug 2016-10-20 13:18:17 +02:00
shamb0t
691348bd4c Add orbit-db-docstore 2016-10-10 15:12:56 +02:00
haad
3b7d64b19f Set default network name. Cleanup logging. 2016-10-04 19:07:32 +02:00
haad
84e984a4cb Eventlog example. Cleanup code. 2016-10-04 19:07:32 +02:00
haad
f035d30398 Cleanup 2016-10-04 19:07:31 +02:00
haad
cba3ab6c60 Fix tests partially 2016-10-04 19:07:31 +02:00
haad
70f82cfed1 Cleanup 2016-10-04 19:07:31 +02:00
haad
ec1633f97b Fix network name. Cleanup OrbitDB.js. 2016-10-04 19:07:31 +02:00
haad
3211fb86bb IPFS Pubsub (WIP) 2016-10-04 19:07:30 +02:00
haad
fcd0acaecd Add Cache to OrbitDB 2016-08-09 15:15:20 +02:00
haad
c3006b1153 Refactor events and createStore() 2016-08-09 12:49:06 +02:00
haad
7a243d0311 Refactor events 2016-08-08 22:05:11 +02:00
haad
500f771a3b Fix maxHistory in all data stores 2016-07-08 10:44:21 +02:00
haad
1432cc4f17 Change .connect() to connect to a <host:port> instead of IPFS hash. 2016-07-07 16:27:53 +02:00
haad
52cfc3199e Remove log messages 2016-06-23 12:44:05 +03:00
haad
9f7e02fd40 Add log messages for syncing 2016-05-31 18:46:38 +02:00
haad
2ef28e2380 Decrease network info read timeout. Fix events. 2016-05-30 15:56:26 +02:00
haad
7b5c4225d8 Fallback to the public dev server if cats don't work 2016-05-25 11:21:58 +02:00
haad
881262f3e1 Remove event listeners on disconnect 2016-05-24 16:18:52 +02:00
haad
15342ff732 Make pubsub connect work with js-ipfs and js-ipfs-api, test with both 2016-05-23 12:08:30 +02:00
haad
6e4e12015d Improve pubsub logging messages 2016-05-22 15:25:25 +02:00
haad
fc0326217a Fix js-ipfs-api compatibility 2016-05-22 15:07:21 +02:00
haad
027ceb747f Check if we have pubsub instance before subscribing 2016-05-21 16:19:55 +02:00