Matt Hill
86b0768bbb
audit fixes, repo restructure, and documentation
...
Soundness and performance audit (17 fixes):
- See AUDIT.md for full details and @claude comments in code
Repo restructure:
- Inline json-ptr and json-patch submodules as regular directories
- Remove cbor submodule, replace serde_cbor with ciborium
- Rename patch-db/ -> core/, patch-db-macro/ -> macro/,
patch-db-macro-internals/ -> macro-internals/, patch-db-util/ -> util/
- Purge upstream CI/CD, bench, and release cruft from json-patch
- Remove .gitmodules
Test fixes:
- Fix proptest doesnt_crash (unique file paths, proper close/cleanup)
- Add PatchDb::close() for clean teardown
Documentation:
- Add README.md, ARCHITECTURE.md, CONTRIBUTING.md, CLAUDE.md, AUDIT.md
- Add TSDocs to TypeScript client exports
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-23 19:06:42 -07: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
Matt Hill
2c8b29ec8f
permit futuristic revisions
2024-02-25 13:19:35 -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
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
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
Matt Hill
bdf0b32be6
remove stash and store completely
2022-09-02 15:13:08 -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
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
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
Drew Ansbacher
2ca4b256b3
Update patch-db.ts
2021-12-28 15:29:10 -07:00
Drew Ansbacher
4fb0d3570b
Update patch-db.ts
2021-12-28 15:29:10 -07:00
Drew Ansbacher
e2a51475a7
polling working without refresh
2021-12-28 15:29:10 -07:00
Drew Ansbacher
ab9305fc92
patch client reset
2021-12-28 15:29:10 -07:00
Matt Hill
c3e28cb683
revert source connection monitor
2021-12-28 15:29:10 -07:00
Matt Hill
c03c876098
add connection monitor to sources
2021-12-28 15:29:10 -07:00
Matt Hill
a72c1c5499
send message when websocket open and clear store cache on reset
2021-12-28 15:29:10 -07:00
Matt Hill
3e2e1c92dd
revert
2021-12-28 15:29:10 -07:00
Drew Ansbacher
cf43a9a83e
extends hashmap
2021-12-28 15:29:10 -07:00
Drew Ansbacher
88084f60a2
hashmap
2021-12-28 15:29:10 -07:00
Matt Hill
2db0449d12
our own json patch lib and everything working
2021-07-09 15:12:58 -06:00
Matt Hill
bddbc850ab
stashing to handle out-of-sequence revisions
2021-07-09 15:12:58 -06:00
Matt Hill
434c6f7037
start
2021-07-09 15:12:58 -06:00
Matt Hill
d84752007d
remove connection status from lib
2021-07-09 15:12:58 -06:00
Matt Hill
eb4a24e797
add connection monitoring
2021-07-09 15:12:58 -06:00
Matt Hill
950773e542
removes temps, massive refactor
2021-07-09 15:12:58 -06:00
Matt Hill
416d622df4
updates to bootstrapper
2021-07-09 15:12:58 -06:00
Aiden McClelland
9ad59a4d1a
move client from separate repo
2021-07-09 15:12:58 -06:00