TBD54566975 / dwn-sdk-js

Decentralized Web Node (DWN) Reference implementation
https://identity.foundation/decentralized-web-node/spec/
Apache License 2.0
324 stars 95 forks source link

Added `prune` protocol action + `ProtocolAuthorization` refactoring #735

Closed thehenrytsai closed 3 months ago

thehenrytsai commented 3 months ago
  1. Added support for prune protocol action.
  2. Renamed "ancestor chain" to "record chain" because the chain often contains not just the ancestor records, but also record in concern which leads to confusion.
  3. Simplified context and implementation of constructRecordChain()
  4. Refactored authorizeAgainstAllowedActions() to make it more easily understood.
codecov-commenter commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.53%. Comparing base (f42ba25) to head (cf7e4bb). Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #735 +/- ## ======================================= Coverage 98.52% 98.53% ======================================= Files 71 71 Lines 10563 10628 +65 Branches 1539 1550 +11 ======================================= + Hits 10407 10472 +65 Misses 150 150 Partials 6 6 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.