Commit graph

1150 commits

Author SHA1 Message Date
Ewout Stortenbeker
12639cd0f8
Merge pull request #265 from appy-one:quality/organize-code
Split code into multiple files for easier maintenance
2026-05-18 10:33:01 +02:00
Ewout Stortenbeker
8e2a24ee11
Merge branch 'master' into quality/organize-code 2026-05-18 10:17:02 +02:00
github-actions[bot]
cf77386aed chore: release v1.29.11 [skip ci] 2026-05-12 13:30:52 +00:00
Ewout Stortenbeker
cac2877526 Revert acebase-core dependency to local file 2026-05-12 15:27:44 +02:00
github-actions[bot]
cace49eff4 chore: release v1.29.11-rc.2 [skip ci] 2026-05-12 13:17:45 +00:00
Ewout Stortenbeker
5aa91a7a8f Use latest acebase-core 2026-05-12 15:15:24 +02:00
github-actions[bot]
8c1254897d chore: release v1.29.11-rc.1 [skip ci] 2026-05-12 13:06:21 +00:00
Ewout Stortenbeker
5a37f76581 Add npm publish workflow from master branch 2026-05-12 14:58:14 +02:00
Ewout Stortenbeker
a7c16c45e1 new browser build 2026-05-12 14:48:55 +02:00
Ewout Stortenbeker
6a4463d9bf Tests: ignore rmdir ENOENT error 2026-05-12 13:30:21 +02:00
Ewout Stortenbeker
a56dcf8a5e B+Tree tree locking: let timeout throw an exception, so callers can catch and handle instead of waiting indefinitely 2026-05-12 13:13:57 +02:00
Ewout Stortenbeker
0c3ee4e401 Fix reflection with from === 0 or from === '' argument 2026-05-12 13:09:43 +02:00
Ewout Stortenbeker
c6b7b1b7fa Merge node: more robust way to check if record moved 2026-05-12 12:46:36 +02:00
Ewout Stortenbeker
6476e0570d Binary node reader: fix child streams when fromKey === 0 2026-05-12 10:16:03 +02:00
Ewout Stortenbeker
4efc28b40d Binary storage merge node: fix B+Tree reads that start at index equal to originalLength 2026-05-12 10:12:36 +02:00
Ewout Stortenbeker
d5e7ebc59c B+Tree: fix rollback of last leaf rebuilds (they have no next leaf) 2026-05-12 10:08:24 +02:00
Ewout Stortenbeker
aeb2015946 Fix using from option in getChildStream on smaller nodes that don't store props alphabetically 2026-05-08 17:25:34 +02:00
Ewout Stortenbeker
1d0b9aa0ac Speed up getChildCount for nodes with a B+ Tree by manually traversing the leafs, counting all entries 2026-05-08 17:24:08 +02:00
Ewout Stortenbeker
6750246b9a Mark asyncoption in getChildren storage stub method as deprecated 2026-05-08 17:18:41 +02:00
Ewout Stortenbeker
4745107051 add fromKey option to getChildStream to drastically improve performance of reflection on large nodes with B+ Tree 2026-05-08 17:16:47 +02:00
Ewout Stortenbeker
6f9fa02355 remove deprecated async option 2026-05-08 17:03:53 +02:00
Ewout Stortenbeker
6381f69e8f Fix issue that causes a wrong record allocation calculation with existing allocation that has more ranges than maxChunks 2026-05-08 16:42:49 +02:00
github-actions[bot]
fc6322e7b0 chore: release v1.29.10 [skip ci] 2026-04-16 07:16:04 +00:00
Ewout Stortenbeker
8bb874a7bb
Merge pull request #272 from appy-one:improve-read-write-stability
Improve read/write stability
2026-04-16 09:09:12 +02:00
Ewout Stortenbeker
f6e7a21321 New browser build 2026-04-16 09:05:24 +02:00
Ewout Stortenbeker
3d64340c7a Add corrupted node testing capability. Writing to path simulate/corrupt/record/here will now simulate a corrupted record 2026-04-15 21:40:19 +02:00
Ewout Stortenbeker
3397a04cc2 Fix transaction log tests that did not always get the most recent cursor because of a race condition 2026-04-15 21:39:21 +02:00
Ewout Stortenbeker
3611f5c76c Improve node-lock test to handle lock timeouts correctly 2026-04-15 21:39:21 +02:00
Ewout Stortenbeker
dc173709b4 (commented out) add a way to test with very short lock timeouts 2026-04-15 21:39:21 +02:00
Ewout Stortenbeker
c41bb02cad Enhance node read/write error handling, automatically await child stream callback promises, fix locks potentially not being released upon error, reduce mem/cpu usage when reading/writing large nodes (maybe also slowing down a bit but not noticeably when running the tests), improve logging 2026-04-15 21:38:58 +02:00
Ewout Stortenbeker
0456a23580 Add corrupted node testing capability. Writing to path simulate/corrupt/record/here will now simulate a corrupted record 2026-04-15 21:22:48 +02:00
Ewout Stortenbeker
4efe992708 Fix transaction log tests that did not always get the most recent cursor because of a race condition 2026-04-15 21:21:12 +02:00
Ewout Stortenbeker
52220b9773 Improve node-lock test to handle lock timeouts correctly 2026-04-15 21:20:27 +02:00
Ewout Stortenbeker
1c97222c97 (commented out) add a way to test with very short lock timeouts 2026-04-15 21:19:10 +02:00
Ewout Stortenbeker
c1ea0873db Enhance node read/write error handling, automatically await child stream callback promises, fix locks potentially not being released upon error, reduce mem/cpu usage when reading/writing large nodes (maybe also slowing down a bit but not noticeably when running the tests), improve logging 2026-04-15 21:18:14 +02:00
Ewout Stortenbeker
41b469484e
Fix: suppress unhandled promise rejections and PromiseRejectionHandledWarning (#271) 2026-04-15 08:58:02 +02:00
Ewout Stortenbeker
a5cc57ce6a Fix: suppress unhandled promise rejections and PromiseRejectionHandledWarning 2026-04-14 16:22:46 +02:00
github-actions[bot]
7e439ce877 chore: release v1.29.9 [skip ci] 2026-04-14 13:33:13 +00:00
Ewout Stortenbeker
4f6a132f2d
Fix: handle failing announced cache lookups (#270)
* Fix failing node address lookups never resolving a parent read/write operation

* Add node info to `readHeader` error message
2026-04-14 15:31:11 +02:00
Ewout Stortenbeker
fbe619c235 Add node info to readHeader error message 2026-04-14 14:54:30 +02:00
Ewout Stortenbeker
cd10f2cea6 Fix failing node address lookups never resolving a parent read/write operation 2026-04-14 14:53:40 +02:00
github-actions[bot]
430ac71518 chore: release v1.29.8 [skip ci] 2026-04-13 10:39:24 +00:00
Ewout Stortenbeker
58d4c8941e Fix npm trusted publishing (use node 24) 2026-04-13 12:37:35 +02:00
Ewout Stortenbeker
b49b6f1554 Fix npm trusted publishing 2026-04-13 12:32:57 +02:00
github-actions[bot]
d682ee8e11 chore: release v1.29.7 [skip ci] 2026-04-13 10:12:47 +00:00
Ewout Stortenbeker
9bca2f38bf Fix npm publish 2026-04-13 12:11:23 +02:00
github-actions[bot]
636167ea51 chore: release v1.29.6 [skip ci] 2026-04-13 10:06:44 +00:00
Ewout Stortenbeker
ffc226c761
Merge pull request #269 from appy-one:fix/prevent-corrupt-record-error-in-single-process
Fix publish workflow
2026-04-13 12:04:08 +02:00
github-actions[bot]
3501900d9c chore: release v1.29.6-rc.7 [skip ci] 2026-04-13 10:01:38 +00:00
Ewout Stortenbeker
5a0f52a1d1
Merge branch 'master' into fix/prevent-corrupt-record-error-in-single-process 2026-04-13 11:59:44 +02:00