Repository navigation
sdk/internal: use lexicon strongRef type and schema in resolveRecordRef - #4
Conversation
@hypercerts-org/lexicon 2.0.1 publishes record schemas, so the SDK no longer defines its own strong-ref shape or hand-checks the getRecord response. The package is added as a peer dependency.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 27 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
--similarity misses functions rewritten in a different style. jscpd --semantic compares embeddings from a local model; 0.55 catches hand-written rewrites of describe.ts helpers that the default 0.6375 misses, with no false matches in the SDK today. The model is cached in CI.
|
❌ The last analysis has failed. |
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
Follow-up to TECH-752 (TECH-750 is now released).
Problem
resolveRecordRefdefined its ownStrongReftype and hand-checked the PDS response, waiting on@hypercerts-org/lexiconto publish record schemas. 2.0.1 now ships them.Fix
StrongRefis nowcom.atproto.repo.strongRef'sMaintype from@hypercerts-org/lexicon.getRecordresponse is checked with that package'sstrongRef.mainschema; the same-URI check stays. Error now reads "without a valid URI and CID".@hypercerts-org/lexiconadded as a peer dependency (^2.0.1), pinned as a dev dependency.Summary by CodeRabbit