Matthieu Sieben
f689bd51a2
Build system rework ( #2169 )
...
* refactor(crypto): remove circular dependency
* refactor(crypto): expose compress/decompress as part of the DidKeyPlugin interface
* fix(crypto): remove import from private file
* refactor: isolate tsconfig
* fix: remove unused bench file
* chore(repo): remove unused deps
* fix(ozone): properly list dependencies
* fix(services): do lint js files
* fix(services/pds): remove unused deps
* chore(pds): remove bench
* chore(dev-env): remove unused deps
* chore(api): remove bench
* remove unused babel.config.js files
* fix: remove .ts extension from import
* fix(pds): remove imports of src files
* fix(tsconfig): properly list all projects
* fix(dev-env): remove imports of src files
* fix(bsky): remove direct import to crypto src
* fix(api): remove imports to api internals
* chore(build): prevent bundling of built output
* chore(dev): add "dev" script to build in watch mode
* chore(deps): move ts-node dependency where it is actually used
* fix(deps): add dev-env as project dependency
* fix(xrpc-server): properly type kexicon
* fix(bsky): improve typings
* fix(pds): fully type formatRecordEmbedInternal return value
* fix(repo): remove imports from @ipld/car/api
* feat(dev-env): re-export BskyIngester
* fix: properly lint & type jest config & test files
* fix(ci): test after build
* fix(types): use NodeJS.Timeout instead of NodeJS.Timer
* fix(bsky): make types exportable
* fix(ozone): make types exportable
* fix(xrpc-server): make types exportable
* fix(xprc-server): make code compliant with "node" types
* fix(xrpc-server): avoid accessing properties of unknown
* chore(deps): update @types/node
* feat(tsconfig): narrow down available types depending on the package's target environment
* fix(pds): remove unused prop
* fix(bsync): Database's migrator not always initialized
* fix(dev-env): remove unreachable code
* fix(xrpc-server): remove unused import
* fix(xrpc-server): mark header property as abstract
* fix(pds): initialize LeakyTxPlugin's txOver property
* fix(bsky): initialize LeakyTxPlugin's txOver property
* fix(bsky): remove unused migrator from DatabaseCoordinator
* fix(bsky): Properly initialize LabelService's cache property
* fix(ozone): Database's migrator not initialized
* fix(ozone): initialize LeakyTxPlugin's txOver property
* fix(crypto): ignore unused variable error
* feat(tsconfig): use stricter rules
* feat(tsconfig): enable useDefineForClassFields
* feat(xrpc-server): add support for brotli incoming payload
* fix(xrpc-server): properly parse & process content-encoding
* fix(common:stream): always call cb in _transform
* tidy/fix tests and service entrypoints
* Revert "fix(xrpc-server): properly parse & process content-encoding"
This reverts commit 2b1c66e153820d3e128fc839fcc1834d52a66686.
* Revert "feat(xrpc-server): add support for brotli incoming payload"
This reverts commit e710c21e6118214ddf215b0515e68cb87299a952.
* remove special node env for tests (defaults to jest val of "test")
* kill mute sync handler on disconnect
* work around connect-es bug w/ request aborts
* style(crypto): rename imports from uint8arrays
* fix update package-lock
* fix lint
* force hbs files to be bundled as cjs
* fix: use concurrently instead of npm-run-all
npm-run-all seems not to be maintained anymore. Additionally, concurrently better forwards signals to child processes.
* remove concurrently alltogether
* ignore sqlite files in services/pds
* fix verify
* fix verify
* tidy, fix verify
* fix blob diversion test
* build rework changeset
---------
Co-authored-by: Devin Ivy <devinivy@gmail.com>
2024-03-18 17:10:58 -04:00
Eric Bailey
a7c42cfe39
Clean up prettier/eslint scripts ( #1514 )
...
* add prettierignore, hoist script
* upgrade prettier
* bump prettier eslint deps
* format all files
* hoist prettier check
* remove unused scripts, hoist lint:fix
* remove npm-run-all, unused
* hoist lint
* remove lint scripts
* improve lint scripts
* remove prettierignores
* downgrade prettier deps to fix codgen
* reformat all files
* update makefile, format
* fix locklife
* final format
---------
Co-authored-by: dholms <dtholmgren@gmail.com>
2023-09-06 19:27:50 -05:00
Daniel Holmgren
743eaf1cf0
Move handle resolution to .well-known ( #1048 )
...
* move handle resolution to .well-known
* required handle on resolveHandle
* rm test
* tidy
* tidy
* fix up appview
* missing await
* atproto-handle -> atproto-did
* shift did & handle resolution to new identity package
* fix up network mocks
* fix up another test
* one more
* drop lex comment
* rm handle param
* Update packages/identity/src/handle/index.ts
Co-authored-by: devin ivy <devinivy@gmail.com>
* still temporarily support xrpc handle resolution
* typo
* ensure return value is a string
---------
Co-authored-by: devin ivy <devinivy@gmail.com>
2023-05-25 19:04:10 -05:00
Daniel Holmgren
75e14ae102
Feature branch: storage & sync revamp ( #446 )
...
* wip
* fleshing out repo storage
* fleshing out sql storage
* cleaning things up
* fix up tests
* dumb bug - commit log reversed
* rm staging in favor of commiting diffs to blockstore
* clean up benches
* fixing up sql storage
* some caching for sql repo store
* pr feedback
* migration
* wip
* migraiton test
* unclear param
* sql repo storage tests
* rm unused code
* fix up some diff code
* pr feedback
* enum for action types
* missed some
* wip
* ripping out auth lib
* more auth cleanup
* another lurker
* wip better sync primitives
* wip
* improving diffs & sync
* tests working!
* actually implemented checkout lol
* simplify interface & improve error handling
* writing sql storage code
* fixing up tests
* testing & bugfixes
* checkouts return records instead of cids
* one last refactor lol
* missed one
* handle other cid codecs on incoming car verification
* tests + tricky bugs
* unneeded blockstore method
* trim mst on del instead of save
* cleanup comment
* dont resolve did for every commit
* use "commit" instead of "root"
* getRoot -> getHead
* pr feedback
* very silly bug fix
* improve sync output
* reorging + sync of particular records
* serve & verify proofs. also rename some ipld methods
* fix up sync issue in mst
* find reachable records form carfile
* getRecord xrpc method
* pr feedback
* better migration test
* check migraiton result
* fixing up a couple things for pg
* explicit migrateTo
* async exceptions
* ipld car mimetype + remove updateRepo
* Update module publish scripts (#478 )
* Update pds package publishing scripts
* Update auth package publishing scripts
* Update crypto package publishing scripts
* Update did-resolver package publishing scripts
* Update handle package publishing scripts
* Update xrpc-server package publishing scripts
* Update common package publishing scripts
* Update plc package publishing scripts
* Update uri package publishing scripts
* Update repo package publishing scripts
* Sort "suggested follows" by number of posts (#477 )
* return suggestions by post count
* pr feedback
* fix up PG pagination issue
* partiion commit-history & commit-blocks by user did
* fix migration type
* switch pk indexes
Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2023-01-26 18:09:55 -06:00
Paul Frazee
e44c98e717
Update module publish scripts ( #478 )
...
* Update pds package publishing scripts
* Update auth package publishing scripts
* Update crypto package publishing scripts
* Update did-resolver package publishing scripts
* Update handle package publishing scripts
* Update xrpc-server package publishing scripts
* Update common package publishing scripts
* Update plc package publishing scripts
* Update uri package publishing scripts
* Update repo package publishing scripts
2023-01-24 10:11:20 -06:00
Paul Frazee
1425b0cd4f
New XRPC-based Server and API implementations ( #180 )
...
* Add xrpc-cli package; implement 'new' and 'gen-md' commands
* Add gen-ts-obj to xrpc-cli
* Add gen-api command to xrpc-cli
* Add gen-server to xrpc-cli
* Update codegen from xrpc-cli to run prettier and include a banner comment
* Use 'void' instead of 'undefined' for return type
* Skip invalid schemas when generating code
* Rewrite schemas package to use new simplified schema
* Output type definitions in nested folders
* Add record schema code-generation
* Change xrcp client call() signature to be easier to use
* Update client codegen to match new xrpc call signature
* Fixes and improvements to generated record APIs
* Update generated api to use per-service instances
* Add xrpc-cli readme
* (WIP) Rewrite server to use xrpc
* Add missing references to server/tsconfig.json
* Replace api implementation with xrpc generated client
* Add /schemas folder with todo.adx
* Add /schemas/todo.social
* Update api package to include todo.social xrpc and adx schemas
* Update server package to include todo.social xrpc and adx schemas
* Fix some schema definitions
* (WIP) Work toward xrpc update of server
* Update auth package to use nsids for collections
* Update repo package to use nsids for collections
* Update AdxUri to use nsid collection IDs
* Bring server CRUD tests to passing state
* Move API to simpler xrpc call signature
* Apply fixes and improvements to record apis
* Update to new generated api with per-service instances
* Rename the todo.social.* view methods
* Rewrite the views system to use xrpc
* Remove paths accidentally added to tsconfig
* Remove microblog package
* Add simple API readme
* todo about deduping ucan prfs
* increase postThread default depth to fix failing test. & fix USE_TEST_SERVER config
Co-authored-by: dholms <dtholmgren@gmail.com>
2022-09-20 17:39:05 -05:00
dholms
c9a6609b93
fixed up common & repo tests
2022-09-13 11:15:56 -05:00
dholms
94babb38b7
split common and repo out into separate packages
2022-09-12 21:01:56 -05:00