Commit Graph

212 Commits

Author SHA1 Message Date
Jacob Karlsson f79914d838 1.0.4 2024-06-05 17:26:03 +02:00
Jacob Karlsson 37022b8969 Export DBTangle type 2024-06-05 17:25:51 +02:00
Jacob Karlsson 995c70fe68 1.0.3 2024-06-01 18:22:47 +02:00
Jacob Karlsson 047c88fb86 Return null instead of throwing on property errs (#8)
Trying to fix https://codeberg.org/pzp/pzp-sync/issues/10

This doesn't solve the problem of missing rootMsg but maybe allows sync to fail more gracefully

Reviewed-on: https://codeberg.org/pzp/pzp-db/pulls/8
Co-authored-by: Jacob Karlsson <jacob.karlsson95@gmail.com>
Co-committed-by: Jacob Karlsson <jacob.karlsson95@gmail.com>
2024-06-01 16:21:00 +00:00
Jacob Karlsson eefe93820d 1.0.2 2024-05-17 17:39:03 +02:00
Jacob Karlsson 1d2470865b Improve cb types 2024-05-17 17:38:54 +02:00
Jacob Karlsson 8e6128f238 Rename to pzp (#4)
For https://codeberg.org/pzp/pzp-sdk/issues/1

Reviewed-on: https://codeberg.org/pzp/pzp-db/pulls/4
Co-authored-by: Jacob Karlsson <jacob.karlsson95@gmail.com>
Co-committed-by: Jacob Karlsson <jacob.karlsson95@gmail.com>
2024-04-27 21:47:50 +00:00
Jacob Karlsson f93082f38d Skip really long test in ci 2024-04-17 12:32:32 +02:00
Jacob Karlsson b4190b0ae2 Increase test timeout more 2024-04-14 23:34:19 +02:00
Jacob Karlsson 6acd57c707 Enable woodpecker CI (#3)
Fixes https://codeberg.org/pzp/pzp-db/issues/2

Reviewed-on: https://codeberg.org/pzp/pzp-db/pulls/3
Co-authored-by: Jacob Karlsson <jacob.karlsson95@gmail.com>
Co-committed-by: Jacob Karlsson <jacob.karlsson95@gmail.com>
2024-04-14 14:46:19 +00:00
Powersource f056429f31
Document the api (#31) 2024-04-13 14:33:36 +02:00
Powersource 15cfc7459d
Make all APIs async, internally wait for rescanning (#29) 2024-04-07 17:04:32 +02:00
Powersource e40c7cff09
Prune the accountTangle in getSigkeysInAccount (#23) 2024-03-25 16:46:28 +01:00
Powersource d332308104
Add db.account.del (#27) 2024-03-25 16:45:08 +01:00
Powersource 3c236581fa
Make getSigkeysInAccount consider "del" (#24) 2024-03-25 16:33:41 +01:00
Andre Staltz ba6f727417
moot can be added without sigkey validation 2024-03-12 12:59:40 +02:00
Andre Staltz 0c86b43d22
improve Tangle error messages 2024-03-06 11:13:04 +02:00
Andre Staltz cf1532965e
tiny refactor in Ghosts 2024-03-01 14:56:44 +02:00
Andre Staltz 6661b73fd4
add() can replace a dataless msg with a dataful 2024-02-28 15:32:36 +02:00
Andre Staltz cbeabab904
Tangle can be built from randomly ordered msgs 2024-02-28 13:53:31 +02:00
Andre Staltz c31580a961
add a few code comments 2024-02-27 18:03:35 +02:00
Andre Staltz 60afd4b64b
Re-scan log into memory after compacting 2024-02-27 16:52:01 +02:00
Andre Staltz 667b33779d
add() supports concurrency 2024-01-31 13:12:55 +02:00
Andre Staltz 73b9a80c73
package.json ppppp deps specify commit tag 2024-01-31 13:01:04 +02:00
Andre Staltz 68605ea387
getTangle() returns null if tangleID is unknown 2024-01-30 17:27:31 +02:00
Andre Staltz 4946afac12
fix typescript 2024-01-19 12:48:57 +02:00
Andre Staltz 7d5588ef4d
new API onRecordDeletedOrErased 2024-01-19 12:47:52 +02:00
Andre Staltz f8a2006eb1
improve types of dependencies 2024-01-19 12:24:38 +02:00
Andre Staltz 9e41400cdc
Log: fix concurrent overwrite() and compact() 2024-01-18 16:40:39 +02:00
Andre Staltz 844b808e78
new name for the log stats file 2024-01-18 16:27:17 +02:00
Andre Staltz 69a0a1f60c
improve debug logs in the Log module 2024-01-18 16:25:00 +02:00
Andre Staltz 17742f9ed2
avoid infinite loop in Tangle.precedes() 2024-01-17 15:47:58 +02:00
Andre Staltz 001fcaa1ab
refactor isMoot() 2024-01-05 14:18:19 +02:00
Andre Staltz cc1f83c064
use config.global.keypair 2023-12-29 12:14:59 +02:00
Andre Staltz 23076a58ca
update msg-v4 export 2023-12-25 12:27:42 +02:00
Andre Staltz 3a2bfe25d0
msg-v4 2023-12-25 12:24:35 +02:00
Andre Staltz fd2e50438a
fix microqueue tests 2023-12-21 11:29:32 +02:00
Andre Staltz f38a62e006
use the microqueue for onRecordAdded 2023-12-21 11:17:28 +02:00
Andre Staltz 42acbc310f
add() supports inferring tangleID 2023-12-15 15:49:54 +02:00
Andre Staltz fa15271fdf
loosen tangle.slice() arguments 2023-12-15 14:38:02 +02:00
Andre Staltz f38b293c76
more tests 2023-12-15 14:36:25 +02:00
Andre Staltz 99c1520415
new API tangle.slice() 2023-12-15 14:34:34 +02:00
Andre Staltz f523df3a0e
MsgV3.isFeedMsg() API 2023-12-14 15:58:49 +02:00
Andre Staltz e86da204cb
format test file a bit 2023-12-14 14:49:51 +02:00
Andre Staltz b76130aa74
new feed.getID() API 2023-12-11 15:29:31 +02:00
Andre Staltz f9a3875ffd
rename feed.getID() to feed.findMoot() 2023-12-11 15:25:57 +02:00
Andre Staltz 5b81c6ea82
move config.path to config.db.path 2023-11-24 15:44:25 +02:00
Andre Staltz dd492553be
log: improve error messages in compact() 2023-11-23 17:02:32 +02:00
Andre Staltz 29badc9fd8
log: dont compact on startup 2023-11-23 17:02:07 +02:00
Andre Staltz 1f88d67116
log: show compaction duration in debugging 2023-11-23 16:49:23 +02:00