Commit Graph

150 Commits

Author SHA1 Message Date
Andre Staltz ae122c815e
support erase() persistence 2023-11-10 15:46:17 +02:00
Andre Staltz 9e7feb3d41
log: improve overwrite() with scheduled flushes 2023-11-10 14:50:22 +02:00
Andre Staltz 2f527613c2
refactor: cleanup dead code 2023-11-10 14:40:25 +02:00
Andre Staltz 153e75da8e
log: implement naive overwrite() 2023-11-10 14:39:15 +02:00
Andre Staltz 3636acaaa3
remove unused error msg 2023-11-10 14:22:53 +02:00
Andre Staltz f40ea71ff9
refactor/prettify tests 2023-11-10 11:06:19 +02:00
André Staltz 9356b9b3d9
Update protospec.md 2023-11-09 11:04:24 +02:00
Andre Staltz 53d8c44da8
CI: not Node.js 21 2023-11-07 11:22:25 +02:00
Andre Staltz 25c073f391
CI: use new versions of Node.js too 2023-11-07 11:17:04 +02:00
Andre Staltz 4157b4989c
fix tests in CI 2023-11-07 11:14:41 +02:00
Andre Staltz 4302094926
log: remove some unnecessary methods 2023-11-07 11:11:19 +02:00
Andre Staltz b6d17e947f
log reading methods match log codec type 2023-11-07 10:48:20 +02:00
Andre Staltz db915d0287
replace async-append-only-log with our own log 2023-11-07 09:53:56 +02:00
Andre Staltz c1f527b5d5
refactor: cosmetics 2023-10-26 13:03:52 +03:00
Andre Staltz dea38e4c1a
fix ghosts.add() against concurrent writes 2023-10-26 12:06:06 +03:00
Andre Staltz 3fccd4d661
rename ghosts.add() opts.max to opts.span 2023-10-26 10:42:08 +03:00
Andre Staltz 4fff37ad02
refuse re-adding a dataful ghost msg 2023-10-25 19:09:19 +03:00
Andre Staltz 8c3800264a
fixup for: change ghosts.add API arguments 2023-10-25 18:47:57 +03:00
Andre Staltz 31bf38e2d2
change ghosts.add API arguments 2023-10-25 18:46:34 +03:00
Andre Staltz 778dbda588
refactor to move files around 2023-10-25 18:39:57 +03:00
Andre Staltz 21c1adbd2a
make ghost read APIs synchronous 2023-10-25 15:22:07 +03:00
Andre Staltz b87ca604eb
fix minor Tangle class issues 2023-10-19 17:06:51 +03:00
Andre Staltz 75b36e9730
add API tangle.root 2023-10-19 15:10:24 +03:00
Andre Staltz 05e16a7037
reading empty ghosts should not raise error 2023-10-19 13:46:16 +03:00
Andre Staltz 748125b6e6
add tangle.id field 2023-10-19 13:37:57 +03:00
Andre Staltz d74695b7e7
add ghosts API 2023-10-18 17:04:50 +03:00
Andre Staltz 6996fb2d20
use polyfill friendly "path" instead of "node:path" 2023-10-18 14:45:06 +03:00
Andre Staltz 39d48ac416
add semantic type MsgID in lib/index.js 2023-10-18 14:44:15 +03:00
Andre Staltz 31ec544522
fix tangle getShortestPath against cycles 2023-09-26 15:31:19 +03:00
Andre Staltz fec2b46a3e
improve types for void callbacks 2023-09-26 15:30:48 +03:00
Andre Staltz 0d9ce50cfe
change getDeletablesAndErasables return type 2023-09-20 14:47:23 +03:00
Andre Staltz 385b34dbd6
tangle.getDeletablesAndErasables() accepts many args 2023-09-14 16:54:43 +03:00
Andre Staltz a5c4847244
small rename 2023-09-14 13:55:08 +03:00
Andre Staltz 530797317d
make Msg type generic in msg.data 2023-09-14 12:54:01 +03:00
Andre Staltz 5a405be367
add API logStats(cb) 2023-09-13 14:27:53 +03:00
Andre Staltz a6749cafa1
improve feed.publish input assertions 2023-09-07 17:28:43 +03:00
Andre Staltz 25eb244608
allow adding erased msgs 2023-09-07 16:38:58 +03:00
Andre Staltz b92d25c6a2
validation on add() supports encrypted inner msgs 2023-08-31 13:33:13 +03:00
Andre Staltz 222f54ea52
minor refactoring and rename message=>msg 2023-08-29 10:22:52 +03:00
Andre Staltz 3a9df124f6
refactor account msg validation 2023-08-28 17:04:23 +03:00
Andre Staltz f1a13eee80
refactor validation 2023-08-28 16:57:25 +03:00
Andre Staltz 0beb2477a2
more Tangle getter renaming 2023-08-28 15:56:21 +03:00
Andre Staltz 0b7f49846e
rename some Tangle getters 2023-08-28 15:47:24 +03:00
Andre Staltz c76584953b
some breaking change renaming
msgHash => msgID
Feed root => moot
rec.hash => rec.id
2023-08-28 15:14:20 +03:00
Andre Staltz c06828cd99
update protospec: key types 2023-08-24 14:00:24 +03:00
Andre Staltz af4325ef94
rename identity to account 2023-08-08 16:33:36 +03:00
Andre Staltz 557ea2252c
implement powers in identity.add() 2023-08-08 15:31:23 +03:00
Andre Staltz e6aa33d3f0
add more JSDocs 2023-08-08 14:04:27 +03:00
Andre Staltz 5f76000531
fix which domain is used in identity.add() 2023-07-20 20:23:27 +03:00
Andre Staltz 54f00d1944
new identity.has() API 2023-07-18 23:47:13 +03:00