Skip to content

v0.7

Latest
Compare
Choose a tag to compare
@snarfed snarfed released this 09 Nov 05:59
· 4 commits to main since this release
77fb507

Breaking changes:

  • Add much more lexicon schema validation for records and XRPC method input, output, and parameters.
  • storage:
    • Switch Storage.write to return Block instead of CID.

Non-breaking changes:

  • did:
    • Add new update_plc method.
    • create_plc: add new also_known_as kwarg.
    • resolve_handle: drop Content-Type: text/plain requirement for HTTPS method.
  • mst:
    • Add new optional start kwarg to load_all.
  • repo:
  • storage:
    • Add new deactivate_repo, activate_repo, and write_event methods.
    • Add new optional repo kwarg to read_blocks_by_seq and read_events_by_seq to limit returned results to a single repo.
  • datastore_storage:
    • Add new max_size and accept_types kwarg to AtpRemoteBlob.get_or_create for the blob's maxSize and accept parameters in its lexicon. If the fetched file doesn't satisfy those constraints, raises lexrpc.ValidationError.
    • DatastoreStorage.read_blocks_by_seq: use strong consistency for datastore query. May fix occasional AssertionError when serving subscribeRepos.
  • xrpc_sync:
    • Switch getBlob from returning HTTP 302 to 301.
    • Implement since param in getRepo.
    • subscribeRepos: wait up to 60s on a skipped sequence number before giving up and emitting it as a gap.
  • util:
    • service_jwt: add new **claims parameter for additional JWT claims, eg lxm.