Aiden McClelland
86736491db
handle empty keys
2025-01-17 14:40:57 -07:00
Aiden McClelland
d3182d23da
fix patching of arrays
2025-01-16 16:41:48 -07:00
Aiden McClelland
2600a784a9
try-lock
2024-12-10 18:23:25 -07:00
Aiden McClelland
99076d349c
Merge branch 'master' of https://github.com/Start9Labs/patch-db
2024-06-24 10:43:39 -06:00
Aiden McClelland
faab5ff083
don't send empty patches
2024-06-24 10:43:34 -06:00
Alex Inkin
c537a07ea9
feat: move cache to optional constructor argument, so it can be exter… ( #64 )
...
* feat: move cache to optional constructor argument, so it can be externalized
Signed-off-by: waterplea <alexander@inkin.ru >
* chore: make cache private
Signed-off-by: waterplea <alexander@inkin.ru >
---------
Signed-off-by: waterplea <alexander@inkin.ru >
2024-06-21 21:26:18 -06:00
Matt Hill
7aa53249f9
remove bootstraop and drop alias for dump ( #63 )
2024-06-06 07:30:01 -06:00
Aiden McClelland
72c62cd525
update json-ptr
2024-06-05 10:26:50 -06:00
Aiden McClelland
88a804f56f
update json-ptr
2024-05-01 17:50:51 -06:00
Aiden McClelland
e0fcf10361
add typed wrapper
2024-04-24 17:44:58 -06:00
Aiden McClelland
e4a3f7b577
fix error
2024-03-15 11:55:57 -06:00
Aiden McClelland
df65275c2c
disallow indexing into flattened params
2024-03-14 17:52:08 -06:00
Aiden McClelland
3dc11afd46
Merge branch 'master' of https://github.com/Start9Labs/patch-db
2024-03-11 17:12:18 -06:00
Aiden McClelland
5f260322d7
update json-ptr
2024-03-11 17:12:09 -06:00
Matt Hill
2c8b29ec8f
permit futuristic revisions
2024-02-25 13:19:35 -07:00
Aiden McClelland
899c63afb5
subscribe to subtrees
2024-02-19 13:46:09 -07:00
Aiden McClelland
7096f15e9b
update json-patch
2024-01-04 14:04:26 -07:00
Aiden McClelland
6af2221add
remove revision cache ( #62 )
2023-10-16 22:02:02 +00:00
Aiden McClelland
3e5cc22bb6
Feature/lockless ( #60 )
...
* lockless
* new and improved api
* fix tests
Co-authored-by: J H <Blu-J@users.noreply.github.com >
* fix models again
* fix imports
* improved api
* fix internally tagged enums
---------
Co-authored-by: J H <Blu-J@users.noreply.github.com >
2023-09-28 19:26:17 +00:00
Lucy
8aeded3321
update ts-node and typescript ( #59 )
2023-06-07 14:55:31 -06:00
Matt Hill
fcfa917710
update package json ( #58 )
2023-03-15 15:00:07 -06:00
Lucy C
85959db110
update packages ( #57 )
2023-03-07 20:05:26 -07:00
Aiden McClelland
4b01b74f96
fuck it: no locks ( #56 )
2022-11-28 11:55:10 -07:00
Matt Hill
57af14469b
only update nodes once per patch ( #55 )
2022-11-28 11:55:10 -07:00
Alex Inkin
5104086317
feat: remove ionic storage ( #51 )
2022-11-28 11:55:10 -07:00
Aiden McClelland
cb8998a79c
make Store::apply cancel safe ( #53 )
2022-10-26 14:19:26 -06:00
Matt Hill
6c3079786f
handle escaping and honor root pointer ( #52 )
...
* handle escaping and honor root pointer
* Update client/lib/json-patch-lib.ts
* Update client/lib/json-patch-lib.ts
Co-authored-by: Lucy C <12953208+elvece@users.noreply.github.com >
2022-10-03 10:56:50 -06:00
Aiden McClelland
00564ca1ca
allow recovery from broken db ( #50 )
2022-09-27 14:56:26 -06:00
Aiden McClelland
50657d63e2
remove barrage ( #49 )
2022-09-26 13:35:13 -06:00
Aiden McClelland
e74f36f073
prefer compression as a failsafe ( #48 )
2022-09-22 08:40:06 -06:00
Matt Hill
4d987b1921
don't emit until bootstrapped with data ( #47 )
2022-09-21 10:51:32 -06:00
Matt Hill
20beb61baa
much more efficient ( #46 )
...
* much more efficient
* update children too
* better compare
2022-09-14 11:21:00 -06:00
Matt Hill
74c01eb5db
fix updating revision number on dumps
2022-09-06 13:54:33 -06:00
Aiden McClelland
13c2e6570d
fix db serialization
2022-09-06 12:52:43 -06:00
Matt Hill
bdf0b32be6
remove stash and store completely
2022-09-02 15:13:08 -06:00
Aiden McClelland
b205639575
add revision cache and clean up todos
2022-09-02 15:12:26 -06:00
Aiden McClelland
3e0a0204bc
add cli utility ( #41 )
...
* add util
* add cli util
2022-09-02 13:01:26 -06:00
Alex Inkin
f4732b18a2
Refactor sources ( #40 )
...
* major refactor to exclude multiple sources
Co-authored-by: Matt Hill <matthewonthemoon@gmail.com >
2022-08-21 14:36:07 -06:00
waterplea
2fef1e572c
chore: add prettier and reformat lib
2022-07-24 09:01:01 -06:00
waterplea
c7006e0eb2
fix: patchdb should not bundle rxjs but instead rely on the version in the app
2022-07-24 09:01:01 -06:00
Matt Hill
ec35e5f14c
refactor apply operation to account for arrays ( #38 )
...
* refactor apply operation to account for arrays
* fix buig
2022-06-29 17:43:12 -06:00
waterplea
d24bd1c513
fix: properly handle source errors without stopping the stream
2022-06-29 08:18:48 -06:00
Alex Inkin
9a28793f27
refactor: remove nested subscription ( #36 )
2022-06-22 15:23:35 -06:00
Alex Inkin
e138b88e75
feat: make watch$ strictNullCheck compatible ( #34 )
...
* feat: make `watch$` strictNullCheck compatible
* chore: send initial value to subscribers
* let values emit when undefined
* fix: properly check if data can be processed
Co-authored-by: Lucy Cifferello <12953208+elvece@users.noreply.github.com >
2022-06-19 13:19:00 -06:00
J M
8e7c893d48
fix: Remove an unwrap ( #35 )
...
* chore: Remove an unwrap
* chore: convert to a potential error instead, older api
* chore: format file
2022-06-06 09:49:11 -06:00
Alex Inkin
6f6c26acd4
feat(client): remove data mutation ( #32 )
...
* feat(client): remove data mutation
* chore: address comments and fix some other issues
* chore: send the most recent cache upon subscription
2022-05-26 16:23:56 -06:00
J M
35973d7aef
Feat new locking ( #31 )
...
This converts the old singular locks into plural locks.
2022-05-09 14:19:08 -06:00
Aiden McClelland
f84637b89d
improve data sync reliability to underlying storage medium
2022-02-25 13:20:39 -07:00
Aiden McClelland
690324e68d
increase max revisions that can be rebased onto
2022-01-26 16:00:25 -07:00
Keagan McClelland
259d186263
fixes multiple calls to recv for closed channels
2022-01-24 12:14:19 -07:00