Commit Graph

212 Commits

Author SHA1 Message Date
Andre Staltz 2b1de9bce7
improve tests for del() and erase() 2023-11-23 16:09:06 +02:00
Andre Staltz cfebe1f46c
expose log methods: stats, compact 2023-11-23 15:49:54 +02:00
Andre Staltz ac8e730b64
fix some typescript 2023-11-23 15:43:41 +02:00
Andre Staltz 5e63142e50
log: fix how stats are counted 2023-11-23 15:38:05 +02:00
Andre Staltz a84dd297a5
log: implement compaction (sift-clone and rename) 2023-11-23 15:04:40 +02:00
Andre Staltz d21c7ed697
fix test for account powers validation 2023-11-23 12:55:17 +02:00
Andre Staltz f8db4fb224
fix account powers validation 2023-11-23 12:10:27 +02:00
Andre Staltz 3e4fe864f7
align impl and spec regarding account key purposes 2023-11-16 14:09:55 +02:00
Andre Staltz fc47a4006b
account msgs have "account__" domain prefix 2023-11-16 12:09:00 +02:00
Andre Staltz 1ff84756bc
flatten tagged union in msg AccountData 2023-11-16 11:29:55 +02:00
Andre Staltz 9223402335
refactor: simplify some code in MsgV3 2023-11-13 20:44:20 +02:00
Andre Staltz accc41a68c
refactor: remove unreachable code in MsgV3 2023-11-13 15:33:03 +02:00
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