Commit Graph

15 Commits

Author SHA1 Message Date
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
Aiden McClelland
0df18c651f fix patching arrays... again 2025-01-24 16:48:38 -07:00
Aiden McClelland
d3182d23da fix patching of arrays 2025-01-16 16:41:48 -07:00
Matt Hill
7aa53249f9 remove bootstraop and drop alias for dump (#63) 2024-06-06 07:30:01 -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
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
bdf0b32be6 remove stash and store completely 2022-09-02 15:13:08 -06:00
waterplea
2fef1e572c chore: add prettier and reformat lib 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
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
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
Matt Hill
678d7b3322 add mock source 2021-12-28 15:29:10 -07:00
Drew Ansbacher
60320e3083 document bug fix 2021-12-28 15:29:10 -07:00
Matt Hill
5699702656 return whole doc, better unsubscribe 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