455 Commits

Author SHA1 Message Date
Hayden Young
954767e50f chore: Fix lint issues. 2023-09-08 01:34:41 +01:00
Hayden Young
858c66fe86 test: Override default keyvalue with indexed keyvalue. 2023-09-08 00:53:59 +01:00
Hayden Young
a8d241cd7b test: Basic tests for identity configuration. 2023-09-08 00:14:42 +01:00
Hayden Young
8fb09a959d chore: Fix lint issues. 2023-09-07 14:49:43 +01:00
Hayden Young
c42f28740a fix: Async both the idp and the verifyIdentity function. 2023-09-07 13:44:24 +01:00
Hayden Young
c75b805ed1 refactor: Use an identity provider. 2023-09-07 09:38:19 +01:00
Hayden Young
06ea870308 refactor: Use an access controller. 2023-09-07 09:34:48 +01:00
Hayden Young
7888ff06a3 refactor: Use a database type. 2023-09-07 09:29:33 +01:00
Hayden Young
a0fc91d674 chore: Lint fixes. 2023-09-05 23:01:37 +01:00
Hayden Young
b0296838bb refactor: Align AC/IDP/Database registration processes. Should return similar errors. 2023-09-05 22:53:47 +01:00
Hayden Young
c4f085b267 refactor: Match database registration to AC/IDP registration processes. 2023-09-05 22:52:51 +01:00
Hayden Young
cc2ee0fe2a test: Check for valid IDP when creating an identity. 2023-09-04 17:35:01 +01:00
Hayden Young
a552bde0b0 fix: Export the IDP type in both the function definition and the function return values. 2023-09-04 17:03:10 +01:00
Hayden Young
c08bf8d2d0 refactor: Move type and verifyIdentity into IDP function. Pass provider as using provider param. 2023-09-04 10:39:25 +01:00
Hayden Young
0a5a6ed1ac refactor: Identity provider can be passed as partially instantiated function. 2023-09-04 00:43:27 +01:00
haad
ef56b9f9b1 Fix db instance caching 2023-09-01 09:03:34 +03:00
Hayden Young
5f5d25d4c1 chore: Fix lint issues. 2023-08-15 01:09:51 +01:00
Hayden Young
5079d490d9 refactor: Rename OrbitDB entry point. 2023-08-15 00:55:27 +01:00
haad
f368e2ef73 Fix OrbitDB AC test 2023-07-29 09:27:23 +03:00
haad
b105c84f99 Fix Sync timeout and events tests 2023-07-29 09:23:20 +03:00
haad
5032415e01 Fix OrbitDBAccessController address and return values 2023-07-29 09:18:17 +03:00
Hayden Young
af57db4337 refactor: Change package name orbit-db -> orbitdb. 2023-07-15 15:44:06 +01:00
Hayden Young
b5cd67bed1 test: Match db tests to module names. 2023-06-27 15:03:10 +01:00
Hayden Young
546e3ea601 test: Match namespace for database tests. 2023-06-27 14:57:09 +01:00
Hayden Young
44752a464e refactor: Use hash instead of path when referencing orbitdb addresses. 2023-06-27 14:06:31 +01:00
Hayden Young
cdbe76d708 refactor: Match databases dir to namespace. 2023-06-27 13:33:08 +01:00
Hayden Young
9befa48a7a docs: Formatting. 2023-06-24 23:50:44 +01:00
Hayden Young
578f4890b9 docs: Do not expose internal OrbitDBAddress function. 2023-06-24 16:28:49 +01:00
Hayden Young
222c7234fe refactor: Rename manifest store. 2023-06-22 01:10:12 +01:00
Hayden Young
a525d91e8f docs: Expose access controllers/identity providers/dbs directly. Remove get* functions for AC/IP/DB loaders. 2023-06-21 21:19:35 +01:00
Hayden Young
4c3a338205 refactor: Standardize module loader functions. Do not expose module lists. 2023-06-18 03:05:07 +01:00
Hayden Young
8b93553d0e refactor: Move database type management to db module. 2023-06-18 02:43:03 +01:00
Hayden Young
6def69f345
Identity issue (#82)
* docs: Correctly print out db query results.

* test: Remove concurrent.

* test: Remove unimplemented and 3rd party AC tests.

* test: Remove unimplemented and 3rd party identity tests.

* docs: Move jsdoc config to conf directory.

* Point package.json main at index.js to access all exported functions.

* test: Identities storage pointing at wrong location.

* refactor: Identities is configurable when creating an OrbitDB instance.
2023-06-13 23:55:25 +08:00
Hayden Young
7975ac42b9 Merge branch 'main' into HEAD 2023-06-07 22:48:55 +01:00
Hayden Young
b9e573dc6d
feat: Expose identity provider managers. (#75)
* feat: Expose identity provider managers.

* refactor: Remove unnecessary provider tools.

* refactor: Match AC management to other management mechanisms (e.g. Identity Providers).
2023-06-02 02:53:40 +08:00
Zoltan Erdos
297293874b fix: fileName casing issue 2023-05-27 09:17:23 +01:00
Hayden Young
794136c762
refactor: Functionize identity provider. (#74)
* refactor: Functionize identity provider.

* docs: Building a custom identity provider.

* refactor: Functionize clock.
2023-05-25 00:48:01 +08:00
Hayden Young
60fbe47ee3
Jsdocs (#73)
* fix: Load correct main.

* docs: Enable markdown.

* docs: Add jsdoc blocks.

* docs: Separate orbitdb into module and namespace.

* docs: Database module and namespace.

* docs: Default values for storage.

* docs: Match param naming across modules.

* docs: Use @link where possible.

* docs: Use @example for code.

* docs: KeyStore module and namespace documentation.

* docs: API for Access controller management.

* docs: Document Database events.

* docs: Formatting.

* docs: Notes on Custom AC and including a canAppend function.

* docs: Standardize primitive data types.

* docs: Proposed submodule structure.

* docs: Composed storage. How to create custom storage.

* docs: annotations for all storage modules.

* docs: Documents.

* docs: KeyValueIndexed.

* docs: Provide example for specifying storage for keyvalue.

* docs: KeyValue.

* docs: Remove const documentation where not required.

* docs: KeyStore static functions.

* docs: Identities.

* docs: Identity.

* refactor: Remove unused param.

* docs: Address.

* docs: Address.

* docs: Manifest.

* docs: IPFSAccessController.

* docs: OrbitDBAccessController.

* docs: Utils.

* test: check for correct message.
2023-05-18 03:34:44 +08:00
Hayden Young
5ab0bcdbf5
Docs (#66)
* docs: Access controllers.

* test: Re-open an existing db using its address.

* docs: Simple db interaction.

* docs: Basic Identities.

* docs: Storage.

* docs: Implementing a custom database.

* docs: Example OrbitDB AC.

* docs: Use identity id when customizing access.

* docs: canAppend.

* docs: Graphically describe log joining.

* docs: Update db types.

* docs: Sync-ing.

* docs: Reverse flow arrows.

* docs: Logical clock.

* docs: DB address and manifest.

* docs: Move ops description to db.

* docs: CRDT.

* docs: Peer discovery, connecting ipfs nodes, orbitdb replication.

* docs: Change file name case to match other documentation solutions (e.g. IPFS/libp2p).

* docs: Links to CRDT papers.

* docs: A getting started to get up and running quickly.

* docs: Move replication to own readme.

* docs: Links to various js-libp2p connection config.

* docs: Examples for connecting two node servers.

* docs: Server to browser connection.

* docs: Replication how-to.

* docs: Remove SYNC.

* docs: Simplify oplog discussion.

* docs: Connecting to IPFS in the browser.

* docs: Topics moved to separate docs.
2023-05-05 00:33:36 +08:00
haad
b1d16fc7b4 Cleanups 2023-04-13 08:26:41 +03:00
haad
fca6439399 Add "bail" option to mocha config 2023-04-13 08:25:52 +03:00
haad
0bef6f65a6 Remove obsolete code 2023-04-13 08:25:37 +03:00
haad
f331b1b458 Refactor Manifest 2023-04-13 07:59:30 +03:00
Haad
9fd01ff530
Merge pull request #64 from saul-jb/refactor/packages
refactor: Remove unused packages.
2023-04-07 07:38:28 +03:00
Hayden Young
dadf4c34e7
refactor: Adhere to case naming convention for OrbitDB module. (#67) 2023-04-06 22:39:05 +08:00
haad
3030336db9 More refactoring 2023-04-06 15:25:42 +03:00
haad
eddf5b853b Refactor Database interface for configuration, add onUpdate callback 2023-04-06 10:00:52 +03:00
haad
d681bb720a Remove Log and Database dependency injection 2023-04-06 10:00:09 +03:00
haad
a94d2a7918 Renaming pass 2023-04-06 08:32:31 +03:00
saul
7a9e002ead Remove and replace p-map-series with Promise.all. 2023-04-04 14:11:57 +12:00