1902 Commits

Author SHA1 Message Date
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
4adfafae30
Merge pull request #72 from orbitdb/dev/jsdocs
Add jsdocs
2023-04-13 09:16:25 +03:00
haad
c117ef63ba Add jsdocs 2023-04-13 09:15:27 +03:00
Haad
ec06a8e2d0
Merge pull request #71 from orbitdb/fix/cleanups
Cleanups
2023-04-13 08:32:44 +03:00
haad
b1d16fc7b4 Cleanups 2023-04-13 08:26:41 +03:00
haad
e687b51d96 Remove obsolete code from OrbitDB AC 2023-04-13 08:26:19 +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
df7cd85a59
Merge pull request #70 from orbitdb/dev/cleanups
Cleanups
2023-04-13 08:05:47 +03:00
haad
f331b1b458 Refactor Manifest 2023-04-13 07:59:30 +03:00
haad
d979b98562 Add cache to IPFS AC storage 2023-04-13 07:59:19 +03:00
haad
0fed060711 Remove commented code 2023-04-12 09:34:43 +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
saul
99e1bd3f5f Remove redundant Promise.resolve. 2023-04-07 08:44:06 +12:00
Hayden Young
dadf4c34e7
refactor: Adhere to case naming convention for OrbitDB module. (#67) 2023-04-06 22:39:05 +08:00
Hayden Young
58518203c3
Merge pull request #69 from orbitdb/refactor/dbs
Refactor Databases
2023-04-06 22:32:26 +08:00
Hayden Young
0deaaf5541
Merge pull request #68 from orbitdb/refactor/naming
Renaming pass
2023-04-06 22:32:12 +08:00
haad
3030336db9 More refactoring 2023-04-06 15:25:42 +03:00
Hayden Young
3df8f3e96c
Merge pull request #65 from saul-jb/fix/wrong-path
fix: Correct the wrong path join method being used in ensure-ac-address.js.
2023-04-06 18:41:33 +08: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
78432f2166 Fix wrong path join method being used. 2023-04-04 15:03:17 +12:00
saul
8235ce8c45 Update packages. 2023-04-04 14:23:09 +12:00
saul
f5c9d5eb90 Remove remark-cli. 2023-04-04 14:14:51 +12:00
saul
7a9e002ead Remove and replace p-map-series with Promise.all. 2023-04-04 14:11:57 +12:00
saul
b3e4a093ca Remove cpy-cli. 2023-04-04 14:10:43 +12:00
saul
23aee1d1ec Remove p-map package and replace with Promise.all. 2023-04-04 14:05:25 +12:00
saul
1cca881a9e Remove logplease. 2023-04-04 14:01:23 +12: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
Haad
a5c14d5377
Fix log fetching parallelism (#60)
* Fix log traverse parallelism

* Rename pointerCount to referencesCount
2023-03-29 21:10:24 +08:00
saul
9c1af3deb8 Fix test descriptions. 2023-03-29 11:15:44 +13:00
saul
ce5e177813 Skip path join tests in environments where it is undefined. 2023-03-29 11:10:09 +13:00
saul
3335c8b698 Cleanup path join tests. 2023-03-29 10:47:38 +13:00
saul
9ca2408453 Change default join to posix. 2023-03-29 10:39:54 +13:00
saul
ed28fb4136 Expand test with harder tests. 2023-03-29 10:37:10 +13:00
saul
194ecafb0a Fix issue using posix paths with win32 join. 2023-03-29 10:13:19 +13:00
saul
d3162d898f Add path join tests. 2023-03-29 09:57:48 +13:00
Haad
0b635666fd
Merge pull request #59 from orbitdb/fix/join-entry
Fix joinEntry traversing by checking refs both ways
2023-03-28 11:30:43 +03:00
haad
52fc82a859 Fix joinEntry traversing by checking refs both ways 2023-03-28 11:29:25 +03:00
Haad
bb99931440
Merge pull request #52 from saul-jb/fix/top-async
fix: Move top-level await to method.
2023-03-28 10:47:18 +03:00
Haad
fddb6c704e
Merge pull request #58 from saul-jb/fix/is-defined
refactor: Remove is-defined util.
2023-03-28 10:46:25 +03:00
saul
35a6bf121c Remove is-defined util. 2023-03-28 15:01:21 +13:00
saul
3433e0a0f6 Remove topLevelAwait from webpack configs. 2023-03-28 14:22:21 +13:00
saul
33a53cf765 Fallback webpack test config process var. 2023-03-28 14:07:43 +13:00
saul
07ddc99858 Add process back to webpack test config. 2023-03-28 13:52:44 +13:00
saul
34238dd852 Fix linter errors. 2023-03-28 13:44:07 +13:00
saul
1b03b58d14 Remove redundant webpack configs. 2023-03-28 13:38:20 +13:00