Commit graph

341 commits

Author SHA1 Message Date
Ewout Stortenbeker
02ba2ef8a2 chore: build 2022-06-20 21:48:24 +02:00
Ewout Stortenbeker
b46448e19f commented out some unused code 2022-06-20 21:48:13 +02:00
Ewout Stortenbeker
cd39bf7b13 ported geohash to typescript, added unit tests 2022-06-20 21:47:07 +02:00
Ewout Stortenbeker
3faa7d63d3 Porting geohash to TypeScript 2022-06-20 16:54:01 +02:00
Ewout Stortenbeker
8e52a5db3c Added exclusive/shared locking mechanism 2022-06-20 16:21:02 +02:00
Ewout Stortenbeker
e4b44a8b38 Moved setTimeout 2022-06-20 16:16:53 +02:00
Ewout Stortenbeker
b65146b8ad ported ThreadSafe to TypeScript 2022-06-20 16:15:40 +02:00
Ewout Stortenbeker
ae994fef94 porting ThreadSafe to typescript 2022-06-20 16:10:06 +02:00
Ewout Stortenbeker
c2db6fdfa7 chore: build 2022-06-20 16:01:01 +02:00
Ewout Stortenbeker
81bf63cda9 ported to TypeScript 2022-06-20 15:50:51 +02:00
Ewout Stortenbeker
18b7af12ac Fixing #119 and #120, isolated code & ported to TS 2022-06-20 15:40:04 +02:00
Ewout Stortenbeker
1f568c2551 Preparing port to typescript, moving files 2022-06-20 15:39:52 +02:00
Ewout Stortenbeker
8db691e37b chore: build 2022-06-19 15:32:48 +02:00
Ewout Stortenbeker
f64503437a Fixes #118 infinite quicksort loop 2022-06-19 15:32:26 +02:00
Ewout Stortenbeker
c92d67975e Fix #117: index date values properly 2022-06-16 19:29:52 +02:00
Ewout Stortenbeker
81cdf8f18b type update 2022-06-14 21:17:35 +02:00
Ewout Stortenbeker
43b0e6212b Allow long-running index builds (up to 24hrs) 2022-06-14 21:17:18 +02:00
Ewout Stortenbeker
79b5e70570 fixing query sort order #116,
added child load batches - needs further improving
2022-06-13 18:18:58 +02:00
Ewout Stortenbeker
5443af3d96 added async flag (in addition to arg to .next) 2022-06-13 18:16:25 +02:00
Ewout Stortenbeker
c7b4449e78 Fix #115: custom storage include/exclude filters 2022-06-07 21:37:41 +02:00
Ewout Stortenbeker
f19152820c typo 2022-06-06 13:37:38 +02:00
Ewout Stortenbeker
2a86175259 jsdoc type edit 2022-06-06 13:37:26 +02:00
Ewout Stortenbeker
b4c2868392 indexes.add: return index instance; fixed typos 2022-06-06 13:36:33 +02:00
Ewout Stortenbeker
9ddba3bdbf emit .d.ts files 2022-06-06 13:34:04 +02:00
Ewout Stortenbeker
e1ee38802b fix #114: replace quicksort algorithm 2022-06-06 13:32:30 +02:00
Ewout Stortenbeker
d65425ea46 Fix #112 failed to rebuild leaf:
- autoGrow now also works with one-leaf trees
- allow entry ext_block to grow & move into leaf free ext_data space
2022-05-31 13:02:44 +02:00
Ewout Stortenbeker
361c53b22a +stop realtime query #113 2022-05-31 12:17:07 +02:00
Ewout Stortenbeker
96f86ea7d1 getNodeInfo: always cache lookups 2022-05-26 13:11:04 +02:00
Ewout Stortenbeker
65cb341df3 - Fix #110 (max recordSize / pageSize)
- Cut out the "Node" middleman #111
- Return cursors in api.get, .set, .update, .transaction methods
- index.rebuild: Fix file rename EPERM errors by retrying
- storage.getNodeInfo: Lock root lookups (prevents concurrency issue)
- storage.getNodeInfo: Allow child counts for root record in  (was missing!)
- storage.getNode: Generate and return cursor
2022-05-26 12:52:11 +02:00
Ewout Stortenbeker
c711d15adf chore: tsc 2022-05-26 12:00:12 +02:00
Ewout Stortenbeker
5c2c9f866b rmdir update for node 14.14.0+ 2022-05-26 11:59:13 +02:00
Ewout Stortenbeker
c9edd204ef remove event listeners upon exit 2022-05-26 11:55:12 +02:00
Ewout Stortenbeker
712544604f Fix for #105 (invalid mutated event path) 2022-05-20 13:09:17 +02:00
Ewout Stortenbeker
b3e9123ad9 improved getMutations:
- don't include mutation with exact cursor unless >1 in same ms
- updated unit tests
2022-05-17 10:56:51 +02:00
Ewout Stortenbeker
1e83a07ad6 added sponsor setting 2022-05-12 13:14:46 +02:00
Ewout Stortenbeker
8d4b67bd6d updated comments 2022-05-12 13:04:33 +02:00
Ewout Stortenbeker
8c85e46541 - Fixes for issue #96 and discussion #92
- disabled trailing /* index path removal
- improved path variables handling in queries and indexes
- export & import using serialize2 compatible format
- updated tests
2022-05-05 17:04:23 +02:00
Ewout Stortenbeker
4295e75bf6 chore: tsc 2022-04-13 12:21:16 +02:00
Ewout Stortenbeker
6b2b177f9c - implemented new deleteIndex api method
- reflection: removed type when !exists
- reflection: added address info on reflection path
2022-04-13 12:20:37 +02:00
Ewout Stortenbeker
37ed90646a fixed delete method 2022-04-13 12:16:31 +02:00
Ewout Stortenbeker
1869c06950 changed indexes.delete method & signature 2022-04-13 12:15:54 +02:00
Ewout Stortenbeker
5ad6fb7cba Fixed query sorts on subkeys (eg 'child/name') 2022-04-01 14:19:43 +02:00
Ewout Stortenbeker
5b7a399d59 - added readOnly storage setting for #88
- disabled transaction logging on private paths
2022-04-01 14:17:21 +02:00
Ewout Stortenbeker
8b26c26cf1 Fixed Node 10 incompatibilities 2022-03-23 10:55:24 +01:00
Ewout Stortenbeker
6d9b90fc63 Custom storage improvements 2022-03-11 09:43:48 +01:00
Ewout Stortenbeker
01cd330a4c - fixed #75 .take issue: now loads extData
- fixed 2+ index rebuilds failing
- moved unused imports to jsdoc
- async .build
2022-02-23 13:56:18 +01:00
Ewout Stortenbeker
1851fb42fb disabled rebuild perf output, export leaf type 2022-02-23 12:50:25 +01:00
Ewout Stortenbeker
748720f421 Fix #74 using tx logging without storage settings 2022-02-23 12:49:06 +01:00
Ewout Stortenbeker
c65b42c85b unref connect timeout to allow process exit 2022-02-23 12:45:32 +01:00
Ewout Stortenbeker
b944b18eea +case insensitive compare on index result filters 2022-02-21 18:00:06 +01:00